Copying Yocto Built Products to the Release

By default, bootburn does not pick up Yocto built, such as quickboot, kernel, and so on, for flashing due to known limitations. These steps update the Yocto built images back to the release so that bootburn picks it up:

  1. Change to the Yocto deploy directory:
    cd <top>/drive-linux_src/yocto/build/tmp/deploy/images/${MACHINE}
  2. Copy linux and linux-DTBs to the release:
    cp *.dtb <top>/drive-linux/kernel/preempt_rt/
  3. Copy kernel images and modules to the release:
    cp Image <top>/drive-linux/kernel/preempt_rt/images/
     cp vmlinux <top>/drive-linux/kernel/preempt_rt/images/
     cp System.map <top>/drive-linux/kernel/preempt_rt/images/
     tar xf modules-${MACHINE}.tgz
     cp -r lib/modules/<KERNEL_VER>-rt<>-tegra <top>/drive-linux/kernel/preempt_rt/modules
  4. Copy initramfs to the release:
    cp tegra-initramfs-boot-*.cpio <top>/drive-linux/filesystem/initramfs.cpio
  5. Copy the recovery initramfs to the release:
    cp tegra-initramfs-recovery-*.cpio <top>/drive-linux/filesystem/recovery-initramfs.cpio
  6. Place the drive-os-av rootFS image at the location specified by the bootburn configurations:
    cd <top>/drive-linux/filesystem/targetfs-images
    cp tegra-drive-os-av-image-${MACHINE}.img <top>/drive-linux/filesystem/targetfs-images
    ln -sf <top>/drive-linux/filesystem/targetfs-images/tegra-drive-os-av-image${MACHINE}.img <top>/drive-linux/filesystem/targetfs.img