Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NanoPI NEO and the NAS Dock



chwalek%poczta.onet.pl@localhost (Pawel Chwalowski) writes:

>Hi,
>I have a NanoPI NEO and the NAS Dock. I don't know how to run NAS Dock.

>I found the file: src/sys/arch/arm/dts/overlays/sunxi-h3-h5-nanopi-neo-nas=
>-dock.dts

>I tried compiling the file and copying it to /boot/overlays. I =
>have added dtoverlay=3Dsunxi-h3-h5-nanopi-neo-nas-dock.dtbo to config.=
>txt=20
>Unfortunately it does not work.


The overlays must be merged with the main DTB. This is usually done
by u-boot with the 'fdt apply' command.

U-boot executes boot commmands that are either builtin or loaded
from a script file. The version from the pkgsrc package doesn't
handle overlays with its builtin boot commands, so you need to use
a boot.scr file, define a buffer address for the overlays, load
the overlay files, apply the overlays and then contiue booting.

Here is some example (for Linux) I found that shows how this works
in principle:

https://irq5.io/2018/07/24/boot-time-device-tree-overlays-with-u-boot/


The alternative is not to use overlays and modify the main DTB directly.



Home | Main Index | Thread Index | Old Index