u-boot/README.md

58 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2014-10-21 10:17:26 +00:00
Caraboot
========
U-Boot for Carambola2 based boards
Build
-------
1) Build buildroot toolchain (http://buildroot.org)
Download:
```
git clone git://git.buildroot.net/buildroot
cd buildroot
git checkout 2015.02
```
Configure:
```
cd buildroot
cp ../buildroot.config .config
make oldconfig
```
In Target Options select Target Architecture as MIPS (big endian) and Target Architecture Variant as mips 32r2.
In Toolchain select GCC Compiler version as gcc 4.7.x.
Save and exit.
Build:
```
make toolchain
```
2) Build Caraboot image
Download:
```
cd your_work_dir
git clone https://github.com/8devices/Caraboot.git
```
Configure:
Open Caraboot Makefile and change CONFIG_TOOLCHAIN_PREFIX to your buildroot binary path, i.e ```CONFIG_TOOLCHAIN_PREFIX=your_work_dir/buildroot/output/host/usr/bin/mips-linux- ```
```
cd Caraboot
vi/nano/gedit Makefile
```
Build:
```
make
```
The bootloader binary will be saved to ```bin/carambola2_u-boot.bin``` file.
You can now use this file to upgrade your bootloader on Carambola2 board (http://8devices.com/wiki/carambola:2:gettingstarted:bootloader-upgrade)