Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

And failed again, there are no LEDs available. They are missing in device-tree. Let's add the on-board LED to the device-tree. This can be done with utility called DTC. To my big surprise this tool is not at all available for Windows PC. Help... A few hours later I have DTC executable that works on Windows. My coworker who made it possible sends win32 patches to the maintainers of DTC tool, and I add the DTC.EXE for free downloads.

To de-compile binary device tree file to textual version we an create a single line batch file DECOMPILE.BAT with this line inside:

dtc -I dtb -O dts devicetree.dtb -o devicetree.dts

To compile textual device tree file back to binary blob, we an create a single line batch file COMPILE.BAT with this line inside:

dtc -I dts -O dtb devicetree.dts -o devicetree.dtb
Note

It is better to keep the decompile.bat in different directory after first decompile, as some changes to the textual device tree file will get lost if we accidentially decompile the blob in the same directory where the modified DTS file is.

 

 

 

Zedboard OOB Design

The SD Card images delivered with zedboard (and available as OOB SD Card images) include a kernel 3.09 with GPIO-LEDS enabled on MIO7 with default trigger set to MMC (SD Card) activity. Writing none to LED trigger would allow direct programmatic control over MIO7 LED on zedboard (labelled LD9!). 

...