-
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 sparc based projects
JIRA: CI-494
- Loading branch information
Showing
16 changed files
with
226 additions
and
153 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,18 @@ | ||
size: 0x1000 | ||
is_relative: False | ||
|
||
contents: | ||
- map ocram 0x31000000 0x3101FFFF rwx | ||
- map extram 0x40000000 0x401FFFFF rwx | ||
- phfs uart0 0.0 phoenixd | ||
- console 0.1 | ||
|
||
- if: '{{ not(env.RAM_SCRIPT) | default(false) }}' | ||
action: call | ||
set_base: True | ||
device: '{{ env.BOOT_DEVICE }}' | ||
filename: user.plo | ||
offset: 0 # BOOT_DEVICE is UART, offset doesn't matter? | ||
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 extram extram | ||
- app {{ env.BOOT_DEVICE }} -x grlib-multi extram extram | ||
- app {{ env.BOOT_DEVICE }} -x psh extram extram | ||
- 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
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,10 @@ | ||
flash0: | ||
size: 0x800000 # 8 MB | ||
block_size: 0x100 # program page size | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: kernel | ||
offs: 0xf000 | ||
# 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,16 @@ | ||
size: 0x1000 | ||
is_relative: False | ||
|
||
contents: | ||
- map sram 0x40000000 0x47ffffff rwx | ||
- console 0.0 | ||
- phfs ram0 4.0 raw | ||
|
||
- 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,12 @@ | ||
# kernel + initrd | ||
magic: '{{ env.MAGIC_USER_SCRIPT }}' | ||
size: 0x1000 | ||
is_relative: True | ||
|
||
contents: | ||
- kernel {{ env.BOOT_DEVICE }} | ||
- app {{ env.BOOT_DEVICE }} -x dummyfs sram sram | ||
- app {{ env.BOOT_DEVICE }} -x grlib-uart sram sram | ||
- app {{ env.BOOT_DEVICE }} -x psh sram sram | ||
- 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
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: 0x1000 | ||
# eraseblock_size: 0x20000 # TODO: add generic support? | ||
padding_byte: 0xff | ||
partitions: | ||
- name: plo | ||
offs: 0x0 | ||
- name: kernel | ||
offs: 0x20000 | ||
- name: rootfs | ||
offs: 0x100000 | ||
- name: ptable | ||
offs: 0xfe0000 | ||
size: 0x20000 |
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,18 @@ | ||
size: 0x1000 | ||
is_relative: False | ||
|
||
contents: | ||
#FIXME: map should end at 0x7fffffff | ||
- map sram 0x40000000 0x80000000 rwx | ||
- console 0.0 | ||
- phfs uart1 0.1 phoenixd | ||
- phfs flash0 2.0 raw | ||
|
||
- 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;-N;devfs;-D sram sram | ||
- app {{ env.BOOT_DEVICE }} -x grlib-multi sram sram | ||
- app {{ env.BOOT_DEVICE }} -x gr712rc-flash;-r;root:jffs2 sram sram | ||
- app {{ env.BOOT_DEVICE }} -x psh;-i;/etc/rc.psh sram sram | ||
- wait 500 | ||
- go! |
Oops, something went wrong.