[neon/neon/livecd-rootfs/Neon/release] live-build/ubuntu-cpc/hooks.d/base: riscv: define partitioning scheme for Nezha board
Alexandre Ghiti
null at kde.org
Tue Jul 26 12:23:08 BST 2022
Git commit 312d9221ee9371c283c169c47366881c50f5507c by Alexandre Ghiti, on behalf of Heinrich Schuchardt.
Committed on 13/07/2022 at 14:03.
Pushed by jriddell into branch 'Neon/release'.
riscv: define partitioning scheme for Nezha board
Define the image layout for the Nezha board.
The U-Boot SPL based boot0 may be installed starting in sector 16 or 256.
As sector 16 is incompatible with GPT partitioning use sector 256.
The primary U-Boot image is expected to start at sector 32800 and its
backup in sector 24576.
Cf. https://linux-sunxi.org/index.php?title=Allwinner_Nezha&oldid=24469
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
M +20 -0 live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
https://invent.kde.org/neon/neon/livecd-rootfs/commit/312d9221ee9371c283c169c47366881c50f5507c
diff --git a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
index e8028489..0b42d954 100755
--- a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
+++ b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
@@ -69,6 +69,26 @@ create_partitions() {
--typecode=15:ef00 \
--new=1:: \
--attributes=1:set:2
+ elif [ "${SUBARCH:-}" = "nezha" ]; then
+ # Nezha D1 board
+ sgdisk "${disk_image}" \
+ --set-alignment=2 \
+ --new=13:256:25575 \
+ --change-name=13:loader1 \
+ --typecode=13:B161E8AB-7D4B-4DB4-821C-4120A0554A35 \
+ --new=16:25576:32799 \
+ --change-name=16:loader2b \
+ --typecode=16:F79E76D9-AC98-418B-8F31-E17EA24FF07C \
+ --new=14:32800:43007 \
+ --change-name=14:loader2 \
+ --typecode=14:F4FA3898-3478-4941-887D-FCEC4E9E3C05 \
+ --new=15::+106M \
+ --typecode=15:ef00 \
+ --change-name=15:ESP \
+ --new=12::+4M \
+ --change-name=12:CIDATA \
+ --new=1:: \
+ --attributes=1:set:2
else
# preinstalled server, currently FU540
# FU740 too in the future
More information about the Neon-commits
mailing list