load root on NVMe and /boot on eMMC
#5
(07-18-2019, 08:59 AM)Vikk42 Wrote:
(07-18-2019, 06:45 AM)stuartiannaylor Wrote:
(07-18-2019, 05:27 AM)hmuller Wrote:
(07-17-2019, 07:10 PM)Vikk42 Wrote: While looking for a better way to get the kernel on my NVMe I ran across this guy who figured out the best way to load his system. Put the boot files on the boot device and the root files on the fastest device, NVMe.

I'm hoping someone here can put some flesh on these bones to make it work for us. Did I say I'm a linux/programmer novice, yes that is me. Eventually I could figure this out. Think I know how to proceed if no one else cares, but I would like expert advice too.


https://delightlylinux.wordpress.com/201...sing-nvme/

An NVMe SSD makes a superb system drive for a Linux installation, but an easy point to forget is how to make Linux boot on systems that do not support NVMe booting from the motherboard BIOS.
So, here is a quick reminder.

I do not yet own an embedded SBC (single board computer), but will once the Pinebook Pro goes into production. So I have not yet done this, but will once I have the hardware.

This guy has done some work on this, but was not successful at the time he published this:

https://yuncloud.ddns.net/wordpress/blog...nvme-disk/

This article most likely contains the solution to the problem:

https://unix.stackexchange.com/questions...vme-device

Later this year, I plan on tackling this and will post the solution in the forums.

https://forum.frank-mankel.org/topic/208...vme-platte
google translate to the rescue

I am aware of Frank-Mankel solution.

But as he points out it has a problem in that it will be broke by any system update. 


Quote:update
A shutdown now works fine, even after waking up via the power button.
Kernel update


Be careful , with a kernel update you have to repeat the changes in the file /boot/extlinux/extlinux.conf .


If we get off to the right start by letting the system build the file systems in the right place of boot software on boot drives and root and swap on NVMe, the problem fixes itself.

Can someone point out where U-Boot chooses to put the kernel and swap files on the system.

I guess if it was a trivial solution Frank-Mankel would have done it already?

Its not uboot depends on distro but think its just part of the initcpio hooks if you where using Arch, initramfs if deb/buntu?
Have a look at for hints as seems to have some good tutorials that just have to substitute with specifics.
https://github.com/umiddelb/armhf/wiki/H...ARM-device
https://github.com/umiddelb/armhf/wiki/G...-U-Boot%22

I currently have a rockpi4 which can boot from spi nor to nvme ssd, so blind until the RockPro64 turns up in the next couple of weeks.
So dunno until I also try in a couple of weeks.


Messages In This Thread
load root on NVMe and /boot on eMMC - by Vikk42 - 07-17-2019, 07:10 PM
RE: load root on NVMe and /boot on eMMC - by stuartiannaylor - 07-18-2019, 12:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Video Video and Guide to install Android to emmc no emmc to usb adapter NightCrawler504 0 3,310 04-21-2019, 07:19 PM
Last Post: NightCrawler504
  HOW TO - install linux on emmc without etcher or USB adapter dukla2000 4 10,394 07-31-2018, 12:40 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)