]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mn-ddr4-evk: generate single bootable image
authorAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Mon, 17 Jan 2022 22:04:07 +0000 (23:04 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 14:49:01 +0000 (15:49 +0100)
As suggested in commit 028abfd9b157 ("imx8mm-evk: Generate a single
bootable flash.bin again") for imx8mm_evk, it is possible to produce
single bootable image via binman. This restores the original behavior in
distros, where only one boot container is used to create target image.

Perform similar adaptions in order to provide single bootable image for
imx8mn-ddr4-evk derivate.

Update documentation to drop additional step of copying u-boot.itb

Fixes: 353dfe4b4359 ("imx8mn-ddr4-evk: switch to use binman")
Signed-off-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx8mn-ddr4-evk-u-boot.dtsi
board/freescale/imx8mn_evk/imximage-8mn-ddr4.cfg
doc/board/nxp/imx8mn_evk.rst

index 1d3844437d87480f2bf1d6788677ecc990ec82d2..2e397907663bb2c99de00a8bfdcb89d4d421d611 100644 (file)
        };
 
 
-       flash {
+       spl {
+               filename = "spl.bin";
+
                mkimage {
                        args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
 
                        };
                };
        };
+
+       imx-boot {
+               filename = "flash.bin";
+               pad-byte = <0x00>;
+
+               spl: blob-ext@1 {
+                       offset = <0x0>;
+                       filename = "spl.bin";
+               };
+
+               uboot: blob-ext@2 {
+                       offset = <0x58000>;
+                       filename = "u-boot.itb";
+               };
+       };
 };
index 22aec26da7d86eb081c68404715a52adf1d60d46..7286b26494461d733f87314599fc033f4d52b8bb 100644 (file)
@@ -7,4 +7,4 @@
 
 ROM_VERSION    v2
 BOOT_FROM      sd
-LOADER         mkimage.flash.mkimage   0x912000
+LOADER         u-boot-spl-ddr.bin      0x912000
index 9fbb947032b1f1bc95d38e2ed0393ef5909377f4..711545af896a78cb7fa5255d96c296554f18cc20 100644 (file)
@@ -50,7 +50,6 @@ Burn the flash.bin to MicroSD card offset 32KB:
 .. code-block:: bash
 
    $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=32 conv=notrunc
-   $sudo dd if=u-boot.itb of=/dev/sd[x] bs=1024 seek=384 conv=notrunc
 
 Boot
 ----