Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Yocto-layer-for-radxa-boards"

(Yocto Layer for Radxa Boards)
Line 40: Line 40:
  
 
  cd poky
 
  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/bblayers.conf.sample build/conf/bblayers.conf
 
  cp meta-radxa/conf/local.conf.sample build/conf/local.conf
 
  cp meta-radxa/conf/local.conf.sample build/conf/local.conf
source oe-init-build-env
 
  
 
Modify file build/conf/local.conf
 
Modify file build/conf/local.conf
Line 49: Line 53:
 
  PACKAGE_CLASSES ?= "package_deb" # use deb package
 
  PACKAGE_CLASSES ?= "package_deb" # use deb package
  
Source the script oe-init-build-env
+
Source the script oe-init-build-env and start to build the system image.
  
 
  source oe-init-build-env
 
  source oe-init-build-env
 
After you source oe-init-build-env, the build environment script, the working directory becomes build.
 
 
 
  bitbake -k radxa-minimal-image
 
  bitbake -k radxa-minimal-image
  
Line 60: Line 61:
  
 
  cd poky
 
  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/bblayers.conf.sample build/conf/bblayers.conf
 
  cp meta-radxa/conf/local.conf.sample build/conf/local.conf
 
  cp meta-radxa/conf/local.conf.sample build/conf/local.conf
source oe-init-build-env
 
  
 
Modify file build/conf/local.conf
 
Modify file build/conf/local.conf
Line 69: Line 74:
 
  PACKAGE_CLASSES ?= "package_deb" # use deb package
 
  PACKAGE_CLASSES ?= "package_deb" # use deb package
  
Source the script oe-init-build-env
+
Source the script oe-init-build-env and start to build the system image.
  
 
  source oe-init-build-env
 
  source oe-init-build-env
 
After you source oe-init-build-env, the build environment script, the working directory becomes build.
 
 
 
  bitbake -k radxa-minimal-image
 
  bitbake -k radxa-minimal-image
  

Revision as of 06:14, 20 August 2020

Yocto Layer for Radxa Boards

Introduction

This guide describes how to build Yocto images for Radxa boards on Ubuntu 16.04 PC.

List of Radxa Boards supported

  • ROCK Pi E
  • 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

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 and start to build the system image.

source oe-init-build-env
bitbake -k radxa-minimal-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 and start to build the system image.

source oe-init-build-env
bitbake -k radxa-minimal-image

Downloads

Images

Flash system

ROCK Pi E

ROCK Pi S

Working with Yocto System

Login Details

Username: root
Password: rock

Troubleshooting