xref: /openbmc/u-boot/board/kobol/helios4/README (revision 7a4a3503d50819a199f0d73f28d2b2a4c66f459a)
1*ae28a5f8SDennis GilmoreUpdate from original Marvell U-Boot to mainline U-Boot:
2*ae28a5f8SDennis Gilmore-------------------------------------------------------
3*ae28a5f8SDennis Gilmore
4*ae28a5f8SDennis GilmoreGenerate the U-Boot image with these commands:
5*ae28a5f8SDennis Gilmore
6*ae28a5f8SDennis Gilmore$ make helios4_defconfig
7*ae28a5f8SDennis Gilmore$ make
8*ae28a5f8SDennis Gilmore
9*ae28a5f8SDennis GilmoreThe resulting image including the SPL binary with the
10*ae28a5f8SDennis Gilmorefull DDR setup is "u-boot-spl.kwb".
11*ae28a5f8SDennis Gilmore
12*ae28a5f8SDennis GilmoreNow all you need to do is copy this image on a SD card.
13*ae28a5f8SDennis GilmoreFor example with this command:
14*ae28a5f8SDennis Gilmore
15*ae28a5f8SDennis Gilmore$ sudo dd if=u-boot-spl.kwb of=/dev/sdX bs=512 seek=1
16*ae28a5f8SDennis Gilmore
17*ae28a5f8SDennis GilmorePlease use the correct device node for your setup instead
18*ae28a5f8SDennis Gilmoreof "/dev/sdX" here!
19*ae28a5f8SDennis Gilmore
20*ae28a5f8SDennis GilmoreBoot selection:
21*ae28a5f8SDennis Gilmore---------------
22*ae28a5f8SDennis Gilmore
23*ae28a5f8SDennis GilmoreBefore powering up the board, boot selection should be done via the SW1 dip
24*ae28a5f8SDennis Gilmoreswitch (0: OFF, 1: ON):
25*ae28a5f8SDennis Gilmore
26*ae28a5f8SDennis Gilmore - SPI:     00010
27*ae28a5f8SDennis Gilmore - SD/eMMC: 00111
28*ae28a5f8SDennis Gilmore - SATA1:   11100
29*ae28a5f8SDennis Gilmore - UART:    11110
30*ae28a5f8SDennis Gilmore
31*ae28a5f8SDennis GilmoreBoot from UART:
32*ae28a5f8SDennis Gilmore---------------
33*ae28a5f8SDennis Gilmore
34*ae28a5f8SDennis GilmoreConnect the on-board micro-USB (CF Pro: CON11, CF Base: CON5)
35*ae28a5f8SDennis Gilmoreto your host.
36*ae28a5f8SDennis Gilmore
37*ae28a5f8SDennis GilmoreSet the SW1 DIP switches to UART boot (see above).
38*ae28a5f8SDennis Gilmore
39*ae28a5f8SDennis GilmoreRun the following command to initiate U-Boot download:
40*ae28a5f8SDennis Gilmore
41*ae28a5f8SDennis Gilmore  ./tools/kwboot -p -b u-boot-spl.kwb /dev/ttyUSBX
42*ae28a5f8SDennis Gilmore
43*ae28a5f8SDennis GilmoreUse the correct UART device node for /dev/ttyUSBX.
44*ae28a5f8SDennis Gilmore
45*ae28a5f8SDennis GilmoreWhen download finishes start your favorite terminal emulator
46*ae28a5f8SDennis Gilmoreon /dev/ttyUSBX.
47