libera/#devuan-arm/ Wednesday, 2021-11-03

steevc0rnelius: i'd recommend reverting the hunk at 2940 in the 001-bcm2711-brcm-5ghz-wifi patch - it's probably just me but i detest dmesg being spammed with useless info (and the power save state every 5-10 minutes is pointless)17:05
c0rneliussteev: are you referring to the new direct firmware load error thats in 5.15.y now?17:15
steevc0rnelius: maybe i have the wrong person but i'm referring to https://github.com/pyavitz/debian-image-builder/blob/feature/patches/broadcom/001-bcm2711-brcm-5ghz-wifi.patch#L4017:16
steevthat hunk there causes things like https://bpa.st/4R3A17:17
c0rneliusOh. Yeah thats always been there I thinks on the pi. Tells you if its enabled or disabled.17:17
steevyeah i'm aware17:17
steevoh17:17
c0rneliusI don't ever see it pop more than once though?17:18
steevam i misreading the patch?17:18
c0rneliusMaybe17:18
steevthat changes it from a debug only print, to an info print17:18
c0rneliusIf ur seeing it come up every 10 minutes or so then something must be wrong?17:18
steevwell it happens on every single pi, so....17:18
c0rneliusKali?17:19
steevyeah17:19
steevi patched it to go back to the old way17:19
steevbut haven't tested it17:19
c0rneliusMaybe there is something going on in Kali?17:19
steevwe don't want or need to know that it's enabled every 10 minutes17:19
steevunlikely, but possibly17:19
c0rneliusKali disables a bunch of services by default don't they?17:20
steevany network services, yeah17:20
c0rneliusMaybe one of those services is making it trigger like that.17:20
steevi doubt that17:20
c0rneliusWell... Its not happening to me on Debian, Devuan or Ubuntu.17:21
c0rneliusOr lack of one of those services I should say?17:21
steevyou're running now with that patch applied?17:21
c0rneliusdmesg | grep "brcmf_cfg80211_set_power_mgmt"17:22
c0rnelius[    8.890528] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled17:22
c0rnelius[   11.622701] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled17:22
c0rneliusThats been running for a few days.17:23
steevbut that patch just changed yesterday?17:23
c0rneliusThats the foundation broadcom patch. I just use it for mainline in the debian builder or else 5GHz is wonky.17:23
c0rneliusYeah the patch changes every branch.17:24
c0rneliusThat one you posted is 5.10.y, the one in the edge folder is for 5.15.y17:25
c0rneliusHere is the new 5.15.y error I've seen for all boards using broadcom.17:27
c0rneliusbrcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.bin failed with error -217:27
c0rneliusNot sure why its looking for the *.bin of the same name instead of the *.txt file, but its pretty annoying.17:27
steevthat's definitely odd17:28
c0rneliusYeah17:28
c0rneliusHappens on the NanoPC and NanoPi too17:28
steevespecially since it's 433436s17:28
steevbleh, i can't type today17:28
steev43436s17:28
c0rneliusI know. The foundation still hasn't gotten that right.17:28
c0rneliusand its missing the clm_blob17:29
steevoh this is the foundation kernel?17:29
steevclm blob isn't *required*17:29
c0rneliusWell one I compiled from the github yeah17:29
steevit's an optional thing for adding additional channels and such17:29
steevThe firmware for WICED devices includes information regarding regulatory constraints. For certain devices this information is kept separately in a binary form also known as CLM blob.17:30
c0rneliushttps://github.com/raspberrypi/linux/commit/f71d77d11ea3a0cc391030b6c4eb5a0b22e9e78717:30
steevoof17:31
steevaka "we dunno which chip is actually used"17:31
c0rneliusYeah17:31
c0rneliusAnd they changed the dts name, but only for arm for some reason?17:32
c0rneliusI don't think they know what they are gonna do yet.17:32
c0rneliussteev: and that patch you posted is actually kinda old. I just renamed it when I updated the other patch for 5.15.y. Check the date.17:56
steevthe arm64 side of things just "symlink" (really it's an include) the arm ones17:57
c0rneliusIt still applies fine on mainline so I didn't bother updating it.17:57
c0rneliusYeah I know. But shouldn't there be a name to represent the new dtb created under arch/arm64?17:58
steevthey don't usually add it until someone requests it since their main focus is still 32bit17:58
c0rneliusI'm sure someone over at Arch will say something. They usually do.17:59
steevwith only 512MB of ram, i don't really see the advantage of running arm64 on it18:00
steevmine arrives later today though, so i'll see then18:00
c0rneliusDepends what ur using it for I guess? If you need userland then yeah arm64 is not the road to go down.18:00
c0rneliusI added it to my packaging patch just in case -> https://github.com/pyavitz/rpi-img-builder/commit/d0b80d3ebddbfac71036358c8b36493225ed67b618:02
c0rneliusVery confusing. I was just like ok whatever.18:02
steevthere are a number of things missing really, the 64bit pi2 wasn't available for a really long time and if you'd run 64bit on it, you'd end up only being able to access 1 cpu instead of all 4, i finally opened an issue and they put in the 64bit18:04
c0rneliusI've personally never seen one in the wild. I just added it to the packaging patch just in case. The pi2 I have someone sent for the builder, which was suppose to be a 64bit model according the site, but turned out to be the 32bit model.18:36
c0rneliusEither way, good to have for testing purposes, so I very much appreciated it.18:36
c0rneliusI still don't have any of the generation one models. But I guess that doesn't matter much at this point.18:39
c0rneliusPersonally I find it more enjoyable playing with other SoCs. The Pi stuff gets kinda boring and being limited to that fat partition gets on my nerves.18:47
steevthe pi2 64bit says v1.2 on it, if it doesn't say 1.2 it's not18:56
c0rneliusYeah18:56
c0rneliusmine is 1.1... advertised as 1.2.18:56
c0rneliusTypical Amazon.18:57
steevoof18:58
steevi need to gather up all my systems, and my SO wants me to get rid of a few (she says 200+ is too many), so i might have some to spare18:58
c0rneliusWell let me know. I'm always happy to help some one out :)19:06
steevc0rnelius: btw, could you skip doing raspberrypi-sys-mods on a kali install? we have it packaged elsewhere and it causes conflicts and failure19:30
steevs/install/build19:31
c0rneliusI've been wondering that myself actually and I think, yes.19:35
steevupstream-wise (debian) at least in unstable/testing, bluez-firmware has the firmwares for the rpis, so that's good, i believe we (kali) fork pi-bluetooth and do the 99-com.rules and other things as well19:36
c0rneliusPretty sure the only things that matter are some of the udev rules and what have you19:37
steevhttps://gitlab.com/kalilinux/packages/pi-bluetooth19:37
c0rneliusI forked that too, but I did it at 1.13 as I didn't like the changes they made.19:38
c0rneliusAs for bluez you don't even need to patch that. Just create a symlink from /lib/firmware to /etc/firmware and drop in the needed firmware.19:40
steevwhy drop firmware in etc???19:40
steevthis ain't android19:41
c0rneliusThis is what the foundation and ubuntu do -> https://github.com/pyavitz/pi-bluetooth/blob/bluez-patches/bluez-raspi-support.patch19:41
c0rneliusTo work around it just create the symlink and problem solved.19:42
steevhow is the problem solved if the files aren't installed there?19:42
c0rneliusWell because ur installing the firmware under /lib/firmware, but bluez is looking under /etc... hence the link.19:43
steevsteev@vincenzo:/etc$ ls firmware19:44
steevls: cannot access 'firmware': No such file or directory19:44
steevoh, i see what you mean19:44
steevyeah we apply that patch too to look in /lib/firmware instead of etc, and, meh, sophie maintains it so *shrug* no work for me19:45
c0rneliusI actually take it a step further. The kernel by default looks under /lib/firmware/updates first. Thats where I install my brcm firmware. I take it a step further and place in the cmdline `firmware_class.path=/lib/firmware/updates/brcm`19:45
steevUGH19:47
steevi broke my neo419:47
steevwell, broke booting19:48
c0rneliusLucky! I don't have one to break yet.19:48
steevi *love* the neo419:48
c0rneliusuboot breakage or kernel?19:48
steevits trying to load uInitrd and saying the initrd is corrupt, i just need to fix it, i'm just lazy19:49
c0rneliusI thought you didn't like uInitrd :)19:49
c0rneliusAs for the conflicts and failures I suspect it has something to do with the systemd service it installs and enabled. Have you guys tried just disabling them?19:50
steevi hate it19:51
c0rneliusPretty sure those services are for lcd panels and dumb shit.19:51
steevbut... i'm too lazy to get it working myself, and just used armbian u-boot/kernel19:51
c0rneliusOh19:51
steevbut i removed their thing that generates the uinitrd after kernel install19:51
c0rneliusProblem #119:51
steevsomewhere i have a fork of debian's u-boot with the support added for it, just, haven't sent the merge request19:52
c0rneliusI use my own I found somewhere online -> https://github.com/pyavitz/debian-image-builder/blob/feature/files/scripts/99-uboot19:52
steevhttps://salsa.debian.org/steev/u-boot/-/commit/bfaa0ea1c9515b787bc44aacf2e39a3c904c21dc19:52
c0rneliusnever had any problems with it19:52
steevyeah, i just didn't notice :)19:53
c0rneliusThats vendor uboot?19:53
steevno, that's debian u-boot19:53
steevwhich is mainline19:53
c0rneliusoh yes19:55
c0rneliusI only use the u-boot.itb idbloader.img, but I rename it to idbloader.bin because I'm silly.19:56
c0rneliusWell looks like a fun board. Overclocked it yet?19:57
steevhonestly, i just copy pasta'd the others19:57
steevi have!19:57
c0rneliusnice19:57
steevit does work at 2GHz pretty stable19:57
c0rneliusThats awesome19:57
steevespecially for its size :D19:57
steevsad about the ram though19:57
c0rneliusIt happens. I don't think it was meant to change the world anything :)19:58
c0rneliusor anything*19:58
c0rneliussteev: What kind of problems is sys-mods creating exactly on Kali?20:12
c0rneliusI from time to time debootstrap it and I don't recall any sys-mod specific errors.20:12
c0rneliusOn the Pi4 mind you also running mainline.20:13
steevc0rnelius: building the image fails because 99-com.rules is in raspberrypi-sys-mods, and pi-bluetooth on kali, so dpkg errors because the file exists in 2 packages20:30
c0rneliusI actually include my own 99-com.rules in my images and I've never seen a conflict. Actually I'm not seeing it in pi bluetooth?20:40
c0rneliusI'm not sure how you stage ur builds, but you could set a if there rm and just include ur own after the fact? Or if there remove after said install of whatever gets installed last?20:43
c0rneliusIf you get my drift.20:43
steevi'm just running make in your sources20:44
steevthe *kali* pi-bluetooth package has it20:44
c0rneliusOr just not install sysmods :) and only include udev rules it includes.20:45
c0rneliusI don't see why kali needs sysmods20:45
steevi don't either20:45
steevhttps://github.com/pyavitz/debian-image-builder/blob/feature/scripts/broadcom-stage2#L16420:45
c0rneliusAs matter of fact nor does Devuan I just haven't removed it yet.20:45
steevi was just playing with it to test it on the 02W when it arrives20:46
steevactually, i don't think it's gonna arrive today, it's not even in my city yet even though it says its scheduled to be delivered today20:47
c0rneliusI would use this one -> https://github.com/pyavitz/rpi-img-builder20:47
c0rneliusthat debian builder is for mainline stuff20:47
c0rneliusOnly supports what mainline dts is available and functional uboot. Pi wise anyway.20:48
steevah, fair20:48
c0rneliusIts pretty much the same, but... specific to pis20:49
steevmakes sense20:51
c0rneliusI keep getting asked to merge it all into one builder, but it would be such a pain in the ass.20:54
c0rneliusAlthough I don't think I ever added Kali as a secret option to the rpi img builder? I could.20:59
c0rneliusBut Kali kills so many services, so I need to then create a force service start script to ssh in headless.21:00
c0rneliusWhich in the end defeats the purpose I guess? Probs why I didn't bother.21:01
steevnah21:18
steevjust include the ssh service21:18
steevhttps://gitlab.com/kalilinux/build-scripts/kali-arm/-/blob/master/bsp/services/rpi/enable-ssh.service21:19
steevthat lets you do just like raspiOS and touch ssh/ssh.txt on the boot partition to enable it21:19
steevbut yeah, in our build scripts, we enable ssh during the build of all arm images21:20

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