I only changed tegra264-p4071-0000+p3834-0008-nv.dts file. I want to replace the tegra264-p4071-0000+p3834-0008-nv.dtb with the new one that I compiled out. How to do this?
Using Linux_for_tegra command or replace the one in /boot/dtb/ on dev-kit directly?
Decompile:
dtc -I dtb -O dts -o base.dts /boot/dtb/kernel_tegra264-p4071-0000+p3834-0008-nv.dtb
Edit: base.dts
Make your changes to it.
Recompile:
dtc -I dts -O dtb -o new_kernel_tegra264-p4071-0000+p3834-0008-nv.dtb base.dts
Copy it to /boot/dtb/
sudo cp new_kernel_tegra264-p4071-0000+p3834-0008-nv.dtb /boot/dtb/new_kernel_tegra264-p4071-0000+p3834-0008-nv.dtb
cat /boot/extlinux/extlinux.conf
Copy the block that is similar to:
LABEL primary
MENU LABEL primary kernel
LINUX /boot/Image
INITRD /boot/initrd
APPEND ${cbootargs} root=PARTUUID=ec54d0d7-993a-4e5a-ae95-f029ddb3284c rw rootwait rootfstype=ext4 mminit_loglevel=4 earlycon=tegra_utc,mmio32,0xc5a0000 console=ttyUTC0,115200 clk_ignore_unused firmware_class.path=/etc/firmware fbcon=map:0 efi=runtime audit_backlog_limit=8192 video=efifb:off console=tty0
Edit /boot/extlinux/extlinux.conf
Paste what you copied underneath the existing "LABEL primary" block and edit the copy like following; keeping your Thor's APPEND line, which may be different than mine.
LABEL backup
MENU LABEL backup kernel
LINUX /boot/Image
FDT /boot/dtb/kernel_tegra264-p4071-0000+p3834-0008-nv.dtb
INITRD /boot/initrd
APPEND ${cbootargs} root=PARTUUID=ec54d0d7-993a-4e5a-ae95-f029ddb3284c rw rootwait rootfstype=ext4 mminit_loglevel=4 earlycon=tegra_utc,mmio32,0xc5a0000 console=ttyUTC0,115200 clk_ignore_unused firmware_class.path=/etc/firmware fbcon=map:0 efi=runtime audit_backlog_limit=8192 video=efifb:off console=tty0
Insert next line in between LINUX and INITRD lines of the existing "LABEL primary"
FDT /boot/dtb/kernel_tegra264-p4071-0000+p3834-0008-nv.dtb