2015-10-20 13:14:47 +00:00
|
|
|
Update from original Marvell U-Boot to mainline U-Boot:
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
Generate the U-Boot image with these commands:
|
|
|
|
|
|
|
|
$ make clearfog_defconfig
|
|
|
|
$ make
|
|
|
|
|
|
|
|
The resulting image including the SPL binary with the
|
2022-11-02 17:51:28 +00:00
|
|
|
full DDR setup is "u-boot-with-spl.kwb".
|
2015-10-20 13:14:47 +00:00
|
|
|
|
|
|
|
Now all you need to do is copy this image on a SD card.
|
|
|
|
For example with this command:
|
|
|
|
|
2022-11-02 17:51:28 +00:00
|
|
|
$ sudo dd if=u-boot-with-spl.kwb of=/dev/sdX bs=512 seek=1
|
2015-10-20 13:14:47 +00:00
|
|
|
|
|
|
|
Please use the correct device node for your setup instead
|
|
|
|
of "/dev/sdX" here!
|
2017-09-24 12:50:18 +00:00
|
|
|
|
2019-03-25 07:09:00 +00:00
|
|
|
Install U-Boot on eMMC:
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
To make SPL load the main U-Boot image from the eMMC boot partition enable
|
|
|
|
eMMC boot acknowledgement and boot partition with the following U-Boot
|
|
|
|
command:
|
|
|
|
|
|
|
|
mmc partconf 0 1 1 0
|
|
|
|
|
|
|
|
Install U-Boot on eMMC boot partition from Linux running on Clearfog:
|
|
|
|
|
|
|
|
echo 0 > /sys/block/mmcblk0boot0/force_ro
|
2022-11-02 17:51:28 +00:00
|
|
|
dd if=u-boot-with-spl.kwb of=/dev/mmcblk0boot0
|
2019-03-25 07:09:00 +00:00
|
|
|
|
|
|
|
Note that the SD card is not accessible when the Clearfog SOM has eMMC.
|
|
|
|
Consider initial boot from UART (see below).
|
|
|
|
|
2019-05-16 10:04:03 +00:00
|
|
|
Install U-Boot on SATA:
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
When loading the main U-Boot image from raw SATA sector, set
|
|
|
|
CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR to 0x141.
|
|
|
|
|
2017-12-23 00:42:48 +00:00
|
|
|
Boot selection:
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Before powering up the board, boot selection should be done via the SW1 dip
|
|
|
|
switch (0: OFF, 1: ON):
|
|
|
|
|
|
|
|
- SPI: 00010
|
|
|
|
- SD/eMMC: 00111
|
|
|
|
- M.2 SSD: 11100
|
|
|
|
- UART: 01001 [1]
|
|
|
|
|
|
|
|
[1]: According to SolidRun's manual, 11110 should be used for UART booting on
|
|
|
|
the ClearFog 'Pro' variant.
|
|
|
|
However, this doesn't work (anymore) at least on Rev. 2.1 (but '01001' as
|
|
|
|
mentionend for the 'Base' variant does).
|
|
|
|
|
2017-09-24 12:50:18 +00:00
|
|
|
Boot from UART:
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Connect the on-board micro-USB (CF Pro: CON11, CF Base: CON5)
|
|
|
|
to your host.
|
|
|
|
|
2017-12-23 00:42:48 +00:00
|
|
|
Set the SW1 DIP switches to UART boot (see above).
|
2017-09-24 12:50:18 +00:00
|
|
|
|
|
|
|
Run the following command to initiate U-Boot download:
|
|
|
|
|
2022-11-02 17:51:28 +00:00
|
|
|
./tools/kwboot -b u-boot-with-spl.kwb /dev/ttyUSBX
|
2017-09-24 12:50:18 +00:00
|
|
|
|
|
|
|
Use the correct UART device node for /dev/ttyUSBX.
|
|
|
|
|
|
|
|
When download finishes start your favorite terminal emulator
|
|
|
|
on /dev/ttyUSBX.
|