imx8mm_beacon/imx8mn_beacon: Update build instructions
PATCH 1/1 imx8mm_beacon/imx8mn_beacon: Update build instructions
With binman generating flash.bin, it's not longer necessary to specify either the location of ATF nor is it necessary to specify building flash.bin, so let's update the build instructions to remove those. While in here, update the revision of ATF and DDR firmware so both Mini and Nano reference the same revision.
board/beacon/imx8mm/README +6 -6
@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmware Note: $(srctree) is U-Boot source directory $ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.70_2.3.0 +$ git checkout lf_v2.4 $ make PLAT=imx8mm bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree) Get the DDR firmware ==================== -$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin -$ chmod +x firmware-imx-8.5.bin -$ ./firmware-imx-8.5 -$ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin +$ chmod +x firmware-imx-8.9.bin +$ ./firmware-imx-8.9 +$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) Build U-Boot ============ $ make imx8mm_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- +$ make CROSS_COMPILE=aarch64-linux-gnu- Burn U-Boot to microSD Card ===========================
board/beacon/imx8mn/README +2 -2
@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmware Note: $(srctree) is U-Boot source directory $ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.47_2.2.0 +$ git checkout lf_v2.4 $ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)
@@ -26,7 +26,7 @@ $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) Build U-Boot ============ $ make imx8mn_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x960000 +$ make CROSS_COMPILE=aarch64-linux-gnu- Burn U-Boot to microSD Card ===========================
Signature · 1 line
2.32.0
Hello Adam,
Quoted 21 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Adam Ford
Sent: Tuesday, January 11, 2022 2:51 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Adam Ford <[email protected]>
Subject: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructionsWith binman generating flash.bin, it's not longer necessary to specify either the location of ATF nor is it necessary to specify building flash.bin, so let's update the build instructions to remove those. While in here, update the revision of ATF and DDR firmware so both Mini and Nano reference the same revision.
Signed-off-by Adam Ford <[email protected]>board/beacon/imx8mm/README +0
-0
board/beacon/imx8mm/README Get and Build the ARM Trusted firmware · line 15
Quoted 5 lines
board/beacon/imx8mm/README +1
-1@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmware Note: $(srctree) is U-Boot source directory $ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.70_2.3.0 +$ git checkout lf_v2.4
Perhaps, it's better to advise the [lf-5.10.72-2.2.0] tag here instead of branch?
board/beacon/imx8mm/README Get and Build the ARM Trusted firmware · line 21
Quoted 10 lines
board/beacon/imx8mm/README +1
-4$ make PLAT=imx8mm bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree) Get the DDR firmware ==================== -$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin -$ chmod +x firmware-imx-8.5.bin -$ ./firmware-imx-8.5 -$ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
There is a newer version of DDR firmware available from NXP (8.14), perhaps you can recommend it here instead of 8.9.
Quoted 17 lines
board/beacon/imx8mm/README +4
-1+$ chmod +x firmware-imx-8.9.bin +$ ./firmware-imx-8.9 +$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) Build U-Boot ============ $ make imx8mm_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- +$ make CROSS_COMPILE=aarch64-linux-gnu- Burn U-Boot to microSD Card ===========================board/beacon/imx8mn/README +0
-0
board/beacon/imx8mn/README Get and Build the ARM Trusted firmware · line 15
Quoted 5 lines
board/beacon/imx8mn/README +1
-1@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmware Note: $(srctree) is U-Boot source directory $ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.47_2.2.0 +$ git checkout lf_v2.4
Same as for Mini above.
Quoted 12 lines
board/beacon/imx8mn/README +1
-1$ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)@@ -26,7 +26,7 @@ $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) Build U-Boot ============ $ make imx8mn_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x960000 +$ make CROSS_COMPILE=aarch64-linux-gnu- Burn U-Boot to microSD Card
Quoted 3 lines
===========================
--
2.32.0
-- andrey
Hi Andrey
Quoted 42 lines · ZHIZHIKIN Andrey
Hello Adam,
Quoted 23 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Adam Ford
Sent: Tuesday, January 11, 2022 2:51 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Adam Ford <[email protected]>
Subject: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructionsWith binman generating flash.bin, it's not longer necessary to specify either the location of ATF nor is it necessary to specify building flash.bin, so let's update the build instructions to remove those. While in here, update the revision of ATF and DDR firmware so both Mini and Nano reference the same revision.
Signed-off-by Adam Ford <[email protected]>board/beacon/imx8mm/README +0
-0@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmwareNote: $(srctree) is U-Boot source directory
Quoted 3 lines
$ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.70_2.3.0 +$ git checkout lf_v2.4Perhaps, it's better to advise the [lf-5.10.72-2.2.0] tag here instead of branch?
Quoted 10 lines
$ make PLAT=imx8mm bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)Get the DDR firmware
====================
-$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin
-$ chmod +x firmware-imx-8.5.bin
-$ ./firmware-imx-8.5
-$ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.bin
Quoted 4 lines
There is a newer version of DDR firmware available from NXP (8.14), perhaps you can recommend it here instead of 8.9.
I don't think anything about the DDR firmware actually changed in a long time. There are other parts within that firmware-imx package which did change. However, they are irrelevant for U-Boot.
Quoted 36 lines
Quoted 19 lines
+$ chmod +x firmware-imx-8.9.bin
+$ ./firmware-imx-8.9
+$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)Build U-Boot
============$ make imx8mm_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- +$ make CROSS_COMPILE=aarch64-linux-gnu-Burn U-Boot to microSD Card
===========================board/beacon/imx8mn/README +0
-0@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmwareNote: $(srctree) is U-Boot source directory
Quoted 3 lines
$ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.47_2.2.0 +$ git checkout lf_v2.4Same as for Mini above.
Quoted 11 lines
$ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)board/beacon/imx8mn/README +0
-0@@ -26,7 +26,7 @@ $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)Build U-Boot
============$ make imx8mn_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x960000 +$ make CROSS_COMPILE=aarch64-linux-gnu-
Quoted 6 lines
Quoted 4 lines
Burn U-Boot to microSD Card
===========================
--
2.32.0-- andrey
Cheers
Marcel
Hello Marcel,
Quoted 57 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Marcel Ziswiler
Sent: Wednesday, January 12, 2022 10:28 AM
To: [email protected]; [email protected]; andrey.zhizhikin@leica- geosystems.com
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructionsHi Andrey
Quoted 25 lines · ZHIZHIKIN Andrey
Hello Adam,
Quoted 23 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Adam Ford
Sent: Tuesday, January 11, 2022 2:51 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Adam Ford <[email protected]>
Subject: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructionsWith binman generating flash.bin, it's not longer necessary to specify either the location of ATF nor is it necessary to specify building flash.bin, so let's update the build instructions to remove those. While in here, update the revision of ATF and DDR firmware so both Mini and Nano reference the same revision.
Signed-off-by Adam Ford <[email protected]>board/beacon/imx8mm/README +0
-0@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmwareNote: $(srctree) is U-Boot source directory
Quoted 5 lines
Quoted 3 lines
$ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.70_2.3.0 +$ git checkout lf_v2.4Perhaps, it's better to advise the [lf-5.10.72-2.2.0] tag here instead of
branch?
Quoted 15 lines
Quoted 11 lines
$ make PLAT=imx8mm bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)Get the DDR firmware
====================
-$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin
-$ chmod +x firmware-imx-8.5.bin
-$ ./firmware-imx-8.5
-$ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.binThere is a newer version of DDR firmware available from NXP (8.14), perhaps you can recommend it here instead of 8.9.
Quoted 6 lines
Quoted 1 line
I don't think anything about the DDR firmware actually changed in a long time. There are other parts within
that firmware-imx package which did change. However, they are irrelevant for U- Boot.
True, I've just compared SHA256 for all lpddr4* files from 8.5, 8.9 and 8.14 - they do match.
This suggestion would be valid only if the consistency with Yocto image is desired (Yocto does use the firmware version based on the archive name), but technically it is not required to use the latest drop from NXP here. If this is not needed - this comment of mine is irrelevant here.
Quoted 44 lines
Quoted 37 lines
Quoted 20 lines
+$ chmod +x firmware-imx-8.9.bin
+$ ./firmware-imx-8.9
+$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)Build U-Boot
============$ make imx8mm_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- +$ make CROSS_COMPILE=aarch64-linux-gnu-Burn U-Boot to microSD Card
===========================board/beacon/imx8mn/README +0
-0@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmwareNote: $(srctree) is U-Boot source directory
Quoted 3 lines
$ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.47_2.2.0 +$ git checkout lf_v2.4Same as for Mini above.
Quoted 11 lines
$ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)board/beacon/imx8mn/README +0
-0@@ -26,7 +26,7 @@ $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree)Build U-Boot
============$ make imx8mn_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x960000 +$ make CROSS_COMPILE=aarch64-linux-gnu-Quoted 6 lines
Quoted 4 lines
Burn U-Boot to microSD Card
===========================
--
2.32.0-- andrey
Quoted 3 lines
Cheers
Marcel
-- andrey
Quoted 45 lines · ZHIZHIKIN Andrey
Hello Marcel,
Quoted 42 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Marcel Ziswiler
Sent: Wednesday, January 12, 2022 10:28 AM
To: [email protected]; [email protected]; andrey.zhizhikin@leica- geosystems.com
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructionsHi Andrey
Quoted 25 lines · ZHIZHIKIN Andrey
Hello Adam,
Quoted 23 lines
-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Adam Ford
Sent: Tuesday, January 11, 2022 2:51 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Adam Ford <[email protected]>
Subject: [PATCH] imx8mm_beacon/imx8mn_beacon: Update build instructionsWith binman generating flash.bin, it's not longer necessary to specify either the location of ATF nor is it necessary to specify building flash.bin, so let's update the build instructions to remove those. While in here, update the revision of ATF and DDR firmware so both Mini and Nano reference the same revision.
Signed-off-by Adam Ford <[email protected]>board/beacon/imx8mm/README +0
-0@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmware Note: $(srctree) is U-Boot source directoryQuoted 5 lines
board/beacon/imx8mm/README Get and Build the ARM Trusted firmware · line 15
Quoted 3 lines
board/beacon/imx8mm/README +1
-1$ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.70_2.3.0 +$ git checkout lf_v2.4Perhaps, it's better to advise the [lf-5.10.72-2.2.0] tag here instead of
branch?
Using a tag makes sense.
Quoted 22 lines
Quoted 15 lines
Quoted 15 lines
board/beacon/imx8mm/README Get and Build the ARM Trusted firmware · line 21
Quoted 11 lines
board/beacon/imx8mm/README +1
-4$ make PLAT=imx8mm bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree) Get the DDR firmware ==================== -$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.5.bin -$ chmod +x firmware-imx-8.5.bin -$ ./firmware-imx-8.5 -$ cp firmware-imx-8.5/firmware/ddr/synopsys/lpddr4*.bin $(srctree) +$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.9.binThere is a newer version of DDR firmware available from NXP (8.14), perhaps you can recommend it here instead of 8.9.
Quoted 6 lines
Quoted 1 line
I don't think anything about the DDR firmware actually changed in a long time. There are other parts within
that firmware-imx package which did change. However, they are irrelevant for U- Boot.
Quoted 7 lines
True, I've just compared SHA256 for all lpddr4* files from 8.5, 8.9 and 8.14 - they do match.
This suggestion would be valid only if the consistency with Yocto image is desired (Yocto does use the firmware version based on the archive name), but technically it is not required to use the latest drop from NXP here. If this is not needed - this comment of mine is irrelevant here.
For my purposes, I do not care about Yocto.
Quoted 50 lines
Quoted 45 lines
Quoted 38 lines
Quoted 19 lines
board/beacon/imx8mm/README +4
-1+$ chmod +x firmware-imx-8.9.bin +$ ./firmware-imx-8.9 +$ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) Build U-Boot ============ $ make imx8mm_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- +$ make CROSS_COMPILE=aarch64-linux-gnu- Burn U-Boot to microSD Card ===========================board/beacon/imx8mn/README +0
-0board/beacon/imx8mn/README Get and Build the ARM Trusted firmware · line 15
Quoted 5 lines
board/beacon/imx8mn/README +1
-1@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmware Note: $(srctree) is U-Boot source directory $ git clone https://source.codeaurora.org/external/imx/imx-atf -$ git checkout imx_5.4.47_2.2.0 +$ git checkout lf_v2.4Same as for Mini above.
Quoted 11 lines
board/beacon/imx8mn/README +1
-1$ make PLAT=imx8mn bl31 CROSS_COMPILE=aarch64-linux-gnu- $ cp build/imx8mm/release/bl31.bin $(srctree)@@ -26,7 +26,7 @@ $ cp firmware-imx-8.9/firmware/ddr/synopsys/lpddr4*.bin $(srctree) Build U-Boot ============ $ make imx8mn_beacon_defconfig -$ make flash.bin CROSS_COMPILE=aarch64-linux-gnu- ATF_LOAD_ADDR=0x960000 +$ make CROSS_COMPILE=aarch64-linux-gnu-Quoted 6 lines
Quoted 4 lines
board/beacon/imx8mn/README +0
-0Burn U-Boot to microSD Card===========================
--
2.32.0-- andrey
Quoted 3 lines
Cheers
Marcel
-- andrey