xref: /openbmc/u-boot/board/solidrun/clearfog/README (revision 0f70d705)
10299c90fSStefan RoeseUpdate from original Marvell U-Boot to mainline U-Boot:
20299c90fSStefan Roese-------------------------------------------------------
30299c90fSStefan Roese
40299c90fSStefan RoeseGenerate the U-Boot image with these commands:
50299c90fSStefan Roese
60299c90fSStefan Roese$ make clearfog_defconfig
70299c90fSStefan Roese$ make
80299c90fSStefan Roese
90299c90fSStefan RoeseThe resulting image including the SPL binary with the
100299c90fSStefan Roesefull DDR setup is "u-boot-spl.kwb".
110299c90fSStefan Roese
120299c90fSStefan RoeseNow all you need to do is copy this image on a SD card.
130299c90fSStefan RoeseFor example with this command:
140299c90fSStefan Roese
150299c90fSStefan Roese$ sudo dd if=u-boot-spl.kwb of=/dev/sdX bs=512 seek=1
160299c90fSStefan Roese
170299c90fSStefan RoesePlease use the correct device node for your setup instead
180299c90fSStefan Roeseof "/dev/sdX" here!
190d106f1eSBaruch Siach
20*0f70d705SFlorian KlinkBoot selection:
21*0f70d705SFlorian Klink---------------
22*0f70d705SFlorian Klink
23*0f70d705SFlorian KlinkBefore powering up the board, boot selection should be done via the SW1 dip
24*0f70d705SFlorian Klinkswitch (0: OFF, 1: ON):
25*0f70d705SFlorian Klink
26*0f70d705SFlorian Klink - SPI:     00010
27*0f70d705SFlorian Klink - SD/eMMC: 00111
28*0f70d705SFlorian Klink - M.2 SSD: 11100
29*0f70d705SFlorian Klink - UART:    01001 [1]
30*0f70d705SFlorian Klink
31*0f70d705SFlorian Klink[1]: According to SolidRun's manual, 11110 should be used for UART booting on
32*0f70d705SFlorian Klink     the ClearFog 'Pro' variant.
33*0f70d705SFlorian Klink     However, this doesn't work (anymore) at least on Rev. 2.1 (but '01001' as
34*0f70d705SFlorian Klink     mentionend for the 'Base' variant does).
35*0f70d705SFlorian Klink
360d106f1eSBaruch SiachBoot from UART:
370d106f1eSBaruch Siach---------------
380d106f1eSBaruch Siach
390d106f1eSBaruch SiachConnect the on-board micro-USB (CF Pro: CON11, CF Base: CON5)
400d106f1eSBaruch Siachto your host.
410d106f1eSBaruch Siach
42*0f70d705SFlorian KlinkSet the SW1 DIP switches to UART boot (see above).
430d106f1eSBaruch Siach
440d106f1eSBaruch SiachRun the following command to initiate U-Boot download:
450d106f1eSBaruch Siach
460d106f1eSBaruch Siach  ./tools/kwboot -b u-boot-spl.kwb /dev/ttyUSBX
470d106f1eSBaruch Siach
480d106f1eSBaruch SiachUse the correct UART device node for /dev/ttyUSBX.
490d106f1eSBaruch Siach
500d106f1eSBaruch SiachWhen download finishes start your favorite terminal emulator
510d106f1eSBaruch Siachon /dev/ttyUSBX.
52