de10-nano icon indicating copy to clipboard operation
de10-nano copied to clipboard

Wrong dtb file in Arch Linux ARM image

Open boeingflieger opened this issue 3 years ago • 3 comments

There is the right name in the U-Boot environment

=> print fdtfile fdtfile=socfpga_cyclone5_de10_nano.dtb

But the DE0 dtb file in the FAT32 partition

socfpga_cyclone5_de0_nano_soc.dtb

boeingflieger avatar Oct 19 '21 20:10 boeingflieger

Are you saying that the arch linux arm image is using the de0 dtb instead of the de10 dtb which is present in U-boot?

This is intentional. I have explained the reason for doing this in this section. The short answer is, I don't believe the de10 device tree is up to date in u-boot and linux sources. But the de0 device tree seems to be in sync between the two sources. Also, the de0 device tree works great on the de10 so I'm okay to stick with it.

zangman avatar Oct 19 '21 23:10 zangman

Sorry, I did not see that. Just tried the image without reading docs. Excellent explanation. But should then fdtfile not point to the de0 dtb?

boeingflieger avatar Oct 20 '21 06:10 boeingflieger

The way I set it up, U-boot uses it's own device tree which defaults to the de10. U-boot is a mini OS of sorts, it needs to have a device tree as well so that the peripherals (ethernet, sdram etc) are available to it. And it bundles up the device tree separate from the kernel.

In this section, we are just using the default build configuration for U-boot. This ends up using the device tree for de10.

In any case, what you are seeing is just the file name. It doesn't matter as long as the device details are correct in the file :).

zangman avatar Oct 22 '21 05:10 zangman