]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mm-evk: Generate a single bootable flash.bin again
authorFabio Estevam <festevam@denx.de>
Mon, 23 Aug 2021 12:56:42 +0000 (09:56 -0300)
committerStefano Babic <sbabic@denx.de>
Wed, 20 Oct 2021 15:46:09 +0000 (17:46 +0200)
After the conversion to binman in commit 8996e6b7c6a1 ("imx8mm_evk: switch
to use binman to pack images"), it is necessary to flash both flash.bin and
u-boot.itb to get a bootable system. Prior to this commit, only flash.bin
was needed.

Such new requirement breaks existing distro mechanisms to generate the
final binary because the extra u-boot.itb is now required.

Generate a final flash.bin that can be used again as a single
bootable binary to keep the original behavior.

After this change the SPL binary is called spl.bin, which is a more
descriptive name for its purpose, and can still be used standalone
(for example, for secure boot purposes).

Also update imx8mm_evk.rst to remove the u-boot.itb copy step.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Heiko Thiery <heiko.thiery@gmail.com>
arch/arm/dts/imx8mm-evk-u-boot.dtsi
board/freescale/imx8mm_evk/imximage-8mm-lpddr4.cfg
doc/board/nxp/imx8mm_evk.rst

index f200afac9fc6a921417618b4ff9980e0f4cd20e3..3c75415e8fb5019db27adcc491c7673d51fc487a 100644 (file)
        };
 
 
-       flash {
+       spl {
+               filename = "spl.bin";
+
                mkimage {
                        args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
 
                        };
                };
        };
+
+       imx-boot {
+               filename = "flash.bin";
+               pad-byte = <0x00>;
+
+               spl: blob-ext@1 {
+                       offset = <0x0>;
+                       filename = "spl.bin";
+               };
+
+               uboot: blob-ext@2 {
+                       offset = <0x57c00>;
+                       filename = "u-boot.itb";
+               };
+       };
 };
index b89092a5590b51482a21639dd0854aee4798c559..90573be5fd955c67f0df8d841dfd86734129e662 100644 (file)
@@ -6,4 +6,4 @@
 #define __ASSEMBLY__
 
 BOOT_FROM      sd
-LOADER         mkimage.flash.mkimage   0x7E1000
+LOADER         u-boot-spl-ddr.bin      0x7E1000
index 7fd3d7256490e6c15d2894383e97c31cd744c0d2..b377c4de276deac3c4581cf1264e02f4a6f3b51a 100644 (file)
@@ -50,7 +50,6 @@ Burn the flash.bin to MicroSD card offset 33KB:
 .. code-block:: bash
 
    $sudo dd if=flash.bin of=/dev/sd[x] bs=1024 seek=33 conv=notrunc
-   $sudo dd if=u-boot.itb of=/dev/sdc bs=1024 seek=384 conv=sync
 
 Boot
 ----