Booting from NVME
#1
Hi all,

I finally bit the bullet and ordered a Intel 660p 512GB NVME SSD for testing my RockPro64 on it.
I downloaded the latest Ayufan Debian Buster build from https://github.com/ayufan-rock64/linux-b...m64.img.xz

I originally installed it on an SD card, then decided to copy it over to an USB stick (supposedly faster).

After that I again copied it over to the NVME drive.

The script I used for the migration is:
Code:
#!/bin/bash

# Parameters
source="/dev/disk/by-id/usb-Samsung_Flash_Drive_xxxxxxxxxxxxxxxx-0:0"
destination="/dev/disk/by-id/nvme-INTEL_xxxxxxxxxxxxxxxxxxxxxxxxx"
partitions=(1 2 3 4 5 6 7)
backupFolder="./backup"
rootid=7 # Root ID partition number

# Generate timestamp
timestamp=$(date +%Y%m%d%H%M)

# Create folder if not exist
mkdir -p $backupFolder

# Save GPT disks
sgdisk --backup=$backupFolder/$(basename $source)_$timestamp.sgdisk $source
sgdisk --backup=$backupFolder/$(basename $destination)_$timestamp.sgdisk $destination

# Copy $source layout to $dest and regenerate GUIDs
sgdisk --replicate=$destination $source
sgdisk -G $destination

# Clone partitions
for partition in "${partitions[@]}"; do
   echo "Clone partition $source-part$partition -> $destination-part$partition"
   dd if=$source-part$partition of=$destination-part$partition bs=1M status=progress
   echo "Cloned partition finished!"
done

# Must be done manually for now ...
#yes "-1MiB" | parted $destination resizepart $rootid
#e2fsck $destination-part$rootid
#resize2fs $destination-part$rootid

I then included the following modules and regenerated the initramfs:

cat /etc/initramfs-tools/modules
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pcie_rockchip_host
phy_rockchip_pcie
nvme


update-initramfs -k all -u


I cannot book from NVME at the present moment. The onboard red LED stays lighted up.
If I put back the USB stick it boots normally.

Is there something I am forgetting ? Thank you
  Reply
#2
(05-11-2020, 11:59 AM)ilovegentoo Wrote: Hi all,

I finally bit the bullet and ordered a Intel 660p 512GB NVME SSD for testing my RockPro64 on it.
I downloaded the latest Ayufan Debian Buster build from https://github.com/ayufan-rock64/linux-b...m64.img.xz

I originally installed it on an SD card, then decided to copy it over to an USB stick (supposedly faster).

After that I again copied it over to the NVME drive.

The script I used for the migration is:
Code:
#!/bin/bash

# Parameters
source="/dev/disk/by-id/usb-Samsung_Flash_Drive_xxxxxxxxxxxxxxxx-0:0"
destination="/dev/disk/by-id/nvme-INTEL_xxxxxxxxxxxxxxxxxxxxxxxxx"
partitions=(1 2 3 4 5 6 7)
backupFolder="./backup"
rootid=7 # Root ID partition number

# Generate timestamp
timestamp=$(date +%Y%m%d%H%M)

# Create folder if not exist
mkdir -p $backupFolder

# Save GPT disks
sgdisk --backup=$backupFolder/$(basename $source)_$timestamp.sgdisk $source
sgdisk --backup=$backupFolder/$(basename $destination)_$timestamp.sgdisk $destination

# Copy $source layout to $dest and regenerate GUIDs
sgdisk --replicate=$destination $source
sgdisk -G $destination

# Clone partitions
for partition in "${partitions[@]}"; do
   echo "Clone partition $source-part$partition -> $destination-part$partition"
   dd if=$source-part$partition of=$destination-part$partition bs=1M status=progress
   echo "Cloned partition finished!"
done

# Must be done manually for now ...
#yes "-1MiB" | parted $destination resizepart $rootid
#e2fsck $destination-part$rootid
#resize2fs $destination-part$rootid

I then included the following modules and regenerated the initramfs:

cat /etc/initramfs-tools/modules
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pcie_rockchip_host
phy_rockchip_pcie
nvme


update-initramfs -k all -u


