---
title: "Comment by Tom on \"Installing Ubuntu Server on the StarFive VisionFive 2\" | Hashnode"
description: "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 e"
url: "https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b/comment/65667ed2cda818ef519cefd8"
---

[Discussion](https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b)

Comment [Installing Ubuntu Server on the StarFive VisionFive 2](https://hashnode.com/posts/installing-ubuntu-server-starfive-visionfive-2-riscv/6562877207549d040bf4b76b)

[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)

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

Hey that’s pretty weird, I haven’t seen that error before. Do you perhaps have a different revision of the board? Mine is a v1.3b

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

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

[Adam Hartley](https://hashnode.com/@bytesguy) Yep, I also have the v1.3b.

Luckily, I have managed to get it working, all I needed to do was use the Ubuntu version of the uboot and spl (from [wiki.ubuntu.com/RISC-V/StarFive%20VisionFive%202](https://wiki.ubuntu.com/RISC-V/StarFive%20VisionFive%202)) instead of the star five one on github!

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

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

[Tom](https://hashnode.com/@monstrous5203) That's interesting, mine is running the latest official firmware and it seems to run ok, though I will give the ubuntu fork a try and see if there are any differences :)

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

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

[Adam Hartley](https://hashnode.com/@bytesguy) Hi, I have the 1.2A version of the board with an NVME installed. Following the tutorial does not work. Is it possible at all to install ubuntu on that? Even on a simple SD card it does not boot. If so , what step should I do differently from your tutorial?

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

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

[Allard Krings](https://hashnode.com/@allard) Hello, I believe the main difference is there is a different device tree for the older boards. I would take a look at the Ubuntu wiki, there’s a note near the end for 1.2 boards: [wiki.ubuntu.com/RISC-V/StarFive%20VisionFive%202](https://wiki.ubuntu.com/RISC-V/StarFive%20VisionFive%202)

Unfortunately I can’t test this as I have a 1.3 board, but with any luck this will help. I would also suggest ensuring you are on the latest board firmware, or use Ubuntu’s fork of the firmware (details on the wiki link above).

Please do let me know if you manage to solve this as it will be helpful for anyone else facing the same issue. Thank you!

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

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

[Adam Hartley](https://hashnode.com/@bytesguy) Helo , i am not even getting to the point where I can replace the DTB. This is my ouput:

Model: StarFive VisionFive V2 Net: eth0: ethernet@16030000, eth1: ethernet@16040000 Hit any key to stop autoboot: 0

StarFive # pci enum starfive\_pcie pcie@2B000000: Port link up. starfive\_pcie pcie@2B000000: Starfive PCIe bus probed. PCI: Failed autoconfig bar 10 starfive\_pcie pcie@2C000000: Port link up. starfive\_pcie pcie@2C000000: Starfive PCIe bus probed. PCI: Failed autoconfig bar 10

StarFive # nvme scan StarFive # load mmc 0:1 $fdt\_addr\_r dtb/starfive/jh7110-starfive-visionfive-2-v1.2a.dtb Card did not respond to voltage select! : -110 Couldn't find partition mmc 0:1 Can't set block device StarFive #

[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!
