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] <shivansps> I mean you could in theory use one of those cheap PCIE bridges for mining and well... altrought i dont know if those work here
<DC-IRC> [Discord] <shivansps> I mean you could in theory use one of those cheap PCIE bridges for mining and well, make it 16 x1 2.0 ports ... altrought i dont know if those work here
<DC-IRC> [Discord] <shivansps> I mean you could in theory use those cheap PCIE bridges for mining and well, make it 16 x1 2.0 ports ... altrought i dont know if those work here
<DC-IRC> [Discord] <mecoblock> @amazingfate https://github.com/amazingfate/rk3588-live-iso/ I couldn’t really follow how your β€žlinux-flavourβ€œ part worked. I wanted to use it to build a mainline linux variant with the pcie patch applied.
<DC-IRC> [Discord] <amazingfate> Linux kernel packages in debian is defined $package_name-$linux_flavoe, like linux-image-legacy-rk35xx.
<DC-IRC> [Discord] <amazingfate> My live-build script will install kernel package from armbian's apt repo.
<DC-IRC> [Discord] <amazingfate> Linux kernel packages in debian is defined $package_name-$linux_flavor, like linux-image-legacy-rk35xx.
<DC-IRC> [Discord] <amazingfate> My live-build script will install kernel package from armbian's apt repo.
<DC-IRC> [Discord] <.thenakedtruth> @lanefu I still had the syslog messages from my last test on the Rock5b. It was with kernel 6.8-rc7. https://pastebin.com/Am39f2Xw
<DC-IRC> [Discord] <.thenakedtruth> It only happens with the PCIe switch card and the SATA port adapters. No issue with just a M.2 NVMe drive.
<DC-IRC> [Discord] <.thenakedtruth> Not able to reproduce the problem on OPi5+.
<DC-IRC> [Discord] <narga_64> You could try with the latest collabora kernel branch. But I also think this could be a hardware issue. Or somehow dts related? Idk
<DC-IRC> [Discord] <.thenakedtruth> I have not seen that Collabora has more in their DTS files. But I may have overlooked something. But as I said, I have seen the problem since the beginning, even with the legacy vendor kernel. Which makes me believe it is a Rock5b hardware specific thing.
<DC-IRC> [Discord] <.thenakedtruth> I might test again with Collabora or with 6.9. If I still see it, I am done. I will use the Rock5b then for some compute stuff and for NAS purposes I pick other rk3588 based boards.
<DC-IRC> [Discord] <amazingfate> I have heard someone was using rock5b as nas.
<DC-IRC> [Discord] <narga_64> I haven't checked. But they use the Rock 5B as reference board. Maybe you could also report this problem to them? They may not be aware of it.
<DC-IRC> [Discord] <narga_64> But they also have some driver fixes which are not yet in mainline. E.g. they have a PHY mux fix
<DC-IRC> [Discord] <narga_64> Check their recent commits
<DC-IRC> [Discord] <sirrobin10> Hmm, maybe some flags?
<DC-IRC> [Discord] <amazingfate> You need to rebuild electron with rockchip's patches.
<DC-IRC> [Discord] <sirrobin10> HW acceleration seems to be fine though
<DC-IRC> [Discord] <amazingfate> This means nothing. Scroll down to see what codecs are supported.
<DC-IRC> [Discord] <sirrobin10> As in the "video information"? That's empty 😦
<DC-IRC> [Discord] <sirrobin10> super high quality 🀣
<DC-IRC> [Discord] <.thenakedtruth> I will check and see where I can report it to them.
<DC-IRC> [Discord] <.thenakedtruth> That is different and I don't remember if I saw the issue with this setup as well.
<DC-IRC> [Discord] <.thenakedtruth> I have a real full size PCIe card in the M.2 slot on the M.2 to SATA adapters are on the PCIe card. Even if all of that is just pure PCIe, that seems to be the/my problem on the rock5b.
<DC-IRC> [Discord] <sirrobin10> So I guess none? :p
<DC-IRC> [Discord] <amazingfate> Yeah, no codecs are hardware accelerated.
<DC-IRC> [Discord] <sirrobin10> There is no documentation on how to resolve this I guess? πŸ˜…
<DC-IRC> [Discord] <sirrobin10> Cuz there is screen tearing when playing back video 😒
<DC-IRC> [Discord] <amazingfate> See how to patch chromium for electron: https://www.electronjs.org/docs/latest/development/patches
<DC-IRC> [Discord] <amazingfate> Related issue: https://github.com/JeffyCN/libv4l-rkmpp/issues/13
<DC-IRC> [Discord] <sirrobin10> hmm, that related issue doesn't seem to be really helpfull at all... and what patches to use πŸ˜…
<DC-IRC> [Discord] <.thenakedtruth> Do you know what is the best way to report a Rock-5b issue to Collabora?
<DC-IRC> [Discord] <.thenakedtruth> @narga_64 Do you know what is the best way to report a Rock-5b issue to Collabora?
<DC-IRC> [Discord] <amazingfate> Send mail to the pcie related developer.
<DC-IRC> [Discord] <.thenakedtruth> Okidoki.
<DC-IRC> [Discord] <lanefu> Hey @kwiboo I'm playing with PXE on Rock-5b on your `rk3xxx-24.04` branch. I noticed that although it detects the MAC burned into the realtek ethernet rom, that it's still setting its own mac in the environment and overriding. DT being the actual mac from ethernet ROM
<DC-IRC> [Discord] <lanefu> Had same behavior on pre-production and production boards.
<DC-IRC> [Discord] <k.s.bedford.jr> https://www.youtube.com/watch?v=QsM6b5yix0U
<DC-IRC> [Discord] <k.s.bedford.jr> for those who had not seenit
<DC-IRC> [Discord] <k.s.bedford.jr> man I was surprissed how he liked it
<DC-IRC> [Discord] <k.s.bedford.jr> the board seems to have really been designed to be a STP/HTPC nas so people could record/backup tv shows .
<DC-IRC> [Discord] <k.s.bedford.jr> I have started making a plug in ups for it that should allow for intergrated control and shut down wen power fails
<DC-IRC> [Discord] <k.s.bedford.jr> ot will fit on the backside. also have to design a nice case for it
<DC-IRC> [Discord] <narga_64> Unfortunately I don't know
<DC-IRC> [Discord] <k.s.bedford.jr> well I think ups boards for arm baords is a good thing
<DC-IRC> [Discord] <kwiboo> that is a known issue, the `eth_post_probe()` in `net/ eth-uclass.c` could be modified to not overwrite/`memcpy` the `pdata->enetaddr` when it `is_valid_ethaddr(pdata->enetaddr)`
<DC-IRC> [Discord] <mecoblock> I just emailed Sebastian Reichel (sre)
<DC-IRC> [Discord] <mecoblock> They also seem to have mainline fixed PCIe bifurcation
<DC-IRC> [Discord] <mecoblock> They also seem to have mainline fixed PCIe bifurcation (also for CM3588)
<DC-IRC> [Discord] <rpardini> Hmm that makes sense, thanks. For now, if one sets up persistent env (in MMC or SPI etc) then manually `setenv ethaddr xx:yy:..` and `saveenv` -- it should work... or I miss something?
<DC-IRC> [Discord] <rpardini> Hmm that makes sense, thanks. For now, if one sets up persistent env (in MMC or SPI etc) then manually `setenv -f ethaddr xx:yy:..` and `saveenv` -- it should work... or I miss something?
<DC-IRC> [Discord] <rpardini> Although @lanefu is already patching to not-overwrite if I know him πŸ‘
<DC-IRC> [Discord] <lanefu> i only know violence
<DC-IRC> [Discord] <sirrobin10> Hmm, so that would mean I can just compile the electron and it would work retro-active?
<DC-IRC> [Discord] <amazingfate> And use this v4l2 plugin: https://github.com/JeffyCN/libv4l-rkmpp
<DC-IRC> [Discord] <lanefu> tried commenting out the `memcpy(pdata->enetaddr, env_enetaddr, ARP_HLEN);` override but didn't have any impact. Collabora has this recent solution https://gitlab.collabora.com/hardware-enablement/rockchip-3588/u-boot/-/merge_requests/4
<DC-IRC> [Discord] <lanefu> i got the first commit of the three to cherry-pick.... next ones need massaging (and i'm a butcher) lol
<DC-IRC> [Discord] <kwiboo> I sent a reply on mailing list that those patches broke existing features of not relaying on working ethernet in u-boot to fixup device tree with local-mac-address prop, and that adding a Kconfig that changes behavior in eth-uclass, so I am hoping v2 of that series will be much simpler and should solve your issue
<DC-IRC> [Discord] <kwiboo> I think so, I do not use persistent env, and I think we even disable env for LibreELEC rockchip flavor, it slows down boot for a single purpose os πŸ˜‰
<DC-IRC> [Discord] <lanefu> thanks for the info.. Sounds like I should stop playing around with violent cherry-picks then and pivot to @rpardini 's suggestion for now
<DC-IRC> [Discord] <rpardini> alternatively... mind goes to preboot: `pci enum` , but seems the rtl fused MAC is not put anywhere we can get at script-level
<DC-IRC> [Discord] <rpardini> otherwise could just set in transient environment
<DC-IRC> [Discord] <rpardini> (at least `printenv` doesn't reveal it)
<DC-IRC> [Discord] <narga_64> @kwiboo I had tested your branches that you asked me to test a few days ago. Not sure if you have seen it πŸ˜„ https://discord.com/channels/854735915313659944/858684284070789130/1224697995388518431
<DC-IRC> [Discord] <rpardini> that `.07` branch has `2024.04-rc5` in its Makefile so it's expected. Did you try `generic-rk3588_defconfig` with K's `rk3xxx-2024.04`?
<DC-IRC> [Discord] <narga_64> Yes, did not work. But mainline 2024.04 with nanopc-t6_defconfig works.
<DC-IRC> [Discord] <narga_64> The only kwiboo uboot that I found working on cm3588 was 2024.07 with generic defconfig. Which is what I'm using to this day πŸ˜„
<DC-IRC> [Discord] <kwiboo> Thanks for reminder and for testing, very strange result, I would have expected same result, the rockchip related code should be very similar in both branches
<DC-IRC> [Discord] <kwiboo> I have a cm3588 nas board incoming and should be able to test, find and fix any issue on Monday
<DC-IRC> [Discord] <rpardini> btw let's get Narga's PR approved & merged https://github.com/armbian/build/pull/6471 so the DT can flow
<DC-IRC> [Discord] <rpardini> btw let's get Narga's PR approved & merged https://github.com/armbian/build/pull/6471/commits so the DT can flow
<DC-IRC> [Discord] <rpardini> `sre` prolly has a DT but is unobtanium
<DC-IRC> [Discord] <monkablyat> amazingfate could do it personally not feeling so well right now when it comes to merging since I somehow was pressing wrong buttons last time need a few pizza's to get over it
<DC-IRC> [Discord] <matthewcroughan> Anyone have a H96-V58-MAX tv box and want to hack on u-boot?
<DC-IRC> [Discord] <matthewcroughan> and-or dts
<DC-IRC> [Discord] <rpardini> I've no idea why squash is even allowed. it was a long fight getting rid of merge already. rebase ftw
<DC-IRC> [Discord] <rpardini> but hey pizza's on me
<DC-IRC> [Discord] <narga_64> Awesome!
<DC-IRC> [Discord] <narga_64> It's nice to see more people getting a CM3588 NAS. Also bugs/non-working stuff can be found and reported more easily
<DC-IRC> [Discord] <narga_64> Flow to where? πŸ˜…
<DC-IRC> [Discord] <narga_64> Btw should I add myself as maintainer for the CM3588 in the board conf or does it not matter at all because it's only `csc`?
<DC-IRC> [Discord] <rpardini> there's a script that does that later, I'm not sure where the data comes from though.
<DC-IRC> [Discord] <Tonymac32> roll that beautiful DT footage