Forum Discussion
Altera_Forum
Honored Contributor
12 years agoEDS 14.0 tool dtc
So i'm trying to edit my socfpga.dtb file bij using the socfpga.dts file. But with EDS 13.1 you could do "dtc -I dts -O dtb -o socfpga.dtb socfpga.dts". Only with EDS 14.0 the command doesn't work...
Altera_Forum
Honored Contributor
12 years agoSolved...
So i tried to use DTC (device tree converter) under windows, but i guess this doedn't work well, or i didn't do i right. But under Linux it works fine. I use Ubuntu 12.04LTS. You can get the converter by typing "sudo apt-get install device-tree-compiler" in the consol of you linux machine. after that you can use the converter to convert DTS to DTB and visa versa. (Underneath a peace of infor from https://git.kernel.org/cgit/utils/dtc/dtc.git/tree/documentation/manual.txt) 2) Description The Device Tree Compiler, dtc, takes as input a device-tree in a given format and outputs a device-tree in another format. Typically, the input format is "dts", a human readable source format, and creates a "dtb", or binary format as output. The currently supported Input Formats are: - "dtb": "blob" format. A flattened device-tree block with header in one binary blob. - "dts": "source" format. A text file containing a "source" for a device-tree. - "fs" format. A representation equivalent to the output of /proc/device-tree where nodes are directories and properties are files. The currently supported Output Formats are: - "dtb": "blob" format - "dts": "source" format - "asm": assembly language file. A file that can be sourced by gas to generate a device-tree "blob". That file can then simply be added to your Makefile. Additionally, the assembly file exports some symbols that can be used. As far as the Device tree go's. Myn doesn't work either when i creat it with Sopc2dts. i use the on from http://www.rocketboards.org/foswiki/documentation/gsrd140devicetreegenerator You must ofc change the device tree to match your board. Good luck.