ROC-RK3328-CC Buy Spec

Firefly first ultra-small open-source main board, unique USB3.0 and DDR4 to make its performance faster and more stable. The ultra-affordable ROC-RK3328-CC is your first choice for exploring the programming world.

Build Kernel

Update time:2018-03-19 Views:4624


Machine configuration requirements:

  • 64 bit CPU

  • 2GB swap memory

  • 30GB free disk space which used to build and create a build environment

Compile environment initialization

  • Ubuntu 14.04 Package Installation:

$ sudo apt-get install git repo gnupg flex bison gperf build-essential \
zip tar curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 cmake tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 lzop
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/ \
  • Install ARM Cross-Compile Toolchain and Compile Kernel Related Packages:

$ sudo apt-get install gcc-arm-linux-gnueabihf \
gcc-aarch64-linux-gnu device-tree-compiler lzop libncurses5-dev \
libssl1.0.0 libssl-dev

Download Linux SDK

ROC-RK3328-CC Linux Kernel code is no longer used inside the Android SDK , the new source code access:

git clone

Get cross-compiled tools:

git clone
git clone

Obtain complete SDK, you can use repo to initialize, as follows:

repo init --repo-url= -u

In the current directory, execute the following command, you can download the entire project code:

repo sync

you can also click this to browse the source code online.

Use the Official Script to Compile

  • Compile kernel separately:

./build/ roc-rk3328-cc

after that some files will be generated like boot.img 、Image 、rk3328-roc-cc.dtb

  • Compile uboot separately:

./build/ roc-rk3328-cc

after that some files will be generated like idbloader.img、trust.img、uboot.img、rk3399_loader_v1.08.106.bin

Burning Partition Images

After the build script has been executed, all generated files will be copied to the out / directory.

Please refer to 《Flash Image》 to  burn partition images into board.