Closed phaitonican closed 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.
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 treerk3588s-orangepi-5.dts
withrk3588s-orangepi-5b.dts
. Also adding an own nixConfiguration insideflake.nix
to enable thenix-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.