Automatic build uboot, linux-kernel from source code for Cubieboards. Include for CB1,CB2,CB3,CB4
Before you start, Some packets must be installed in you environment.
# apt-get install uboot-mkimage kpartx dosfstools dos2unix device-tree-compiler
And you also need ARM cross-compiler such as "arm-linux-gnueabihf-xxx" and "arm-linux-gnueabi-xxx"
# sudo ./auto_build.sh cb1|cb2|cb3|cb4
(1) If you want to build linux kernel for CB4. It only work with ARM cross-compiler(ARMEL) version 4.6.x. Because the CB4 kernel source need two compiler option: ‘--min_array_alignment=4’ '--no_unaligned_access'. Only ARM cross-compiler(ARMEL) 4.6.x support these two options.