| 76 | | See [wiki:/ventana/bootloader] for details on how the DTB filename is chosen and loaded. |
| | 76 | See [wiki:/ventana/bootloader] for details on how the DTB filename is chosen and loaded. |
| | 77 | |
| | 78 | == Adding New Devices to the Device Tree |
| | 79 | For customers interested in adding a new device to an existing controller, see the [wiki:/SPI SPI] wiki page for an example of the process. |
| | 80 | |
| | 81 | == Compiling the Device Tree |
| | 82 | If you need to change the device-tree you can easily compile it on a Linux system using the dtc app from the device-tree-compiler package: |
| | 83 | {{{#!bash |
| | 84 | apt-get install device-tree-compiler |
| | 85 | dtc -O dtb -o imx6dl-gw51xx.dtb imqx6dl-gw51xx.dts |
| | 86 | }}} |
| | 87 | You can also de-compile a dtb back to a dts: |
| | 88 | {{{#!bash |
| | 89 | $ dtc -I dtb -O dts imx6dl-gw51xx.dtb |
| | 90 | }}} |