[rtems-docs commit] bsps/imxrt: Generate correctly aligned device tree

Christian Mauderer christianm at rtems.org
Mon Feb 21 08:27:34 UTC 2022


Module:    rtems-docs
Branch:    master
Commit:    c11ae8e5bb53e354a2d127863f298ec381e9c010
Changeset: http://git.rtems.org/rtems-docs/commit/?id=c11ae8e5bb53e354a2d127863f298ec381e9c010

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Mon Feb 21 09:33:47 2022 +0100

bsps/imxrt: Generate correctly aligned device tree

The device tree has to be aligned correctly. rtems-bin2c has a new
parameter for that. This patch uses this parameter to generate the right
alignment and makes it more clear how to use the generated C file.

---

 user/bsps/arm/imxrt.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/user/bsps/arm/imxrt.rst b/user/bsps/arm/imxrt.rst
index f8d9731..6dacfd9 100644
--- a/user/bsps/arm/imxrt.rst
+++ b/user/bsps/arm/imxrt.rst
@@ -128,9 +128,11 @@ with your FDT source names)::
                      -I ${PREFIX}/arm-rtems6/imxrt1052/lib/include \
                      -include "YOUR.dts" /dev/null | \
             dtc -O dtb -o "YOUR.dtb" -b 0 -p 64
-  sh> rtems-bin2c -C -N imxrt_dtb "YOUR.dtb" "YOUR.c"
+  sh> rtems-bin2c -A 8 -C -N imxrt_dtb "YOUR.dtb" "YOUR.c"
 
-Make sure that your new C file is compiled and linked into the application.
+You'll get a C file which defines the `imxrt_dtb` array. Make sure that your new
+C file is compiled and linked into the application. It will overwrite the
+existing definition of the `imxrt_dtb` in RTEMS.
 
 PLL Settings
 ------------



More information about the vc mailing list