AnsweredAssumed Answered

SB2 file creation and load

Question asked by binjun wang on Nov 11, 2019
Latest reply on Nov 18, 2019 by ZhangJennie

Hello All

Now i am trying to create and load a sb2 file. Before doing it, i configured the keystore and CMPA and CFPA. Now bootloader is working in secure mode.

1. i use command " .\elftosb.exe -V -f lpc55xx -k ".\keys\sbkek.txt" -c ".\SB2 \commandFile.bd" -o image.sb2" to generate SB2 file.(why different sb2 files are generated using same sbkek.txt and commandFile.bd??)

2.  use command ".\blhost.exe -p COM13 receive-sb-file .\image.sb2" to load sb2 file and get log below:

PS C:\Users\sesa216564\Desktop\AN12283_LPC55Sxx_Secure_boot> .\blhost.exe -p COM13 receive-sb-file .\image.sb2
Ping responded in 1 attempt(s)
Inject command 'receive-sb-file'
Preparing to send 7360 (0x1cc0) bytes to the target.
Successful generic response to command 'receive-sb-file'
Error: read_start_byte() timeout after 5.096 seconds
Data phase write aborted by status 0x5 kStatus_Timeout
Error: read_start_byte() timeout after 5.104 seconds
Response status = 10004 (0x2714) No response packet from target device.
Wrote 0 of 7360 bytes.

 

why failed??

 

PS: i tried the same commands on another board without enabled security and got log below:

    Ping responded in 1 attempt(s)
Inject command 'receive-sb-file'
Preparing to send 7360 (0x1cc0) bytes to the target.
Successful generic response to command 'receive-sb-file'
Data phase write aborted by status 0x2712 kStatus_AbortDataPhase
Possible JUMP or RESET command received.
Response status = 10101 (0x2775) kStatusRomLdrSignature
Wrote 0 of 7360 bytes.

 

what's meaning of kStatusRomLdrSignature??

 

PS: Is it possible to check CMPA and CFPA memory when bootloader is working in secure mode? 

 

The attached files are used to generate sb2 file.

 

Best regards

Charles

Outcomes