4.2.3 Build DT- Overlay

By default, KERNEL_DIR in the Makefile is set to a linux directory that would be under the parent directory in the directory tree that is ../linux. Change it and provide the path to the newly build kernel to this variable KERNEL_DIR. Our newly build zImage and dtb file are available in this kernel.

This is needed because the DT Overlay repository uses the Device Tree Compiler (DTC) from the kernel source tree.

Build the Image Tree Blob (.itb) file using the following commands:
$ make sama5d3_xplained_dtbos
$ make sama5d3_xplained.itb

The process will generate sama5d3_xplained.itb file and is available in the dt-overlay-at91 directory.