If anyone has already done the work of adapting Zephyr to a new platform, what did you have to do?
I was hoping to take the HiFive1 support and tweak it for my core; I mostly just need to change the memory map and a little bit of the from-reset startup code. I intend to have RAM addressed from 0x00000000 up, with reset starting at 0x00000000. My core has a little bit of special stuff near 0, so at address 0 I need to have a jump instruction to the real code.
I've already gotten lost trying to figure out the linker script; I can't figure out where the variable definitions for CONFIG_RISCV_ROM_BASE_ADDR, CONFIG_RISCV_ROM_SIZE, CONFIG_RISCV_RAM_BASE_ADDR, and RISCV_RAM_SIZE are supposed to be. It looks like there are non-RISCV-specific definitions for CONFIG_FLASH_BASE_ADDRESS and CONFIG_SRAM_BASE_ADDRESS, but I haven't really found where those are set either.
If need be, I can change my RAM base address, but I'd prefer not to.
Thanks in advance!
Eric