IRC #olimex 2018-06-17

[00:45:01] <adj_> Asara, ivanshmakov: MoeIcenowy has a huge knowledge about allwinner SOCs, big chance that her/his kernel works well
[15:38:17] <Sat> Hi
[15:41:58] <diego71> hi
[16:14:16] <MoeIcenowy> adj_: but on features I will be conservative
[16:16:03] <MoeIcenowy> as I was down for a long time and cannot follow the newest development of linux-sunxi
[16:24:02] <Asara> can't get he wifi interface to come up
[16:24:09] <Asara> i can scan for networks
[16:24:30] <Asara> i can get wpa_supplicant toa uth to the AP (apparently, I see auth successful logs in dmesg)
[16:24:39] <Asara> but theinterface stays down, and then goes into DORMANT mode
[16:26:20] <MoeIcenowy> Asara: try ifconfig wlan0 up?
[17:05:23] <Asara> MoeIcenowy: i'm using the debian image
[17:05:44] <Asara> and with which doesn't include ifconfig
[17:05:47] <Asara> but evne with ip link
[17:05:50] <Asara> i'm unable to bring it up
[17:06:20] <Asara> with the preinstalled image i am able to connect to the internet so I'm assuming its a configuratoin issue somewhere
[17:21:40] <diego71> Asara: I don't think wifi is already supported in mainline kernel
[17:22:44] <Asara> diego71: the debian image includes the blob
[17:24:49] <MoeIcenowy> diego71: I think the wifi is just 8723bs
[17:24:59] <MoeIcenowy> which is supported by mainline kernel
[17:27:08] <MoeIcenowy> (if my memory is not corrupted
[17:29:26] <MoeIcenowy> yes it's 8723bs
[17:31:10] <Asara> MoeIcenowy: I want to install debian or gentoo on this thing. What is your recommendation? Using the image posted in the forums thus far has not allowed me to get internet
[17:31:25] <MoeIcenowy> try debian wiki?
[17:31:29] <Asara> Should I just wing it and a debian-testing live image and go from there
[17:31:29] <MoeIcenowy> I think there's a manual there
[17:33:46] <Asara> https://wiki.debian.org/InstallingDebianOn/Olimex/Teres-I yeap
[17:34:56] <diego71> MoeIcenowy: you are right, I've also tested it sometime ago...
[17:35:13] <diego71> for some reason works better with the allwinner kernel
[17:35:37] <diego71> I've got a lot of disconnect with mainline driver
[17:35:38] <MoeIcenowy> I think the driver in mainline is in better state than Allwinner ones
[17:36:46] <diego71> At least it should :)
[17:39:21] <diego71> Asara: as said before, wifi should work with the debian image
[17:39:50] <diego71> at least it should show you the access point around you
[17:40:51] <Asara> diego71: it does show me the access points
[17:41:00] <Asara> but I can't bring the interface up
[17:41:25] <Asara> so iw scan works and returns all the APs, wpa_supplicant says it is authing against the AP, but the interface itself (ip link) stays down
[17:41:35] <Asara> and then goes into 'mode DORMANT' after a few minutes
[17:41:52] <diego71> try to manually run dhclient on the interface
[17:42:18] <diego71> or use a static ip
[17:42:32] <Asara> tried manually running dhclient as well. I can try a static ip one sec
[17:46:10] <MoeIcenowy> trying to bring up TERES I with aosc sunxi64 4.14 kernel
[17:46:17] <MoeIcenowy> (by just modifying the PB DT)
[17:46:25] <Asara> ACTION has no idea how to do that :)
[17:46:30] <Asara> also static IP doesn't work either
[17:48:52] <Asara> MoeIcenowy: I follow #linux-sunxi but for the most part have no idea what is going on. I'm mostly just a sideline fan trying to learn
[17:49:39] <MoeIcenowy> what's your kernel version?
[17:49:43] <MoeIcenowy> and what DT did you use?
[17:50:02] <Asara> I used whatever is in the debian image. Not sure about dt but kernel v is 4.16-rc1
[17:50:16] <Asara> straight from https://www.olimex.com/forum/index.php?topic=6092.0
[17:50:51] <Asara> image hasn't been updated since march, so I'm assuming there is a better way to go about this
[17:50:58] <Asara> but that might be a bad assumption so idk
[17:51:07] <MoeIcenowy> could you try to send me a copy of the dtb?
[17:51:23] <MoeIcenowy> it can be partly decompiled
[17:53:47] <Asara> er one sec
[17:55:01] <Asara> not sure how to decomplie it
[17:55:07] <Asara> I can link you to the blob though..
[17:55:11] <Asara> unless you have instructions somewhere
[17:55:19] <MoeIcenowy> Asara: on my side 8723bs works well
[17:55:31] <MoeIcenowy> dtc -I dtb -O dts < dtb.dtb > dts.dts
[17:58:08] <Asara> MoeIcenowy: https://paste.debian.net/1029588/
[17:58:18] <MoeIcenowy> thx
[17:58:25] <Asara> ty! :)
[17:59:36] <MoeIcenowy> oh he inverted vmmc and vqmmc at mmc1
[17:59:49] <MoeIcenowy> vqmmc should be aldo2 and vmmc should be dldo4
[18:00:42] <MoeIcenowy> in this case when the card probing, the dldo4 (which is set as vqmmc and can go to 1.8v) can get undervoltaged
[18:00:49] <MoeIcenowy> (it's required to be ~3.3v to work
[18:01:23] <MoeIcenowy> Asara: could you try to fix it and re assemble?
[18:01:30] <MoeIcenowy> go to mmc@1c10000
[18:01:34] <Asara> I'd be down to try
[18:01:36] <Asara> on the file?
[18:01:46] <MoeIcenowy> exchange vmmc-supply and vqmmc-supply value
[18:01:49] <MoeIcenowy> on the new dts.dts
[18:02:06] <MoeIcenowy> and then reassemble it by `dtc -I dts -O dtb < dts.dts > dtb.dtb`
[18:03:12] <Asara> done
[18:03:19] <Asara> now copy it back to the device and try again?
[18:03:25] <MoeIcenowy> yes
[18:03:47] <Asara> okay one min
[18:05:51] <Asara> nope
[18:05:53] <Asara> same issue
[18:05:59] <MoeIcenowy> ah-oh
[18:06:10] <Asara> 'RTL8723BS: start auth, then auth success, start assoc
[18:06:11] <Asara> and then nothing
[18:06:24] <Asara> ip link still showing state DOWN mode DORMANT
[18:06:53] <MoeIcenowy> could you try a manager?
[18:07:00] <MoeIcenowy> like wicd, networkmanager
[18:07:11] <Asara> I could download the debs for wicd and try that i guess
[18:07:17] <MoeIcenowy> (to be honest it has been year since the last time I directly execute wpa_supplicant
[18:07:25] <MoeIcenowy> years *
[18:07:43] <Asara> I'm use to minimal installs and building up from there
[18:07:49] <Asara> so i use it every so often
[18:09:13] <MoeIcenowy> install it before running on the raw kernel ;-)
[18:09:19] <MoeIcenowy> (with chroot
[18:10:04] <Asara> never chroot'ed with a different arch
[18:10:07] <Asara> that will be fine?
[18:10:25] <Asara> er never mind it would be
[18:10:32] <Asara> using a binary dist
[18:10:33] <Asara> :x
[18:12:17] <MoeIcenowy> that will, with some qemu
[18:13:49] <Asara> https://wiki.debian.org/Arm64Qemu
[18:13:51] <Asara> ?
[18:16:01] <MoeIcenowy> ah yes
[18:16:02] <MoeIcenowy> use binfmt
[18:16:24] <MoeIcenowy> P.S. could you check /sys/kernel/debug/regulator/regulator_summary now?
[18:16:50] <MoeIcenowy> check voltage of vcc-pl and vcc-wifi-io
[18:18:33] <Asara> sure one sec
[18:18:54] <Asara> not sure what you mean by use binfmt
[18:20:06] <MoeIcenowy> just follow the wiki ;-)
[18:24:57] <Asara> MoeIcenowy: also http://paste.debian.net/1029591/
[18:25:01] <Asara> regulator_summary
[18:25:24] <MoeIcenowy> oh voltage is ok
[18:25:26] <MoeIcenowy> should be a sw issue
[18:28:58] <diego71> Asara: have you tried with wicd?
[18:29:03] <Asara> diego71: going to try with wicd now
[18:49:25] <Asara> no dice...
[18:50:15] <Asara> MoeIcenowy: http://paste.debian.net/1029597/ dmesg output when trying to connect
[18:50:51] <MoeIcenowy> ah-oh
[18:50:55] <MoeIcenowy> kernel warning
[18:51:06] <Asara> yeap
[18:51:25] <Asara> and now there is an error every time i go to wicd to edit a AP that i already added (like put a password on)
[18:51:30] <MoeIcenowy> it's beyond what I can control
[18:51:32] <Asara> python crashes out of wicd-curses :)
[19:08:04] <MoeIcenowy> BTW the Linux branch used by my distro, which gets TERES-I support just now, is uploaded to https://github.com/AOSC-Dev/linux/tree/aosc-sunxi64-4.14.49
[20:32:21] <Asara> MoeIcenowy: is your distro public?
[20:32:28] <MoeIcenowy> ah yes
[20:32:38] <MoeIcenowy> but I don't so want people to use it ;-)
[20:33:02] <Asara> fair enough
[20:33:34] <MoeIcenowy> I'm just pushing the kernel ;-)
[21:19:07] <Asara> alright i just thought to boot into the default ubuntu image, and chroot into the debian image from there