Joshua-Riek / ubuntu-rockchip

Ubuntu for Rockchip RK35XX Devices
https://joshua-riek.github.io/ubuntu-rockchip-download/
GNU General Public License v3.0
2.25k stars 244 forks source link

Booting from NVME Does not work - Rock5b #172

Closed xxxsskxxx closed 1 year ago

xxxsskxxx commented 1 year ago

Hi

Thanks for building this.

I installed the Rock5b image to an EMMC and booted absolutely fine

I used the guidance here:-

https://wiki.radxa.com/Rock5/install/nvme

To format the SSD and install your image to the SSD.

I also flashed the SPI:-

https://wiki.radxa.com/Rock5/install/spi

MD5 all checked out fine.

But. Get stuck on a blue LED and it does not boot.

Any ideas on what could be the issue. I've seen other open issue talking about getting it serially connected to grab errors.

I will try and do this.

I'm using a Samsung 970 Evo Plus 2TB NVME SSD directly connected to the board.

Joshua-Riek commented 1 year ago

I have not had time to test booting from an NVMe yet on the Rock 5B. I'll look into this shortly.

Joshua-Riek commented 1 year ago

I have no issue booting from an NVMe on my end.

To flash the SPI:

sudo dd if=/lib/u-boot-radxa-rk3588/rkspi_loader.img of=/dev/mtdblock0 conv=notrunc

Then I created my NVMe like below:

wget https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.16/ubuntu-22.04.2-preinstalled-desktop-arm64-rock5b.img.xz
xz -dc ubuntu-22.04.2-preinstalled-desktop-arm64-rock5b.img.xz | sudo dd of=/dev/nvme0n1 bs=4k
Joshua-Riek commented 1 year ago

My guess the SPI image from Radxa might be old/outdated. The SPI image mentioned above is one I compiled.

xxxsskxxx commented 1 year ago

Thanks, where can we get your SPI?

Joshua-Riek commented 1 year ago

It's included in my ubuntu image and is packaged on my ppa. But here is a direct download. rkspi_loader.zip

Joshua-Riek commented 1 year ago

I updated the wiki page with more information about this process. I still plan on adding more details, but hopefully, it will help others.

https://github.com/Joshua-Riek/ubuntu-rockchip/wiki/Rock-5

xxxsskxxx commented 1 year ago

Thanks, all resolved now, just a tip for users, dont follow Radxa guide, simply follow the wiki for the Rock 5B here otherwise you wont be able to boot with an NVME connected until you format the SSD.

Load the Ubuntu image to your SD Card or EMMC Connect to ROck 5B and power on Flash the SPI first as per the Wiki (https://github.com/Joshua-Riek/ubuntu-rockchip/wiki/Rock-5) Format the NVME (i did this to ensure my SSD weas clean / https://nvmexpress.org/open-source-nvme-management-utility-nvme-command-line-interface-nvme-cli/ - 2.4 is available as of time of writing) Run the following to download and install the image to the NVME:- wget https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.16/ubuntu-22.04.2-preinstalled-desktop-arm64-rock5b.img.xz xz -dc ubuntu-22.04.2-preinstalled-desktop-arm64-rock5b.img.xz | sudo dd of=/dev/nvme0n1 bs=4k

Power Off Remove EMMC or SD card Power on ROck 5b and you will boto Ubuntu from the NVME only.

Thanks!

000xxx commented 11 months ago

It's included in my ubuntu image and is packaged on my ppa. But here is a direct download. rkspi_loader.zip

Thank you for advice!

Please update wiki, there is wrong path: Wiki info:

if=/lib/u-boot-orangepi-rk3588/rkspi_loader.img
root@ubuntu:~# find / -name rkspi_loader.img
/usr/lib/u-boot-orangepi-rk3588/rkspi_loader.img

Might be worth to mention that file is present in Ubuntu image.

Joshua-Riek commented 11 months ago

The path /lib/ is linked to /usr/lib/, so both should work. But I see the confusion and will update the path.