Update README.md with build instructions (#1)

This commit is contained in:
Mantas Pucka 2014-11-13 10:01:04 +02:00
parent 1842065fdf
commit 393bc3d166
1 changed files with 15 additions and 0 deletions

View File

@ -2,3 +2,18 @@ Caraboot
========
U-Boot for Carambola2 based boards
Build
-------
Use buildroot toolchain (http://buildroot.org/download.html) to build Caraboot. OpenWRT toolchain is known to generate broken binaries.
To build suitable toolchain in buildroot's menuconfig select: MIPS big endian architecture (mips32 r2 variant), and GCC version - 4.7.x (other GCC versions untested, but may work)
Change Makefile's CONFIG_TOOLCHAIN_PREFIX variable to your buildroot path, for example:
```
CONFIG_TOOLCHAIN_PREFIX=~/build/buildroot/output/host/usr/bin/mips-linux-
```
run ```make```, binary will be in ```bin/carambola2_u-boot.bin```