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 has quit [Remote host closed the connection]
DC-IRC has joined #armbian-rockchip
<DC-IRC>
[Discord] <rpardini> @amazingfate wonder what breaks `auto-patch-dt-makefile` for rk35xx-legacy? I do some crazy/stupid parsing to auto-patch the Makefile that might very well fail, but without that feature working the whole thing is a bit pointless, maintaining those DT Makefile patches is a pain?
<DC-IRC>
[Discord] <rpardini> I mean, if we pinpoint how it fails I figure fixing it might be easy
<DC-IRC>
[Discord] <amazingfate> Not all dts in rockchip's sdk kernel can get built. Our patching config will compile all dts in the dir.
<DC-IRC>
[Discord] <rpardini> oh, yeah, mainline has a correspondence of *.dts to what is in the Makefile (save for ordering)
<DC-IRC>
[Discord] <rpardini> the patcher does parse the original Makefile though, so if I also keep track of which .dts was copied from dt dir, I could just add to the original list instead of replacing the whole thing
<DC-IRC>
[Discord] <stonededge> Does anyone know if the USB 3 on the RK3588 caps out at Gen 1 or Gen 2 speeds (5 or 10 Gbps?)
<DC-IRC>
[Discord] <stonededge> Nvm. Think itβs Gen 1 only
<DC-IRC>
[Discord] <Narga> Mine reports speed=5000Mbit/s with 'lshw' on the USB3 ports
<DC-IRC>
[Discord] <Narga> Yes I think I figured out as well that some dts files in rk35xx-legacy do not compile.
<DC-IRC>
[Discord] <Narga> But in that case, I assume they aren't needed at all? @amazingfate
<DC-IRC>
[Discord] <Narga> Option 1) would be to remove the non-working/unneeded dts files entirely to make the auto-patcher work again.
<DC-IRC>
[Discord] <Narga> Option 2) would be to change the auto-patcher to add to the makefile instead of replacing it like @rpardini says
<DC-IRC>
[Discord] <Narga> I don't know much, but to me Option 1) seems a bit cleaner, since this would just mean to remove files which are not used in the first place.
<DC-IRC>
[Discord] <rpardini> I wouldn't embark on option 1, since that would be cleaning up rk vendor's mess -- which is gonna change again soon so we'd be playing catch. the vendor DT file structure is a mess and I don't think it should be us to fix it
<DC-IRC>
[Discord] <rpardini> option 2, if doable, is better, I just need some free time to hack at it
<DC-IRC>
[Discord] <Narga> **Update on my CM3588 tests:**
<DC-IRC>
[Discord] <Narga> - USB ports are working
<DC-IRC>
[Discord] <Narga> - buttons (power, reset) work
<DC-IRC>
[Discord] <Narga> - all 4 NVMe ports work (tested with hdparm), including their activity lights
<DC-IRC>
[Discord] <Narga> - HDMI works in 4k (tested with Gnome desktop)
<DC-IRC>
[Discord] <Narga> - hardware acceleration for encoding/decoding video works (tested with jellyfin-ffmpeg6)
<DC-IRC>
[Discord] <Narga> - crypto hardware acceleration not sure. I tested before adding "crypto status=okay" in the dts file and after. The drivers have changed to rockchip ones, as seen in /proc/crypto, but benchmarking yielded the same results. Anyone know how to test this further?
<DC-IRC>
[Discord] <Narga> Is there anything else to test?
<DC-IRC>
[Discord] <Narga> Gnome Desktop only has software rendering, but that's more of a driver thing I guess.
<DC-IRC>
[Discord] <Narga> Ah yes good point π Thanks for the clarification. In this case, option 2) would indeed be preferable
<DC-IRC>
[Discord] <Narga> **Update on my CM3588 tests:**
<DC-IRC>
[Discord] <Narga> - USB ports are working
<DC-IRC>
[Discord] <Narga> - buttons (power, reset) work
<DC-IRC>
[Discord] <Narga> - all 4 NVMe ports work (tested with hdparm), including their activity lights
<DC-IRC>
[Discord] <Narga> - HDMI works in 4k (tested with Gnome desktop)
<DC-IRC>
[Discord] <Narga> - hardware acceleration for encoding/decoding video works (tested with jellyfin-ffmpeg6)
<DC-IRC>
[Discord] <Narga> - crypto hardware acceleration not sure. I tested before adding "crypto status=okay" in the dts file and after. The drivers have changed to rockchip ones, as seen in /proc/crypto, but benchmarking ('cryptsetup benchmark', and phoronix test suite openssl SHA256) yielded the same results. Anyone know how to test this further?
<DC-IRC>
[Discord] <Narga> Is there anything else to test?
<DC-IRC>
[Discord] <Narga> Gnome Desktop only has software rendering, but that's more of a driver thing I guess.
<DC-IRC>
[Discord] <Narga> I spent many hours trying to get it working on mainline. But since there isn't any support in mainline yet, I couldn't do it. I'm not smart enough xD
<DC-IRC>
[Discord] <Narga> So I settled on the legacy kernel and got it working on 5.10 π With the help of friendly people from this discord π
<DC-IRC>
[Discord] <Narga> And yes, it does have 4 NVMe ports (which is great for a self-built NAS)