From c11ae8e5bb53e354a2d127863f298ec381e9c010 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Mon, 21 Feb 2022 09:33:47 +0100 Subject: 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(-) (limited to 'user/bsps/arm') 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 ------------ -- cgit v1.2.3