ryan4yin / nixos-rk3588

Minimal NixOS running on RK3588/RK3588s based SBC(Orange Pi 5 Plus, Orange Pi 5, Rock 5A, etc)
MIT License
152 stars 28 forks source link

update `nixpkgs`, vendor kernel, mesa #60

Closed Naxdy closed 4 weeks ago

Naxdy commented 1 month ago

Following the pointers at https://github.com/7Ji/orangepi5-archlinuxarm , this PR updates the kernel to 6.1.75 following Joshua Reik's noble branch with patches from Hüseyin BIYIK's panthor branch, allowing the use of mainline mesa with hardware acceleration.

Tested & works (unchecked = TODO):

What does NOT work:

Works, but requires workarounds:

Couple other notes:


Draft for now while I continue testing some things. If there's anything else that needs to be tested / has been tested with this branch, let me know and I'll amend the list above.

Naxdy commented 1 month ago

So, everything I could test, I did test. Suspend & resume I cannot test, but if I had to wager a guess I'd say it probably doesn't work, since it's real finnicky in Linux to begin with.

Even managed to get a Waydroid instance with hardware accel and GPS working (using a USB modem), so pretty satisfied overall.

Would be great if others could test this as well tho and report their findings.

FWIW, compiling the kernel on my Orange Pi 5 Plus took around 40 mins, which is around 50% faster than compiling in qemu on my 3950x.

ryan4yin commented 4 weeks ago

I had updated my Orange Pi 5 (UEFI mode) to this PR, and everything worked fine. I noticed that this PR not only updated the kernel & nixpkgs but also verified that many other hardware components were functioning properly.

Really appreciate your work on the project! Thank you very much!

Naxdy commented 3 weeks ago

Dropping this here even though it's already merged, turns out DisplayPort alt mode on the USB-C even works when reconnecting, in KDE the only thing is that KWin needs the KWIN_DRM_NO_AMS=1 env var set, then all is gucci.

Some desktop effects like show large window previews don't work yet, but I'm assuming future mesa updates will alleviate that.