diff mbox series

[7/7] doc: imx8mp-evk: update after using binman

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

Commit Message

Peng Fan (OSS) April 6, 2021, 3:59 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>


update doc after using binman to pack images

Signed-off-by: Peng Fan <peng.fan@nxp.com>

---
 doc/board/freescale/imx8mp_evk.rst | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

-- 
2.30.0

Comments

Peter Bergin April 6, 2021, 6:58 a.m. UTC | #1
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
Andrey Zhizhikin April 28, 2021, 5:06 p.m. UTC | #2
> -----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 mbox series

Patch

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
 ----