Skip to content

Zephyr With Custom bootloader #70448

Discussion options

You must be logged in to vote

Thanks @DerekSnell. I think I've got this working working by combining the images and siging both. I had to patch my zephyr checkout a bit to get it to work though.

Roughly, this is what I did:

  • Made sure both CM7 and CM4 projects output hex.
  • Added fixed flash partition for the CM4 making sure its address is in the range of the slot0_partition (this feels very hacky and I hate it). Basically slot0_partition is 0x30120000 - 0x30220000 and secondary_core_partition0 is 0x301e0000 - 0x30220000 (last 256KB).
  • modified sign.py so allow input file path argument
  • modified mcuboot.cmake to pass ${MERGED_HEX_NAME} when calling sign.py
  • I use 'west flash --domain cm7_project_name' to flash the combined…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@DerekSnell
Comment options

@danielb-tkjcy3rq
Comment options

Answer selected by DerekSnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment