Compile experimental DTB without building entire kernel

I am trying to work on an experimental device tree.
I am installing the DTS file like most targets, by having a custom patch file that creates the DTS in the linux build directory.
I can then build and install the DTB file by building the system.

I would like to just be able to experiment with changes to the DTS file by modifying it within the build directory and obtaining and testing the DTB on my target device without recompiling the system or even the kernel.

Can anyone suggest a way of accomplishing this?

Figured this out and posting here for anyone else:

  1. find the linux directory within the build directory
  2. configure your toolchain - something like this:
export STAGING_DIR=/home/user/openwrt/staging_dir
export TOOLCHAIN_DIR=$STAGING_DIR/toolchain-aarch64_generic_gcc-7.5.0_musl
export ARCH=arm64
export CROSS_COMPILE=aarch64-openwrt-linux-
  1. The .config in the Linux directory is incomplete, so you need to copy config.set to .config
  2. execute "make dtbs" - dtbs generated in the same directory as their corresponding dts files.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.