libera/#devuan-arm/ Saturday, 2021-05-29

c0rneliusI made some adjustments as I don't believe some of that is relative to the H5.00:30
c0rneliusWe shall see00:30
c0rneliusPlus it looked like some of it is already in my base patch that board. cpu related junks and what nots00:47
c0rneliustuxd3v: whats in ur cmdline?01:00
tuxd3vsorry It took a longer nap than expected -.-02:11
tuxd3vI have this:02:12
tuxd3vsetenv bootargs "earlyprintk earlycon=uart8250,mmio32,0x1c28000 net.ifnames=0 biosdevname=0 debug=on console=ttyS0,115200 console=tty1 cma=64M root=PARTUUID=${rootfsuuid} rw fsck.repair=yes rootwait usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u elevator=noop"02:12
tuxd3vnow I doesn't even need the partuuid, because I have aliases in the DT for all mmc cards :)02:14
tuxd3vearlycon=uart8250,mmio32,0x1c28000 you need to see what address is ttyS002:19
tuxd3vin your board..02:19
c0rneliusI'll check the earlycon but thats not needed on my other boards02:34
tuxd3vyeah its not really neded its only for debug purposes, to give you the logs from beguining..02:35
tuxd3vits not really needed..02:35
tuxd3vnow that I have it completly working I will got that out too :)02:35
c0rneliusand... no.02:42
tuxd3vhumm02:42
tuxd3vwhat no?02:42
tuxd3vbluetooth?02:42
c0rneliusYeah doesn't come up02:43
tuxd3vdoes you have the binary in /lib/firmware/brcm ?02:43
c0rneliusMy other patch it will come up, but that isn't editing the dts but actually making changes to the bluetooth business inside the kernel its self02:43
c0rneliusOf course I do02:43
tuxd3vhumm02:43
tuxd3vwhat is your device?02:43
tuxd3vampak 6212?02:44
tuxd3vyeah its a 6212 like mine :)02:44
c0rneliusYeah I believe so? Either way the firmware on the device is sufficient.02:44
tuxd3vyou need a patch like this:/lib/firmware/brcm/BCM43430A1.hcd02:45
tuxd3vthis patch is required02:45
tuxd3vto work flawlessly02:45
c0rneliusIts a lost cause :) Somewhere in between believing in Jesus and caring in general.02:46
tuxd3vno its not believe me! :)02:46
c0rneliusI'm pretty sure I already added that last time we were on the subject.02:46
tuxd3vits for 26 Mhz?02:48
c0rneliusThats the one you mentioned. So I looked into it.02:48
tuxd3vI will give you a small dmesg of mine:02:48
c0rneliusIt should be in there.02:48
c0rneliusIn my research I believe its like the a64... It needs a push.02:49
tuxd3vyou need binutils or  you can use another tool02:49
tuxd3vto a strings on the package02:49
tuxd3von the firmware :D02:49
c0rneliusOn the vendor kernels they just edit the bluetooth bits, on mainline you need a helper.02:49
tuxd3vit should say: 0BCM43438A1 26MHz AP6212A1_CL1 BT4.0 OTP-BD-003402:50
tuxd3valmost on the beguining..02:50
c0rneliusYes I read the strings02:50
c0rneliusI added it to my firmware02:50
tuxd3vwhat is the output of this: 'dmesg|grep -E "Bluetooth|cfg80211|brcmfmac|mmc" --color'02:51
c0rneliusThe problem is the kernel doesn't know bluetooth is even there... Its not a problem with firmware or else I would see an error.02:51
tuxd3vho wait..02:51
tuxd3vso you need this in the kernel def_config: https://paste.debian.net/hidden/92c92aef/02:52
tuxd3vis really pays off02:52
c0rneliusYes all of that is there already.02:53
tuxd3vif you have the uart3 configured and bluetooth inside02:53
tuxd3vso it needs to work on boot02:53
tuxd3vdmesg|grep -E "Bluetooth|cfg80211|brcmfmac|mmc"02:53
tuxd3vdo this, and see whats going on ^^02:53
c0rneliusNothing related to bluetooth is there02:54
c0rneliuszero02:54
c0rneliusI checked02:54
tuxd3vdoes you have the bluetooth stack installed?02:54
c0rneliusOf course02:55
tuxd3vI use this: apt-get install bluetooth bluez-obexd pulseaudio-module-bluetooth bluez-tools02:55
tuxd3vho you need dbus too02:55
Tenkawatuxd3v: those have nothing to do with the dmesg/kernel seeing bluetooth02:56
tuxd3vkernel will see the device because c0rnelius  configured in the DT the bluetooth layer02:56
tuxd3vkernel will nring up bluetooth alone, without external intervenction :)02:56
Tenkawaif bluetooth drivers and the kernel loads... those packages dont mean anything02:57
Tenkawayou dont have to have any of them installed02:57
tuxd3vthose packages are for userspace only02:57
Tenkawa"thats my point"02:57
Tenkawayour dmesg| grep wasnt helpful02:57
tuxd3vyes it is, because it shows you whats going up in the boot process :)02:58
Tenkawano it doesmt02:59
Tenkawaer doesnt02:59
tuxd3vfor example this: https://paste.debian.net/hidden/cc1c1992/02:59
tuxd3vyes it is02:59
tuxd3v:D02:59
Tenkawathats not the boot process03:00
Tenkawathats the kernel drivers loading03:00
Tenkawaand initial mount03:00
Tenkawathats all03:00
tuxd3vc0rnelius, take frok here the firmware patch: https://gitea.devuan.org/tuxd3v/extras/src/branch/master/lib/firmware/brcm/BCM43430A1.npi-neo-air.hcd03:00
Tenkawathe boot process is in /var/log03:00
tuxd3vrename it to '/lib/firmware/brcm/BCM43430A1.hcd'03:01
tuxd3vits the same firmware for mine and your device :)03:02
tuxd3vand also the device is using the same 26 mhz crystal03:02
tuxd3vso its exactly the same :)03:02
tuxd3vI have this in my kernel def_config: https://paste.debian.net/hidden/fa086ac1/03:04
tuxd3vits what you need in your kernel03:04
tuxd3vthe rest via device tree it will bring the drivers, and download the firmware automatically to the device :)03:04
tuxd3vTenkawa, I don't need full boot logs only the interesting parts ;)03:05
c0rneliustuxd3v: I wills tries again tomorrow. The dts already has the edits, so if its firmware related it should in theory just work?03:08
tuxd3vyes, if you have the Bluetooth drivers selected in the kernel, and the firmware in /lib/firmware, it should work03:09
tuxd3vwe had tested a lot of devices today in linux-sunxi03:10
tuxd3vthis problems with bluetooth are afacting a great number of devices, until today :)03:10
tuxd3vthe puzzle was solved :)03:11
tuxd3vand its like that, out-of-de-box03:11
c0rneliusWell not on mine apparently :) Whats the list of devices?03:12
tuxd3vI believe you shouldn't have '/dev/ttyS3'03:12
c0rneliusI adjusted that.03:12
tuxd3vsince tablets, bananapi m64, my neo Air, I don't remember now what wens and megi had, but they also had sbcs with alllwinner devices on them03:13
c0rneliusMine by default is set to S2. But I did remove it, change it and try diff numbers.03:13
c0rneliusI even added ur early... Nothing was noticed.03:13
tuxd3vsome of the bluetooth devices are ampak 6212, 6210, also ando others03:13
tuxd3vbut all broadcom related, or cypress related..03:14
tuxd3vwhen it boots up it claims ttyS3, it will be unavaillable, because its claimed for Bluetooth03:14
tuxd3vyou should see something like:03:15
tuxd3vls /dev/ttyS*03:15
c0rneliusWhen mine boots its not claimed by anything because the kernel doesn't know its there.03:15
tuxd3v/dev/ttyS0  /dev/ttyS2/dev/ttyS5  /dev/ttyS7  /dev/ttyS1  /dev/ttyS4/dev/ttyS603:16
c0rneliusMy old patch it at least saw it03:16
tuxd3vthe ttyS3 like you see is not here because its used by bluetooth03:16
tuxd3von boot it claims it :)03:16
tuxd3vbut that is fine03:16
tuxd3vits a good thing03:16
tuxd3vdoes you have aliases for serials?03:17
tuxd3vboth?03:17
tuxd3vI am on 5.10.37 kernel03:18
tuxd3vI have this in aliases:03:20
tuxd3vserial0 = &uart0;03:20
tuxd3vserial3 = &uart3;03:20
tuxd3vmmc0 = &mmc0;03:20
tuxd3vmmc1 = &mmc1;03:20
tuxd3vmmc2 = &mmc2;03:20
tuxd3vI have their the disk devices too WIFI is mmc103:21
tuxd3vmmc0 is sdcard,mmc2 is emmc03:21
tuxd3vyour serial is in ttyS2?03:24
tuxd3vmine is in ttyS003:25
tuxd3vbut you can choose if you have seveeral and you have :)03:25
tuxd3vthis subject is not board related but device tree related, because its the device tree that will parse the dtb file, and as soon as it sees there:03:29
tuxd3vcompatible = "brcm,bcm43438-bt";03:29
tuxd3vit will load the bluetooth driver03:30
tuxd3vand in the process that triggers a firmware load from rootfs03:30
tuxd3vwhat is the dts you have now?03:31

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!