I cannot book from NVME at the present moment. The onboard red LED stays lighted up.
If I put back the USB stick it boots normally.

Is there something I am forgetting ? Thank you

Did you flash a bootloader to the SPI?
  Reply
#3
(05-11-2020, 01:08 PM)tophneal Wrote:
(05-11-2020, 11:59 AM)ilovegentoo Wrote: Hi all,

I finally bit the bullet and ordered a Intel 660p 512GB NVME SSD for testing my RockPro64 on it.
I downloaded the latest Ayufan Debian Buster build from https://github.com/ayufan-rock64/linux-b...m64.img.xz

I originally installed it on an SD card, then decided to copy it over to an USB stick (supposedly faster).

After that I again copied it over to the NVME drive.

The script I used for the migration is:
Code:
#!/bin/bash

# Parameters
source="/dev/disk/by-id/usb-Samsung_Flash_Drive_xxxxxxxxxxxxxxxx-0:0"
destination="/dev/disk/by-id/nvme-INTEL_xxxxxxxxxxxxxxxxxxxxxxxxx"
partitions=(1 2 3 4 5 6 7)
backupFolder="./backup"
rootid=7 # Root ID partition number

# Generate timestamp
timestamp=$(date +%Y%m%d%H%M)

# Create folder if not exist
mkdir -p $backupFolder

# Save GPT disks
sgdisk --backup=$backupFolder/$(basename $source)_$timestamp.sgdisk $source
sgdisk --backup=$backupFolder/$(basename $destination)_$timestamp.sgdisk $destination

# Copy $source layout to $dest and regenerate GUIDs
sgdisk --replicate=$destination $source
sgdisk -G $destination

# Clone partitions
for partition in "${partitions[@]}"; do
   echo "Clone partition $source-part$partition -> $destination-part$partition"
   dd if=$source-part$partition of=$destination-part$partition bs=1M status=progress
   echo "Cloned partition finished!"
done

# Must be done manually for now ...
#yes "-1MiB" | parted $destination resizepart $rootid
#e2fsck $destination-part$rootid
#resize2fs $destination-part$rootid

I then included the following modules and regenerated the initramfs:

cat /etc/initramfs-tools/modules
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pcie_rockchip_host
phy_rockchip_pcie
nvme


update-initramfs -k all -u


I cannot book from NVME at the present moment. The onboard red LED stays lighted up.
If I put back the USB stick it boots normally.

Is there something I am forgetting ? Thank you

Did you flash a bootloader to the SPI?

i had some problems with nvme ssd too. i can confirm lenovo ssds are not working while samsung ssds are working fine with the same setup. can u get an error from the boot process with the graphical uboot/serial port
  Reply
#4
(05-11-2020, 01:08 PM)tophneal Wrote:
(05-11-2020, 11:59 AM)ilovegentoo Wrote: Hi all,

I finally bit the bullet and ordered a Intel 660p 512GB NVME SSD for testing my RockPro64 on it.
I downloaded the latest Ayufan Debian Buster build from https://github.com/ayufan-rock64/linux-b...m64.img.xz

I originally installed it on an SD card, then decided to copy it over to an USB stick (supposedly faster).

After that I again copied it over to the NVME drive.

The script I used for the migration is:
Code:
#!/bin/bash

# Parameters
source="/dev/disk/by-id/usb-Samsung_Flash_Drive_xxxxxxxxxxxxxxxx-0:0"
destination="/dev/disk/by-id/nvme-INTEL_xxxxxxxxxxxxxxxxxxxxxxxxx"
partitions=(1 2 3 4 5 6 7)
backupFolder="./backup"
rootid=7 # Root ID partition number

# Generate timestamp
timestamp=$(date +%Y%m%d%H%M)

# Create folder if not exist
mkdir -p $backupFolder

# Save GPT disks
sgdisk --backup=$backupFolder/$(basename $source)_$timestamp.sgdisk $source
sgdisk --backup=$backupFolder/$(basename $destination)_$timestamp.sgdisk $destination

# Copy $source layout to $dest and regenerate GUIDs
sgdisk --replicate=$destination $source
sgdisk -G $destination

