Skip to contentSkip to conversation

imx8mm_beacon/imx8mn_beacon: Update build instructions

PATCH Superseded Adam Ford 3 participants 5 messages Jan 11, 2022 – Jan 12, 2022 Arm i.MX and Layerscape

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

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
index 03d9412f0d..200549d924 100644
@@ -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
index a9eddd4e64..7e5d1545e6 100644
@@ -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
#1 lore raw

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 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 +0 -0
index 03d9412f0d..200549d924 100644

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
index a9eddd4e64..7e5d1545e6 100644

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

#2 lore raw

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 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 +0 -0
index 03d9412f0d..200549d924 100644
@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmware

 Note: $(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.4

Perhaps, 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
index a9eddd4e64..7e5d1545e6 100644
@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmware

 Note: $(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.4

Same 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

#3 lore raw

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 instructions

Hi 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 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 +0 -0
index 03d9412f0d..200549d924 100644
@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmware

 Note: $(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.4

Perhaps, 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.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 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
index a9eddd4e64..7e5d1545e6 100644
@@ -12,7 +12,7 @@ Get and Build the ARM Trusted firmware

 Note: $(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.4

Same 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

author
#4 lore raw
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 instructions

Hi 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 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 +0 -0
index 03d9412f0d..200549d924 100644
@@ -12,21 +12,21 @@ Get and Build the ARM Trusted firmware
 Note: $(srctree) is U-Boot source directory
 
Quoted 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.4

Perhaps, 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.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 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 -0
index a9eddd4e64..7e5d1545e6 100644

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 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 -0
 Burn U-Boot to microSD Card

===========================
--
2.32.0

-- andrey

Quoted 3 lines

Cheers

Marcel

-- andrey