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] <rpardini> Nice, what's a CM3588? **4 NVMe Ports**? πŸ˜„
<DC-IRC> [Discord] <rpardini> have you it on mainline it?
<DC-IRC> [Discord] <rpardini> Nice, what's a CM3588? **4 NVMe Ports**? πŸ˜„
<DC-IRC> [Discord] <rpardini> have you it on mainline yet?
<DC-IRC> [Discord] <Narga> CM3588 is a NAS-focused SBC from Friendlyelec (they make Nanopi): https://wiki.friendlyelec.com/wiki/index.php/CM3588
<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)
<DC-IRC> [Discord] <core0838> https://discord.gg/teenleakscp
<DC-IRC> [Discord] <core0838> @everyone @here
<DC-IRC> [Discord] <c0rnelius77> geez
<DC-IRC> [Discord] <igorpec> what was that ?:)
<DC-IRC> [Discord] <Tonymac32> that was nsfw spam
<DC-IRC> [Discord] <Tonymac32> banned
<DC-IRC> [Discord] <Narga> It's only PCIe 3.0x1, but I'm getting speeds about 800MB/s which is fast enough IMO
<DC-IRC> [Discord] <rpardini> Nifty board. To me just looks like missing SPI-NOR flash
<DC-IRC> [Discord] <Tonymac32> that SOM needs to be way cheaper, but I love it
<DC-IRC> [Discord] <Narga> SPI flash can be mounted on the bottom I believe (see the picture). But I have never used SPI, is it like eMMC?
<DC-IRC> [Discord] <c0rnelius77> Was the reason the Discord CEO was subpoenaed to testify at US hearing on child exploitation.
<DC-IRC> [Discord] <efectn> Cool to see pcie3x1
<DC-IRC> [Discord] <rpardini> @amazingfate @Narga https://github.com/armbian/build/pull/6246 seems to work.
<DC-IRC> [Discord] <mecoblock> Do I need it? No. Do I want it? Yes haha, awesome that you got it working!
<DC-IRC> [Discord] <Narga> Wow that was very quick! Great work πŸ‘
<DC-IRC> [Discord] <Narga> Haha yes, I totally get you.
<DC-IRC> [Discord] <Narga> Will send a PR in the coming days once I figure out a few other things