[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Support for riscv64 cloud image in Debian Trixie



Hi,

On 2025-07-28 00:35, Bo YU wrote:
> Hi,
> 
> On Mon, Jul 28, 2025 at 12:20 AM Aurelien Jarno <aurel32@debian.org> wrote:
> >
> > Hi,
> >
> > On 2025-07-28 00:07, Bo YU wrote:
> > > Hi,
> > >
> > > As Aurelien found that, it seems we are missing the riscv64 cloud
> > > image for Trixie[0], but we do have one riscv64 cloud image for
> > > Sid[1]. So could the Debian RISC-V port team know if there is anything
> > > we can do for this if help?
> >
> > If I am not mistaken, this pull request should be enough:
> > https://salsa.debian.org/cloud-team/debian-cloud-images/-/merge_requests/458
> >
> 
> Okay, thanks for submitting the MR.:)

Thanks a lot to Noah for reviewing and merging the MR. Trixie cloud 
images are now built for riscv64 [1].

To run the image with QEMU, you need to use to a UEFI firmware, the 
easiest is probably to use U-Boot (from the u-boot-qemu package), the 
alternative being to use EDK-2.

Here is a way to run the image with a graphical console:

qemu-system-riscv64 \
    -kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
    -M virt \
    -m 1G \
    -smp 2 \
    -device virtio-net-device,netdev=usernet \
    -netdev user,id=usernet \
    -drive file=debian-13-nocloud-riscv64-daily-20250729-2188.qcow2,format=qcow2 \
    -device bochs-display \
    -device qemu-xhci -device usb-kbd -device usb-mouse

And with a serial console:

qemu-system-riscv64 \
    -kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
    -M virt \
    -m 1G \
    -smp 2 \
    -device virtio-net-device,netdev=usernet \
    -netdev user,id=usernet \
    -drive file=debian-13-nocloud-riscv64-daily-20250729-2188.qcow2,format=qcow2 \
    -nographic

Regards
Aurelien

[1] http://cloud.debian.org/images/cloud/trixie/daily/

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                     http://aurel32.net


Reply to: