Message ID | 20210406035904.26598-7-peng.fan@oss.nxp.com |
---|---|
State | New |
Headers | show |
Series | [1/7] imx8mm_evk: switch to use binman to pack images | expand |
Hi, On 2021-04-06 05:59, Peng Fan (OSS) wrote: > 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 Why is this changed to 'seek=384'? Comment still states 'offset 32KB' and reference manual states that Primary Image Offset for SD card shall be 32KB. Can you explain a bit more around this? Thanks, /Peter
> -----Original Message----- > From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Peter Bergin > Sent: Tuesday, April 6, 2021 8:59 AM > To: u-boot@lists.denx.de > Subject: Re: [PATCH 7/7] doc: imx8mp-evk: update after using binman > > > Hi, > > On 2021-04-06 05:59, Peng Fan (OSS) wrote: > > 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 > > Why is this changed to 'seek=384'? Comment still states 'offset 32KB' > and reference manual states that Primary Image Offset for SD card shall be 32KB. > Can you explain a bit more around this? I'd also be interested in a more detailed explanation of this change, since the documentation is not quite descriptive about this added step. How the magic new offset is handled and why is it chosen to be 384? I see this change was made *exactly in the same way* across Mini, Nano and Plus SOCs of i.MX8M family, hence I believe it does deserve a good description. > > Thanks, > /Peter Thanks a lot! -- andrey
diff --git a/doc/board/freescale/imx8mp_evk.rst b/doc/board/freescale/imx8mp_evk.rst index 796a7611d0..609a29f3eb 100644 --- a/doc/board/freescale/imx8mp_evk.rst +++ b/doc/board/freescale/imx8mp_evk.rst @@ -40,18 +40,19 @@ Build U-Boot $ export CROSS_COMPILE=aarch64-poky-linux- $ make O=build imx8mp_evk_defconfig $ cp ../imx-atf/build/imx8mp/release/bl31.bin ./build/bl31.bin - $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_202006.bin ./build/lpddr4_pmu_train_1d_dmem.bin - $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_202006.bin ./build/lpddr4_pmu_train_1d_imem.bin - $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_202006.bin ./build/lpddr4_pmu_train_2d_dmem.bin - $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_202006.bin ./build/lpddr4_pmu_train_2d_imem.bin + $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_202006.bin ./build/ + $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_202006.bin ./build/ + $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_202006.bin ./build/ + $ cp ../firmware-imx-8.10/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_202006.bin ./build/ $ export ATF_LOAD_ADDR=0x970000 - $ make O=build flash.bin + $ make O=build 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 ----