Buildroot

Buildroot is a set of Makefiles and patches that makes it easy to generate a complete embedded Linux system. More information can be found on the buildroot.org

Build buildroot image for A10
Here is the instruction of building buildroot image for cubieboard, it can also apply for other A10 devices.

[ Instructions to setup your build environment using Ubuntu ]

mkdir cubie && cd cubie git clone https://github.com/matson-hall/allwinner-buildroot.git -b cubieboard git clone https://github.com/matson-hall/allwinner-pack-tools.git -b cubieboard git clone https://github.com/matson-hall/linux-allwinner.git -b cubieboard

./allwinner-pack-tools/bin/build.sh

To log the build process: ./allwinner-pack-tools/bin/build.sh > buildlog.txt 2>&1 There appear to be a few errors in the build that probably need to be cleaned up. (ldconfig cache error, sshd make error, chown error, mknod error).. Since chown requires su, it appears the script expects to execute using sudo??

This script will build buildroot and linux kernel with cubieboard default config, and pack the image into a LiveSuit_images.

The build should take about 10-15 minutes depending upon machine speed. If it goes much faster, your build environment may not be setup correctly. See the Instructions above for setting up build environment.

At the end of the build, you will see -image is at-

/home/username/cubie/allwinner-pack-tools/pack/sun4i_linux_cubieboard.img

( File should be at ~/cubie/allwinner-pack-tools/pack/sun4i_linux_cubieboard.img )

That's it, to flash the image to Nand flash, you need to install LiveSuit.

Flash the image
unzip allwinner-pack-tools/tools/Livesuit-linux.zip chmod +x LiveSuit_For_Linux64/LiveSuit.run ./LiveSuit_For_Linux64/LiveSuit.run #livesuit will be installed to ~/Bin sudo ~/Bin/LiveSuit/LiveSuit.sh #run livesuit

choose the image we built just now, let cubieboard go to FEL mode, connect the USB cable, you should see the progress bar increasing.

Tips

 * run /test/test.sh #you can test all the interface of cubieboard except the 96pin headers
 * run CedarXPlayerTest /root/test1.mp4 #you can play video from console
 * run /test/lightshow/lightshow #you can test openGL ES of mali400