How do I create a device tree in SoC EDS v15.1?
SoC EDS/DS-5
SoC FPGA
Category: SoCs
Tools: SoC EDS
Device: Arria® V, Cyclone® V
To create a device tree for your custom board, run the following commands from the SoC EDS Embedded Command Shell:
<Procedure>
- Create any working directory. (e.g. C:\Work\cv_soc_devkit_ghrd)
$ mkdir "C:\Work\cv_soc_devkit_ghrd" - Change to the working directory you created.
$ cd "C:\Work\cv_soc_devkit_ghrd" - Copy the soc_system.sopcinfo file generated by the design for your custom board to your working directory.
- Copy the following two XML files included in SoC EDS to your working directory.
$ cp "C:\altera\15.1\embedded\examples\hardware\cv_soc_devkit_ghrd\hps_common_board_info.xml"
$ cp "C:\altera\15.1\embedded\examples\hardware\cv_soc_devkit_ghrd\soc_system_board_info.xml" - Refer to https://rocketboards.org/foswiki/view/Documentation/GSRDV151DeviceTreeGenerator and rewrite the copied XML file with a text editor for your custom board.
- Running the sopc2dts command below generates the socfpga.dtb file.
$ sopc2dts --input soc_system.sopcinfo\
--output socfpga.dtb\
--type dtb\
--board soc_system_board_info.xml\
--board hps_common_board_info.xml\
--bridge-removal all\
--clocks
<Note>
- Here is an example when SoC EDS is installed in C:\altera\15.1.
- If you are targeting the Arria V SoC development kit, replace cv_soc_devkit_ghrd with av_soc_devkit_ghrd in the command above.
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.