Preparation
truncate -s20G d1.img
truncate -s20G d2.img
truncate -s20G d3.img
truncate -s20G d4.img
set ld1 (sudo losetup --show --find d1.img)| # 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 |
| # https://solarianprogrammer.com/2018/05/06/building-gcc-cross-compiler-raspberry-pi/ | |
| # Ubuntu 18.04 at the time of writing (2019-04-02) | |
| FROM ubuntu:latest | |
| # Install some tools and compilers + clean up | |
| RUN apt-get update && \ | |
| apt-get install -y git wget gcc-8 g++-8 cmake gdb gdbserver bzip2 && \ | |
| apt-get clean autoclean && \ | |
| apt-get autoremove -y && \ |