Hi Riboyama,
Thank you so much for your help for UEFI it is works well except some warning message that I can remove by myself if I recompile uefi binary. So thank again.
For my issue with EKS you answer some question I have, user key need to be 0 to be used with gen_ekb. But I have always an issue.
b) If no…, could you please check whether the key2.key
includes zeros key.
I try without SBK and PKC by using KEK2 to 0 and user_key to 0 on unfused board :
lootus@ubuntu:/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/keys$ sudo python3 gen_ekb.py -kek2_key key2.key -fv fv_ekb -in_sym_key user.key -in_sym_key2 disk.key -out ../bootloader/eks_t194.img
lootus@ubuntu:/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/keys$ cat key2.key
00000000000000000000000000000000
lootus@ubuntu:/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/keys$ cat user.key
00000000000000000000000000000000
lootus@ubuntu:/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/keys$ cat disk.key
7B233A2F57E7EFA655A6F7B963E8EBCC
lootus@ubuntu:/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/keys$ cat fv_ekb
bad66eb4484983684b992fe54a648bb8
sudo python3 gen_ekb.py -kek2_key key2.key -fv fv_ekb -in_sym_key user.key -in_sym_key2 disk.key -out ../bootloader/eks_t194.img
lootus@ubuntu:/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra$ sudo ROOTFS_ENC=1 ./flash.sh -i keys/disk.key jetson-xavier-nx-devkit-emmc mmcblk0p1
[sudo] Mot de passe de lootus :
###############################################################################
# L4T BSP Information:
# R35 , REVISION: 3.1
# User release: 0.0
###############################################################################
Change device boot from mmcblk0p1 to internal
# Target Board Information:
# Name: jetson-xavier-nx-devkit-emmc, Board Family: t186ref, SoC: Tegra 194,
# OpMode: production, Boot Authentication: NS,
# Disk encryption: enabled ,
###############################################################################
copying soft_fuses(/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
./tegraflash.py --chip 0x19 --applet "/local/dev/photon-5.1/nvidia_sdk/JetPack_5.1.1/Linux_for_Tegra/bootloader/mb1_t194_prod.bin" --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins "mb2_applet nvtboot_applet_t194.bin" --cmd "dump eeprom boardinfo cvm.bin;reboot recovery"
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands
] ▒▒: 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
E/TC:0 0 ekb_extraction_process:227 Bad parameter: eks image not correct
E/TC:0 0 jetson_user_key_pta_init:801 jetson_user_key_pta_init: Failed (ffff0006).
E/TC:0 0 call_initcalls:43 Initcall __text_start + 0x000c3240 failed
I don’t understand this kek2.key work on jetpack 4 , I try to change kek2.key on jetpack 4 by changing a byte and of course It doesn’t work with a similar issue so my kek2 key on jetpack 4 is right but the same for jetpack 5 . I am so confused
So you seems right my kek2 key is not the right one . Are your really sure that an old board fused witht odmfuse from jetpack 4 is not an issue to use this board fused to be usable with jetpack 5 ?
Any change on hardware SOM that explain that ?
I am crazy !
Best julien.