How to build GoldVIP's Bootloader without SAF

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to build GoldVIP's Bootloader without SAF

1,064 Views
ddmiso
Contributor II

I am trying to build GoldVIP's Bootloader without SAF.
I disabled the following items:
Bist, eMcem, SafetyBase, sBoot, sCheck, Rm

And I also disabled the following items:
CryptoDal -> Disable HSE Memory Partitioning
SysDal -> SystemPowerUpConfig_0->Rm_Init

After building, I uploaded it to the target board, and the initial boot was successful, but on the second boot, only the "bootloader 0x2 ComDal_Init() done." log appears.

Do you know why?

 

1) First Boot Log

bootloader 0x2 ComDal_Init() done. bootloader 0x2 CryptoDal HSE status HSE_STATUS_RNG_INIT_OK
bootloader 0x2 CryptoDal HSE status HSE_STATUS_INIT_OK
bootloader 0x2 CryptoDal HSE status HSE_STATUS_CUST_SUPER_USER
bootloader 0x2 HSE FW Version: 0.1.0_1.0.9
bootloader 0x2 CryptoDal performed the key catalogs format
bootloader 0x2 Secure boot activation in progress.
bootloader 0x2 Secure boot activation finished in 177.671 milliseconds.

bootloader 0x2 ComDal_Init() done.
bootloader 0x2 CryptoDal HSE status HSE_STATUS_RNG_INIT_OK
bootloader 0x2 CryptoDal HSE status HSE_STATUS_INIT_OK
bootloader 0x2 CryptoDal HSE status HSE_STATUS_INSTALL_OK
bootloader 0x2 CryptoDal HSE status HSE_STATUS_BOOT_OK
bootloader 0x2 CryptoDal HSE status HSE_STATUS_CUST_SUPER_USER
bootloader 0x2 CryptoDal HSE status HSE_STATUS_PRIMARY_SYS_IMAGE
bootloader 0x2 HSE FW Version: 0.1.0_1.0.9
bootloader 0x2 CryptoDal skipped the key catalogs format
bootloader 0x2 Bootloader secure boot is enabled.
bootloader 0x2 Bootloader initialization complete.
bootloader 0x2 Application 0 image fragment 0 of size 524288 was loaded from QSPI, address 0x201240.
bootloader 0x2 Application 0 image fragment 0 was loaded in 12.346 milliseconds.
bootloader 0x2 Application A53_0 was loaded.
bootloader 0x2 Application 1 image fragment 0 of size 3145728 was loaded from QSPI, address 0x400000.
bootloader 0x2 Application 1 image fragment 0 was loaded in 26.435 milliseconds.
bootloader 0x2 Application M7_0 was loaded.
NOTICE:
status: Error
NOTICE: BL2: v2.5(release):bsp39.0-2.5-dirty
NOTICE: BL2: Built : 10:17:55, Dec 8 2023
NOTICE: BL2: Booting BL31
I/TC:
I/TC: Non-secure external DT found
I/TC: OP-TEE version: bsp39.0-3.18-dev (gcc version 11.4.0 (GCC)) #1 Tue Nov 28 17:25:43 UTC 2023 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: Initializing virtualization support
I/TC: Primary CPU switching to normal world boot

 

2) Second Boot Log
bootloader 0x2 ComDal_Init() done.

Tags (2)
0 Kudos
Reply
5 Replies

1,041 Views
Joey_z
NXP Employee
NXP Employee

hi,ddmiso

Thank you for contacting us.

Are you using RDB2 or RDB3? It is suggested you can refer to AN13750 to check the configuration of bootloader and IVT images.

BR

Joey

0 Kudos
Reply

1,028 Views
ddmiso
Contributor II

Dear Joey_

Also, I use BSP39.0 version. The content of AN13750 document is 2022 document. Is there anything to be careful about when using it in compatibility with BSP39.0?

0 Kudos
Reply

1,009 Views
Joey_z
NXP Employee
NXP Employee

hi,ddmiso

Thank you for contacting us.

Usually, The AN13750 supports the Multicore Application, It is the official document. you also can refer to the AN when you use the newer BSP39.0, but you should pay attention to the Software compatibility.

Regarding your question, you can try modifying the Bootloader.c to refer the AN as shown in the following picture.

Joey_z_0-1744079933337.png

In addition, you also can use the HSE 0.2.22, It is recommended for goldvip.

Joey_z_1-1744080094779.png

Hope it can help you.

BR

Joey

 

 

0 Kudos
Reply

701 Views
ddmiso
Contributor II

Dear Joey_z

Thanks for your reply. I was able to boot successfully.
I have one more question.
The NOR flash Memory of RDB2 board is MX25UW51245G. It booted normally with this flash, but my custom board uses MX25U6432F. This memory uses Quad SPI, so I think I need to change the Fls setting.
Can you guide me on how to set it up?

 

Changing memory size and device id.
There is an error in the part below Read_dopi.

Read_dopi.png

0 Kudos
Reply

1,031 Views
ddmiso
Contributor II

Dear Joey_z

Thanks for the reply. I'm using RDB2.

0 Kudos
Reply