创建内核设备树(TI TRM)

来源:互联网 发布:贾巴里帕克体测数据 编辑:程序博客网 时间:2024/06/06 18:13

Compiling the Device Tree Binaries

Starting with the 3.8 kernel each TI evm has an unique device tree binary file required by the kernel. Therefore, you will need to build and install the correct dtb for the target device. All device tree files are located at arch/arm/boot/dts/. Below list various TI evms and the matching device tree file.

Device Tree File Name Per BoardBoardsDevice Tree FileBeaglebone Blackam335x-boneblack.dtsAM335x General Purpose EVMam335x-evm.dtsAM335x Starter Kitam335x-evmsk.dtsAM335x Industrial Communications Engineam335x-icev2.dtsAM437x General Purpose EVMam437x-gp-evm.dts, 
am437x-gp-evm-hdmi.dts (HDMI)AM437x Starter Kitam437x-sk-evm.dtsAM437x Industrial Development Kitam437x-idk-evm.dtsAM57xx EVMam57xx-evm.dts, 
am57xx-evm-reva3.dts (revA3 EVMs )AM572x IDKam572x-idk.dtsK2H/K2K EVMkeystone-k2hk-evm.dtsK2E EVMkeystone-k2e-evm.dtsK2L EVMkeystone-k2l-evm.dtsK2G EVMkeystone-k2g-evm.dts

To build an individual device tree file find the name of the dts file for the board you are using and replace the .dts extension with .dtb. Then run the following command:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- <dt filename>.dtb

The compiled device tree file with be located in arch/arm/boot/dts.

For example, the Beaglebone Black device tree file is named am335x-boneblack.dts. To build the device tree binary you would run:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-boneblack.dtb
0 0