From 06a3cfb16640a6fa2d84b38c6d8879816225274e Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 14 Aug 2023 11:52:40 -0500 Subject: [PATCH] first pass, call genimage to generate sdcard.img Signed-off-by: Robert Nelson --- create_sdcard_img.sh | 7 +++++++ deploy/genimage.cfg | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100755 create_sdcard_img.sh create mode 100644 deploy/genimage.cfg diff --git a/create_sdcard_img.sh b/create_sdcard_img.sh new file mode 100755 index 0000000..211ff04 --- /dev/null +++ b/create_sdcard_img.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +cd ./deploy/ +if [ ! -d ./root/ ] ; then + mkdir ./root/ || true +fi +sudo genimage --config genimage.cfg diff --git a/deploy/genimage.cfg b/deploy/genimage.cfg new file mode 100644 index 0000000..15fab71 --- /dev/null +++ b/deploy/genimage.cfg @@ -0,0 +1,36 @@ +# Image for eMMC or SDCard boot on the Microchip PolarFire SOC Icicle Board +# +image boot.vfat { + vfat { + files = { + "beaglev_fire.itb", + } + + file boot.scr { + image = "boot.scr" + } + } + size = 60M +} + +image sdcard.img { + hdimage { + gpt = true + } + + partition uboot { + partition-type-uuid = 21686148-6449-6E6F-744E-656564454649 + image = "payload.bin" + } + + partition kernel { + partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 + bootable = "true" + image = "boot.vfat" + } + + partition root { + partition-type-uuid = 0FC63DAF-8483-4772-8E79-3D69D8477DE4 + image = "rootfs.cpio" + } +}