Dennis Gilmore | 77c3940 | 2018-06-11 19:39:53 -0500 | [diff] [blame] | 1 | Update from original Marvell U-Boot to mainline U-Boot: |
| 2 | ------------------------------------------------------- |
| 3 | |
| 4 | Generate the U-Boot image with these commands: |
| 5 | |
| 6 | $ make helios4_defconfig |
| 7 | $ make |
| 8 | |
| 9 | The resulting image including the SPL binary with the |
Pali Rohár | df71c31 | 2022-11-02 18:51:28 +0100 | [diff] [blame] | 10 | full DDR setup is "u-boot-with-spl.kwb". |
Dennis Gilmore | 77c3940 | 2018-06-11 19:39:53 -0500 | [diff] [blame] | 11 | |
| 12 | Now all you need to do is copy this image on a SD card. |
| 13 | For example with this command: |
| 14 | |
Pali Rohár | df71c31 | 2022-11-02 18:51:28 +0100 | [diff] [blame] | 15 | $ sudo dd if=u-boot-with-spl.kwb of=/dev/sdX bs=512 seek=1 |
Dennis Gilmore | 77c3940 | 2018-06-11 19:39:53 -0500 | [diff] [blame] | 16 | |
| 17 | Please use the correct device node for your setup instead |
| 18 | of "/dev/sdX" here! |
| 19 | |
| 20 | Boot selection: |
| 21 | --------------- |
| 22 | |
| 23 | Before powering up the board, boot selection should be done via the SW1 dip |
| 24 | switch (0: OFF, 1: ON): |
| 25 | |
| 26 | - SPI: 00010 |
| 27 | - SD/eMMC: 00111 |
| 28 | - SATA1: 11100 |
| 29 | - UART: 11110 |
| 30 | |
| 31 | Boot from UART: |
| 32 | --------------- |
| 33 | |
| 34 | Connect the on-board micro-USB (CF Pro: CON11, CF Base: CON5) |
| 35 | to your host. |
| 36 | |
| 37 | Set the SW1 DIP switches to UART boot (see above). |
| 38 | |
| 39 | Run the following command to initiate U-Boot download: |
| 40 | |
Pali Rohár | df71c31 | 2022-11-02 18:51:28 +0100 | [diff] [blame] | 41 | ./tools/kwboot -p -b u-boot-with-spl.kwb /dev/ttyUSBX |
Dennis Gilmore | 77c3940 | 2018-06-11 19:39:53 -0500 | [diff] [blame] | 42 | |
| 43 | Use the correct UART device node for /dev/ttyUSBX. |
| 44 | |
| 45 | When download finishes start your favorite terminal emulator |
| 46 | on /dev/ttyUSBX. |