riscv64: preinstalled server image for Microchip PIC64GX Curiosity Kit

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
ubuntu/noble
Heinrich Schuchardt 6 months ago
parent 69b47ce2fe
commit 1da6867784

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (24.04.74) UNRELEASED; urgency=medium
* riscv64: preinstalled server image for Microchip PIC64GX Curiosity Kit
(LP: #2072956)
-- Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Mon, 08 Jul 2024 17:51:25 +0200
livecd-rootfs (24.04.73) noble; urgency=medium livecd-rootfs (24.04.73) noble; urgency=medium
* Build qcow2 images for ubuntu-core LXD support (LP: #2072759). * Build qcow2 images for ubuntu-core LXD support (LP: #2072759).

@ -9,8 +9,8 @@ case $ARCH:$SUBARCH in
i386:|\ i386:|\
ppc64el:|\ ppc64el:|\
riscv64:|riscv64:generic|riscv64:icicle|riscv64:licheerv|\ riscv64:|riscv64:generic|riscv64:icicle|riscv64:licheerv|\
riscv64:milkvmars|riscv64:nezha|riscv64:unmatched|riscv64:visionfive|\ riscv64:milkvmars|riscv64:nezha|riscv64:pic64gx|riscv64:unmatched|\
riscv64:visionfive2|\ riscv64:visionfive|riscv64:visionfive2|\
s390x:|\ s390x:|\
*appliance*) *appliance*)
;; ;;
@ -396,6 +396,7 @@ if [ "$IMAGEFORMAT" = "ext4" ] && [ "$PROJECT" = "ubuntu-cpc" ]; then
riscv64:licheerv | \ riscv64:licheerv | \
riscv64:milkvmars | \ riscv64:milkvmars | \
riscv64:nezha | \ riscv64:nezha | \
riscv64:pic64gx | \
riscv64:unmatched | \ riscv64:unmatched | \
riscv64:visionfive | \ riscv64:visionfive | \
riscv64:visionfive2 | \ riscv64:visionfive2 | \

@ -105,7 +105,7 @@ create_partitions() {
--change-name=12:CIDATA \ --change-name=12:CIDATA \
--new=1:: \ --new=1:: \
--attributes=1:set:2 --attributes=1:set:2
elif [ "${SUBARCH:-}" = "icicle" ]; then elif [ "${SUBARCH:-}" = "icicle" ] || [ "${SUBARCH:-}" = "pic64gx" ]; then
# Microchip Icicle Kit # Microchip Icicle Kit
sgdisk "${disk_image}" \ sgdisk "${disk_image}" \
--set-alignment=2 \ --set-alignment=2 \
@ -328,6 +328,17 @@ install_grub() {
loader1="${loop_device}p13" loader1="${loop_device}p13"
dd if=mountpoint/usr/lib/u-boot/${SUBARCH}/u-boot-sunxi-with-spl.bin of=$loader1 dd if=mountpoint/usr/lib/u-boot/${SUBARCH}/u-boot-sunxi-with-spl.bin of=$loader1
;; ;;
"pic64gx")
cp ${my_d}/riscv64/grub/90_watchdog-thresh.cfg mountpoint/etc/default/grub.d/
# flash-kernel is needed to install the dtb for update-grub: it uses the
# /proc/device-tree/model value to pick the correct dtb and as we are in a chroot,
# the model value is wrong and we need to use /etc/flash-kernel/machine instead.
chroot mountpoint bash -c "echo 'Microchip PIC64GX Curiosity Kit' > /etc/flash-kernel/machine"
# u-boot-pic64gx contains the vendor U-Boot
chroot mountpoint apt-get install -qqy u-boot-pic64gx
loader="${loop_device}p13"
dd if=mountpoint/usr/lib/u-boot-pic64gx/u-boot.payload of=$loader
;;
"visionfive") "visionfive")
# flash-kernel is needed to install the dtb for update-grub: it uses the # flash-kernel is needed to install the dtb for update-grub: it uses the
# /proc/device-tree/model value to pick the correct dtb and as we are in a chroot, # /proc/device-tree/model value to pick the correct dtb and as we are in a chroot,

Loading…
Cancel
Save