Wiki

This version is outdated by a newer approved version.DiffThis version (11 Aug 2015 20:21) was approved by Michael Hennerich.The Previously approved version (20 Jul 2015 10:59) is available.Diff

This is an old revision of the document!


Tips & Tricks

Customizing the device tree on the target

The device tree is a data structure for describing hardware. Rather than hard coding every detail of a device into an operating system, many aspect of the hardware can be described in a data structure that is passed to the operating system at boot time.

For your convenience – all device tree files (dtb) for our designs are included in the SD Card boot partition. Sometimes it's desired to change certain device tree properties permanently.

For example a custom board has a different reference clock.

  1. Mount the FAT32 Boot partition by clicking on the 537MB Volume Icon on the desktop
  2. Open a shell by clicking ion the Terminal Icon on the desktop (or CTRL+ALT+t)
  3. Now convert the devictree.dtb into a dts file
  4. Edit the file (mousepad or vi)
  5. Convert the devictree.dts back into its binary format.
  6. Unmount the file system (right click)

This specifies any shell prompt running on the target

analog@analog:~$ cd /media/analog/C442-6587/
analog@analog:/media/analog/C442-6587$ dtc -I dtb devicetree.dtb -O dts -o devicetree.dts
analog@analog:/media/analog/C442-6587$ mousepad devicetree.dts &
analog@analog:/media/analog/C442-6587$ dtc -I dts devicetree.dts -O dtb -o devicetree.dtb
analog@analog:/media/analog/C442-6587$ 

resources/eval/user-guides/ad-fmcomms2-ebz/software/linux/zynq_tips_tricks.1439317266.txt.gz · Last modified: 11 Aug 2015 20:21 by Michael Hennerich