[RFC PATCH v1] dts: imx8mp-u-boot.dtsi align flash.bin

Heiko Schocher hs at denx.de
Mon Oct 14 08:45:37 CEST 2024


Hi Peng!

On 14.10.24 08:29, Peng Fan wrote:
> Hi Heiko,
> 
> With the two applied, with latest U-Boot, uuu works
> well on i.MX8MP-EVK
> https://lore.kernel.org/all/20241012093410.9069-1-peng.fan@oss.nxp.com/
> https://lore.kernel.org/all/20241011105827.7729-1-peng.fan@oss.nxp.com/

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.

> 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 at 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 at 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 at 30bf0000 (eth0) using random MAC address - 9a:16:44:b4:19:9f
│   │    <>
│   │    <> Warning: ethernet at 30be0000 (eth1) using random MAC address - 96:f4:de:9a:49:8f
│   │    <> eth1: ethernet at 30be0000, eth0: ethernet at 30bf0000 [PRIME]
│   │    <> Hit any key to stop autoboot:  0
│   │    <> u-boot=>

bye,
Heiko
> 
> Regards,
> Peng.
> 
>> Subject: [RFC PATCH v1] 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.
>>
>> Signed-off-by: Heiko Schocher <hs at denx.de>
>> ---
>> 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(+)
>>
>> diff --git a/arch/arm/dts/imx8mp-u-boot.dtsi b/arch/arm/dts/imx8mp-
>> u-boot.dtsi index 56749ccacd..3c0bf8c4d6 100644
>> --- a/arch/arm/dts/imx8mp-u-boot.dtsi
>> +++ b/arch/arm/dts/imx8mp-u-boot.dtsi
>> @@ -85,6 +85,7 @@
>>   	filename = "flash.bin";
>>   	section {
>>   		pad-byte = <0x00>;
>> +		align-size = <0x800>;
>>
>>   #ifdef CONFIG_IMX_HAB
>>   		nxp-imx8mcst at 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: hs at denx.de


More information about the U-Boot mailing list