-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use image_builder in armv7m7 based projects
JIRA: CI-494
- Loading branch information
Showing
12 changed files
with
178 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# example NVM config - based on EVK board | ||
flash0: | ||
# external qspi flash - is25wp064a (64Mbit) | ||
size: 0x800000 # 8 MB | ||
block_size: 0x1000 | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: user | ||
offs: 0x11000 | ||
# if size not set - last non-virtual partition will be extnded to the end of flash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
size: 0x1000 | ||
is_relative: False | ||
|
||
contents: | ||
# NOTE: All data/code maps need to be cacheable to allow unaligned accesses | ||
- map itcm 0x0 0x28000 rwxcb | ||
- map dtcm 0x20000000 0x20048000 rwcb | ||
- map ocram 0x20200000 0x20220000 rwxcb | ||
- map xip1 0x60000000 0x60800000 rxcb | ||
- map io 0x40000000 0x50000000 rw | ||
- phfs usb0 1.2 phoenixd | ||
- phfs flash0 2.0 raw | ||
- console 0.0 | ||
|
||
- if: '{{ not(env.RAM_SCRIPT) | default(false) }}' | ||
action: call | ||
set_base: True | ||
device: '{{ env.BOOT_DEVICE }}' | ||
filename: user.plo | ||
offset: '{{ nvm[env.BOOT_DEVICE].user.offs }}' | ||
target_magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# kernel + initrd | ||
magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
size: 0x1000 | ||
is_relative: True | ||
|
||
contents: | ||
- kernel {{ env.BOOT_DEVICE }} | ||
- app {{ env.BOOT_DEVICE }} -x dummyfs xip1 dtcm | ||
- app {{ env.BOOT_DEVICE }} -x imxrt-multi xip1 dtcm;io | ||
- app {{ env.BOOT_DEVICE }} -x psh xip1 dtcm | ||
#WARN: no flash driver is being run | ||
- wait 2000 | ||
- go! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# example NVM config - based on EVK board | ||
flash0: | ||
# internal flash - W25Q32JV (32Mbit) | ||
# not used currently | ||
size: 0x400000 # 4 MB | ||
block_size: 0x1000 | ||
padding_byte: 0xff | ||
|
||
flash1: | ||
# external qspi flash - is25wp064a (64Mbit) | ||
size: 0x800000 # 8 MB | ||
block_size: 0x1000 | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: user | ||
offs: 0x11000 | ||
# if size not set - last non-virtual partition will be extnded to the end of flash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
size: 0x1000 | ||
is_relative: False | ||
|
||
contents: | ||
# NOTE: All data/code maps need to be cacheable to allow unaligned accesses | ||
- map itcm 0x0 0x28000 rwxcb | ||
- map dtcm 0x20000000 0x20058000 rwcb | ||
- map ocram2 0x20200000 0x20280000 rwxcb | ||
- map aips14 0x40000000 0x40400000 rws | ||
- map aips5 0x42000000 0x42100000 rws | ||
- map xip2 0x60000000 0x64000000 rxcb | ||
- map xip1 0x70000000 0x70400000 rxcb | ||
- phfs usb0 1.2 phoenixd | ||
- phfs flash0 2.0 raw | ||
- phfs flash1 2.1 raw | ||
- console 0.0 | ||
|
||
- if: '{{ not(env.RAM_SCRIPT) | default(false) }}' | ||
action: call | ||
set_base: True | ||
device: '{{ env.BOOT_DEVICE }}' | ||
filename: user.plo | ||
offset: '{{ nvm[env.BOOT_DEVICE].user.offs }}' | ||
target_magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# kernel + initrd | ||
magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
size: 0x1000 | ||
is_relative: True | ||
|
||
contents: | ||
- kernel {{ env.BOOT_DEVICE }} | ||
- app {{ env.BOOT_DEVICE }} -x dummyfs xip1 ocram2 | ||
- app {{ env.BOOT_DEVICE }} -x imxrt-multi xip1 ocram2;aips14;aips5 | ||
- app {{ env.BOOT_DEVICE }} -x psh xip1 ocram2 | ||
- app {{ env.BOOT_DEVICE }} imxrt-flash ocram2 ocram2;aips14 | ||
- wait 2000 | ||
- go! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.