---
title: "Discussion on \"Installing Ubuntu Server on the StarFive VisionFive 2\" | Hashnode"
description: "Discussion on \"Installing Ubuntu Server on the StarFive VisionFive 2\". A Step-by-Step guide to installing Ubuntu on RISC-V"
url: "https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Installing Ubuntu Server on the StarFive VisionFive 2](https://blog.bytesguy.com/installing-ubuntu-server-starfive-visionfive-2-riscv?utm_source=hashnode&utm_medium=feed)

A Step-by-Step guide to installing Ubuntu on RISC-V

Nov 25, 2023 · 8 min read · blog.bytesguy.com  
Updated Nov 28, 2023  
Read the article

-   [#risc-v](https://hashnode.com/tag/risc-v)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#uefi](https://hashnode.com/tag/uefi)
-   [#linux](https://hashnode.com/tag/linux)
-   [#ubuntu-server](https://hashnode.com/tag/ubuntu-server)

## Written by

[Adam Hartley](https://hashnode.com/@bytesguy)

@bytesguy · Cambridge, UK

  
[View profile](https://hashnode.com/@bytesguy)

Staff Software Development Engineer, Team Leader, Experienced Support Engineer and Program Manager

Software Engineer and Team Leader with a robust background in CI/CD, automation, developer tooling and proven problem-solving expertise. Committed to combining technical knowledge with a product management mindset to drive goals and product improvements during the development process. Consistent record of achievement building and integrating automation to facilitate seamless CI/CD pipelines, leading to improved time-to-market.

## Responses 1

Markdown supported · ⌘↵ to post

[Tom](https://hashnode.com/@monstrous5203)

[Nov 28, 2023](https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b/comment/65667ed2cda818ef519cefd8)

Hi, after repeating these steps (including the uboot update) three times over, I always end up with this error when running `bootefi bootmgr` (after setting the efi boot option):

```
StarFive # bootefi bootmgr
error: out of memory.
error: relocation overflow.
```

The grub menu still loads, but when I select Ubuntu I get `error: relocation overflow.` again.

I'm pretty sure that this comes from grub, any ideas?

[Adam Hartley](https://hashnode.com/@bytesguy)

[Dec 12, 2023](https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b/comment/65667ed2cda818ef519cefd8#reply-6578cf54a7af0fb6a90484f6)

[Allard Krings](https://hashnode.com/@allard) If `mmc list` shows more than one mmc device you might need to try the second device. I think this is the issue here but I could be wrong!

[Allard Krings](https://hashnode.com/@allard)

[Dec 15, 2023](https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b/comment/65667ed2cda818ef519cefd8#reply-657c98a2f7ee9350b5c91126)

[Adam Hartley](https://hashnode.com/@bytesguy)

hi Adam,

thanks a lot for your help! I was indeed able to install ubuntu on the NVME-drive. However fter rebooting the sbc had a reallocation-error. After some searching on internet I found a tip replacing the firmware that Starfive provides by the one from Ubuntu. This is obligatory if you have the 1.2a revision! Now ubuntu boots fine from yhe NVME-drive, no SSD needed!

[Allard Krings](https://hashnode.com/@allard)

[Dec 15, 2023](https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b/comment/65667ed2cda818ef519cefd8#reply-657ca26df7ee9350b5c95e78)

[Allard Krings](https://hashnode.com/@allard)

that is micro-SD off course!
