AnsweredAssumed Answered

Error "Can validate IVT header" when flashing imx8m mini

Question asked by Mihai Gisca on Mar 27, 2020
Latest reply on Mar 30, 2020 by Mihai Gisca

Hello NXP Community,

 

I am trying to create the image of Android Q10.0.0_1.0.0 for IMX8M development kit.

I am new to this kind of stuff, but eager to learn.

Flashing the prebuilt image of Q10.0.0_1.0.0 works.

 

Following the steps mentioned in the Android User Guide, the source code was pulled

and built successfully, but when attempting to flash the iMX8M Mini, a error is thrown:

 

1:1      1/ 2 [Can find validate IVT header          ] SDP: boot -f "./uuu_imx_a

 

I have to mention that, during the build, a warning was appearing frequently:

 

WARNING '/home/mihai-gisca/Projects/1370/sources/Q10.0.0_1.0.0/android_build/vendor/nxp-opensource/uboot-imx/lpddr4_pmu_train_1d_imem.bin' not found, resulting binary is not-functional

 

Extract from build log:

 

...
make[1]: Entering directory '/home/mihai-gisca/android_build/vendor/nxp-opensource/imx-mkimage'
Compiling mkimage_imx8
PLAT=imx8mm HDMI=no
Compiling mkimage_imx8
cc -O2 -Wall -std=c99 -static mkimage_imx8.c -o mkimage_imx8 -lz
./../scripts/pad_image.sh bl31.bin
bl31.bin is padded to 37328
./../scripts/pad_image.sh u-boot-nodtb.bin fsl-imx8mm-evk.dtb
u-boot-nodtb.bin + fsl-imx8mm-evk.dtb are padded to 723232
DEK_BLOB_LOAD_ADDR=0x40400000 TEE_LOAD_ADDR=0xfe000000 ATF_LOAD_ADDR=0x00920000 ./mkimage_fit_atf.sh fsl-imx8mm-evk.dtb > u-boot.its
bl31.bin size:
37328
u-boot-nodtb.bin size:
688880
fsl-imx8mm-evk.dtb size:
34352
./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb
Warning (unit_address_vs_reg): Node /images/uboot@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /images/fdt@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /images/atf@1 has a unit name, but no reg property
Warning (unit_address_vs_reg): Node /configurations/config@1 has a unit name, but no reg property
FIT description: Configuration to load ATF before U-Boot
Created:         Wed Mar 25 15:36:49 2020
 Image 0 (uboot@1)
  Description:  U-Boot (64-bit)
  Created:      Wed Mar 25 15:36:49 2020
  Type:         Standalone Program
  Compression:  uncompressed
  Data Size:    688880 Bytes = 672.73 KiB = 0.66 MiB
  Architecture: AArch64
  Load Address: 0x40200000
  Entry Point:  unavailable
 Image 1 (fdt@1)
  Description:  fsl-imx8mm-evk
  Created:      Wed Mar 25 15:36:49 2020
  Type:         Flat Device Tree
  Compression:  uncompressed
  Data Size:    34352 Bytes = 33.55 KiB = 0.03 MiB
  Architecture: Unknown Architecture
 Image 2 (atf@1)
  Description:  ARM Trusted Firmware
  Created:      Wed Mar 25 15:36:49 2020
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    37328 Bytes = 36.45 KiB = 0.04 MiB
  Architecture: AArch64
  OS:           Unknown OS
  Load Address: 0x00920000
 Default Configuration: 'config@1'
 Configuration 0 (config@1)
  Description:  fsl-imx8mm-evk
  Kernel:       unavailable
  Firmware:     uboot@1
  FDT:          fdt@1
  Loadables:    atf@1
./mkimage_imx8 -version v1 -fit -loader u-boot-spl-ddr.bin 0x7E1000 -second_loader u-boot.itb 0x40200000 0x60000 -out flash.bin
Platform: i.MX8M (mScale)
ROM VERSION: v1
Using FIT image
LOADER IMAGE: u-boot-spl-ddr.bin start addr: 0x007e1000
SECOND LOADER IMAGE: u-boot.itb start addr: 0x40200000 offset: 0x00060000
Output:  flash.bin
========= IVT HEADER [HDMI FW] =========
header.tag:   0x0
header.length:   0x0
header.version:  0x0
entry:    0x0
reserved1:   0x0
dcd_ptr:   0x0
boot_data_ptr:   0x0
self:    0x0
csf:    0x0
reserved2:   0x0
boot_data.start:  0x0
boot_data.size:  0x0
boot_data.plugin:  0x0
========= IVT HEADER [PLUGIN] =========
header.tag:   0x0
header.length:   0x0
header.version:  0x0
entry:    0x0
reserved1:   0x0
dcd_ptr:   0x0
boot_data_ptr:   0x0
self:    0x0
csf:    0x0
reserved2:   0x0
boot_data.start:  0x0
boot_data.size:  0x0
boot_data.plugin:  0x0
========= IVT HEADER [LOADER IMAGE] =========
header.tag:   0xd1
header.length:   0x2000
header.version:  0x41
entry:    0x7e1000
reserved1:   0x57c00
dcd_ptr:   0x0
boot_data_ptr:   0x7e0fe0
self:    0x7e0fc0
csf:    0x80cfc0
reserved2:   0x0
boot_data.start:  0x7e0bc0
boot_data.size:  0x2e460
boot_data.plugin:  0x0
========= OFFSET dump =========
Loader IMAGE:
 header_image_off  0x0
 dcd_off   0x0
 image_off   0x40
 csf_off   0x2c000
 spl hab block:  0x7e0fc0 0x0 0x2c000
Second Loader IMAGE:
 sld_header_off  0x57c00
 sld_csf_off   0x58c20
 sld hab block:  0x401fcdc0 0x57c00 0x1020
make[1]: Leaving directory '/home/mihai-gisca/android_build/vendor/nxp-opensource/imx-mkimage'
make[1]: Entering directory '/home/mihai-gisca/android_build/vendor/nxp-opensource/imx-mkimage'
./../scripts/pad_image.sh bl31.bin
./../scripts/pad_image.sh u-boot-nodtb.bin fsl-imx8mm-evk.dtb
TEE_LOAD_ADDR=0xbe000000 ATF_LOAD_ADDR=0x00920000 VERSION=v1 ./print_fit_hab.sh 0x60000 fsl-imx8mm-evk.dtb
0x40200000 0x5AC00 0xA82F0
0x402A82F0 0x102EF0 0x8630
0x920000 0x10B520 0x91D0
make[1]: Leaving directory '/home/mihai-gisca/android_build/vendor/nxp-opensource/imx-mkimage'
...

 

OS: Ubuntu 18.04.4 LTS x64 as guest OS

 

Appreciate your efforts.

 

Best regards,

Mihai Gîsca

Attachments

Outcomes