# Clone partitions
for partition in "${partitions[@]}"; do
   echo "Clone partition $source-part$partition -> $destination-part$partition"
   dd if=$source-part$partition of=$destination-part$partition bs=1M status=progress
   echo "Cloned partition finished!"
done

# Must be done manually for now ...
#yes "-1MiB" | parted $destination resizepart $rootid
#e2fsck $destination-part$rootid
#resize2fs $destination-part$rootid

I then included the following modules and regenerated the initramfs:

cat /etc/initramfs-tools/modules
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pcie_rockchip_host
phy_rockchip_pcie
nvme


update-initramfs -k all -u


I cannot book from NVME at the present moment. The onboard red LED stays lighted up.
If I put back the USB stick it boots normally.

Is there something I am forgetting ? Thank you

Did you flash a bootloader to the SPI?

Thank you for your message, @tophneal. Sorry for the late reply. Unfortunately I didn't get any new post notification even though I'm subscribed.

I got the u-boot-flash-spi-rockpro64.img.xz tool from https://github.com/ayufan-rock64/linux-u-boot/releases following the instructions from https://github.com/ayufan-rock64/linux-b...ash-spi.md. I flashed to microSD card and booted. Then I got this white LED flashing about once per second, which should be a sign that the flash has been successful.
Rebooted but I see absolutely nothing. Heck HDMI doesn't appear to work, my screen complains about no input being present Sad .

(05-12-2020, 07:30 AM)khaosgrille Wrote:
(05-11-2020, 01:08 PM)tophneal Wrote:
(05-11-2020, 11:59 AM)ilovegentoo Wrote: Hi all,

I finally bit the bullet and ordered a Intel 660p 512GB NVME SSD for testing my RockPro64 on it.
I downloaded the latest Ayufan Debian Buster build from https://github.com/ayufan-rock64/linux-b...m64.img.xz

I originally installed it on an SD card, then decided to copy it over to an USB stick (supposedly faster).

After that I again copied it over to the NVME drive.

The script I used for the migration is:
Code:
#!/bin/bash

# Parameters
source="/dev/disk/by-id/usb-Samsung_Flash_Drive_xxxxxxxxxxxxxxxx-0:0"
destination="/dev/disk/by-id/nvme-INTEL_xxxxxxxxxxxxxxxxxxxxxxxxx"
partitions=(1 2 3 4 5 6 7)
backupFolder="./backup"
rootid=7 # Root ID partition number

# Generate timestamp
timestamp=$(date +%Y%m%d%H%M)

# Create folder if not exist
mkdir -p $backupFolder

# Save GPT disks
sgdisk --backup=$backupFolder/$(basename $source)_$timestamp.sgdisk $source
sgdisk --backup=$backupFolder/$(basename $destination)_$timestamp.sgdisk $destination

# Copy $source layout to $dest and regenerate GUIDs
sgdisk --replicate=$destination $source
sgdisk -G $destination

# Clone partitions
for partition in "${partitions[@]}"; do
   echo "Clone partition $source-part$partition -> $destination-part$partition"
   dd if=$source-part$partition of=$destination-part$partition bs=1M status=progress
   echo "Cloned partition finished!"
done

# Must be done manually for now ...
#yes "-1MiB" | parted $destination resizepart $rootid
#e2fsck $destination-part$rootid
#resize2fs $destination-part$rootid

I then included the following modules and regenerated the initramfs:

cat /etc/initramfs-tools/modules
Code:
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
pcie_rockchip_host
phy_rockchip_pcie
nvme


update-initramfs -k all -u


I cannot book from NVME at the present moment. The onboard red LED stays lighted up.
If I put back the USB stick it boots normally.

Is there something I am forgetting ? Thank you

Did you flash a bootloader to the SPI?

i had some problems with nvme ssd too. i can confirm lenovo ssds are not working while samsung ssds are working fine with the same setup. can u get an error from the boot process with the graphical uboot/serial port

Thank you for your message, @khaosgrille. What do you mean exactly? For some weird reason HDMI doesn't output anything .... Is that what you mean by "graphical uboot"? And what about the serial port?

Usually the only thing I (can) do is watch the DHCP server for seeing the leased IP address and then trying to ping and connect over SSH. Not very practical though Sad .
  Reply
