How can I flash SPI so that I can boot from NVMe?
#2
(08-10-2021, 04:11 PM)codingpanic Wrote: I've done several searches and there is one SPI package that appears to enable NVMe boot, but the repo was archived by the developer.

Is there any way to set this up so NVMe is the default boot drive? Without using the emmc at all?

Thanks
If you're talking about this thread:
https://forum.pine64.org/showthread.php?tid=8439

then you can still download the binary images here or build from source (I think this is PCM720's most recent code but older code is archived elsewhere too):
https://github.com/pcm720/u-boot-build-scripts/releases

I have not tried to flash my SPI yet, but I dowloaded the images and I also built them myself natively on my Pinebook Pro (compile takes several hours IIRC). My native build binaries were a little smaller than PCM720's cross compile. Even though I did my own build I think I'll use PCM720's binary images, if I ever flash my SPI, because other users have had success with them. My native build is untested and I don't really want to risk the compiler differences.

I'm running Manjaro, which can boot from NVMe but it requires the eMMC to be retained and installed in the PPB with U-boot code intact (U-boot code is written to the "tracks" before the boot partition) so, if you want to remove the eMMC entirely, you'll need to flash your SPI memory, as you've indicated. The Manjaro U-boot redirects to the NVMe boot partition when a valid /boot is not found on the eMMC. Both / and /boot are on the NVMe drive however and are not required to be present on eMMC at all (though it's been handy for me too keep / and /boot on my eMMC as a backup). If the eMMC is repartitioned, the first partition must begin after offset to avoid overwriting the U-boot loader area.

Unfortunately Manjaro NVMe boot broke when Manjaro updated the kernel to 5.13 and I have not solved the problem. I edited my pacman.conf file to ignore kernel updates and so I've "pinned" my kernel to 5.12.

Here's my long thread where I tried to isolate the problem and learned to build a test kernel but there's more info there about NVMe boot on Manjaro:
https://forum.manjaro.org/t/nvme-support...04-1/63774

There's no Manjaro Kernel build howto for Pinbook Pro that I could find and the process is a little different on the Pinebook Pro so my thread is good for learning though my stuggles with a custom kernel package build too.
  Reply


Messages In This Thread
RE: How can I flash SPI so that I can boot from NVMe? - by calinb - 08-11-2021, 12:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  upgrading u-boot--what version? where to get it? bsammon 14 4,969 04-03-2025, 07:47 AM
Last Post: Tazdevl
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 4,220 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 463 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 1,134 10-23-2024, 03:49 AM
Last Post: chaylengordon
  3 days in, slow/stuck or no boot. lgmpbp2 30 7,331 09-05-2024, 08:49 AM
Last Post: lgmpbp2
  Unable to boot? YossiS 4 939 09-04-2024, 10:35 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 3,325 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 842 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 4,825 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 2,020 12-13-2023, 08:17 PM
Last Post: trillobite

Forum Jump:


Users browsing this thread: 1 Guest(s)