Hi nvidia:
I custom L4T kernel and just add a print in tegra_pcie_dw_probe function in pcie-tegra.c.And add an item refer to /boot/extlinux/extlinux.conf as following:
LABEL backup
MENU LABEL backup kernel
LINUX /boot/Image.backup
INITRD /boot/initrd
APPEND ${cbootargs} ......
I add my kernel image to /boot and resart xavier devkit,and select item 2 for extlinux.conf,L4T will restart after timeout.The log is in the attachment.I trace some log about it and found that there are some error info about sign as following:
I> L4T boot options
I> [1]: "primary kernel"
I> [2]: "backup kernel"
I> Enter choice:
[0047.165] I> Selected option: 2
[0047.165] I> Loading kernel ...
[0047.165] I> Loading kernel binary from rootfs ...
[0047.165] I> rootfs path: /sdmmc_user/boot/Image.backup
[0047.409] I> Loading kernel sig file from rootfs ...
[0047.409] I> rootfs path: /sdmmc_user/boot/Image.backup.sig
[0053.625] I> lookup_linear_dir:485: Invalid file block num
[0053.626] I> ext2_walk:142: 'Image.backup.sig' lookup failed
[0053.626] I> ext4_open_file:704: '/boot/Image.backup.sig' lookup failed
[0053.627] E> file /sdmmc_user/boot/Image.backup.sig open failed!!
[0053.627] W> Failed to load kernel sig file (err=202113041)
[0053.629] I> Validate kernel ...
[0053.632] I> T19x: Authenticate kernel (bin_type: 37), max size 0x5000000
[0053.639] E> Stage2Signature validation failed with SHA2!!
[0053.644] C> OEM authentication of kernel header failed!
[0053.649] W> Failed to validate kernel binary from rootfs (err=1077936152, fail=1)
[0053.657] W> Security fuse not burned, ignore validation failure
I refer to the chapter of Building the NVIDIA Kernel of https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3273/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html#wwpID0E0XD0HA and learn that i can use the commoand to sign kernel image:
$ ./l4t_sign_image.sh --file <filename> --chip 0x19 --key <keyfile>] --encrypt_key <encrypt_keyfile> --type <filetype> --minratchet_config <ratchet>
But i don’t know how to produce keyfile,encrypt_keyfile.Any suggustion is helpful.Thanks!
agx-xavier-reboot-using-mybuild-kernel.txt (38.0 KB)