U-Boot with direct NVMe boot support for eMMC/SPI Flash
(07-21-2020, 09:15 AM)viel Wrote: Hi all,

This is mi experience trying boot with the NVMe SSD Intel 660p M.2 1 TB SSDPEKNW010T8X1 on PBP for now:

After dd if=Manjaro-ARM-i3-pbpro-20.06.img of=/dev/nvme0n1
and flashing SPI following @pcm720 
https://github.com/pcm720/u-boot-build-scripts/releases/tag/v2020.07-1 
# flash_erase /dev/mtd0 0 0
# dd if=spiflash.bin of=/dev/mtd0

and unplug/remove SD and eMMC

  1. when i boot the pinebook pro with the new SPI config, the power led stay ambar 10 seconds then turns green and boot. (On firsts boots after unboxin PBP the power led tuns green after 1 second.)
  2. the screen resolution don't work correctly and can log in. I pluged the eMMc and reboot the PBP. then it boot from emmc correctly before reboot the first wrong boot with no screen.
  3. can't boot from SD.
I decided delete the spi due to https://wiki.pine64.org/index.php/Pinebo...le_Storage  and return to factory boot. If i undestood it well (At this time, the Pinebook Pro ships with a Manjaro + KDE build with uboot on the eMMC. Its boot order is: SD, USB, then eMMC.)  
# flash_erase /dev/mtd0 0 0

but the power led remain ambar for 10 seconds when i power up the PBP. Then boot normal from emmc or sd without problems.

I have bought a UART cable and a USB Type-A to USB-C cable and this weekend i will have it to see what is happen during ambar power led boot stage.

some info/help are welcome, thanks.
I ran into issues with my PBP and getting the spiflash to work, too.  I am also running a PBP with an Intel 660P 1tb NVME drive.  With pcm720's awesome help I was able to get everything running smoothly.  

I don't know your experience level and I have made these mistakes myself, so please forgive me if some of these suggestions sound a little basic. 

If you haven't done so already, you'll need to install mtd-utils.  You can use the package manager to do this or run "sudo pacman -S mdt-utils" in a terminal.  Please note, capatilization is important in the Manjaro/Arch terminal (I only say this because I had to learn the hard way that "pacman -s" is not "pacman -S"

Next, you have to navigate the terminal to the directory where you saved the spiflash.bin file.  Example "cd /home/username/Downloads" 

I noticed in your post that you ran 'flash_erase/mtd0 0 0' and 'dd if=spiflash.bin of=/def/mtd0'.  Next, you'll need to make sure that you run the commands listed above as sudo.  So, "sudo flash_erase/mtd0 0 0" If that works correctly I get a readout that takes about a minute and goes through a percentage as the spiflash is erased.  The second command should be "dd if=spiflash.bin of=/dev/mtd0"

That should get the spiflash.bin up and running for you.  What is currently on the NVME drive?  You won't be able to boot from it unless you've installed manjaro on it.  ( I know this sounds basic, but like I've said, I have made this mistake before)

I hope this helps, but if not, you may want to reach out in a private message to pcm720 to see if they can help.

-Josh
  Reply


Messages In This Thread
RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - by mamboman777 - 07-22-2020, 07:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cant boot into an OS trashtendenz 3 662 10-23-2024, 03:49 AM
Last Post: chaylengordon
  3 days in, slow/stuck or no boot. lgmpbp2 30 3,685 09-05-2024, 08:49 AM
Last Post: lgmpbp2
  Unable to boot? YossiS 4 383 09-04-2024, 10:35 AM
Last Post: wdt
  upgrading u-boot--what version? where to get it? bsammon 11 2,610 05-22-2024, 09:33 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 2,278 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 630 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 3,723 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 1,468 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 1,044 11-22-2023, 11:47 AM
Last Post: fxc
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 42 67,867 11-20-2023, 06:22 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 5 Guest(s)