README 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Update from original Marvell U-Boot to mainline U-Boot:
  2. -------------------------------------------------------
  3. Generate the U-Boot image with these commands:
  4. $ make clearfog_defconfig
  5. $ make
  6. The resulting image including the SPL binary with the
  7. full DDR setup is "u-boot-spl.kwb".
  8. Now all you need to do is copy this image on a SD card.
  9. For example with this command:
  10. $ sudo dd if=u-boot-spl.kwb of=/dev/sdX bs=512 seek=1
  11. Please use the correct device node for your setup instead
  12. of "/dev/sdX" here!
  13. Install U-Boot on eMMC:
  14. -----------------------
  15. The ROM loads the bootloader from eMMC first boot partition at offset 0. This
  16. is unlike load from SD card that is at offset 512. As a result, the offset of
  17. the main U-Boot image on the eMMC boot partition changes. Set
  18. CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR to 0x140 for SPL to load U-Boot from
  19. the correct location.
  20. To make SPL load the main U-Boot image from the eMMC boot partition enable
  21. eMMC boot acknowledgement and boot partition with the following U-Boot
  22. command:
  23. mmc partconf 0 1 1 0
  24. Install U-Boot on eMMC boot partition from Linux running on Clearfog:
  25. echo 0 > /sys/block/mmcblk0boot0/force_ro
  26. dd if=u-boot-spl.kwb of=/dev/mmcblk0boot0
  27. Note that the SD card is not accessible when the Clearfog SOM has eMMC.
  28. Consider initial boot from UART (see below).
  29. Install U-Boot on SATA:
  30. -----------------------
  31. When loading the main U-Boot image from raw SATA sector, set
  32. CONFIG_SPL_SATA_RAW_U_BOOT_SECTOR to 0x141.
  33. Boot selection:
  34. ---------------
  35. Before powering up the board, boot selection should be done via the SW1 dip
  36. switch (0: OFF, 1: ON):
  37. - SPI: 00010
  38. - SD/eMMC: 00111
  39. - M.2 SSD: 11100
  40. - UART: 01001 [1]
  41. [1]: According to SolidRun's manual, 11110 should be used for UART booting on
  42. the ClearFog 'Pro' variant.
  43. However, this doesn't work (anymore) at least on Rev. 2.1 (but '01001' as
  44. mentionend for the 'Base' variant does).
  45. Boot from UART:
  46. ---------------
  47. Connect the on-board micro-USB (CF Pro: CON11, CF Base: CON5)
  48. to your host.
  49. Set the SW1 DIP switches to UART boot (see above).
  50. Run the following command to initiate U-Boot download:
  51. ./tools/kwboot -b u-boot-spl.kwb /dev/ttyUSBX
  52. Use the correct UART device node for /dev/ttyUSBX.
  53. When download finishes start your favorite terminal emulator
  54. on /dev/ttyUSBX.