PINE64
Is PCIE x4 bootable for NVMe SSD under Linux - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98)
+--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101)
+--- Thread: Is PCIE x4 bootable for NVMe SSD under Linux (/showthread.php?tid=6082)

Pages: 1 2 3 4 5


RE: Is PCIE x4 bootable for NVMe SSD under Linux - jzhang18 - 08-02-2018

Is there anyway to boot from: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961?

Or switch system root ("\) to NVMe SSD

Either way is good to me.

I am looking for someone could answer my question.

Using PCIe to connect to storage-only HHD is a waste. I want PCIe SSD as my system drive.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - tllim - 08-02-2018

(08-02-2018, 02:36 PM)jzhang18 Wrote: Is there anyway to boot from: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961?

Or switch system root ("\)  to  NVMe SSD

Either way is good to me.  

I am looking for someone could answer my question.  

Using PCIe to connect to storage-only HHD is a waste.    I want PCIe SSD as my system drive.

ROCKPro64 only can boot up from eMMC, SPI Flash and SD card. Need to wait till ayufan implement the SPI Flash (build in on board) boot and then able to continue boot to NVMe.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 08-03-2018

SPI Flash ready? My last test failed.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 08-03-2018

@jzhang: It's possible, with a little problem - only cold start Sad No reset button, no 'shutdown -r now' atm.

https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte Sorry, only german, but i think it's easy to understand.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - jzhang18 - 08-03-2018

(08-03-2018, 08:39 AM)Bullet64 Wrote: @jzhang: It's possible, with a little problem - only cold start Sad No reset button, no 'shutdown -r now' atm.

https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte Sorry, only german, but i think it's easy to understand.

Wow, that is almost exactly what I want.

Why "shutdown -r now" or "reboot" or "reset button"  skip to read extlinux.conf file?

There must be a bug in u-boot.

Thanks


RE: Is PCIE x4 bootable for NVMe SSD under Linux - jzhang18 - 08-03-2018

(08-03-2018, 08:39 AM)Bullet64 Wrote: @jzhang: It's possible, with a little problem - only cold start Sad No reset button, no 'shutdown -r now' atm.

https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte Sorry, only german, but i think it's easy to understand.

I saw you modified eMMC (or microSD) /boot/extlinux/extlinux.conf

After you switch "/" to NVMe SSD,   you should do it again to modify: /boot/extlinux/extlinux.conf

So both your eMMC and NVMe SSD point to NVMe SSD  as "/"


Then 'shutdown -r now', 'reboot', reset button -- might work consistently as "cold start" I guess.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 08-03-2018

Oh, thanks. I don't think about it.

Reset-Button work but 'shutdown -r now' don't work.

https://pastebin.com/DqBG7c01


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 08-04-2018

Update

It's important that /boot on sd-card and on nvme are the same. Then reboot will work!

So, please copy after an kernel-update the drawer /boot to /dev/mmcblk0p7 Tongue

Howto in german ->  https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte


RE: Is PCIE x4 bootable for NVMe SSD under Linux - jzhang18 - 08-06-2018

It is a very nice solution now - to use this board with the best performance from PCIe x4.

Highly recommended!

Thanks to Bullet64's test result and thanks to Ayufan's Linux image.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - dukla2000 - 08-06-2018

(08-04-2018, 01:33 AM)Bullet64 Wrote: Howto in german ->  https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte

Fantastic - nice work.

Code:
$ systemd-analyze
Startup finished in 3.604s (kernel) + 2.336s (userspace) = 5.941s
graphical.target reached after 2.306s in userspace
Was over 7s so measurably faster in real life.

And learned something: need to read more but did not realize could use the SSD without a partition. At first I was playing with /dev/nvme0n1p1 but makes sense to cut out a layer and just use /dev/nvme0n1 Big Grin 

Thank you Bullet64 & Ayufan