aviralgarg05 commented on PR #18373: URL: https://github.com/apache/nuttx/pull/18373#issuecomment-3909865949
> Hi @aviralgarg05 thanks for the rework. Although the proposed solution might work it might be limited by the available memory. > > I think the simplest and best way to boot a different image is to use `ioctl(fd, BIOC_PARTINFO, &partinfo)` to retrieve the partition offset. Once the partition offset is known the rom based `bootloader_mmap()/munmap()` routines can be used in the "startup" routine to verify correct header info. Also in the "startup" routine the `bootloader_mmap()/munmap()` routines can be used together with `memcpy()` to load the rtc, dram, iram. The approach can be similar to the method used in the esp-idf port of mcuboot (https://github.com/mcu-tools/mcuboot/blob/main/boot/espressif/port/esp_loader.c). Thanks for the feedback, fixed it accordingly -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
