riscv: add SUBARCH 'jh7110'

Add SUBARCH 'jh7110' for jh7110-based boards.
This commit is contained in:
Adriano Cordova 2025-02-25 09:49:19 -03:00
parent c9f4659b16
commit 949f980646
3 changed files with 11 additions and 4 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
livecd-rootfs (25.04.20) plucky; urgency=medium
* riscv: add SUBARCH 'jh7110'. (LP: #2099993)
-- Adriano Cordova <adriano.cordova@canonical.com> Tue, 25 Feb 2025 15:28:06 -0300
livecd-rootfs (25.04.19) plucky; urgency=medium
* add cpc-sbom to create_manifest calls to generate sboms (LP: #2077105)

View File

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

View File

@ -133,8 +133,8 @@ create_partitions() {
--change-name=3:uEnv \
--new=1:: \
--attributes=1:set:2
elif [ "${SUBARCH:-}" = "visionfive2" ] || [ "${SUBARCH:-}" = "milkvmars" ]; then
# VisionFive 2, Milk-V Mars
elif [ "${SUBARCH:-}" = "visionfive2" ] || [ "${SUBARCH:-}" = "milkvmars" ] || [ "${SUBARCH:-}" = "jh7110" ]; then
# JH7110 chips: VisionFive 2, Milk-V Mars
sgdisk "${disk_image}" \
--set-alignment=4096 \
--new=13:4096:8191 \
@ -338,7 +338,7 @@ EOF
umount "${uenv_mnt_dir}"
rmdir "${uenv_mnt_dir}"
;;
"visionfive2"|"milkvmars")
"visionfive2"|"milkvmars"|"jh7110")
cp ${my_d}/riscv64/grub/90_watchdog-thresh.cfg mountpoint/etc/default/grub.d/
chroot mountpoint apt-get install -qqy u-boot-starfive
# U-Boot SPL