Adding support for visionfive2 #65545
-
I and @pfarwsi are working on adding support for Starfive Visionfive 2 based on the JH7110 SoC. There is support for the SoC family of JH71xx family. We started with an empty device tree and gradually started adding support for uart. Build instructions:
Our build fails with
The whole build log is available on pastebin: https://pastebin.com/RN0ym1UG We are unsure on how to proceed further with this error. Thank You! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
New updates!
The build proceeds till the step Linking C executable zephyr/zephyr_pre0.elf before it errors out. I have upstreamed the commit here Build Instructions
The build fails with
The whole build log is available on pastebin: https://pastebin.com/LPiGQF6Y How can I debug those invalid memory region errors? |
Beta Was this translation helpful? Give feedback.
-
The above devicetree issue is solved. |
Beta Was this translation helpful? Give feedback.
-
Hi, I made some progress today. The ROM_BASE macro need to be defined in the linker script, and it's value comes from your devicetree configuration. As following:
So, in my case, after I set the value of CONFIG_SRAM_BASE_ADDRESS by declaring a /chosen/zephyr,sram node in the devicetree and set CONFIG_XIP=n, the issue is resolved. |
Beta Was this translation helpful? Give feedback.
Hi, I made some progress today. The ROM_BASE macro need to be defined in the linker script, and it's value comes from your devicetree configuration. As following: