Difference between revisions of "Yocto-layer-for-radxa-boards"
(→Building the Image for Specified Board) |
|||
Line 78: | Line 78: | ||
* For console variant | * For console variant | ||
bitbake -k radxa-console-image | bitbake -k radxa-console-image | ||
+ | |||
+ | * For desktop variant | ||
+ | bitbake -k radxa-desktop-image | ||
==== ROCK Pi E ==== | ==== ROCK Pi E ==== | ||
Line 106: | Line 109: | ||
* For console variant | * For console variant | ||
bitbake -k radxa-console-image | bitbake -k radxa-console-image | ||
+ | |||
+ | * For desktop variant | ||
+ | bitbake -k radxa-desktop-image | ||
==== ROCK Pi PX30 ==== | ==== ROCK Pi PX30 ==== | ||
Line 134: | Line 140: | ||
* For console variant | * For console variant | ||
bitbake -k radxa-console-image | bitbake -k radxa-console-image | ||
+ | |||
+ | * For desktop variant | ||
+ | bitbake -k radxa-desktop-image | ||
+ | |||
==== ROCK Pi S ==== | ==== ROCK Pi S ==== | ||
Line 161: | Line 171: | ||
* For console variant | * For console variant | ||
bitbake -k radxa-console-image | bitbake -k radxa-console-image | ||
+ | |||
+ | * For desktop variant | ||
+ | bitbake -k radxa-desktop-image | ||
=== Downloads === | === Downloads === |
Revision as of 10:56, 16 September 2020
Contents
Yocto Layer for Radxa Boards
Introduction
This guide describes how to build Yocto images for Radxa boards on Ubuntu 16.04/18.04 PC.
List of Radxa Boards supported
- ROCK Pi 4
- ROCK Pi E
- ROCK Pi PX30
- ROCK Pi S
Getting the Source
cd ~ mkdir yocto cd yocto git clone git://git.yoctoproject.org/poky -b zeus cd poky git clone git://git.openembedded.org/meta-openembedded.git -b zeus
For meta-radxa, you can select the one from Github nishantpoorswani or Github Radxa.
git clone https://github.com/nishantpoorswani/meta-radxa.git -b zeus #or git clone https://github.com/radxa/meta-radxa.git -b zeus
Setting up the Environment
Setting proxy
Set proxy for git, wget, curl.
Building the Image for Specified Board
ROCK Pi 4
cd poky source oe-init-build-env
After you source oe-init-build-env, the working directory becomes build. So there we change the directory to poky.
cd .. cp meta-radxa/conf/bblayers.conf.sample build/conf/bblayers.conf cp meta-radxa/conf/local.conf.sample build/conf/local.conf
Modify file build/conf/local.conf
- For ROCK Pi 4A
MACHINE ?= "rockpi-4a-rk3399" # uncomment this line PACKAGE_CLASSES ?= "package_deb" # use deb package
- For ROCK Pi 4B
MACHINE ?= "rockpi-4b-rk3399" # uncomment this line PACKAGE_CLASSES ?= "package_deb" # use deb package
- For ROCK Pi 4C
MACHINE ?= "rockpi-4c-rk3399" # uncomment this line PACKAGE_CLASSES ?= "package_deb" # use deb package
Source the script oe-init-build-env.
source oe-init-build-env
Start to build the system image.
- For minimal variant
bitbake -k radxa-minimal-image
- For console variant
bitbake -k radxa-console-image
- For desktop variant
bitbake -k radxa-desktop-image
ROCK Pi E
cd poky source oe-init-build-env
After you source oe-init-build-env, the working directory becomes build. So there we change the directory to poky.
cd .. cp meta-radxa/conf/bblayers.conf.sample build/conf/bblayers.conf cp meta-radxa/conf/local.conf.sample build/conf/local.conf
Modify file build/conf/local.conf
MACHINE ?= "rockpi-e-rk3328" # uncomment this line PACKAGE_CLASSES ?= "package_deb" # use deb package
Source the script oe-init-build-env.
source oe-init-build-env
Start to build the system image.
- For minimal variant
bitbake -k radxa-minimal-image
- For console variant
bitbake -k radxa-console-image
- For desktop variant
bitbake -k radxa-desktop-image
ROCK Pi PX30
cd poky source oe-init-build-env
After you source oe-init-build-env, the working directory becomes build. So there we change the directory to poky.
cd .. cp meta-radxa/conf/bblayers.conf.sample build/conf/bblayers.conf cp meta-radxa/conf/local.conf.sample build/conf/local.conf
Modify file build/conf/local.conf
MACHINE ?= "rockpi-px30" # uncomment this line PACKAGE_CLASSES ?= "package_deb" # use deb package
Source the script oe-init-build-env.
source oe-init-build-env
Start to build the system image.
- For minimal variant
bitbake -k radxa-minimal-image
- For console variant
bitbake -k radxa-console-image
- For desktop variant
bitbake -k radxa-desktop-image
ROCK Pi S
cd poky source oe-init-build-env
After you source oe-init-build-env, the working directory becomes build. So there we change the directory to poky.
cd .. cp meta-radxa/conf/bblayers.conf.sample build/conf/bblayers.conf cp meta-radxa/conf/local.conf.sample build/conf/local.conf
Modify file build/conf/local.conf
MACHINE ?= "rockpi-s-rk3308" # uncomment this line PACKAGE_CLASSES ?= "package_deb" # use deb package
Source the script oe-init-build-env.
source oe-init-build-env
Start to build the system image.
- For minimal variant
bitbake -k radxa-minimal-image
- For console variant
bitbake -k radxa-console-image
- For desktop variant
bitbake -k radxa-desktop-image
Downloads
Images
- ROCK Pi 4: https://dl.radxa.com/rockpi4/images/yocto/
- ROCK Pi E: https://dl.radxa.com/rockpie/images/yocto/
- ROCK Pi PX30: https://dl.radxa.com/rockpipx30/images/yocto/
- ROCK Pi S: https://dl.radxa.com/rockpis/images/yocto/
Flash system
ROCK Pi 4
ROCK Pi E
ROCK Pi PX30
ROCK Pi S
Working with Yocto System
Login Details
Username: root Password: rock
Troubleshooting
- Post your issue at the forum: https://forum.radxa.com/t/yocto-layer-for-radxa-boards/3559