This is the buildsystem for the OpenWrt Linux distribution tailored for the BPI-R1 Router Board.
This build has been tested on Ubuntu 14.10+ 32bit and 64bit.
make menuconfig to configure your appreciated
configuration for the toolchain and firmware - default config (
def_minconfig) is supplied for you convenience.
PLEASE CHANGE the Download directory in the menuconfig to store your downloaded packages!
Requirements on build system - Linux
Depth information for building: https://wiki.openwrt.org/doc/howto/buildroot.exigence
You need to have installed gcc, binutils, bzip2, flex, python, perl, make, find, grep, diff, unzip, gawk, kpartx, getopt, subversion, libz-dev and libc headers.
./scripts/feeds update -a to get all the latest package definitions defined in feeds.conf
./scripts/feeds install -a to install symlinks of all package/feeds.
make menuconfig to configure your image.
make will build your firmware or use
./build.sh to do this process for you.
multicore at the end will use all of your cpu cores to speed up the process - ./build.sh multicore
It will download all sources, build the cross-compile toolchain, the kernel and all choosen applications. This will take a long time to build (1/2 a day for all the packages).
Final image and packages are stored in bin/sunxi - Burn the SD image using DD or a DD type GUI.
To Clean the build
make dirclean - Remove the build_dir, staging_dir but keep the config. make distclean - Full clean EVERYTHING!!
The OpenWrt system is documented in docs/. You will need a LaTeX distribution and the tex4ht package to build the documentation. Type "make -C docs/" to build it.
To build your own firmware you need to have access to a Linux, BSD or MacOSX system (case-sensitive filesystem required). Cygwin will not be supported because of the lack of case sensitiveness in the file system.