QSPI secboot failed with SDK BSP43 secboot image on RDB3

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

QSPI secboot failed with SDK BSP43 secboot image on RDB3

3,049 Views
hittzt
Senior Contributor I

Hi,

 

I tested secure boot on RDB3 board with SDK BSP43 release images, but it failed when test qspi secure boot feature, and I attached the whole log of test.

 

Would you please help to check the issue?

 

Thanks,

Zhantao

0 Kudos
Reply
12 Replies

2,763 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

Thanks for your reply.

If still issues found in your newly generated project, thanks for sharing the full log/reproducing steps for it, I could directly work on debugging it.

 

BR

Chenyin

0 Kudos
Reply

2,814 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

Thanks for the reply,

May I know if the same "bl2_w_dtb.s32-qspi-sdk" is used in your continuous tests? how many tests made? What is the proportion of failure cases?

 

BR

Chenyin

0 Kudos
Reply

2,774 Views
hittzt
Senior Contributor I

Yes, I used the same bl2 binary for about 5 times, it failed in last test, then I saved the failure message.

I will created a totally new BSP43 project to test again.

 

Thanks,

Zhantao

0 Kudos
Reply

2,840 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

You are welcome.

Sorry that I do not find issues during several times tests on it, when I am willing to checking your log but found that the log you mentioned seems not attached?

 

BR
Chenyin

0 Kudos
Reply

2,822 Views
hittzt
Senior Contributor I

Oh, the log is attached now.

 

Thanks,

Zhantao

0 Kudos
Reply

2,921 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

Thanks for you confirmation.

Regarding to flashcp, from BSP UM, it is suggested using the script included in the rootfs, and actually mtd_debug is used, I suggest checking if there are implementation differences between the two applications.(mtd_debug and flashcp)

So currently there is no issue for secure boot itself? sorry I did not reproduce the issue you mentioned from my side(After secure boot, power off and power on).

 

BR

Chenyin

0 Kudos
Reply

2,854 Views
hittzt
Senior Contributor I

Hi @chenyin_h,

 

Sorry for reply so late.

I tested the case several times again, recently, and the result is that, most success, but failure also happened.

The failure log is attached.

 

Thanks,

Zhantao

0 Kudos
Reply

2,981 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

Thanks for the reply.

My logs attached for your reference.

 

BR

Chenyin

 

 

0 Kudos
Reply

2,948 Views
hittzt
Senior Contributor I

Hi @chenyin_h,

 

Thanks for your log, it is helpful.

 

And did you try to test the case by using linux command flashcp to write the flash and enable the secure boot?

As the original log I attached, it failed when I write the flash using flashcp command, so I want to find the reason.

And I tested the case using your steps, and the secure boot passed indeed, but when I tried to power down and power up the board after, it hang there without nothing messages.

And I am still working on it to find the reason.

 

Thanks,

Zhantao

Tags (1)
0 Kudos
Reply

2,995 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

Sorry for the delay.

I tested it on local board and it seems correct, would you mind checking the following steps:

1. Build the images by adding secboot to the conf/local.conf

2. Use the mtd write command under u-boot to update the bl2_w_dtb.s32-qspi that built from Yocto

3. When using hse-secboot to enable secure boot, just copy 3 files needed from Yocto build to the board, then run the hse-secboot.

 

BR

Chenyin

 

 

0 Kudos
Reply

2,990 Views
hittzt
Senior Contributor I

Hi @chenyin_h ,

 

Thanks for your reply.

Yes, I add the secboot feature in my conf/local.conf, and the test steps as I attached previously. Could you please use my steps to check it again and give your whole log, then I can compare the differences.

And I will test it with your steps to see the status again.

 

Thanks,

Zhantao

0 Kudos
Reply

3,019 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt 

Thanks for the post.

I will check it on my side, and will update you later if any findings made

 

BR

Chenyin

0 Kudos
Reply