Monitor serial console, wait for cloud-init to complete, then login using ubuntu:ubuntu. You can also use cmdline to extract the image and dd it.ĭd if=ubuntu-22.04-preinstalled-server-riscv64+unmatched.img of=/dev/disk/by-id/complete-to-sdcard-device You can then use "Gnome Disks" app to restore img.xz image onto the microSD card, plug it into the board and boot. Set jumpers to boot from the microSD by setting MSEL=1011 (MSEL2 to the outside of the board, the rest to the inside). The preinstalled server image has U-Boot SPL loader as well as SiFive U-Boot to boot on the board. See the cloud-init section below to further customise the first boot behaviour with cloud-init. It will show a line with the text 'Cloud-init finished' like: Watch the serial console output and wait for cloud-init to complete. One can use pass through networking, adjust memory ( -m) & cpu counts ( -smp) as needed. The second stage firmware U-Boot is loaded into memory via -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf This option is not needed with QEMU 7.0 or higher. The first stage firmware booted by QEMU is OpenSBI as specified by the -bios option. QEMU's generic virtual platform is selected by -machine virt drive file=ubuntu-22.04-preinstalled-server-riscv64+unmatched.img,format=raw,if=virtio device virtio-net-device,netdev=eth0 -netdev user,id=eth0 \ kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \ bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf \ machine virt -nographic -m 2048 -smp 4 \ Next use OpenSBI bootloader & u-boot-qemu to boot the virtual machine Qemu-img resize -f raw ubuntu-22.04-preinstalled-server-riscv64+unmatched.img +5G Optionally, if you want a larger disk, you can expand the disk (the filesystem will be automatically resized too). Xz -dk ubuntu-22.04-preinstalled-server-riscv64+ apt install qemu-system-misc opensbi u-boot-qemu qemu-utilsįor booting Ubuntu 22.04 (Jammy) or later images use u-boot-qemu from release Ubuntu 22.04 or later.Īfter installing the above prerequisites, one can use the above preinstalled images for the HiFive Unmatched to boot a virtual machine.You can discuss Ubuntu on RISC-V over at the Ubuntu Server forums. As of 2022 due to performance restrictions the only hardware usable for a desktop is the SiFive HiFive Unmatched board. But you can install package ubuntu-desktop to get a GNOME desktop. We currently don't provide a desktop image for RISC-V. Ī description of the installation process is also available at. If you want to install Ubuntu on a disk drive, use the server install image.Ī Ubuntu 22.04.1 server install image supporting the SiFive HiFive Unmatched board and QEMU is available at. Ubuntu 20.04.4 preinstalled SD-card images for the.SiFive HiFive Unmatched (also supports QEMU) Ubuntu 22.04.1 preinstalled SD-card images for.Ubuntu provides the riscv64 architecture for the RISC-V platform since the release of Ubuntu 20.04 LTS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |