U-Boot with direct NVMe boot support for eMMC/SPI Flash
#73
(07-07-2020, 08:57 AM)pcm720 Wrote:
(07-07-2020, 08:47 AM)mamboman777 Wrote:
(07-07-2020, 08:42 AM)tophneal Wrote:
(07-07-2020, 08:35 AM)mamboman777 Wrote: Thanks for the encouragement.  Making a backup now.  

Just to be clear, you are saying I should follow instructions from this, right?  https://github.com/pcm720/u-boot-build-scripts

No, his earlier, rockchip-based uboot has this command for writing to SPI:
Code:
sudo dd if=spiflash.bin of=/dev/mtd0
Looking at the build script of the most recent (your link,) that spiflash.bin will be in your build folder.
Ok.  Still seeking clarification as I'd really like this to work the first time.  1. Download and extract from https://github.com/pcm720/u-boot-build-scripts
2. Run build.sh
3. then run "sudo dd if=spiflash.bin of=/dev/mtd0

If this is already documented someplace, I apologize, but could you please point me in the right direction.  

Thanks!

First of all, to build the U-Boot on x32/x64 PC, you'll need to install aarch64-linux-gnu-gcc cross-compiler.
Then, clone the repository with "git clone --recursive", this will also clone ATF and U-Boot repositories as submodules.
After that, just build the U-Boot with build.sh and write spiflash.bin to /dev/mtd0 via dd.
It's going to be a while, based off of the speed it looks like dejadup is running.  I've also got to make sure I have a working SD manjaro image before I get started.  That being said, I was planning on building and running this on my aarch64 PBP then flashing directly from there.  pcm720, are you saying that I should do something else?
  Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad What to can't boot from TF card, EMMC system broken - any advice?do guys? qingss0 1 1,100 12-18-2025, 01:05 AM
Last Post: qingss0
  swap eMMC advice jceaser 2 1,461 10-23-2025, 09:59 PM
Last Post: Der Geist der Maschine
  Need new eMMC Karsten1 2 3,502 10-23-2025, 09:38 AM
Last Post: jceaser
  Bonk to boot biketool 2 1,673 10-21-2025, 09:08 AM
Last Post: biketool
  3 days in, slow/stuck or no boot. lgmpbp2 34 27,568 06-11-2025, 08:53 AM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 17,207 04-03-2025, 07:47 AM
Last Post: Tazdevl
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 11,684 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 3,950 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 5,164 10-23-2024, 03:49 AM
Last Post: chaylengordon
  Unable to boot? YossiS 4 3,802 09-04-2024, 10:35 AM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)