Skip to content

Commit

Permalink
ci: add k1-sdcard-boot.img
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Dec 2, 2024
1 parent 86a4fbe commit 116c7b3
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,30 @@ jobs:
run: |
rm -rf ${GITHUB_WORKSPACE}/output/debian-k1-sdcard.img
- name: genimage-sdcard-boot
run: |
export SD_TARGET=${GITHUB_WORKSPACE}/config/genimage_boot.cfg
export SD_NAME=k1-sdcard-boot.img
pushd ${GITHUB_WORKSPACE}/output
genimage --config ${SD_TARGET} \
--inputpath $(pwd) \
--outputpath $(pwd) \
--rootpath="$(mktemp -d)"
popd
tree ${GITHUB_WORKSPACE}/output
- name: 'Upload sdcard boot img'
uses: actions/upload-artifact@v4
with:
name: k1-img-sdcard
path: output/k1-sdcard-boot.img
retention-days: 30

- name: Clean up (SDCARD BOOT)
run: |
rm -rf ${GITHUB_WORKSPACE}/output/k1-sdcard-boot.img
- name: genimage-nvme
run: |
export CHROOT_TARGET=${GITHUB_WORKSPACE}/rootfs
Expand Down
45 changes: 45 additions & 0 deletions config/genimage_boot.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
image k1-sdcard-boot.img {
hdimage {
partition-table-type = gpt
}

partition bootinfo {
image = "factory/bootinfo_sd.bin"
offset = "0K"
size = "512"
holes = {"(80;512)"}
in-partition-table = "false"
}

partition fsbl {
image = "factory/FSBL.bin"
offset = "128K"
size = "256K"
holes = {}
in-partition-table = "true"
}

partition env {
image = "env.bin"
offset = "384K"
size = "64K"
holes = {}
in-partition-table = "true"
}

partition opensbi {
image = "fw_dynamic.itb"
offset = ""
size = "384K"
holes = {}
in-partition-table = "true"
}

partition uboot {
image = "u-boot.itb"
offset = ""
size = "2M"
holes = {}
in-partition-table = "true"
}
}

0 comments on commit 116c7b3

Please sign in to comment.