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 - Atch - 12-16-2018

Hi,

I managed to move the FS on a NVMe SSD and to start on it from a SD card using this link:
https://forum.frank-mankel.org/topic/208/booten-von-der-nvme-platte

But I don't get if there is a way to start directly from the NVMe without micro SD card.

Is there still no SPI option to boot from the NVMe?


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 12-17-2018

Quote:But I don't get if there is a way to start directly from the NVMe without micro SD card.

No, it's not possible. u-boot can't do it atm.

Easy way to boot from nvme is to use armbian nand-sata-install script Wink


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Atch - 12-21-2018

(12-17-2018, 01:23 AM)Bullet64 Wrote:
Quote:Easy way to boot from nvme is to use armbian nand-sata-install script Wink

Thanks a lot for you reply!

Unfortunately I just gave a try, the script is running well, but when I shutdown the device once it's done and remove the eMMC, while starting, only the green power LED light up, neither the white LED from the board or the green on the NVMe PCIe card light up :-(

If I put back the eMMC, I am starting on it as usual, not on the NVMe.

Here are the steps I have followed:
I have selected the option 6:
   
I have selected a partition on the NVMe:
   
Then the copie was running:
   
And finally:
   

I removed the power cable; the eMMC;
I putted back the power cable and then... nothing excepted the power green LED and the RJ45 port LEDs (I have waited for severals minutes but still...).

I just saw this message during the process:
Quote:mount: wrong fs type, bad option, bad superblock on /dev/nvme0n1p3,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
There it is (after a reboot):
Quote:[    5.333132] zram0: detected capacity change from 0 to 52428800
[    5.536695] EXT4-fs (zram0): mounted filesystem without journal. Opts: discard
[    5.627696] cdn-dp fec00000.dp: Direct firmware load for rockchip/dptx.bin failed with error -2
[    6.430433] random: nonblocking pool is initialized
[    6.969421] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.002656] nr_pdflush_threads exported in /proc is scheduled for removal
[    7.037717] NET: Registered protocol family 17
[    8.967918] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[    9.631755] cdn-dp fec00000.dp: Direct firmware load for rockchip/dptx.bin failed with error -2
[   17.635845] cdn-dp fec00000.dp: Direct firmware load for rockchip/dptx.bin failed with error -2

I have no idea what I am doing wrong :-(


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 12-21-2018

You can't boot from nvme only. That script will use the nvme as root device. Bootdevice must be on sd-card, spi memory or on eMMC.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Atch - 12-21-2018

(12-21-2018, 03:31 PM)Bullet64 Wrote: You can't boot from nvme only. That script will use the nvme as root device. Bootdevice must be on sd-card, spi memory or on eMMC.

Sorry I get it wrong but isn't it the goal of the nand-sata-install script to set the boot on the SPI and the rootfs on the NVMe?

[Image: attachment.php?aid=1282]

(12-21-2018, 03:31 PM)Bullet64 Wrote: You can't boot from nvme only. That script will use the nvme as root device. Bootdevice must be on sd-card, spi memory or on eMMC.

I guess I need to flash the SPI before to run this script, I will give another try (last time the blinking LED never stoped Undecided).


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 12-22-2018

When you flash spi and the white led begins to blink its finished.


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Atch - 12-25-2018

Thanks!

I don't manage to boot directly on the SPI + NVMe SSD though, even with the nand-sata-install script.

Here are my logs: https://drive.google.com/drive/folders/1wkIBty8VwfQApKwKucx98Z6uJVvd7a9q?usp=sharing

It sounds like SPI + NVMe SSD boot is not working on the RP64 :-(


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Bullet64 - 12-25-2018

For what i know, actual u-boot can only boot from USB and PXE.

I am using NVMe as root device with sd-card (boot device).


RE: Is PCIE x4 bootable for NVMe SSD under Linux - Atch - 12-25-2018

Thanks for sharing your experience, I have spend too much time on this, I guess I will do like you, and buy a SD card just to boot from it.