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

feat: support orangepi 5b #13

Closed phaitonican closed 11 months ago

phaitonican commented 11 months ago

I basically just copied the modules/boards/orangepi5.nix file, removing the SSD overlay, leaving the i2c1 Overlay (since the Orange Pi 5B also seems to support that) and override the device tree rk3588s-orangepi-5.dts with rk3588s-orangepi-5b.dts. Also adding an own nixConfiguration inside flake.nix to enable the nix-build .#sdImage-opi5b command.

Since beside the on board eMMC drive, WIFI and Bluetooth everything else is identical to the Orange Pi 5, I left everything else in the code identical either.

After compiling, I can definitely say the on board eMMC drive is working and found by command lsblk due to the new provided device tree file.

As of now, I didn't test WiFi and Bluetooth yet. Unfortunately I can't seem to take an image. Also I didn't edit the README.md file yet since I didn't know if you will merge this pull request and how you would like it to be.

phaitonican commented 11 months ago

Is not working because it does not boot from either eMMC or SD card once installed into eMMC. I have to fix this by looking at Si Dao's work (https://github.com/fb87/nixos-orangepi-5x/blob/v5.10.x/flake.nix). He uses patch onto the u-boot file.