dwesterg / atlas-soc-ghrd

3 stars 9 forks source link

rstmgr missing from dts #6

Open olafmandel opened 7 years ago

olafmandel commented 7 years ago

The file arch/arm/boot/socfpga.dtsi from the kernel sources used by the linux-altera recipe specifies a rstmgr called rst and uses it in the resets lines of e.g. gmac1 (the ethernet MAC). This becomes the default DTB as described in the atlas_sd_card_image_creation.s script and the Linux kernel initializes Ethernet fine with that.

But when I try to use the ATLAS_SOC_GHRD/soc_system.dts to boot the machine, both the rst block and all resets lines are missing and the kernel fails to initialize the hardware with messages like these:

altera_hps2fpga_bridge sopc@0:fpgabridge@0: Could not get hps2fpga reset control!
altera_hps2fpga_bridge: probe of sopc@0:fpgabridge@0 failed with error -22
altera_hps2fpga_bridge sopc@0:fpgabridge@1: Could not get lwhps2fpga reset control!
altera_hps2fpga_bridge: probe of sopc@0:fpgabridge@1 failed with error -22
altera_hps2fpga_bridge sopc@0:fpgabridge@2: Could not get fpga2hps reset control!
altera_hps2fpga_bridge: probe of sopc@0:fpgabridge@2 failed with error -22
stmmaceth ff702000.ethernet: snps,phy-addr property is deprecated
stmmaceth ff702000.ethernet: Could not get reset control!
stmmaceth ff702000.ethernet: No sysmgr-syscon node found
stmmaceth ff702000.ethernet: Unable to parse OF data

Any idea how I can convince the sopc2dts tool to create a valid DTS and DTB?

dwesterg commented 7 years ago

i gave up on sopc2dts generating the entire dts and instead rip out the fpga portion and use the kernel dts source as a starting point. When i release the newer atlas ghrd it uses dts overlays for the fpga and the original kernel dts source.