I’m looking for a way to flash the kernel and device tree to the TX2 NX. We’re using the initrd flash method for its ROOTFS_AB support and up until now we’re flashing the entire device in one hit using:
The problem we’ve having now is that we need to be able to do a kernel and device tree update without updating the entire root filesystem. I’ve read through the README_initrd_flash.txt but I wasn’t able to find a way to do this.
you should be able to enable “-k” option, initrd flash can flash one partition based on the partition label specified in the index file.
may I also confirm the JetPack release version you’re currently working with, thanks
Is it sufficient to replace the contents of the active ‘kernel’ and ‘kernel-dtb’ partitions with the kernel ‘Image’ file and ‘tegra186-p3636-0001-p3509-0000-a01.dtb’ respectively? Is there anything else which needs to be done?
Can I just ‘dd’ the files on to these partitions instead of using the l4t_initrd_flash.sh flash script if I’m doing an OTA to the device and need to run the update locally rather than via USB?
you cannot dd them directly, since those binary files were sign/encrypted before flashing into partitions.
however, you may try running flash script with --no-flash to generate sign/encrypted files, then you’ll able copy them with dd utility.
Word of caution: When using dd to fill in a partition, especially a signed partition (where the signature can add a few bytes), make sure the partition is large enough to hold the dd content.