07-07-2020, 08:57 AM
(07-07-2020, 08:47 AM)mamboman777 Wrote:(07-07-2020, 08:42 AM)tophneal Wrote: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(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:
Looking at the build script of the most recent (your link,) that spiflash.bin will be in your build folder.Code:sudo dd if=spiflash.bin of=/dev/mtd0
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.