arm: dts: imx8mp: Generate single bootable binary
authorTeresa Remmet <t.remmet@phytec.de>
Thu, 26 Aug 2021 08:54:09 +0000 (10:54 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 7 Oct 2021 14:53:50 +0000 (16:53 +0200)
binman conversion made flashing flash.bin
and u-boot.itb necessary. Update binman config
to create a single flash.bin image again.

This updates imx8mp_evk and phyCORE-i.MX8MP as they share the
same binman config.

Updated also imx8mp_evk documentation.

Tested on phyCORE-i.MX8MP.

Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
arch/arm/dts/imx8mp-u-boot.dtsi
board/freescale/imx8mp_evk/imximage-8mp-lpddr4.cfg
board/phytec/phycore_imx8mp/imximage-8mp-sd.cfg
doc/board/nxp/imx8mp_evk.rst

index d61346da303235103628869670985e4cb4475ed2..afb3995482ef1974d6387773bcb3b477d7017dba 100644 (file)
@@ -79,7 +79,9 @@
                };
        };
 
-       flash {
+       spl {
+               filename = "spl.bin";
+
                mkimage {
                        args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000";
 
                        };
                };
        };
+
+       imx-boot {
+               filename = "flash.bin";
+               pad-byte = <0x00>;
+
+               spl: blob-ext@1 {
+                       filename = "spl.bin";
+                       offset = <0x0>;
+               };
+
+               uboot: blob-ext@2 {
+                       filename = "u-boot.itb";
+                       offset = <0x58000>;
+               };
+       };
 };
index b2920b4908ed33f0b891170fbb487b2d78a7d8cd..4c3ecf5a71ad7ac9f9f36594022167fb7d36d0a9 100644 (file)
@@ -7,4 +7,4 @@
 
 ROM_VERSION    v2
 BOOT_FROM      sd
-LOADER         mkimage.flash.mkimage   0x920000
+LOADER         u-boot-spl-ddr.bin      0x920000
index b2920b4908ed33f0b891170fbb487b2d78a7d8cd..4c3ecf5a71ad7ac9f9f36594022167fb7d36d0a9 100644 (file)
@@ -7,4 +7,4 @@
 
 ROM_VERSION    v2
 BOOT_FROM      sd
-LOADER         mkimage.flash.mkimage   0x920000
+LOADER         u-boot-spl-ddr.bin      0x920000
index 609a29f3ebc3da081c1d0d8bae1ad228fbd8dad4..b996ae055e6979b47d157687cec41f787e3a6b2d 100644 (file)
@@ -52,7 +52,6 @@ Burn the flash.bin to the MicroSD card at offset 32KB:
 .. code-block:: bash
 
    $sudo dd if=build/flash.bin of=/dev/sd[x] bs=1K seek=32 conv=notrunc; sync
-   $sudo dd if=build/u-boot.itb of=/dev/sd[x] bs=1K seek=384 conv=notrunc; sync
 
 Boot
 ----