#5
(05-13-2020, 05:18 AM)ilovegentoo Wrote: Thank you for your message, @khaosgrille. What do you mean exactly? For some weird reason HDMI doesn't output anything .... Is that what you mean by "graphical uboot"? And what about the serial port?

Usually the only thing I (can) do is watch the DHCP server for seeing the leased IP address and then trying to ping and connect over SSH. Not very practical though Sad .

I think what they mean is using the UART cable, you can view u-boot's menu when booting the RP64. It won't appear over HDMi, bc u-boot lacks those drivers.
  Reply
#6
(05-13-2020, 06:29 AM)tophneal Wrote:
(05-13-2020, 05:18 AM)ilovegentoo Wrote: Thank you for your message, @khaosgrille. What do you mean exactly? For some weird reason HDMI doesn't output anything .... Is that what you mean by "graphical uboot"? And what about the serial port?

Usually the only thing I (can) do is watch the DHCP server for seeing the leased IP address and then trying to ping and connect over SSH. Not very practical though Sad .

I think what they mean is using the UART cable, you can view u-boot's menu when booting the RP64. It won't appear over HDMi, bc u-boot lacks those drivers.

But I guess this UART cable was optional, right? I didn't order anything besides the RockPro64, Heatsink, Power Supply and enclosure. Or is it some kind of standard cable you can buy about anywhere?
  Reply
#7
It is sold as an optional accessory, correct. You can also get a generic UART cable (of the right type, there are several) from a number of retailers. Take a look at the wiki page for the board to make sure you purchase the correct cable.
  Reply
#8
This u-boot frpm ayifan will have output on HDMI.

https://github.com/ayufan-rock64/linux-m...t/releases
Sorry for any mistakes. English is not my native language

1. Quartz64 Model B, 4GB RAM

2. Quartz64 Model A, 4GB RAM

3. RockPro64 v2.1

https://linux-nerds.org/
  Reply
#9
(05-19-2020, 02:25 AM)Bullet64 Wrote: This u-boot frpm ayifan will have output on HDMI.

https://github.com/ayufan-rock64/linux-m...t/releases

Do you mean that I have to install the *.deb package ?

Right now I only used the u-boot-flash-spi-rockpro64.img.xz file. I didn't use the u-boot-erase-spi-rockpro64.img.xz [/url]because I believed that the "erase" feature is already included in the "flash" image. Or did I miss something?[url=https://github.com/ayufan-rock64/linux-mainline-u-boot/releases/download/2020.01-ayufan-2014-gff2cdd38/u-boot-flash-spi-rockpro64.img.xz]
  Reply
#10
Any update on this i have exacly the same issue
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Brick Maintained Linux booting from eMMC ootoovak 10 9,959 04-30-2022, 03:57 PM
Last Post: TRS-80
  A Rant About Pine, Other Distros, & Still Trying to Get Fedora Booting From eMMC. whitecat23 8 6,931 01-31-2022, 04:05 PM
Last Post: TRS-80
  New user: Booting from emmc spropine 1 1,785 12-17-2021, 09:37 AM
Last Post: spropine
Question Booting official Debian on RP64 arteeh 6 7,487 07-06-2021, 10:16 AM
Last Post: TRS-80
  Booting Linux/Debian from the eMMC linuxha 4 5,952 03-02-2021, 07:01 PM
Last Post: linuxha
Question My Rockpro64 stopped booting with these error messages please help seaurchin 4 5,527 02-18-2021, 04:27 PM
Last Post: TRS-80
  RockPro64 getting started - non-booting images [solved] new-rockpro-user 3 6,935 03-06-2020, 06:31 AM
Last Post: new-rockpro-user
  Is PCIE x4 bootable for NVMe SSD under Linux jzhang18 48 59,596 12-25-2018, 03:05 PM
Last Post: Atch
  Not booting with debian 0.7.7 image Bluetexon 0 1,730 11-28-2018, 01:40 PM
Last Post: Bluetexon
  Disable sdio (no wifi/bt) to fix pcie/nvme support RockPro64Newbie 0 1,990 09-22-2018, 04:07 PM
Last Post: RockPro64Newbie

Forum Jump:


Users browsing this thread: 1 Guest(s)