-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
Narrative
As the Ocre developer with native_sim, I want the "preload images" feature to work just as with a real board, so that we can test demo in the CI
Description
When we build Zephyr firmware for supported boards, we generate the state information (storage_partition) with the preloaded images.
When native_sim is run, it will look for a flash.bin file in the current directory, which will be mapped as the flash controller image. If this is not found, it will create it automatically (however, it does not include the storage_partition.
TODO
- Similar to how we generate
merged.hexwe should generateflash.binwith the storage partition in place. - Figure out the format and location of storage partition in flash.bin (hopefully it is at
0x0?)- TIP: run supervisor, then
ocre pullsome images, stop Zephyr, then inspectflash.binin a hex editor, usepython-littlefsto access the littlefs partition files inflash.bin
- TIP: run supervisor, then
- Add to CMakeLists.txt the commands to generate flash.bin if board name starts with
native_sim- TIP: can we use
dd?
- TIP: can we use
Acceptance Criteria
- Build Zephyr
demowithnative_simflash.bincreated somewhere in the build directory- Zephyr demo runs properly
- Build Zephyr
supervisorwithnative_sim, pass some containers withOCRE_PRELOAD_IMAGESorOCRE_SDK_PRELOAD_IMAGESflash.bincreated somewhere in the build directory- Zephyr
supervisorruns properly ocre image lswill show the preloaded images
Bonus
- Add
native_simandnative_sim/native/64to rundemosample on the CI for every PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels