Honored Contributor II
03-23-2018 02:16 AM
Hi,I solved an issue I was having during Angstrom Linux boot using a DE10-Standard and my own socfpga.dts file and wanted to share the solution on this forum in case someone else runs into the same problem. Here are the details of the software and hardware I was using: Angstrom v2014.12 Linux DE10-Standard Quartus Prime Version 17.1.0 Build 590 10/25/2017 SJ Lite Edition Intel FPGA Embedded Command Shell Version 17.1 [Build 590] sopc2dts 17.1 soc_system.rbf not installed in microSD card. The problem I was encountering was that after I built my own socfpga.dtb, Linux would boot but end up hanging at "flash: 1 slots initialized". I also didn't want to have a soc_system.rbf file in the microSD. Below is an excerpt of what I would see in PuTTY during boot. [ 1.426933] hub 1-0:1.0: 1 port detected [ 1.431507] usbcore: registered new interface driver usb-storage [ 1.437844] mousedev: PS/2 mouse device common for all mice [ 1.443666] i2c /dev entries driver [ 1.448075] Synopsys Designware Multimedia Card Interface Driver [ 1.454204] dw_mmc ff704000.flash: supports-highspeed property is deprecated. [ 1.461413] dw_mmc ff704000.flash: IDMAC supports 32-bit address mode. [ 1.467960] dw_mmc ff704000.flash: Using internal DMA controller. [ 1.474034] dw_mmc ff704000.flash: Version ID is 240a [ 1.479110] dw_mmc ff704000.flash: DW MMC controller at irq 34,32 bit host data width,102 [ 1.488369] dw_mmc ff704000.flash: Got CD GPIO [ 1.524774] dw_mmc ff704000.flash: 1 slots initialized <hang would occur here> A successful boot would show this instead.. [ 1.474034] dw_mmc ff704000.flash: Version ID is 240a [ 1.479110] dw_mmc ff704000.flash: DW MMC controller at irq 34,32 bit host data width,102 [ 1.488369] dw_mmc ff704000.flash: Got CD GPIO [ 1.524774] dw_mmc ff704000.flash: 1 slots initialized [ 1.530535] ledtrig-cpu: registered to indicate activity on CPUs .............. ........ .... .. The key here is the last line that shows ledtrig-cpu .
In order for the boot up process to make past the sentence about "flash", I had to edit a file called hps_common_board_info.xml. I added the following text: (Please see green text below). <DTAppend name="label" type="string" parentlabel="led_hps0" val="hps_led0"/> <DTAppend name="gpios" parentlabel="led_hps0" > <val type="phandle">hps_0_gpio1_porta</val> <val type="number">24</val> <val type="number">0</val> </DTAppend> <dtappend name="linux,default-trigger" type="string" parentlabel="led_hps0" val="heartbeat"/> Once this edit was made and I re-ran sopc2dts, the problem went away and Linux boots all the way up to the login prompt. Regards, Raul