README.marvell 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Marvell U-Boot Build Instructions
  2. =================================
  3. This document describes how to compile the U-Boot and how to change U-Boot configuration
  4. Build Procedure
  5. ----------------
  6. 1. Install required packages:
  7. # sudo apt-get install libssl-dev
  8. # sudo apt-get install device-tree-compiler
  9. # sudo apt-get install swig libpython-dev
  10. 2. Set the cross compiler:
  11. # export CROSS_COMPILE=/path/to/toolchain/aarch64-marvell-linux-gnu-
  12. 3. Clean-up old residuals:
  13. # make mrproper
  14. 4. Configure the U-Boot:
  15. # make <defconfig_file>
  16. - For the Armada-70x0/80x0 DB board use "mvebu_db_armada8k_defconfig"
  17. - For the Armada-80x0 MacchiatoBin use "make mvebu_mcbin-88f8040_defconfig"
  18. - For the Armada-3700 DB board use "make mvebu_db-88f3720_defconfig"
  19. - For the Armada-3700 EsspressoBin use "make mvebu_espressobin-88f3720_defconfig"
  20. 5. Configure the device-tree and build the U-Boot image:
  21. Compile u-boot and set the required device-tree using:
  22. # make DEVICE_TREE=<name>
  23. NOTE:
  24. Compilation with "mvebu_db_armada8k_defconfig" requires explicitly exporting DEVICE_TREE
  25. for the requested board.
  26. By default, u-boot is compiled with armada-8040-db device-tree.
  27. Using A80x0 device-tree on A70x0 might break the device.
  28. In order to prevent this, the required device-tree MUST be set during compilation.
  29. All device-tree files are located in ./arch/arm/dts/ folder.
  30. NOTE:
  31. The u-boot.bin should not be used as a stand-alone image.
  32. The ARM Trusted Firmware (ATF) build process uses this image to generate the
  33. flash image.
  34. Configuration update
  35. ---------------------
  36. To update the U-Boot configuration, please refer to doc/README.kconfig