Kernel and Bootloader codes for Rock II (& Paper II)
Copyright © 2014 VIA Technologies, Inc.
OS: Ubuntu 12.04 x64 Linux kernel toolchain: apc-rock-toolchain
Download toolchain from [apc-io/apc-rock-toolchain] (https://github.com/apc-io/apc-rock-toolchain)
You may need these system package:
# sudo apt-get install autoconf2.13 bison bzip2 ccache curl flex gawk gcc g++ g++-mul tilib git lib32ncurses5-dev lib32z1-dev libgl1-mesa-dev libx11-dev make zip
Change to root and set up your environmental variable:
$ sudo su
# export ARCH=arm
# export CROSS_COMPILE=/<your path>/apc-rock-toolchain/mybin/arm_1103_le-
# export PATH=/<your path>/apc-rock-toolchain/mybin/:/<your path>/apc-rock-toolchain/bin/:$PATH
# cd apc-rock-II/uboot
# make distclean
# make wmt_config
# make zuboot
Rename the zuboot as u-boot.bin and put it into FirmwareInstall/firmware/ of install-package.
We need the mkimage file in uboot/tools/ for this kernel compile.
# export PATH=/<your path>/apc-rock-II/uboot/tools/:$PATH
# cd apc-rock-II/kernel
# make Android_defconfig
# make ubin
Copy uzimage.bin into FirmwareInstall/firmware/ of install-package