From ee73981958ca1163386b7422a47b3bc586f7a432 Mon Sep 17 00:00:00 2001 From: Giedrius Date: Thu, 13 Nov 2014 13:19:09 +0200 Subject: [PATCH] Update README.md Expanded building instructions and added link to bootloader upgrade info. --- README.md | 46 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f21bc8d86a..5e7341d27b 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,49 @@ 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) +1) Build buildroot toolchain (http://buildroot.org) -Change Makefile's CONFIG_TOOLCHAIN_PREFIX variable to your buildroot path, for example: +Download: ``` -CONFIG_TOOLCHAIN_PREFIX=~/build/buildroot/output/host/usr/bin/mips-linux- +cd your_work_dir +git clone git://git.buildroot.net/buildroot +``` + +Configure: +``` +cd buildroot +make menuconfig +``` +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 ``` -run ```make```, binary will be in ```bin/carambola2_u-boot.bin``` +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) +