Overview

This page presents how to generate the device tree source and how to compile it to a device tree blob file that Linux needs.

gsrd-device-tree.png

Reference Information

For detailed information about the Device Tree Generator see Device Tree Generator User Guide.

Prerequisites

The following items are required:

Procedure

Cyclone V

1. Compile the GHRD as described in Compiling the Hardware Design to obtain the .sopcinfo file.

2. Start an Embedded Command Shell and go to GHRD folder (assumed here to be saved in the home folder):
$ ~/altera/14.0/embedded/embedded_command_shell.sh
$ cd ~/cv_soc_devkit_ghrd 

3. Run the Device Tree Generator
$ 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

This will generate the file ~/cv_soc_devkit_ghrd/socfpga.dtb required by Linux to boot.

Arria V

1. Compile the GHRD as described in Compiling the Hardware Design to obtain the .sopcinfo file.

2. Start an Embedded Command Shell and go to GHRD folder (assumed here to be saved in the home folder):
$ ~/altera/14.0/embedded/embedded_command_shell.sh
$ cd ~/av_soc_devkit_ghrd 

3. Run the Device Tree Generator
$ sopc2dts --input ghrd_5astfd5k3.sopcinfo\
--output socfpga.dtb\
--type dtb\
--board ghrd_5astfd5k3_board_info.xml\
--board hps_common_board_info.xml\
--bridge-removal all\
--clocks

This will generate the file ~/av_soc_devkit_ghrd/socfpga.dtb required by Linux to boot.

© 1999-2024 RocketBoards.org by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

Privacy Policy - Terms Of Use

This website is using cookies. More info. That's Fine