dts: imx8mp-u-boot.dtsi align flash.bin
Subsystems (2)
RFC PATCH 1/1 dts: imx8mp-u-boot.dtsi align flash.bin
trying to load current flash.bin with uuu tool leads in not booting U-Boot as missing some bytes.
Align flash.bin in this case to 0x800 bytes, to make uuu and ROM api happy.
---
I am unsure about the value of 0x800 which is twice the value the code in spl_romapi_load_image_stream(), requests from romapi which in my case on imx8mp is 0x400...
May I oversee something?
arch/arm/dts/imx8mp-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/dts/imx8mp-u-boot.dtsi +1 -0
@@ -85,6 +85,7 @@ filename = "flash.bin"; section { pad-byte = <0x00>; + align-size = <0x800>; #ifdef CONFIG_IMX_HAB nxp-imx8mcst@0 {
Signature · 1 line
2.20.1
Quoted 6 lines · Heiko Schocher
trying to load current flash.bin with uuu tool leads in not booting U-Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to make uuu and ROM api happy.
Quoted 7 lines
Signed-off-by Heiko Schocher <[email protected]>---
I am unsure about the value of0x800which is twice the value the code inspl_romapi_load_image_stream(), requests from romapi which in my case on imx8mp is0x400...May I oversee something?
Was the flash.bin aligned differently before the binman conversion , or did it work with UUU by sheer chance ? I don't see any alignment changes during the binman conversion.
tools/imx8mimage.c does contain
33 #define ALIGN_SIZE 0x1000
But that should be called internally by binman anyway.
Is the flash.bin correct or is it already corrupted when generated by this binman stuff ? You should be able to extract the u-boot.itb from flash.bin and run mkimage -l on it to validate it.
Hello Marek,
Quoted 7 lines · Marek Vasut
Quoted 6 lines · Heiko Schocher
trying to load current flash.bin with uuu tool leads in not booting U-Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to make uuu and ROM api happy.
Quoted 8 lines
Quoted 7 lines
Signed-off-by Heiko Schocher <[email protected]>---
I am unsure about the value of0x800which is twice the value the code inspl_romapi_load_image_stream(), requests from romapi which in my case on imx8mp is0x400...May I oversee something?
Was the flash.bin aligned differently before the binman conversion , or did it work with UUU by sheer chance ? I don't see any alignment changes during the binman conversion.
May it was broken before too?
Quoted 7 lines
tools/imx8mimage.cdoes contain33 #define ALIGN_SIZE
0x1000But that should be called internally by binman anyway.
Is the flash.bin correct or is it already corrupted when generated by this binman stuff ? You should be able to extract the u-boot.itb from flash.bin and run mkimage -l on it to validate it.
No problem with u-boot.itb, just the spl_romapi_load_image_stream() waits for more bytes...
Strange ... I disabled CONFIG_IMX_HAB in my defconfig and now without this patch U-Boot boots, but uuu stops @ 98% and after a while it shows:
"""
Quoted 1 line
Start Cmd:SDPS: boot -f /media/pi/data/srv/tftpboot/xxx/20241010/flash.bin
Wait for Known USB |New USB Device Attached at 1:11313 98%1:11313>Fail HID(W): LIBUSB_ERROR_TIMEOUT (-7)(24.48s)
Error: HID(W): LIBUSB_ERROR_TIMEOUT (-7)
load flash.bin failure
"""
-7 (E2BIG) ?
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]
Quoted 5 lines · Heiko Schocher
trying to load current flash.bin with uuu tool leads in not booting U-Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to
make uuu and ROM api happy.
Are you sure that the issue is on this? Can you check
https://github.com/nxp-imx/mfgtools/issues/416 ? Just sharing something related when using UUU on OE generated binaries to confirm you are not chasing the wrong issue here.
Francesco
Hi Francesco,
Quoted 11 lines · Francesco Dolcini
Quoted 5 lines · Heiko Schocher
trying to load current flash.bin with uuu tool leads in not booting U-Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to
make uuu and ROM api happy.Are you sure that the issue is on this? Can you check
https://github.com/nxp-imx/mfgtools/issues/416 ? Just sharing something related when using UUU on OE generated binaries to confirm you are not chasing the wrong issue here.
Thanks for the tip, but I do not use meta-freescale... but yes, I build with oe... the issue is, because
Okay, I tried the following (flash.bin created without this patch):
$ cp flash.bin flash.bin-tagged $ stat -L -cUUUBURNXXOEUZX7+A-XY5601QQWWZ%sEND flash.bin-tagged >> flash.bin-tagged
and loading flash.bin-tagged... which leads in uuu reaches 100% but U-Boot does not boot, as rom_api_download_image() still waits for some bytes ... simply sending more bytes by starting uuu again leads in starting U-Boot!
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]
Hi Heiko,
With the two applied, with latest U-Boot, uuu works well on i.MX8MP-EVK
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
Would you share your commit hash and boot log?
Regards,
Peng.
Quoted 33 lines
Subject: [RFC PATCH v1] dts:
imx8mp-u-boot.dtsialign flash.bintrying to load current flash.bin with uuu tool leads in not booting U- Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to make uuu and ROM api happy.Signed-off-by Heiko Schocher <[email protected]>---
I am unsure about the value of0x800which is twice the value the code inspl_romapi_load_image_stream(), requests from romapi which in my case on imx8mp is0x400...May I oversee something?
arch/arm/dts/imx8mp-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/dts/imx8mp- renamed from arch/arm/dts/imx8mp-u-boot.dtsi +0
-0
u-boot.dtsiindex56749ccacd..3c0bf8c4d6100644arch/arm/dts/imx8mp-u-boot.dtsi +1
-1@@ -85,6 +85,7 @@ filename = "flash.bin"; section { pad-byte = <0x00>; + align-size = <0x800>; #ifdef CONFIG_IMX_HAB nxp-imx8mcst@0 { --2.20.1
Hi Peng!
Quoted 6 lines · Peng Fan
Hi Heiko,
With the two applied, with latest U-Boot, uuu works well on i.MX8MP-EVK
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
Thanks for verifying! So the problem is for sure on my side...
My base is:
* f919c3a889 - (tag: v2024.10) Prepare v2024.10 (vor 7 Tagen) <Tom Rini>
So, your patches not applied ... yet.
Yes some patches above to introduce board support, mainlining comes soon...
I tried with your patches, still teh same problem on my side.
Quoted 1 line
Would you share your commit hash and boot log?
see below ... I must admit I have enabled IMX_HAB boot, and signing works well with binman... may I ask, if you can enable IMX_HAB too?
here the bootlog:
│ │ <> U-Boot SPL 2024.10-00017-gdf824fb3d8ef-dirty (Oct 07 2024 - 14:54:35 +0000) │ │ <> DDR: 4096 MiB [0x2] │ │ <> DDR: Inline ECC disabled │ │ <> SEC0: RNG instantiated │ │ <> Normal Boot │ │ <> WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) │ │ <> Trying to boot from BOOTROM │ │ <> Boot Stage: USB boot │ │ <> Find img info 0x48021000, size 1493611 │ │ <> Need continue download 1492992 │ │ <> hab fuse not enabled │ │ <> │ │ <> Authenticate image from DDR location 0x44000000... │ │ <> NOTICE: Do not release JR0 to NS as it can be used by HAB │ │ <> NOTICE: BL31: v2.11.0(release):v2.10.0-984-gf2735ebcc │ │ <> NOTICE: BL31: Built : 11:51:22, May 23 2024 │ │ <> │ │ <> │ │ <> U-Boot 2024.10-00017-gdf824fb3d8ef-dirty (Oct 07 2024 - 14:54:35 +0000) │ │ <> │ │ <> CPU: Freescale i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz) │ │ <> CPU: Commercial temperature grade (0C to 95C) at 41C │ │ <> Reset cause: POR │ │ <> Model: Aristainetos3 ADLink PI SMARC carrier │ │ <> DRAM: 4 GiB │ │ <> Core: 172 devices, 36 uclasses, devicetree: separate │ │ <> WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) │ │ <> FSL_SDHC: 1, FSL_SDHC: 0 │ │ <> Loading Environment from MMC... Reading from MMC(0)... OK │ │ <> In: serial │ │ <> Out: serial │ │ <> Err: serial │ │ <> SEC0: RNG instantiated │ │ <> Net: │ │ <> Warning: ethernet@30bf0000 (eth0) using random MAC address - 9a:16:44:b4:19:9f │ │ <> │ │ <> Warning: ethernet@30be0000 (eth1) using random MAC address - 96:f4:de:9a:49:8f │ │ <> eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME] │ │ <> Hit any key to stop autoboot: 0 │ │ <> u-boot=>
bye,
Heiko
Quoted 37 lines
Regards,
Peng.Quoted 33 lines
Subject: [RFC PATCH v1] dts:
imx8mp-u-boot.dtsialign flash.bintrying to load current flash.bin with uuu tool leads in not booting U- Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to make uuu and ROM api happy.Signed-off-by Heiko Schocher <[email protected]>---
I am unsure about the value of0x800which is twice the value the code inspl_romapi_load_image_stream(), requests from romapi which in my case on imx8mp is0x400...May I oversee something?
arch/arm/dts/imx8mp-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm/dts/imx8mp- renamed from arch/arm/dts/imx8mp-u-boot.dtsi +0
-0
u-boot.dtsiindex56749ccacd..3c0bf8c4d6100644arch/arm/dts/imx8mp-u-boot.dtsi +1
-1@@ -85,6 +85,7 @@ filename = "flash.bin"; section { pad-byte = <0x00>; + align-size = <0x800>; #ifdef CONFIG_IMX_HAB nxp-imx8mcst@0 { --2.20.1
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]
Quoted 55 lines
Subject: Re: [RFC PATCH v1] dts:
imx8mp-u-boot.dtsialign flash.binHi Peng!
Quoted 5 lines · Peng Fan
Hi Heiko,
With the two applied, with latest U-Boot, uuu works well on i.MX8MP-EVK
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
loreQuoted 1 line
.kernel.org%2Fall%2F20241012093410.9069-1-
peng.fan%40oss.nxp.com%2F&da
Quoted 1 line
ta=05%7C02%7Cpeng.fan%40nxp.com%7C26dd8c31b9ca4276aed108 dcec1c1dc0%7C6
Quoted 1 line
86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6386448527505 72116%7CUnknown
Quoted 1 line
%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
6Ik1haWwiLCJ
Quoted 1 line
XVCI6Mn0%3D%7C0%7C%7C%7C&sdata=vZqhJCFei5qbUYZT3Lu2SF5kf RwT26lWufHwKZ0
Quoted 2 lines
ojto%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
loreQuoted 1 line
.kernel.org%2Fall%2F20241011105827.7729-1-
peng.fan%40oss.nxp.com%2F&da
Quoted 1 line
ta=05%7C02%7Cpeng.fan%40nxp.com%7C26dd8c31b9ca4276aed108 dcec1c1dc0%7C6
Quoted 1 line
86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6386448527505 91559%7CUnknown
Quoted 1 line
%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
6Ik1haWwiLCJ
Quoted 1 line
XVCI6Mn0%3D%7C0%7C%7C%7C&sdata=tIjTPu%2Fq7wQqpzIO2EaoCG vgKxM%2Fy2eJoPw
Quoted 1 line
miGiBJ9E%3D&reserved=0
Thanks for verifying! So the problem is for sure on my side...
My base is:
*f919c3a889- (tag: v2024.10) Prepare v2024.10 (vor 7 Tagen) <Tom Rini>So, your patches not applied ... yet.
Yes some patches above to introduce board support, mainlining comes soon...
Quoted 6 lines
I tried with your patches, still teh same problem on my side.
Quoted 1 line
Would you share your commit hash and boot log?
see below ... I must admit I have enabled
IMX_HABboot, and signing works well with binman... may I ask, if you can enableIMX_HABtoo?
I use OEM_OPEN part, not have IMX_HAB enabled.
Quoted 5 lines
here the bootlog:
│ │ <> U-Boot SPL 2024.10-00017-gdf824fb3d8ef-dirty (Oct 07
2024 - 14:54:35 +0000)
So your board boots ok, but uuu has issue?
Regards,
Peng.
Quoted 97 lines
│ │ <> DDR: 4096 MiB [0x2] │ │ <> DDR: Inline ECC disabled │ │ <> SEC0: RNG instantiated │ │ <> Normal Boot │ │ <> WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) │ │ <> Trying to boot from BOOTROM │ │ <> Boot Stage: USB boot │ │ <> Find img info 0x48021000, size 1493611 │ │ <> Need continue download 1492992 │ │ <> hab fuse not enabled │ │ <> │ │ <> Authenticate image from DDR location 0x44000000... │ │ <> NOTICE: Do not release JR0 to NS as it can be used by HAB │ │ <> NOTICE: BL31: v2.11.0(release):v2.10.0-984-gf2735ebcc │ │ <> NOTICE: BL31: Built : 11:51:22, May 23 2024 │ │ <> │ │ <> │ │ <> U-Boot 2024.10-00017-gdf824fb3d8ef-dirty (Oct 07 2024 - 14:54:35 +0000) │ │ <> │ │ <> CPU: Freescale i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz) │ │ <> CPU: Commercial temperature grade (0C to 95C) at 41C │ │ <> Reset cause: POR │ │ <> Model: Aristainetos3 ADLink PI SMARC carrier │ │ <> DRAM: 4 GiB │ │ <> Core: 172 devices, 36 uclasses, devicetree: separate │ │ <> WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) │ │ <> FSL_SDHC: 1, FSL_SDHC: 0 │ │ <> Loading Environment from MMC... Reading from MMC(0)... OK │ │ <> In: serial │ │ <> Out: serial │ │ <> Err: serial │ │ <> SEC0: RNG instantiated │ │ <> Net: │ │ <> Warning: ethernet@30bf0000 (eth0) using random MAC address - 9a:16:44:b4:19:9f │ │ <> │ │ <> Warning: ethernet@30be0000 (eth1) using random MAC address - 96:f4:de:9a:49:8f │ │ <> eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME] │ │ <> Hit any key to stop autoboot: 0 │ │ <> u-boot=>bye,
HeikoQuoted 10 lines
Regards,
Peng.Quoted 6 lines
Subject: [RFC PATCH v1] dts:
imx8mp-u-boot.dtsialign flash.bintrying to load current flash.bin with uuu tool leads in not booting U- Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to make uuu and ROMapi
Quoted 6 lines
Quoted 6 lines
happy.
Signed-off-by Heiko Schocher <[email protected]>---
I am unsure about the value of0x800which is twice the value the code inspl_romapi_load_image_stream(), requests from romapiwhich in
Quoted 8 lines
Review
Quoted 8 lines
my case on imx8mp is
0x400...May I oversee something?
arch/arm/dts/imx8mp-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0b/arch/arm/dts/imx8mp-
Quoted 9 lines
Quoted 9 lines
u-boot.dtsiindex56749ccacd..3c0bf8c4d6100644arch/arm/dts/imx8mp-u-boot.dtsi +1
-0@@ -85,6 +85,7 @@ filename = "flash.bin"; section { pad-byte = <0x00>; + align-size = <0x800>;Quoted 4 lines
Quoted 4 lines
arch/arm/dts/imx8mp-u-boot.dtsi +0
-1#ifdef CONFIG_IMX_HAB nxp-imx8mcst@0 { --2.20.1
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email:
[email protected]
Hi Peng!
Quoted 65 lines · Peng Fan
Quoted 55 lines
Subject: Re: [RFC PATCH v1] dts:
imx8mp-u-boot.dtsialign flash.binHi Peng!
Quoted 5 lines · Peng Fan
Hi Heiko,
With the two applied, with latest U-Boot, uuu works well on i.MX8MP-EVK
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
loreQuoted 1 line
.kernel.org%2Fall%2F20241012093410.9069-1-
peng.fan%40oss.nxp.com%2F&da
Quoted 1 line
ta=05%7C02%7Cpeng.fan%40nxp.com%7C26dd8c31b9ca4276aed108 dcec1c1dc0%7C6
Quoted 1 line
86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6386448527505 72116%7CUnknown
Quoted 1 line
%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
6Ik1haWwiLCJ
Quoted 1 line
XVCI6Mn0%3D%7C0%7C%7C%7C&sdata=vZqhJCFei5qbUYZT3Lu2SF5kf RwT26lWufHwKZ0
Quoted 2 lines
ojto%3D&reserved=0
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2F
loreQuoted 1 line
.kernel.org%2Fall%2F20241011105827.7729-1-
peng.fan%40oss.nxp.com%2F&da
Quoted 1 line
ta=05%7C02%7Cpeng.fan%40nxp.com%7C26dd8c31b9ca4276aed108 dcec1c1dc0%7C6
Quoted 1 line
86ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C6386448527505 91559%7CUnknown
Quoted 1 line
%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI
6Ik1haWwiLCJ
Quoted 1 line
XVCI6Mn0%3D%7C0%7C%7C%7C&sdata=tIjTPu%2Fq7wQqpzIO2EaoCG vgKxM%2Fy2eJoPw
Quoted 1 line
miGiBJ9E%3D&reserved=0
Thanks for verifying! So the problem is for sure on my side...
My base is:
*f919c3a889- (tag: v2024.10) Prepare v2024.10 (vor 7 Tagen) <Tom Rini>So, your patches not applied ... yet.
Yes some patches above to introduce board support, mainlining comes soon...
Quoted 6 lines
I tried with your patches, still teh same problem on my side.
Quoted 1 line
Would you share your commit hash and boot log?
see below ... I must admit I have enabled
IMX_HABboot, and signing works well with binman... may I ask, if you can enableIMX_HABtoo?I use
OEM_OPENpart, not haveIMX_HABenabled.Quoted 1 line
Quoted 6 lines
Quoted 4 lines
here the bootlog:
│ │ <> U-Boot SPL 2024.10-00017-gdf824fb3d8ef-dirty (Oct 07
2024 - 14:54:35 +0000)So your board boots ok, but uuu has issue?
Board boots fine from emmc, sd card. Booting blank board with uuu works with posted RFC patch, as it seems to me code in
spl_romapi_load_image_stream()
waits for more bytes than flash.bin currently has... appending some zero bytes at the end, and U_Boot begins to boot and works fine, uuu tool ends with errorcode 0.
bye,
Heiko
Quoted 101 lines
Regards,
Peng.Quoted 97 lines
│ │ <> DDR: 4096 MiB [0x2] │ │ <> DDR: Inline ECC disabled │ │ <> SEC0: RNG instantiated │ │ <> Normal Boot │ │ <> WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) │ │ <> Trying to boot from BOOTROM │ │ <> Boot Stage: USB boot │ │ <> Find img info 0x48021000, size 1493611 │ │ <> Need continue download 1492992 │ │ <> hab fuse not enabled │ │ <> │ │ <> Authenticate image from DDR location 0x44000000... │ │ <> NOTICE: Do not release JR0 to NS as it can be used by HAB │ │ <> NOTICE: BL31: v2.11.0(release):v2.10.0-984-gf2735ebcc │ │ <> NOTICE: BL31: Built : 11:51:22, May 23 2024 │ │ <> │ │ <> │ │ <> U-Boot 2024.10-00017-gdf824fb3d8ef-dirty (Oct 07 2024 - 14:54:35 +0000) │ │ <> │ │ <> CPU: Freescale i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz) │ │ <> CPU: Commercial temperature grade (0C to 95C) at 41C │ │ <> Reset cause: POR │ │ <> Model: Aristainetos3 ADLink PI SMARC carrier │ │ <> DRAM: 4 GiB │ │ <> Core: 172 devices, 36 uclasses, devicetree: separate │ │ <> WDT: Started watchdog@30280000 with servicing every 1000ms (60s timeout) │ │ <> FSL_SDHC: 1, FSL_SDHC: 0 │ │ <> Loading Environment from MMC... Reading from MMC(0)... OK │ │ <> In: serial │ │ <> Out: serial │ │ <> Err: serial │ │ <> SEC0: RNG instantiated │ │ <> Net: │ │ <> Warning: ethernet@30bf0000 (eth0) using random MAC address - 9a:16:44:b4:19:9f │ │ <> │ │ <> Warning: ethernet@30be0000 (eth1) using random MAC address - 96:f4:de:9a:49:8f │ │ <> eth1: ethernet@30be0000, eth0: ethernet@30bf0000 [PRIME] │ │ <> Hit any key to stop autoboot: 0 │ │ <> u-boot=>bye,
HeikoQuoted 10 lines
Regards,
Peng.Quoted 6 lines
Subject: [RFC PATCH v1] dts:
imx8mp-u-boot.dtsialign flash.bintrying to load current flash.bin with uuu tool leads in not booting U- Boot as missing some bytes.
Align flash.bin in this case to
0x800bytes, to make uuu and ROMapi
Quoted 6 lines
Quoted 6 lines
happy.
Signed-off-by Heiko Schocher <[email protected]>---
I am unsure about the value of0x800which is twice the value the code inspl_romapi_load_image_stream(), requests from romapiwhich in
Quoted 8 lines
Review
Quoted 8 lines
my case on imx8mp is
0x400...May I oversee something?
arch/arm/dts/imx8mp-u-boot.dtsi | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0b/arch/arm/dts/imx8mp-
Quoted 9 lines
Quoted 9 lines
u-boot.dtsiindex56749ccacd..3c0bf8c4d6100644arch/arm/dts/imx8mp-u-boot.dtsi +1
-0@@ -85,6 +85,7 @@ filename = "flash.bin"; section { pad-byte = <0x00>; + align-size = <0x800>;Quoted 4 lines
Quoted 4 lines
arch/arm/dts/imx8mp-u-boot.dtsi +0
-1#ifdef CONFIG_IMX_HAB nxp-imx8mcst@0 { --2.20.1
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email:
[email protected]
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]
Quoted 9 lines · Heiko Schocher
Board boots fine from emmc, sd card. Booting blank board with uuu works with posted RFC patch, as it seems to me code in
spl_romapi_load_image_stream()waits for more bytes than flash.bin currently has... appending some zero bytes at the end, and
U_Bootbegins to boot and works fine, uuu tool ends with errorcode 0.
Sounds like exactly the symptoms I fixed with commit 89f19f45d650.
So yes, you really do need to ensure that flash.bin (or rather the embedded u-boot FIT image) has a large enough size for what the rom api expects, and that number changes when HAB is enabled.
Rasmus
Quoted 12 lines · Rasmus Villemoes
Quoted 9 lines · Heiko Schocher
Board boots fine from emmc, sd card. Booting blank board with uuu works with posted RFC patch, as it seems to me code in
spl_romapi_load_image_stream()waits for more bytes than flash.bin currently has... appending some zero bytes at the end, and
U_Bootbegins to boot and works fine, uuu tool ends with errorcode 0.
Quoted 5 lines
Sounds like exactly the symptoms I fixed with commit
89f19f45d650.So yes, you really do need to ensure that flash.bin (or rather the embedded u-boot FIT image) has a large enough size for what the rom api expects, and that number changes when HAB is enabled.
Is this missing in the binman implementation then ?
Hello Rasmus,
Quoted 12 lines · Rasmus Villemoes
Quoted 9 lines · Heiko Schocher
Board boots fine from emmc, sd card. Booting blank board with uuu works with posted RFC patch, as it seems to me code in
spl_romapi_load_image_stream()waits for more bytes than flash.bin currently has... appending some zero bytes at the end, and
U_Bootbegins to boot and works fine, uuu tool ends with errorcode 0.
Quoted 5 lines
Sounds like exactly the symptoms I fixed with commit
89f19f45d650.So yes, you really do need to ensure that flash.bin (or rather the embedded u-boot FIT image) has a large enough size for what the rom api expects, and that number changes when HAB is enabled.
Yep, sounds exactly like this... and my change in the RFC patch should behind the line:
#ifdef CONFIG_IMX_HAB
or maybe we need to look into binman how the "nxp-imx8mcst@0" stuff is created...
bye,
Heiko
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: [email protected]