Obtaining Linux device trees from the SHEL flow
This page describes how to obtain Linux device trees from the SHEL flow. This is intended for users who want to use thier own build system and just need the Linux compatible device tree.
Table of Contents
Obtaining Linux device trees
Although nominally system device trees are intended to be compatible with classic Linux device trees, users must be very careful when reviewing system device trees for working directly in Linux (see Understanding System Device Tree vs. Device Tree | What is a System Device Tree? for details). AMD™ Recommends using gen-machine-conf or lopper to obtain automatically translated Linux device trees.
Below is a brief example of how to use SDTGen
, followed by gen-machineconf
, to obtain Linux device tree files:
Running SDTGen: GitHub - Xilinx/system-device-tree-xlnx
Running gen-machine-conf:
gen-machineconf parse-sdt --hw-description <path_to_sdtgen_output_directory> -c <conf-directory> -l <path-to-build-directory>/build/conf/local.conf --machine-name <your machine name here>
Viewing the Device Tree Files:
ls ./conf/dts/<your machine name here>/<cpu type>-linux.dts
Related content
© Copyright 2019 - 2022 Xilinx Inc. Privacy Policy