blob: a7bc0d4e23fbe5946edd448830bc476e5ddd72a6 [file] [log] [blame]
Stefan Roese73606402015-10-20 15:14:47 +02001Update from original Marvell U-Boot to mainline U-Boot:
2-------------------------------------------------------
3
4Generate the U-Boot image with these commands:
5
6$ make clearfog_defconfig
7$ make
8
9The resulting image including the SPL binary with the
10full DDR setup is "u-boot-spl.kwb".
11
12Now all you need to do is copy this image on a SD card.
13For example with this command:
14
15$ sudo dd if=u-boot-spl.kwb of=/dev/sdX bs=512 seek=1
16
17Please use the correct device node for your setup instead
18of "/dev/sdX" here!
Baruch Siach67732a12017-09-24 15:50:18 +030019
Florian Klink5d747032017-12-23 01:42:48 +010020Boot selection:
21---------------
22
23Before powering up the board, boot selection should be done via the SW1 dip
24switch (0: OFF, 1: ON):
25
26 - SPI: 00010
27 - SD/eMMC: 00111
28 - M.2 SSD: 11100
29 - UART: 01001 [1]
30
31[1]: According to SolidRun's manual, 11110 should be used for UART booting on
32 the ClearFog 'Pro' variant.
33 However, this doesn't work (anymore) at least on Rev. 2.1 (but '01001' as
34 mentionend for the 'Base' variant does).
35
Baruch Siach67732a12017-09-24 15:50:18 +030036Boot from UART:
37---------------
38
39Connect the on-board micro-USB (CF Pro: CON11, CF Base: CON5)
40to your host.
41
Florian Klink5d747032017-12-23 01:42:48 +010042Set the SW1 DIP switches to UART boot (see above).
Baruch Siach67732a12017-09-24 15:50:18 +030043
44Run the following command to initiate U-Boot download:
45
46 ./tools/kwboot -b u-boot-spl.kwb /dev/ttyUSBX
47
48Use the correct UART device node for /dev/ttyUSBX.
49
50When download finishes start your favorite terminal emulator
51on /dev/ttyUSBX.