I have a NanoPi NEO2 and a 1-Bay NAS Kit. Unfortunately, I couldn't find any online guides on how to make my NAS Kit work with OpenWrt or ImmortalWrt. After some research and help from ChatGPT, I discovered a simple solution: modifying the Device Tree Source (DTS) to enable the required USB and other ports.
By default, some USB and other ports are disabled in the DTS file. Changing them to "okay" allows the system to detect and use the NAS hardware properly.
-
Obtain the DTS file on another PC:
dtc -I dtb -O dts -o my_device.dts my_device.dtb
-
Edit the DTS file:
- Open
my_device.dts
in a text editor. - Locate the USB and SATA (if applicable) sections.
- Change
status = "disabled";
tostatus = "okay";
where needed.
- Open
-
Compile the modified DTS back to DTB:
dtc -I dts -O dtb -o my_device.dtb my_device.dts
-
Copy the new DTB file to a bootable storage device (e.g., an SD card or USB drive).
-
Insert the storage device into the NanoPi NEO2, ensuring it is correctly connected.
-
Boot the NanoPi NEO2 with the updated DTB file, allowing the system to detect the changes.
With this simple DTS modification, my NanoPi NEO2 NAS Kit now works correctly with OpenWrt/ImmortalWrt. Hopefully, this helps others facing similar issues!
P.S. I will later add the modified DTB file for ImmortalWrt.