U-Boot with direct NVMe boot support for eMMC/SPI Flash
(01-03-2021, 01:21 PM)bwomp99 Wrote: ...
to do that I can (basically) just copy most of the root over to the NVMe and change the fstab - simple enough?
Yes, basically you copy all "/" to the NVMe, change it's "/etc/fstab" to reflect the new location.
And then change "/boot/x/y" to reflect the new root location on the kernel command line. Like;

linux  /linux-5.4.72-gentoo.3 root=/dev/nvme0n1p1 ...

I've left off the exact path to the U-Boot config file, (the "x/y"), as I don't have that information handy.
Further, some distros keep the master U-Boot config file on "/etc/" somewhere, so "/boot/x/y" might get over-written on OS update.

If that does not work and you need to restore, simply boot off a SD card, (which you should make sure you have both a working one and that U-Boot recognizes it as boot target). Then modify the eMMC's "/boot/x/y" again, but restore the old until you can figure out what went wrong.

I can't give exact steps as I've not done it. But others have.


My suggestion is to come up with the steps first, including the back out plan. Then implement. If something goes wrong, you at least have a plan you can update with any missing step.
--
Arwen Evenstar
Princess of Rivendale
  Reply


Messages In This Thread
RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - by Arwen - 01-04-2021, 08:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bonk to boot biketool 0 419 10-01-2025, 02:17 AM
Last Post: biketool
  Need new eMMC Karsten1 1 2,412 07-22-2025, 03:10 PM
Last Post: KC9UDX
  3 days in, slow/stuck or no boot. lgmpbp2 34 19,323 06-11-2025, 08:53 AM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 12,519 04-03-2025, 07:47 AM
Last Post: Tazdevl
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 9,708 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 3,140 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 4,182 10-23-2024, 03:49 AM
Last Post: chaylengordon
  Unable to boot? YossiS 4 2,672 09-04-2024, 10:35 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 6,194 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 1,979 01-16-2024, 09:17 AM
Last Post: jbradley419

Forum Jump:


Users browsing this thread: 2 Guest(s)