-
Notifications
You must be signed in to change notification settings - Fork 74
Building
Khadas edited this page Jul 10, 2016
·
1 revision
- 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
- Create the project workbase:
install -d ~/project/khadas/
- Clone the source code:
cd ~/project/khadas/
git clone https://github.com/khadas/u-boot.git
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.
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