E/TC:00 00 ekb_extraction_process:211 Bad parameter: eks image not correct
E/TC:00 00 jetson_user_key_pta_init:898 jetson_user_key_pta_init: Failed (ffff0006).
E/TC:00 00 call_initcalls:43 Initcall __text_start + 0x000f2848 failed
I/TC: Primary CPU switching to normal world boot
....
[ 12.334014] ERROR: fail to unlock the encrypted dev /dev/nvme0n1p2.
[ 12.343291] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
What is the solution for this?
I removed the eks_t234.img from bootloader directory.
Then I copied the eks_t234.img from optee into bootloader directory with sudo.
And confirm that the eks_t234.img is copied.
please check eks image did not overwrite by l4t_initrd_flash.sh $ md5sum ./tools/kernel_flash/images/internal/eks_t234_sigheader.img.encrypt results should be identical with the… bootloader/eks_t234_sigheader.img.encrypt.
please also run hexdump to examine the EKS image you’ve created.
FYI, there are 4 magic bytes at the beginning of the EKS image, they are: "EEKB".
if these 4 bytes are wrong, you will also see "eks image not correct" failure.
for example,
may I double confirm the script file you’re used to generate EKS image.
for instance, did you download [Driver Package (BSP) Sources] via Jetson Linux 35.4.1 | NVIDIA Developer.
and… you should execute this file to create a customize EKS image. $public_sources/r35.4.1/Linux_for_Tegra/source/public/atf_and_optee/optee/samples/hwkey-agent/host/tool/gen_ekb/gen_ekb.py