4 compile device tree bolb, Bsp build environment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 28

Advertising
background image

BSP Build Environment

COMX-P2020 BSP User Guide (6806800L84B)

28

4.2.4

Compile Device Tree Bolb

1. To compile the device tree bolb, run the command: "make dtb" at the P2020 BSP directory:

[percy@localhost p2020]$ make dtb

make -C linux/kernel -f Makefile dtb

make[1]: Entering directory `/home/percy/p2020/linux/kernel'

make -C current -f blackadder.mk dtb-clean

make[2]: Entering directory `/home/percy/p2020/linux/kernel/linux-

2.6.32'

rm -f /local/tftpboot/COMX-P2020/current/comx.dtb

make[2]: Leaving directory `/home/percy/p2020/linux/kernel/linux-

2.6.32'

make -C current -f blackadder.mk dtb

make[2]: Entering directory `/home/percy/p2020/linux/kernel/linux-

2.6.32'

rm -f /local/tftpboot/COMX-P2020/current/comx.dtb

dtc -f -b 0 -I dts -O dtb -p 1024 -o /local/tftpboot/COMX-

P2020/current/comx.dtb arch/powerpc/boot/dts/blackadder.dts

DTC: dts->dtb on file "arch/powerpc/boot/dts/blackadder.dts"

make[2]: Leaving directory `/home/percy/p2020/linux/kernel/linux-

2.6.32'

make[1]: Leaving directory `/home/percy/p2020/linux/kernel'

[percy@localhost p2020]$

2. If the build is successful, the device tree bolb: comx.dtb can be found at the output

directory.
[percy@localhost p2020]$ ls -al /local/tftpboot/COMX-

P2020/current/comx.dtb

-rw-rw-r-- 1 percy percy 9824 Dec 13 11:35 /local/tftpboot/COMX-

P2020/current/comx.dtb

[percy@localhost p2020]$

Advertising