Support Status

Chip Status Graphics Medias
rk3288 done wyaland, x11, gbm gstreamer
rk3036 done x11, gbm gstreamer
rk3399 developing x11 gstreamer
rk3328 developing x11 gstreamer

Getting the Sources

The rockchip linux SDK source tree is located in multi Git repository hosted by Github.
The SDK uses repo to sync down source code.

Create an empty directory to hold your working files

mkdir rk-yocto-bsp
cd rk-yocto-bsp

To initialize Yocto SDK source tree
repo init -u https://github.com/rockchip-linux/manifests -b yocto
repo sync

Building the Sources

Build environment

The essential and graphical support packages you need for a supported Ubuntu or Debian distribution are shown in the following command. see here for detail.

sudo apt-get install gawk wget git-core diffstat unzip texinfo build-essential chrpath socat cpio python python3 pip3 pexpect libsdl1.2-dev xterm make xsltproc docbook-utils fop dblatex xmlto python-git pv

Setup Yocto Environment

For example, if you want to build a x11 backend image for tinker board, you should use "MACHINE=tinker-rk3288 DISTRO=rk-x11".

mkdir <build_dir>
MACHINE=<MACHINE> DISTRO=<DISTRO> . ./setup-environment -b <build_dir>

Start Building

bitbake core-image-base

Now you can find images under <build_dir>/tmp/deploy/images/<MACHINE>/.
For more use, you need to check below develop guides.


Flash Image

eMMC:

./flash_tool.sh -c rk3288 -p system -i <build_dir>/tmp/deploy/images/<MACHINE>/*gpt.img

SD-Card:

./flash_tool.sh -c rk3288 -d /dev/sdc -p system -i <build_dir>/tmp/deploy/images/<MACHINE>/*gpt.img

Debug tips

If your image size is large, it is no need to flash the whole image every times. You can just update a single partition (See http://rockchip.wikidot.com/linux-user-guide).

To make an image for suitable of development, you can add "tools-debug debug-tweaks dbg-pkgs" to EXTRA_IMAGE_FEATURES in local.conf to get tools like gdb and add " sshfs-fuse dhcp-client" to "IMAGE_INSTALL_append" to use sshfs for remote transfer.

EXTRA_IMAGE_FEATURES = "tools-debug tools-profile tools-testapps dbg-pkgs  debug-tweaks"
IMAGE_INSTALL_append = “ sshfs-fuse dhcp-client”

Developer Guide