Changes

Jump to: navigation, search

Restoring U-Boot on SPI NOR flash (BELK/BXELK)

644 bytes added, 15:19, 29 October 2021
Programming U-Boot from ethernet
Download via TFTP the U-Boot SPL and the U-Boot binary images. Then, burn them in NOR flash memory.
<pre class="board-terminal">
Bora> setenv ipaddr 192.168.0.8191
Bora> setenv ethaddr 00:50:C2:1E:AF:B3
Bora> setenv serverip 192.168.0.23
Bora> setenv SPL_base 0Bora> setenv u-boot_base 0x40000Bora> setenv update_spl 'sf probe 0 0 0;sf erase ${SPL_base} +${filesize};sf write ${loadaddr} ${SPL_base} ${filesize}'Bora> setenv update 'sf probe 0 0 0;sf erase ${u-boot_base} +${filesize};sf write ${loadaddr} ${u-boot_base} ${filesize}'zynq-uboot> tftpboot ${loadaddr} boraxbora/u-boot/belk-4.1.4_borax_qspi_boot.binGem.e000b000:7 is connected to Gem.e000b000. Reconnecting to Gem.e000b000Gem.e000b000 Waiting for PHY auto negotiation to complete... doneUsing ethernet@Gem.e000b000 deviceTFTP from server 192.168.0.23; our IP address is 192.168.0.8191Filename 'boraxbora/u-boot/belk-4.1.4_borax_qspi_boot.bin'.Load address: 0x20800000x8000000
Loading: ##################
2782.2 MiBKiB/s
done
Bytes transferred = 88876 88940 (15b2c 15b6c hex)
Bora> run update_spl
SF: Detected s25fl128s_64k S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiBSF: Successfully erased 131072 bytes @ 0x0 Erased: OKdevice 0 offset 0x0, size 0x15b2cSF: 88876 program success 89036 bytes @ 0x0 Written: OKBora> tftpboot ${loadaddr} boraxbora/u-boot/belk-4.1.4_borax_qspi_u-boot.imgGem.e000b000:7 is connected to Gem.e000b000. Reconnecting to Gem.e000b000Gem.e000b000 Waiting for PHY auto negotiation to complete... doneUsing ethernet@Gem.e000b000 deviceTFTP from server 192.168.0.23; our IP address is 192.168.0.8191Filename 'boraxbora/u-boot/belk-4.1.4_borax_qspi_u-boot.img'.Load address: 0x20800000x8000000
Loading: #################################################################
################################################################# 2 MiB#### 918 KiB/s
done
Bytes transferred = 577256 683980 (8cee8 a6fcc hex)
Bora> run update
SF: Detected s25fl128s_64k S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiBSF: 589824 Successfully erased 983040 bytes @ 0x40000 Erased: OKdevice 0 offset 0x40000, size 0x8cee8SF: 577256 program success 684100 bytes @ 0x40000 Written: OK
Bora>
</pre>
resetting ...
U-Boot SPL 2017.01-belk-4.01.0-rc1 4 (Jul 03 2017 28 2021 - 0123:0015:1811)
qspi boot
Trying to boot from SPI
 U-Boot 2017.01-belk-4.01.0-rc1 4 (Jul 03 2017 28 2021 - 0123:0015:18 11 +0200), Build: belk-4.1.4
Model: Bora
8,165
edits

Navigation menu