Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

How to create a device tree for a custom arria 10 board?

Altera_Forum
Honored Contributor II
1,792 Views

Hi, 

has anyone expirence wirh creating a Linux device tree (using sopc2dts) for a custom arria 10 board? 

The default approach for a development board is: 

$ sopc2dts --input ghrd_10as066n2/ghrd_10as066n2.sopcinfo --output ghrd_10as066n2.dts --board hps_a10_common_board_info.xml --board hps_ 

a10_devkit_board_info.xml --board ghrd_10as066n2_board_info.xml --bridge-removal all --clocks 

But on a custom board i don't have the two xm files. Do i have to geneate the dts without those XML files and then edit everything additional needed by Hand?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
914 Views

I managed to get Linux to boot using the xml files from the gsrd. All I had to do was edit the name of the hps definition to match the one in my qsys system. If your design deviates from the gsrd (for example the led pios aren't there) the command when you generate the dtb will spit you an error. I forced the output and used it in my boot image and it worked.

0 Kudos
Reply