nvm manager failed to start,rsp_code=0x00000429

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

nvm manager failed to start,rsp_code=0x00000429

1,648件の閲覧回数
dujunqiu
Contributor I

chip : MIMX8QX6AVLFZAC

uname -a
Linux imx8qxpc0mek 5.10.9V1.0 #15 SMP PREEMPT Thu Dec 21 11:48:39 CST 2023 aarch64 aarch64 aarch64 GNU/Linux

error discribe:

i use normal  uboot, run "hsm_test" app, can success  "sab_open_storage_command" function;

but i use secore uboot,run "hsm_test" app,  "sab_open_storage_command"  return  "rsp_code=0x00000429", find 《i.MX8 HSM API Rev 4.4》,0x04 is "HSM_INVALID_PARAM",and say "One of the parameter provided in the command is invalid.";

so i want know,  secure boot  environment, hsm_test  shoud use what command?  and i find "seco_os_abs_linux.c" discribe

/*
* MU1: SHE user + SHE storage
* MU2: HSM user + HSM storage
* MU3: unused
*/

but i not find "HSM storage" define

 

 

0 件の賞賛
返信
5 返答(返信)

1,546件の閲覧回数
dujunqiu
Contributor I

this problem is deal; please check you seco version

old version:  https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-3.7.1.bin

new version:  https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-3.8.1.bin

log info 

SECO FW Version = Version 3.8.1, Commit 7aeb8423

 

0 件の賞賛
返信

1,567件の閲覧回数
dujunqiu
Contributor I

have any command to reset SECO? 

0 件の賞賛
返信

1,590件の閲覧回数
dujunqiu
Contributor I

why first  "06 06 e0 17"command response 0x0000; 

and second "06 06 e0 17" command response 0x0429;

is SECO FW not clean first session? 

0 件の賞賛
返信

1,590件の閲覧回数
dujunqiu
Contributor I

second hsm_test

# 上电后第二次运行
root@imx8qxpc0mek:/mnt# ./hsm_test_0321
hsm_storage_thread start
seco_nvm_open_session 0 flags = 0 type = 5
seco_os_abs_open_mu_channel phdl=0xffff7c000f30 len=8
seco_os_abs_open_mu_channel -1 info 0xffff7c000f30 0x418228 0xffff842349a8
seco_os_abs_open_mu_channel phdl->fd=3 path=/dev/seco_mu2_ch1
seco_nvm_open_session 1-1
sab_open_session_command 0 info= 0xffff7c000f30 0xffff842348e0 12
06 03 10 17 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
seco_os_abs_send_mu_message = 3, 0xffff842348f0, 12
seco_os_abs_read_mu_message = 3, 0xffff842348e0, 12
06 03 10 e1 00 00 00 00 c5 ed ba ca
seco_send_msg_and_get_resp 2 info= 12 0xffff7c000f30 0xffff842348e0 12
sab_open_session_command 1 res= 0x00000000 0xcabaedc5
seco_nvm_open_session 2-1 info= 0xffff7c000f30 -893719099 0x41860c 5 0
sab_open_storage_command 0 phdl= 0xffff7c000f30
sab_open_storage_command 0-1 info= cabaedc5 0 0 0 dd5aebc3
06 06 e0 17 c5 ed ba ca 00 00 00 00 00 00 00 00 00 00 00 00 c3 eb 5a dd
seco_os_abs_send_mu_message = 3, 0xffff842348e8, 24
seco_os_abs_read_mu_message = 3, 0xffff842348d8, 12
06 03 e0 e1 29 04 00 00 00 00 00 00 # 返回0x0429的错误码了
seco_send_msg_and_get_resp 2 info= 12 0xffff7c000f30 0xffff842348d8 12
sab_open_storage_command error= 0 rsp_code= 1065
seco_nvm_open_session 3 err=1065
06 02 11 17 c5 ed ba ca 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
seco_os_abs_send_mu_message = 3, 0xffff842348d8, 8
seco_os_abs_read_mu_message = 3, 0xffff842348d0, 8
06 02 11 e1 00 00 00 00 00 00 00 00
seco_send_msg_and_get_resp 2 info= 8 0xffff7c000f30 0xffff842348d0 8
seco_nvm_close_session nvm_ctx.phdl = NULL
seco_nvm_open_session 4
seco_nvm_manager 1 nvm_ctx.phdl=0
nvm manager failed to start

