-
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 armv7a9-zynq7000 based projects
JIRA: CI-494
- Loading branch information
Showing
11 changed files
with
170 additions
and
113 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,32 @@ | ||
flash0: | ||
size: 0x2000000 # 32 MB | ||
block_size: 0x1000 | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: kernel | ||
offs: 0x10000 | ||
- name: bitstr | ||
offs: 0x400000 | ||
- name: rootfs | ||
offs: 0x900000 | ||
size: 0x1000000 | ||
type: jffs2 | ||
- name: data | ||
size: 0x4e0000 | ||
empty: True # TODO: remove when it will be actually used | ||
|
||
|
||
# Spansion s25fl256s1 has 2 regions with 4kB / 64kB erase blocks | ||
# currently zynq7000-flash creates separate device for every region | ||
- name: mtd0 | ||
virtual: True | ||
offs: 0x0 | ||
size: 0x20000 | ||
# eraseblock_size: 4 kB | ||
- name: mtd1 | ||
virtual: True | ||
offs: 0x20000 | ||
size: 0x1FE0000 | ||
# eraseblock_size: 64 kB |
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 @@ | ||
# kernel + initrd | ||
magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
size: 0x1000 | ||
is_relative: True | ||
|
||
contents: | ||
- wait 500 | ||
- kernel {{ env.BOOT_DEVICE }} | ||
- app {{ env.BOOT_DEVICE }} -x dummyfs;-N;devfs;-D ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x zynq7000-uart ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x psh;-i;/etc/rc.psh ddr ddr | ||
# WARN: for mounting partitions in mtd1 region we need to subtract mtd1 base offset | ||
- name: app | ||
device: '{{ env.BOOT_DEVICE }}' | ||
flags: EXEC | ||
filename: zynq7000-flash | ||
args: | ||
- '-r;/dev/mtd1:{{ nvm.flash0.rootfs.offs - nvm.flash0.mtd1.offs }}:{nvm.flash0.rootfs.size}:jffs2' | ||
- '-p;/dev/mtd1:{{ nvm.flash0.data.offs - nvm.flash0.mtd1.offs }}:{nvm.flash0.data.size}' | ||
text_map: ddr | ||
data_maps: ddr | ||
- 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,15 @@ | ||
flash0: | ||
size: 0x2000000 # 32 MB | ||
block_size: 512 | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: kernel | ||
offs: 0x10000 | ||
- name: bitstr | ||
offs: 0x400000 | ||
- name: rootfs | ||
offs: 0x800000 | ||
size: 0x800000 | ||
type: jffs2 |
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 @@ | ||
# kernel + initrd | ||
magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
size: 0x1000 | ||
is_relative: True | ||
|
||
contents: | ||
- wait 500 | ||
- kernel {{ env.BOOT_DEVICE }} | ||
- app {{ env.BOOT_DEVICE }} -x dummyfs;-N;devfs;-D ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x zynq7000-uart ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x psh;-i;/etc/rc.psh ddr ddr | ||
- name: app | ||
device: '{{ env.BOOT_DEVICE }}' | ||
flags: EXEC | ||
filename: zynq7000-flash | ||
args: '-r;/dev/mtd0:{{ nvm.flash0.rootfs.offs }}:{nvm.flash0.rootfs.size}:jffs2' | ||
text_map: ddr | ||
data_maps: ddr | ||
- 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,15 @@ | ||
flash0: | ||
size: 0x1000000 # 16 MB | ||
block_size: 512 | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: kernel | ||
offs: 0x10000 | ||
- name: bitstr | ||
offs: 0x400000 | ||
- name: rootfs | ||
offs: 0x800000 | ||
size: 0x800000 | ||
type: jffs2 |
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,21 @@ | ||
size: 0x1000 | ||
is_relative: False | ||
|
||
contents: | ||
- map kddr 0x100000 0x12ffff rwx | ||
- map ddr 0x130000 0x900000 rwx | ||
- map ocram1 0x00000000 0x00030000 rwx | ||
- phfs usb0 1.2 phoenixd | ||
- phfs uart0 0.0 phoenixd | ||
- phfs uart1 0.1 raw | ||
- phfs flash0 2.0 raw | ||
- console 0.1 | ||
|
||
- if: '{{ not(env.RAM_SCRIPT) | default(false) }}' | ||
action: call | ||
set_base: True | ||
device: '{{ env.BOOT_DEVICE }}' | ||
filename: user.plo | ||
offset: '{{ nvm.flash0.kernel.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 ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x zynq7000-uart ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x psh ddr ddr | ||
- app {{ env.BOOT_DEVICE }} -x zynq7000-flash ddr ddr | ||
- wait 500 | ||
- 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