Yocto SDK for the Rockchip SOC boards
- Get the code using the Manifest and Repo tool:
https://source.android.com/setup/develop/repo - Config your local config file (build/conf/local.conf)
- You can create a local.conf manually, follow:
- https://git.yoctoproject.org/cgit.cgi/poky/plain/meta-poky/conf/local.conf.sample
- Or use the existing config files for demoing e.g.: rockchip-rk3326-evb.conf
- Run "source ./oe-init-build-env" to setup bitbake environment
- Run "bitbake core-image-minimal" to build the images
- Flash the generated "build/tmp/deploy/<MACHINE>/update.img" to your device
- Boot your device and enjoy it
- ROCK 2A
- ROCK 2F
- Radxa E20C
- ROCK 5A
- ROCK 5B
- ROCK 5B+
- ROCK 5C
- ROCK 5T
- ROCK 5 ITX
- Radxa CM5 IO
- Radxa CM5 + RPI CM4 IO
- Radxa NX5 IO
- Radxa E52C
- Radxa E54C
$ mkdir ~/yocto-rockchip-sdk && cd ~/yocto-rockchip-sdk
$ repo init -u https://github.com/radxa/yocto-manifests.git -b scarthgap
$ repo sync
Link the local.conf to the target board configuration file. Here we aim to build ROCK 5B machine, so the local.conf is linked to rockchip-rk3588-rock-5b.conf. You should change the link when you build the other machine.
$ cd ~/yocto-rockchip-sdk/build/conf
$ ln -sf rockchip-rk3588-rock-5b.conf local.conf
$ ls -al local.conf
lrwxrwxrwx 1 radxa radxa 28 Nov 21 14:44 local.conf -> rockchip-rk3588-rock-5b.conf
$ cd ~/yocto-rockchip-sdk
$ source ./oe-init-build-env
$ bitbake core-image-minimal
And you will get the target system image under build/tmp/deploy/images/rockchip-rk3588-rock-5b/
.
There are two formats of system images. One is wic, core-image-minimal-rockchip-rk3588-rock-5b.rootfs.wic
.
And the othe one is rkupdate, core-image-minimal-rockchip-rk3588-rock-5b.rootfs.update.img
.
Choose image core-image-minimal-rockchip-rk3588-rock-5b.rootfs.wic
.
Choose one of the following flash ways:
Choose image core-image-minimal-rockchip-rk3588-rock-5b.rootfs.update.img
.
You can refer to this guide, Write the image to MicroSD Card with SDDiskTool.
- Jeffy Chen
<[email protected]>
- Stephen Chen
<[email protected]>