PINE64
U-Boot with direct NVMe boot support for eMMC/SPI Flash - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: U-Boot with direct NVMe boot support for eMMC/SPI Flash (/showthread.php?tid=8439)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - Wizzard - 01-13-2020

(01-13-2020, 05:13 AM)mamboman777 Wrote: I do not understand how to get this working. I used gnome-disk-utility to"restore" a fresh disk image to s micro SD card. I booted to the SD card then "restored" Manjaro to the emmc and default Debian to the nvme. According to the wiki the uboot code that I need is in the Manjaro release, but it's still booting from SD card first, emmc second. Nothing from nvme. What am I doing wrong?

I think that NVMe is just third in the order. So I needed to remove OS from eMMC to boot from NVMe.


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - mamboman777 - 01-13-2020

(01-13-2020, 05:24 AM)Wizzard Wrote:
(01-13-2020, 05:13 AM)mamboman777 Wrote: I do not understand how to get this working. I used gnome-disk-utility to"restore" a fresh disk image to s micro SD card. I booted to the SD card then "restored" Manjaro to the emmc and default Debian to the nvme. According to the wiki the uboot code that I need is in the Manjaro release, but it's still booting from SD card first, emmc second. Nothing from nvme. What am I doing wrong?

I think that NVMe is just third in the order. So I needed to remove OS from eMMC to boot from NVMe.
I tried completely wiping the emmc and got nothing. Is something supposed to be on the emmc that points to the nvme? Or did I miss flashing something onto the board that points to the nvme?


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - Wizzard - 01-13-2020

So it seems that you did not flash it correctly or completely, not sure. I flashed it directly from rkdeveloptool.


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - mamboman777 - 01-13-2020

(01-13-2020, 06:19 AM)Wizzard Wrote: So it seems that you did not flash it correctly or completely, not sure. I flashed it directly from rkdeveloptool.

That's what I'm missing. I'm sorry for my ignorance.  What needs to be flashed?

Well, I got something to happen...I followed the instructions for flashing. The machine powered on once too the open sesame screen, them rebooted and nothing. Worse yet, now when an SD is inserted it powers on, the led flashes and the machine appears to power off. Appears I've gone and created a paperweight. Any ideas how to get this working?


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - Wizzard - 01-13-2020

I followed this guide https://iotbyhvm.ooo/rockpi-4-write-image-to-spi-flash-from-usb-otg-port/ from chapter "Write to SPI flash via USB" and flashed this file: https://github.com/pcm720/rockchip-u-boot/releases/download/nvme-boot/spiflash.bin


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - mamboman777 - 01-13-2020

Can't even boot onto anything now. I'm too frustrated she need to step away till this evening. I'll check back later.


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - Wizzard - 01-13-2020

No problem, to boot PBP in the MASKROM mode, use Recovery button and connect it to your PC with USB-C cable.

(Need to open PBP and uncover the PCB) The button is no. 28.
[Image: PBPL_S.jpg]


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - mamboman777 - 01-13-2020

(01-13-2020, 07:03 AM)Wizzard Wrote: No problem, to boot PBP in the MASKROM mode, use Recovery button and connect it to your PC with USB-C cable.

(Need to open PBP and uncover the PCB) The button is no. 28.
[Image: PBPL_S.jpg]

Thank you.  That all makes sense. I will be able to do this when I get home from work tonight.  After I connect it to pic, then what?


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - Wizzard - 01-13-2020

I dont remember everything what I did but I see that it is necessary to download rkdeveloptool in Linux and build it.


Code:
git clone https://github.com/rockchip-linux/rkdeveloptool
cd rkdeveloptool
autoreconf -i
./configure
make


and then to flash that spi image.

Code:
rkdeveloptool wl 0 /path/to/uboot-trust-spi.img



RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - mamboman777 - 01-13-2020

(01-13-2020, 08:05 AM)Wizzard Wrote: I dont remember everything what I did but I see that it is necessary to download rkdeveloptool in Linux and build it.


Code:
git clone https://github.com/rockchip-linux/rkdeveloptool
cd rkdeveloptool
autoreconf -i
./configure
make


and then to flash that spi image.

Code:
rkdeveloptool wl 0 /path/to/uboot-trust-spi.img
Thank you so much for taking the time to do this.  What does "wl 0" do? I am able to follow terminal commands and will do this when I get home, but I also would like to try to understand what I'm doing. Is the spi the bit of code that is on board itself?