flashing TOS into EFI partition

I am trying to flash tos.img from trusted little kernel from NVIDIA into the jetson-tk1 board’s EFI partition. Originally, I thought I could just put it in the EFI partition, however the flash.sh script seem to look for an efi.img. So I renamed the tos.img of the little kernel into efi.img, however when I try to flash the EFI partition, it hangs.

Can anyone recommend where I can flash an arbitrary binary into some partition on the Jetson board? I am assuming it hangs because nvflash checks to see if the efi.img is a real EFI img? Or am I completely wrong?

Can I define my own arbitrary partition in gnu_linux_fastboot_emmc_full.cfg? Like

[partition]
name=TLK
id=14
type=partition_table
allocation_policy=sequential
filesystem_type=basic
size=2097152
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=tos.img

Hello, quantumlight:
Generally, you can add user-defined data partition for TK1. Just check/change the script/configuration file.

Can you paste your log in both host PC and device UART console? We may know why flash hangs.

In my mind, I don’t think TK1 has tos.img release.

br
ChenJian