Hi Hannes,

On 7/9/22 2:45 PM, Hannes Winkler wrote:
> Actually, I did replace the board.dtb with the `sun20i-d1-nezha.dtb` generated
> by your kernel build, so that should be fine, but yeah if the nezha dtb won't
> work on R01 anyway then that's probably why it didn't work

Ah, if you use a DTB from the kernel build, there is a different reason why it
would not work. Some information in the devicetree, such as the RAM size, is
automatically detected at runtime. That information is patched into the
devicetree by the firmware (SPL, OpenSBI, U-Boot) to tell Linux about it.

But that patching only happens to the devicetree that is built in to the
firmware package. If you load a DTB from extlinux.conf, it will not be patched,
and Linux will think the board has zero RAM. That causes the crash.

> Though I just found some the nezha board dts
> somewhere: 
> https://github.com/YuzukiHD/Buildroot-YuzukiSBC/blob/master/buildroot/board/awol/nezha-d1s/dts/linux/sun20i-d1s-nezha-linux.dts
> 
> So I could just diff it to the board.dts of the allwinner r01 linux and 
> roughly
> see what I need to change in your mainline forks' device tree right?

You could, assuming both downstream devicetrees were complete and accurate to
start with. It would still be more work than using the schematic.

>> Now that the R01 core board schematic has been released, I plan to do this 
>> in the next few days.
> 
> Thanks, appreciate your work!

Thank you!

Regards,
Samuel

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/f2f74f4d-31d0-3259-4aae-35e48ea0d5c5%40sholland.org.

Reply via email to