Skip to content

Building

Khadas edited this page Jul 10, 2016 · 1 revision

Preparation

  • A Linux host PC: Ubuntu-14.04 64-bit is recommended.
  • Cross compile toolchain for U-Boot:
sudo apt-get install gcc-4.9-aarch64-linux-gnu
  • Cross compile toolchain for BL301:
sudo apt-get install gcc-arm-none-eabi

Get the source code

  • Create the project workbase:
install -d ~/project/khadas/
  • Clone the source code:
cd ~/project/khadas/
git clone https://github.com/khadas/u-boot.git

Building steps

Go to source code base:

cd ~/project/khadas/u-boot
  • Remove all the generated files if necessary:
make mrproper
  • KVim Configure:
make kvim_defconfig
  • Compile:
make CROSS_COMPILE=aarch64-linux-gnu-

This step will generate the some images all located in the fip directory, all these images named as u-boot.bin as prefix.

Reference:

Our working environment for reference:

  • Host PC: Ubuntu-14.04
  • Toolchain for u-boot: aarch64-linux-gnu-gcc version 4.9.3
  • Toolchain for BL301: arm-none-eabi-gcc version 4.8.2
Clone this wiki locally