Skip to content

Instantly share code, notes, and snippets.

@TobidieTopfpflanze
Last active November 7, 2024 06:08
Show Gist options
  • Save TobidieTopfpflanze/c162f551ffc4a2be21dbd168371ef347 to your computer and use it in GitHub Desktop.
Save TobidieTopfpflanze/c162f551ffc4a2be21dbd168371ef347 to your computer and use it in GitHub Desktop.
Decompile DTB
# Decompile
dtc -I dtb -O dts -o devicetree.dts /boot/dtb/<your_devicetree_file_name>.dtb
# Compile
dtc -I dts -O dtb devicetree.dts -o <your_devicetree_file_name>.dtb
# Merge with DTBO
fdtoverlay -i modified-base.dtb -o modified-full.dtb /boot/tegra194-p3668-all-p3509-0000-user-custom.dtbo
# DTS from fs
dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment