ipsych
Posts: 2
Joined: Sun Aug 08, 2021 11:25 pm

How to update firmware in NVME+CM4+Ubuntu Server 20.04.2 LTS?

Thu Aug 12, 2021 2:23 am

HW : CM4 Lite + I.O board supporting NVME + 128GB NVME SSD.
OS : Ubuntu 20.04 LTS Server
Current bootloader is c258ef8f Jul 6 2021.

Whenever I burn the image to NVME, below error shown.
"start4.elf is not compatible"
"NVME boot requires newer software"

When I copy and paste 'boot' folder from latest github 'firmware' to boot partition,
The boot stops and hang with the colorful boot image.

How should I update firmware in Ubuntu Server 20.04 setting in NVME?

Bests,
J.

mpisman
Posts: 3
Joined: Sat Aug 14, 2021 2:01 am

Re: How to update firmware in NVME+CM4+Ubuntu Server 20.04.2 LTS?

Sat Aug 14, 2021 2:12 am

Did you use

Code: Select all

rpi-update
after mounting NVME?

racer993
Posts: 82
Joined: Mon Feb 18, 2013 7:27 pm

Re: How to update firmware in NVME+CM4+Ubuntu Server 20.04.2 LTS?

Tue Sep 07, 2021 1:33 pm

I experience a very similar issue with Ubuntu Desktop 21.04 .

CM4 Lite + Wifi + 8GB RAM (CM4108000)
SSD: Samsung 256GB NVMe PM991, Model MZ-ALQ2560
Board: Waveshare 19887 CM4-IO-BASE-A
Bootloader: c258ef8f
Bootorder: f2461
OS: Ubuntu Desktop 21.04

Raspbian OS works fine on the NVMe drive
Ubuntu Desktop 21.04 works fine on the SD

.....but I can't get Ubuntu Desktop 21.04 to boot from the NVMe drive

Error messages during boot when trying to boot Ubuntu Desktop 21.04 from NVMe SSD:

Code: Select all

start4.elf is not compatible
NVME boot requires newer software

How can one get Ubuntu Desktop 21.04 to run from PCIe NVMe SSD?

racer993
Posts: 82
Joined: Mon Feb 18, 2013 7:27 pm

Re: How to update firmware in NVME+CM4+Ubuntu Server 20.04.2 LTS?

Tue Sep 07, 2021 1:44 pm

mpisman wrote:
Sat Aug 14, 2021 2:12 am
Did you use

Code: Select all

rpi-update
after mounting NVME?
How can one use "rpi-update" if the OS won't boot?

timg236
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 903
Joined: Thu Jun 21, 2018 4:30 pm

Re: How to update firmware in NVME+CM4+Ubuntu Server 20.04.2 LTS?

Tue Sep 07, 2021 2:49 pm

racer993 wrote:
Tue Sep 07, 2021 1:44 pm
mpisman wrote:
Sat Aug 14, 2021 2:12 am
Did you use

Code: Select all

rpi-update
after mounting NVME?
How can one use "rpi-update" if the OS won't boot?
Boot from SD or EMMC then specify the mount point of the NVMe

Code: Select all

sudo ROOT_PATH=/media/root BOOT_PATH=/media/boot rpi-update 
See rpi-update docs https://github.com/Hexxeh/rpi-update/bl ... /README.md

racer993
Posts: 82
Joined: Mon Feb 18, 2013 7:27 pm

Re: How to update firmware in NVME+CM4+Ubuntu Server 20.04.2 LTS?

Tue Sep 07, 2021 3:58 pm

racer993 wrote:
Tue Sep 07, 2021 1:33 pm
I experience a very similar issue with Ubuntu Desktop 21.04 .

CM4 Lite + Wifi + 8GB RAM (CM4108000)
SSD: Samsung 256GB NVMe PM991, Model MZ-ALQ2560
Board: Waveshare 19887 CM4-IO-BASE-A
Bootloader: c258ef8f
Bootorder: f2461
OS: Ubuntu Desktop 21.04

Raspbian OS works fine on the NVMe drive
Ubuntu Desktop 21.04 works fine on the SD

.....but I can't get Ubuntu Desktop 21.04 to boot from the NVMe drive

Error messages during boot when trying to boot Ubuntu Desktop 21.04 from NVMe SSD:

Code: Select all

start4.elf is not compatible
NVME boot requires newer software

How can one get Ubuntu Desktop 21.04 to run from PCIe NVMe SSD?

got it working :)

What I did was the following:

Made an SD Card with Raspberry Pi OS
Made an SD Card with Ubuntu 21.04 64-bit

On both images I did an full update / upgrade / rpi-update one after the other.

Then I booted again from the Raspberry Pi OS and used SD copier to copy the Ubuntu 21.04 64-bit from the SD to the NVMe drive.

And as a last step I replaced the start4.elf and fixup4.dat on the NVMe drive with the versions from the Raspberry Pi OS.

After that it booted straight into Ubuntu 21.04 directly from the NVMe drive.

I guess the Ubuntu 21.04 image needs updating in order to support NVMe, until then you can use this work around ;)

Return to “Ubuntu”