RISC-V

Differences between revisions 1 and 57 (spanning 56 versions)
Revision 1 as of 2020-11-25 18:45:31
Size: 1330
Editor: xnox
Comment:
Revision 57 as of 2023-11-13 18:51:48
Size: 3321
Editor: lengau
Comment: Fix link
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= RISC-V = Ubuntu provides the riscv64 architecture for the RISC-V platform since the release of Ubuntu 20.04 LTS.
Line 3: Line 3:
Ubuntu provides riscv64 architecture for the RISC-V platform since Focal release. == Images ==
Line 5: Line 5:
One can boot it on any system with qemu-system, or on bare-metal board such as those built by SiFive. === Preinstalled Server Images ===
Line 7: Line 7:
== Booting with qemu ==  * Ubuntu 23.10 (Mantic minotaur) preinstalled images for
Line 9: Line 9:
 * Machine type `virt` aka `-machine virt`
 * Bios is OpenSBI (`apt install opensbi`) `-bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf`
 * "kernel" is qemu smode uboot (`apt install u-boot-qemu`) `-kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf`
 * And just the cloud image from http://cloud-images.ubuntu.com/
   * [[RISC-V/Nezha D1 | Allwinner Nezha D1]]
   * [[RISC-V/LicheeRV | LicheeRV Dock]]
   * [[RISC-V/PolarFire SoC FPGA Icicle Kit | Microchip Polarfire Icicle]]
   * [[RISC-V/SiFive HiFive Unmatched | SiFive HiFive Unmatched]] (also supports [[RISC-V/QEMU | QEMU]])
   * [[RISC-V/StarFive VisionFive | StarFive VisionFive]]
   * [[RISC-V/StarFive VisionFive 2 | StarFive VisionFive 2]]
Line 14: Line 16:
Working example with all the options is:  * Ubuntu 23.04 (Lunar Lobster) preinstalled SD-card images for
Line 16: Line 18:
``
qemu-system-riscv64 \
-machine virt -m 2048 -smp 4 \
-bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \
-device virtio-blk-device,drive=vda -drive file=livecd.ubuntu-cpc.img,id=vda -device virtio-net-device,netdev=eth0 -netdev user,id=eth0
```
   * [[RISC-V/Nezha D1 | Allwinner Nezha D1]]
   * [[RISC-V/LicheeRV | LicheeRV Dock]]
   * [[RISC-V/SiFive HiFive Unmatched | SiFive HiFive Unmatched]] (also supports [[RISC-V/QEMU | QEMU]])
   * [[RISC-V/StarFive VisionFive | StarFive VisionFive]]
   * [[RISC-V/StarFive VisionFive 2 | StarFive VisionFive 2]]
Line 23: Line 24:
Adjust to taste as needed. The image has a fallback cloud-init datasource that configures sudo user `ubuntu` with password `ubuntu`. Alternatively, you can provide a config drive (or tweak the first partitions `/var/lib/cloud/seed/nocloud/*` files) to setup anything else using cloud-init. For example ssh keys, disabling interactive login, and so on. See https://cloudinit.readthedocs.io/en/latest  are available at https://cdimage.ubuntu.com/releases/23.04/release/.

 * Ubuntu 22.04.3 (Jammy Jellyfish) preinstalled SD-card images for

   * [[RISC-V/Nezha D1 | Allwinner Nezha D1]]
   * [[RISC-V/LicheeRV | LicheeRV Dock]]
   * [[RISC-V/PolarFire SoC FPGA Icicle Kit | Microchip PolarFire Icicle Kit]]
   * [[RISC-V/SiFive HiFive Unmatched | SiFive HiFive Unmatched]] (also supports [[RISC-V/QEMU | QEMU]])
   * [[RISC-V/StarFive VisionFive | StarFive VisionFive]]

 are available at https://cdimage.ubuntu.com/releases/22.04.2/release/.

 * Ubuntu 20.04.5 (Focal Fossa) preinstalled SD-card images for the

   * SiFive HiFive Unleashed
   * [[RISC-V/SiFive HiFive Unmatched | SiFive HiFive Unmatched]] (also supports [[RISC-V/QEMU | QEMU]])

 are available at https://cdimage.ubuntu.com/releases/20.04.5/release/.

=== Server Install Image ===

If you want to install Ubuntu on a disk drive, use the server install image.

 * An Ubuntu 23.10 (Mantic Minotaur) [[https://cdimage.ubuntu.com/releases/23.10/release/ubuntu-23.10-live-server-riscv64.img.gz|server install image]] is available at https://cdimage.ubuntu.com/releases/23.10/release/

 * A Ubuntu 23.04 (Lunar Lobster) server install image supporting the [[RISC-V/SiFive HiFive Unmatched | SiFive HiFive Unmatched]] board and [[RISC-V/QEMU | QEMU]] is available at https://cdimage.ubuntu.com/releases/23.04/release/.


 * A Ubuntu 22.04.3 (Jammy Jellyfish) server install image supporting the [[RISC-V/SiFive HiFive Unmatched | SiFive HiFive Unmatched]] board and [[RISC-V/QEMU | QEMU]] is available at https://cdimage.ubuntu.com/releases/22.04.3/release/.

A tutorial is available at https://ubuntu.com/tutorials/install-ubuntu-server.

A description of the installation process is also available at https://discourse.ubuntu.com/t/ubuntu-installation-on-the-sifive-hifive-unmatched-board-using-a-server-install-image/27804.

=== Desktop ===

We currently don't provide a desktop image for RISC-V. But you can install package ubuntu-desktop to get a GNOME desktop. As of 2022 due to performance restrictions the only hardware usable for a desktop is the SiFive HiFive Unmatched board.

== Forums ==

You can discuss Ubuntu on RISC-V over at the [[https://discourse.ubuntu.com/c/server/17|Ubuntu Server forums]].

Ubuntu provides the riscv64 architecture for the RISC-V platform since the release of Ubuntu 20.04 LTS.

Images

Preinstalled Server Images

Server Install Image

If you want to install Ubuntu on a disk drive, use the server install image.

A tutorial is available at https://ubuntu.com/tutorials/install-ubuntu-server.

A description of the installation process is also available at https://discourse.ubuntu.com/t/ubuntu-installation-on-the-sifive-hifive-unmatched-board-using-a-server-install-image/27804.

Desktop

We currently don't provide a desktop image for RISC-V. But you can install package ubuntu-desktop to get a GNOME desktop. As of 2022 due to performance restrictions the only hardware usable for a desktop is the SiFive HiFive Unmatched board.

Forums

You can discuss Ubuntu on RISC-V over at the Ubuntu Server forums.

RISC-V (last edited 2025-02-07 13:36:10 by adrianoco)