lanefu changed the topic of #armbian-rockchip to: Armbian - Linux for ARM development boards | Rockchip SoC | www.armbian.com | This channel is relayed to the equivalent Discord channel | this channel is logged
<DC-IRC> [Discord] <matthewcroughan> Ah, also very very important question that I must know the answer to!
<DC-IRC> [Discord] <matthewcroughan> `[ 4.720542] brcmfmac 0004:41:00.0: Direct firmware load for brcm/brcmfmac43752-pcie.khadas,edge2.bin failed with error -2`
<DC-IRC> [Discord] <monkablyat> not maintaining khadas edge 2 just testing it think Efe is the one who do it on Armbian
<DC-IRC> [Discord] <matthewcroughan> This log line above means you're not using the following firmware blobs for your a6275p https://github.com/armbian/firmware/tree/master/ap6275p
<DC-IRC> [Discord] <matthewcroughan> It means you're using the ones in the `brcm/brcmfmac43752-pcie.bin` right?
<DC-IRC> [Discord] <matthewcroughan> In which case, do you think the `brcm/brcmfmac43752-pcie.bin` from armbian/firmware matches what's in your `lib/firmware/brcm` ?
<DC-IRC> [Discord] <monkablyat> armbian-firmware-full was used think this fetch from linux-firmware-git
<DC-IRC> [Discord] <matthewcroughan> I would be very very happy if you could confirm that the binaries from armbian-firmware above, match the ones in use in your system
<DC-IRC> [Discord] <matthewcroughan> You're still helping a lot by giving me a comparison, thank you.
<DC-IRC> [Discord] <matthewcroughan> The kernel lore abruptly ends with this not working, so to see it working lets me know it's possible and that I may possibly be misconfiguring something in the dts
<DC-IRC> [Discord] <matthewcroughan> though `lspci` shows the device, and that `brcmfmac` is in use.
<DC-IRC> [Discord] <matthewcroughan> It's either my DTS causing the problem, or it's the firmware, and I'm not sure which.
<DC-IRC> [Discord] <matthewcroughan> linux-firmware doesn't contain this firmware
<DC-IRC> [Discord] <matthewcroughan> I just downloaded master, and it doesn't have brcmfmac43752-pcie.bin
<DC-IRC> [Discord] <matthewcroughan> can you do a md5sum on the firmware file you're running?
<DC-IRC> [Discord] <matthewcroughan> `brcmfmac43752-pcie.bin` should reside somewhere, I'm not sure where on armbian
<DC-IRC> [Discord] <matthewcroughan> if it matches the one from the armbian-firmware repo I know that I should be looking at my dts
<DC-IRC> [Discord] <monkablyat> /lib/firmware/ap6275p should be the location on Armbian I guess
<DC-IRC> [Discord] <matthewcroughan> But your dmesg proves that it's not using that
<DC-IRC> [Discord] <matthewcroughan> That's not what I'm talking about. I'm talking on the running system. I know where to find the bin file.
<DC-IRC> [Discord] <matthewcroughan> I am asking to compare the md5sum of the armbian-firmware binary file you just linked, to the one the bcrmfmac kernel module is actually reading from the disk on the system, to prove they are the same.
<DC-IRC> [Discord] <matthewcroughan> your dmesg proves it's using `/lib/firmware/bcrm` not `ap6275`
<DC-IRC> [Discord] <matthewcroughan> So what I want you to do is `md5sum /lib/firmware/bcrm/brcmfmac43752-pcie.bin`
<DC-IRC> [Discord] <matthewcroughan> btw does the Khadas Edge2 support DP Alt mode over USB C? O.o it looks like a cool board
<DC-IRC> [Discord] <matthewcroughan> This is what I mean by not knowing where the firmware resides on armbian.
<DC-IRC> [Discord] <matthewcroughan> If you can find it on your disk that would be good.
<DC-IRC> [Discord] <matthewcroughan> `find / -name 'brcmfmac43752-pcie.bin'`
<DC-IRC> [Discord] <matthewcroughan> okay awesome it is the same file, very nice..
<DC-IRC> [Discord] <matthewcroughan> I now need to study the khadas-edge2 dts and see if I can copy what it's doing for my board
<DC-IRC> [Discord] <matthewcroughan> I likely can
<DC-IRC> [Discord] <matthewcroughan> I think it is most likely relating to the 32 khz clock in my case, my dts simply enables pci-e, and not some other bits that might incidentally be needed to make it work all the way
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC> [Discord] <matthewcroughan> @monkablyat can you give me a `uname -a` when you get a chance too pls?
<DC-IRC> [Discord] <matthewcroughan> do you know where I can find the kernel sources?
<DC-IRC> [Discord] <matthewcroughan> for that kernel you're running
<DC-IRC> [Discord] <efectn> You can check rockchip-rk3588-edge patches
<DC-IRC> [Discord] <efectn> Edge2 works with bcm43752 on this kernel
<DC-IRC> [Discord] <matthewcroughan> I want the kernel source that the patches are being applied to
<DC-IRC> [Discord] <matthewcroughan> And I have not been able to easily find that
<DC-IRC> [Discord] <efectn> It's Upstream kernel
<DC-IRC> [Discord] <lanefu> Armbian builder currently uses upstream 6.8.y branch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/?h=linux-6.8.y then applies patches on top of it https://github.com/armbian/build/tree/main/patch/kernel/rockchip-rk3588-edge
<DC-IRC> [Discord] <matthewcroughan> So the patches get applied to mainline and that's it?
<DC-IRC> [Discord] <matthewcroughan> that's pretty good
<DC-IRC> [Discord] <matthewcroughan> the problem I'm having is that I have lspci showing that pci-e is working, on my board, and everything is going great, except I cannot set the clock to 32khz at the ranges I expect to be able to set them at
<DC-IRC> [Discord] <matthewcroughan> here's my pci-e node
<DC-IRC> [Discord] <matthewcroughan> https://termbin.com/ro7z
<DC-IRC> [Discord] <matthewcroughan> hah, knew there was something differing in the kernel 🙂
<DC-IRC> [Discord] <matthewcroughan> thank you
<DC-IRC> [Discord] <matthewcroughan> so enlightening..
<DC-IRC> [Discord] <matthewcroughan> lots of expertise here, I appreciate it very much guys
<DC-IRC> [Discord] <matthewcroughan> That patch worked, but now I get this https://termbin.com/shay
<DC-IRC> [Discord] <matthewcroughan> it may not mean much tohugh
<DC-IRC> [Discord] <matthewcroughan> it may not mean much though
<DC-IRC> [Discord] <matthewcroughan> yeah this may just be for some feature I'm not using, the p2p wifi stuff
<DC-IRC> [Discord] <matthewcroughan> Yup, wifi seems to work fine :d
<DC-IRC> [Discord] <matthewcroughan> Yup, wifi seems to work fine 😄
<DC-IRC> [Discord] <matthewcroughan> the interface name is `wlP2p33s0`
<DC-IRC> [Discord] <matthewcroughan> Now what about hdmi nodes and stuff like that?
<DC-IRC> [Discord] <matthewcroughan> the hdmi0 dts node doesn't exist in mainline for rk3588, so do you have a patch for that too?