Forum Discussion
Altera_Forum
Honored Contributor
11 years agoCyclone V Dev Board - Problem using sopc2dts
Thanks in Advance.
We are using Qsys/Quarturs 14.1. Our linux release is Poky 8.0 - Linux version 3.9.0 We have taken the GSRD for the Cyclone V and added to the design a 16550 serial port on the HSMC connector. Then I have taken the generated *.sopcinfo to create the new *.dtb file utilizing the following command: sopc2dts --input gsrd_modified.sopcinfo --output socfpga.dtb --type dtb --board soc_system_board_info.xml --bridge-removal all --clocks I then replace the original *.dtb file with the newly created *.dtb file on the microSD card. While booting I get some WARNING messages with traces and the final message with a trace is: Unable to handle kernel paging at virtual address c08d400c ... Internal error: Oops: 807 [#1] SMP ARM ... I am enclosing the complete boot message. Am I doing something wrong in creating the *.dtb file? Is there a later kernel version I should be using?16 Replies
- Altera_Forum
Honored Contributor
Hi, follow the rules at this page:
www.alterawiki.com/wiki/sopc2dts in the section "Module and Interface Assignments in hw.tcl Influencing Sopc2dts" It seems that you did not setup your _hw.tcl for your custom ip components. regards - Altera_Forum
Honored Contributor
--- Quote Start --- Hi, I am working on Cyclon V soc kit,I want to generate .dts from sopcinfo file.I am not using GHRD design(that is prepared by altera).I am workng on my design in which I have added my custom IP core in qsys system. My issue is how ca I prepare sos_system_board_info.xml and hps_clock_info.xml ?? what I run this command without these .xml file I got following message. command: $ sopc2dts --input soc_system.sopcinfo --output socfpga.dts --board soc_system_board_info.xml --board hps_clock_info.xml message : Exception occurred: use -v for more information Exception occurred: use -v for more information Component i2c_master of class sls_avalon_i2c_m is unknown Component video_data_stream of class video_data_stream is unknown Component i2c_master of class sls_avalon_i2c_m is unknown Component video_data_stream of class video_data_stream is unknown Please let me know if you have any idea about ,how to prepare xml files. --- Quote End --- You did not assign the correct Module and Interface Assignments in the _hw.tcl of you custom ip regards - Altera_Forum
Honored Contributor
Hi meds7,
This is a part of my .dts file: in that my module is ''vidoe data stream' ,other modules mentioned with compitible options and my modules is with unknown ,but I can't find any option in .tcl that represents compatible option.one more thins is ,this is my custom module so it doesn't have compatible options in that. //===================================== jtag_uart: serial@0x20000 { compatible = "altr,juart-14.1", "altr,juart-1.0"; reg = <0x00020000 0x00000008>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 42 4>; }; //end serial@0x20000 (jtag_uart) video_data_stream_0: unknown@0x30040 { compatible = "unknown,unknown-1.0"; reg = <0x00030040 0x00000040>; }; //end unknown@0x30040 (video_data_stream_0) sysid_qsys: sysid@0x10000 { compatible = "altr,sysid-14.1", "altr,sysid-1.0"; reg = <0x00010000 0x00000008>; id = <2899645456>; /* embeddedsw.dts.params.id type NUMBER */ timestamp = <1437468644>; /* embeddedsw.dts.params.timestamp type NUMBER */ }; //end sysid@0x10000 (sysid_qsys) //===================================== Let me know if you have any idea about that. Thanks for reply. - Altera_Forum
Honored Contributor
--- Quote Start --- Hi meds7, This is a part of my .dts file: in that my module is ''vidoe data stream' ,other modules mentioned with compitible options and my modules is with unknown ,but I can't find any option in .tcl that represents compatible option.one more thins is ,this is my custom module so it doesn't have compatible options in that. //===================================== jtag_uart: serial@0x20000 { compatible = "altr,juart-14.1", "altr,juart-1.0"; reg = <0x00020000 0x00000008>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 42 4>; }; //end serial@0x20000 (jtag_uart) video_data_stream_0: unknown@0x30040 { compatible = "unknown,unknown-1.0"; reg = <0x00030040 0x00000040>; }; //end unknown@0x30040 (video_data_stream_0) sysid_qsys: sysid@0x10000 { compatible = "altr,sysid-14.1", "altr,sysid-1.0"; reg = <0x00010000 0x00000008>; id = <2899645456>; /* embeddedsw.dts.params.id type NUMBER */ timestamp = <1437468644>; /* embeddedsw.dts.params.timestamp type NUMBER */ }; //end sysid@0x10000 (sysid_qsys) //===================================== Let me know if you have any idea about that. Thanks for reply. --- Quote End --- Hi, I mean the _hw.tcl file that belongs to your custom ip component. You said you designed several custom Avalon components which you instantiate in your Qsys design. You need to setup a _hw.tcl file for your component where you should define some settings. Please have a look at this page; http://www.alterawiki.com/wiki/sopc2dts under section Module and Interface Assignments in hw.tcl Influencing Sopc2dts Regards - Altera_Forum
Honored Contributor
--- Quote Start --- Hi meds7, This is a part of my .dts file: in that my module is ''vidoe data stream' ,other modules mentioned with compitible options and my modules is with unknown ,but I can't find any option in .tcl that represents compatible option.one more thins is ,this is my custom module so it doesn't have compatible options in that. //===================================== jtag_uart: serial@0x20000 { compatible = "altr,juart-14.1", "altr,juart-1.0"; reg = <0x00020000 0x00000008>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 42 4>; }; //end serial@0x20000 (jtag_uart) video_data_stream_0: unknown@0x30040 { compatible = "unknown,unknown-1.0"; reg = <0x00030040 0x00000040>; }; //end unknown@0x30040 (video_data_stream_0) sysid_qsys: sysid@0x10000 { compatible = "altr,sysid-14.1", "altr,sysid-1.0"; reg = <0x00010000 0x00000008>; id = <2899645456>; /* embeddedsw.dts.params.id type NUMBER */ timestamp = <1437468644>; /* embeddedsw.dts.params.timestamp type NUMBER */ }; //end sysid@0x10000 (sysid_qsys) //===================================== Let me know if you have any idea about that. Thanks for reply. --- Quote End --- You said you made some custom ip components that you use in Qsys. When you did that you needed to create a corresponding _hw.tcl file. That one seems to miss some essential Module and Interface Assignments.. Look at the altera wiki for : [h=2]Module and Interface Assignments in hw.tcl Influencing Sopc2dts[/h] - Altera_Forum
Honored Contributor
Also have a look at the "Creating Qsys Components" chapter of the quartus II handbook. In the latest version 15.0 it is chapter 6. There you see the _hw.tcl for you custom component defined. On the wiki that I showed you additional info is found on additional module assignments that influence the creation of your .dts file after you feed it to sopc2tds.
regards