ryan4yin / nixos-rk3588

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

Partially adding Orange Pi 5b (WIP) #39

Closed phaitonican closed 1 month ago

phaitonican commented 1 month ago

Hello,

This is an attempt to add the Orange Pi 5b (u-boot only currently).

Differences:

The fundamental differences to the Orange Pi 5 are, that it has no SPI NOR flash (there is no /dev/mtdblock0 device) and it's deviceTree.name is rockchip/rk3588s-orangepi-5b.dtb and also that it uses internal eMMC by default. Instead of flashing the u-boot into the SPI NOR flash, it should bundle inside sdImage just as Rock5a (I think).

Whats missing?

Unfortunately because I am not sure, I removed # enable pcie2x1l2 (NVMe), disable sata0 and # enable i2c1 overlays from OPI5 nix file. I think i2c1 should stay inside?

Also this needs a prebuilt u-boot for the Orange Pi 5 (idbloader.img & u-boot.itb) inside the pkgs/u-boot-opi5/linux-u-boot-legacy-orangepi-5/ folder. I named folder opi5 because this prebuilt u-boot should work for both versions? Not sure.

What else?

So this pull request is not ready.

I hope somebody can help, because I don't know very much about this. Maybe this PR just works if we provide prebuilt u-boot?