0 件の賞賛
返信

1,590件の閲覧回数
dujunqiu
Contributor I

first hsm_test  log

# 上电后第一次运行
root@imx8qxpc0mek:/mnt# ./hsm_test_0321
hsm_storage_thread start
seco_nvm_open_session 0 flags = 0 type = 5
seco_os_abs_open_mu_channel phdl=0xffffb0000f30 len=8
seco_os_abs_open_mu_channel -1 info 0xffffb0000f30 0x418228 0xffffb6a9d9a8
seco_os_abs_open_mu_channel phdl->fd=3 path=/dev/seco_mu2_ch1
seco_nvm_open_session 1-1
sab_open_session_command 0 info= 0xffffb0000f30 0xffffb6a9d8e0 12
06 03 10 17 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
seco_os_abs_send_mu_message = 3, 0xffffb6a9d8f0, 12
seco_os_abs_read_mu_message = 3, 0xffffb6a9d8e0, 12
06 03 10 e1 00 00 00 00 e5 ec ba ca
seco_send_msg_and_get_resp 2 info= 12 0xffffb0000f30 0xffffb6a9d8e0 12
sab_open_session_command 1 res= 0x00000000 0xcabaece5
seco_nvm_open_session 2-1 info= 0xffffb0000f30 -893719323 0x41860c 5 0
sab_open_storage_command 0 phdl= 0xffffb0000f30
sab_open_storage_command 0-1 info= cabaece5 0 0 0 dd5aeae3
06 06 e0 17 e5 ec ba ca 00 00 00 00 00 00 00 00 00 00 00 00 e3 ea 5a dd
seco_os_abs_send_mu_message = 3, 0xffffb6a9d8e8, 24
seco_os_abs_read_mu_message = 3, 0xffffb6a9d8d8, 12
06 03 e0 e1 00 00 00 00 bd ec ba ca # 返回成功
seco_send_msg_and_get_resp 2 info= 12 0xffffb0000f30 0xffffb6a9d8d8 12
sab_open_storage_command error= 0 rsp_code= 0
seco_os_abs_read_mu_message = 3, 0xffffb6a9d9b8, 24
seco_os_abs_open_mu_channel phdl=0x22734380 len=8
seco_os_abs_open_mu_channel -1 info 0x22734380 0x4181f8 0xffffeb6f3648
seco_os_abs_open_mu_channel phdl->fd=4 path=/dev/seco_mu2_ch0
sab_open_session_command 0 info= 0x22734380 0xffffeb6f35b0 12
06 03 10 17 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
seco_os_abs_send_mu_message = 4, 0xffffeb6f35c0, 12
seco_os_abs_read_mu_message = 4, 0xffffeb6f35b0, 12
06 03 10 e1 00 00 00 00 75 ed ba ca
seco_send_msg_and_get_resp 2 info= 12 0x22734380 0xffffeb6f35b0 12
sab_open_session_command 1 res= 0x00000000 0xcabaed75
hsm_open_session PASS
06 06 30 17 75 ed ba ca cd ab 00 00 34 12 00 00 64 00 01 00 ee 52 8b dd
seco_os_abs_send_mu_message = 4, 0xffffeb6f35e8, 24
seco_os_abs_read_mu_message = 4, 0xffffeb6f35d8, 12
06 03 30 e1 00 0e 00 00 0d ed ba ca
seco_send_msg_and_get_resp 2 info= 12 0x22734380 0xffffeb6f35d8 12
hsm_open_key_store_service ret:0x0
06 09 14 17 75 ed ba ca 00 00 00 00 00 00 34 d0 00 00 00 00 28 00 34 d0
seco_os_abs_send_mu_message = 4, 0xffffeb6f3628, 36
seco_os_abs_read_mu_message = 4, 0xffffeb6f3620, 8
06 02 14 e1 00 00 00 00 00 00 00 00
seco_send_msg_and_get_resp 2 info= 8 0x22734380 0xffffeb6f3620 8
Segmentation fault

0 件の賞賛
返信