Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 66BED22051F for <~alpine/users@lists.alpinelinux.org>; Thu, 11 Sep 2025 23:17:33 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1C289430E5; Thu, 11 Sep 2025 23:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amyspark.me; s=gm1; t=1757632652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6egGPvndtwTOxjETq7RaDLicctPxZgDdJfC/kW5qQA0=; b=iovDONhIr/TZ1jl0e5ehRRMUF6d1JNcT3tn8z8miM8NyvUY4r0jPZooqYEZa/ahI+jbtb2 Mcsxyxbp4Wz2kkxIT1wsjJQYxOZ0EW7cKd+Vp+8G91zEd8Ddg8m3i7MgZpWAN00EZTozyN vgyoO2SdA8uenTh7mAY/nLb5VoGRVnz3x7BqyA0LSLf0rN8TcB6UUNY2lpCxV76mttBuA8 3DfWLWU/H24Q8Xc5Iy/PjMROQtFwKLSRiTiPGvQOoOlJ8mmNNqqxDKmWaP2pt62GKNZh9J kxLKYWUBzsrdcoaa197Il9nwQbEe9ooo2bmVrt44hpbQhFWYlgz1f9T++S76Hg== Message-ID: Date: Thu, 11 Sep 2025 20:17:19 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Content-Language: en-US To: ~alpine/users@lists.alpinelinux.org From: "L. E. Segovia" Subject: How to boot RISC-V Alpine under QEMU? Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvjeegjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefkffggfgfvhffutgfgsehtkeertddtvdejnecuhfhrohhmpedfnfdrucfgrdcuufgvghhovhhirgdfuceorghmhiesrghmhihsphgrrhhkrdhmvgeqnecuggftrfgrthhtvghrnhepffettdeijeetleefteekhfdvkeefgeffudefhefhhffgveevtddtveehjeeugeeinecuffhomhgrihhnpegrlhhpihhnvghlihhnuhigrdhorhhgpdgrmhihshhprghrkhdrmhgvnecukfhppeduieekrddvvdejrddvtdegrdehvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduieekrddvvdejrddvtdegrdehvddphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprghmhiesrghmhihsphgrrhhkrdhmvgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeimrghlphhinhgvsdhushgvrhhssehlihhsthhsrdgrlhhpihhnvghlihhnuhigrdhorhhgpdhrtghpthhtoheprghmhiesrghmhihsphgrrhhkrdhmvg X-GND-Sasl: amy@amyspark.me Hi all, I'm running into trouble setting up a QEMU VM for Alpine riscv64. To do this I'm using the "Generic U-Boot tarball" from https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/riscv64/alpine-uboot-3.22.1-riscv64.tar.gz. What I've done so far is to: - convert the tarball to a qcow2 image: virt-make-fs --partition=gpt --type=ext4 --label=rootfs --format=qcow2 --size=16G alpine-uboot-3.22.1-riscv64.tar.gz foo.qcow2 - try to boot it using: qemu-system-riscv64 -M virt -m 4G -smp 2 --kernel alpine-uboot-3.22.1-riscv64/u-boot/qemu-riscv64_smode/u-boot.bin -drive file=foo.qcow2 -serial stdio QEMU can get into OpenSBI, it will recognise the partition and find the "Linux lts" boot entry, boot it, but I will invariably get dropped into an initramfs emergency recovery shell. Judging by the contents of the /dev directory, the virtio-blk drive isn't available at all, and a look at /lib/modules reveals that as-is the provided initramfs lacks the kernel modules for QEMU's virtio devices. I only need a VM with Internet connectivity that can be booted and setup-alpine'd, not much more, so could anyone point out the way to make this bootable? Thanks in advance! -- amyspark 🌸 https://www.amyspark.me