readme.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Intro
  2. =====
  3. This default configuration will allow you to start experimenting with
  4. the buildroot environment for the MacchiatoBin board based on the
  5. Marvell Armada 8040 SoC. Documentation for the board hardware and
  6. software is available on the wiki at: http://wiki.macchiatobin.net
  7. This default configuration will bring up the board and allow access
  8. through the serial console.
  9. How to build
  10. ============
  11. Default configuration provides the following BSP versions:
  12. - Linux v5.6.3 (mainline)
  13. - U-Boot v2020.01 (mainline)
  14. - ATF v1.5-18.12.2 (Marvell)
  15. To build images run the following commands:
  16. $ make solidrun_macchiatobin_defconfig
  17. $ make
  18. How to write the SD card
  19. ========================
  20. Once the build process is finished you will have an image
  21. called "sdcard.img" in the output/images/ directory.
  22. Copy the bootable "sdcard.img" onto an SD card with "dd":
  23. $ sudo dd if=output/images/sdcard.img of=/dev/sdX bs=1M conv=fsync
  24. $ sudo sync
  25. How to boot the board
  26. =====================
  27. The MacchiatoBin board can be setup to load the bootloader from
  28. different sources including eMMC, SPI flash, and SD-card.
  29. On Rev 1.2 board to select boot from SD-card the DIP switches
  30. SW1 and SW2 should be configured as follows:
  31. SW2: 01110
  32. SW1: 1xxxx
  33. The upcoming Rev 1.3 board will have a single pins header J1 instead
  34. of the SW1/2 DIP switches. To boot from SD-card the setting of J1
  35. jumpers should match the DIP switches of Rev v1.2 board
  36. from left to right:
  37. J1: 011101xxxx
  38. Insert the micro SDcard in the MacchiatoBin board and power it up.
  39. The serial console is accessible at the micro-USB Type-B connector
  40. marked CON9. The serial line settings are 115200 8N1.
  41. U-Boot environment
  42. ==================
  43. By default current configuration provides U-Boot that keeps environment
  44. in SD/eMMC. However, if needed, u-boot-fragment.config can be tweaked
  45. so that U-Boot will keep environment in SPI flash. On the first boot
  46. SPI flash may be empty or it may contain a stale environment that
  47. prevents proper boot. Then the following commands can be used
  48. to boot the board:
  49. => ext4load mmc 1:1 0x01700000 /boot/uEnv-example.txt
  50. => env import -t 0x01700000 $filesize
  51. => boot
  52. The example environment from uEnv-example.txt can be written to
  53. SPI flash using the following commands:
  54. => env default -f -a
  55. => ext4load mmc 1:1 0x01700000 /boot/uEnv-example.txt
  56. => env import -t 0x01700000 $filesize
  57. => saveenv