Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Download U-boot-sunxi-with-spl.bin

4 views
Skip to first unread message

Lindsay Arvayo

unread,
Jan 25, 2024, 6:19:52 PMJan 25
to
<div>When the build has completed, there will be u-boot-sunxi-with-spl.bin available in your u-boot tree. The installation step will instruct how to install this on the installation media (e.g. a SD card), but first U-Boot needs to be configured.</div><div></div><div></div><div></div><div></div><div></div><div>download u-boot-sunxi-with-spl.bin</div><div></div><div>Download Zip: https://t.co/pPi0rraBS8 </div><div></div><div></div><div>Then load the u-boot-sunxi-with-spl.bin image file into DRAM, either byreading directly from an SD card or eMMC user data partition, or from afile system or TFTP (see above), and transfer it to the boot partition:</div><div></div><div></div><div>Although this configuration file was originally made for the NanoPi M1 Plus it works for other H3 based boards too.After compilation is done successfully a "u-boot-sunxi-with-spl.bin" file will be generated.</div><div></div><div>Update the u-boot in your installation SD card in a PC host:</div><div></div><div></div><div>When your system boots from an SD card you can use the "scp" command to copy the "u-boot-sunxi-with-spl.bin" file to your board first and then use the "dd" command to update the U-boot in the SD card:</div><div></div><div></div><div>If your board has eMMC flash and boots from eMMC you can use the "scp" command to copy the "u-boot-sunxi-with-spl.bin" file to your board first and then use the "dd" command to update the U-boot in eMMC:</div><div></div><div></div><div>DD the "u-boot-sunxi-with-spl.bin" file to your sd card (AFTER) you have flashed the LibreELEC image. This is the modified SPL binary that was needed to get the Tanix TX6 to boot - due to DDR3 RAM. I did this using Oracle VM in Ubuntu 16.04 in a terminal as follows:-</div><div></div><div></div><div></div><div></div><div></div><div></div><div>You can burn U-Boot by executing sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8 (replace sdX with actuall device name, check dmesg after you plugged in your SD card). Please double check device name, you don't want to corrupt your PC disk.</div><div></div><div></div><div>I compiled kernel and I created u-boot-sunxi-with-spl.bin file. After I entered FEL mode and I wrote this file to on my board with ./sunxi-fel spiflash-write 0 /path/u-boot-sunxi-with-spl.bin. When I use boot my board from PC with ./sunxi-fel uboot /path/u-boot-sunxi-with-spl.bin, my board start and it work for find to sd card. Result this:</div><div></div><div></div><div>Finally, since the version of U-Boot compiled into /usr/share/u-boot/pine64-pinephone/u-boot-sunxi-with-spl.bin is newer than the the version written to bootable storage /dev/mmcblk0, I know that it is time to upgrade U-Boot.</div><div></div><div></div><div>Using the offsets found within the device tree source, we could continue to reverse engineer u-boot-sunxi-with-spl.bin by extracting the firmware into individual binary files. Then, we could scan each extracted file using binwalk, perhaps it will find something new. I will leave that as an exercise to the curious reader.</div><div></div><div></div><div>U-Boot needs to be copied to specific sectors on the microSD card with dd. Download u-boot for the board (uboot-orangepi_pc_defconfig-2017.11.nixpkgs.*.u-boot-sunxi-with-spl.bin), and copy it to the correct location with (again, replace /dev/sdX with the correct path to the SD card device):</div><div></div><div></div><div>in the directory where there is u-boot (filename u-boot-sunxi-with-spl.bin) run sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/devX bs=1024 seek=8 where X is replaced by the correct digit. Then run sync</div><div></div><div></div><div>At this point we are going to check the Buildroot output directory and look for U-Boot image. The file we need is u-boot-sunxi-with-spl.bin. This file includes the two stages, so we need to flash it starting at address 8kB.</div><div></div><div></div><div>The file u-boot-sunxi-with-spl.bin was just built with the commandsabove. So far everything is documented on the sunxi.org Orange-PiZero site. Once you have flashed the bootloader, though, the Orange-Piwill no longer boot into the FEL mode needed for the above command towork, instead it will start U-Boot from NOR flash. If you ever want toflash a new version of U-Boot you need to start the Orange-Pi in FELmode again. To get the Orange-Pi into FEL mode again, some methods arealso documented on the sunxi.org site. Unfortunately the easiestmethod: Setting the RECOVERY pin to ground which is supported by manyboards with a jumper is not so easy on the Orange-Pi Zero because thepin is connected to a pull-up resistor (R 123) without any jumperattached. Fortunately the resistor is easily accessible on the board,I've marked the side of R 123 on the board with the right red arrowin the picture.</div><div></div><div> df19127ead</div>
0 new messages