MainframeReboot commented on issue #12356: URL: https://github.com/apache/nuttx/issues/12356#issuecomment-2123431521
Thanks for your reply @acassis. I can definitely look into a blog post of my findings once I get this to work! I took a look, and I am not sure where the init ELF is supposed to go. I built the apps, generated a `boot_romfsimg.h` header file and then recompiled NuttX using the header. I have since tried another approach to try and remove the relocation part out of the equation. I followed the link that @lupyuen posted [above](https://github.com/lupyuen/quickjs-nuttx#full-linking-for-nuttx-apps) and have been successful in generating fully linked applications that are significantly smaller in size. I should mention that before I performed the full link of the apps I did some reach into the address environments and the MMU. While doing this I stumbled upon another article written by @lupyuen covering the MMU: [https://lupyuen.codeberg.page/articles/mmu.html](https://lupyuen.codeberg.page/articles/mmu.html). Using what I learned in this article, I set my address environment as follows: - `CONFIG_ARCH_TEXT_VBASE=0xC0000000` - `CONFIG_ARCH_DATA_VBASE=0xC0400000` - `CONFIG_ARCH_HEAP_VBASE=0xC0800000` Then I configured the `gnu-elf.ld` script to match these values before I built the apps. This enabled the `init` module to be loaded but ultimately resulted in a segmentation fault:  I am still attempting to get the default icicle knsh config to run with minor tweaks based on articles I read as well as other RISC-V configs. I have noticed that the icicle knsh config has `CONFIG_ARCH_VMA_MAPPING` enabled as well as addresses set for `CONFIG_ARCH_SHM_VBASE` and `CONFIG_ARCH_KMAP_VBASE`, something I haven't seen in other knsh profiles. I will look more into this next. In the meantime, if anyone has another other suggestions I could try I would greatly appreciate it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org