radxa / meta-radxa

OpenEmbedded BSP Layer for the Radxa boards
GNU Lesser General Public License v3.0
9 stars 18 forks source link

Meta-radxa

Table of contents

  1. Introduction
  2. Dependencies
  3. List of Radxa Boards supported
  4. Using the meta-radxa layer
    1. Step 1:Fetching the Source
    2. Step 2:Setting up the Environment
    3. Step 3:Bblayers.conf Setup
    4. Step 4:Local.conf Setup
    5. Step 5:Building the Image
  5. Serial Console
  6. Login Details
  7. Networking
    1. Wifi Connectivity
    2. Bluetooth Connectivity
  8. Release Info
  9. Change Log
  10. Contributing
  11. Reporting Bugs
  12. Maintainers

Introduction

The OpenEmbedded/Yocto Project BSP layer for the Radxa machines

Dependencies

The meta-radxa layer depends on:

URI: git://git.yoctoproject.org/poky
branch: dunfell

URI: git://git.openembedded.org/meta-openembedded
layers: meta-oe meta-networking meta-python meta-multimedia meta-gnome meta-xfce
branch: dunfell

List of Radxa Boards supported

1) RockPi-4A 2) RockPi-4B 3) RockPi-4C 4) RockPi-E 5) RockPi-N10 6) RockPi-PX30 7) RockPi-S 8) Radxa-Zero

Using the meta-radxa layer

Step 1: Fetching the source

Fetch the source using the commands given below:

~ $ mkdir yocto
~ $ cd yocto
~/yocto $ git clone --depth 1 git://git.yoctoproject.org/poky -b dunfell
~/yocto $ cd poky
~/yocto/poky $ git clone --depth 1 git://git.openembedded.org/meta-openembedded.git -b dunfell
~/yocto/poky $ git clone --depth 1 https://github.com/radxa/meta-radxa.git -b dunfell
~/yocto.poky $ git clone --depth 1 https://github.com/YoeDistro/meta-python2.git -b dunfell

Step 2: Setting up the Environment

~/yocto/poky $ source oe-init-build-env

Step 3: bblayers.conf Setup

~/yocto/poky/build $ cp ../meta-radxa/conf/bblayers.conf.sample conf/bblayers.conf
OR
  ${TOPDIR}/../meta \
  ${TOPDIR}/../meta-poky \
  ${TOPDIR}/../meta-yocto-bsp \
  ${TOPDIR}/../meta-openembedded/meta-oe \
  ${TOPDIR}/../meta-openembedded/meta-networking \
  ${TOPDIR}/../meta-openembedded/meta-python \
  ${TOPDIR}/../meta-openembedded/meta-multimedia \ 
  ${TOPDIR}/../meta-openembedded/meta-gnome \
  ${TOPDIR}/../meta-openembedded/meta-xfce \
  ${TOPDIR}/../meta-python2 \
  ${TOPDIR}/../meta-radxa \

Step 4: local.conf Setup

~/yocto/poky/build $ cp ../meta-radxa/conf/local.conf.sample conf/local.conf
~/yocto/poky/build $ nano conf/local.conf
OR
MACHINE ?= "xxxx"
DISTRO_FEATURES_append = " pam systemd x11"
VIRTUAL-RUNTIME_init_manager = "systemd"
PACKAGECONFIG_append_pn-systemd = " resolved networkd"
DISTRO_FEATURES_remove = "wayland"

Replace xxxx with the machine you want to build the image for. All supported machines can be found in meta-radxa/conf/machine.

Step 5: Building the Image

~/yocto/poky/build $ bitbake -k radxa-console-image
OR
~/yocto/poky/build $ bitbake -k radxa-desktop-image

At the end of a successful build, you should have a gpt.img image in build/tmp/deploy/images/MACHINE/ folder. The gpt.img can be directly flashed on the sd-card

Serial Console

The Serial Console for RockPi-4, RockPi-E and RockPi-N10 is enabled on UART-2. The Serial Console for RockPi-S is enabled on UART-0.

Helpful Links:

Login Details

Username: root
Password: rock

Networking

Network Devices available:

Wifi Connectivity

nmtui is a curses based GUI. You can start it by running the following command:

nmtui

nmcli is a command-line tool for controlling NetworkManager and reporting network status.

List available devices

nmcli dev

Turn on Wifi

nmcli r wifi on

Scanning different devices

nmcli dev wifi

Connect to WiFi Hotspot

nmcli dev wifi connect "SSID" password "PASSWORD"

Note:You need to replace “SSID” and “Password” with your actual WiFi’s SSID and password.

Bluetooth Connectivity

Activating bluetooth:

hciconfig hci0 up

Check Bluetooth device:

 $ hciconfig
 hci0:   Type: Primary  Bus: UART
         BD Address: 43:45:C5:00:1F:AC  ACL MTU: 1021:8  SCO MTU: 64:1
         UP RUNNING 
         RX bytes:876 acl:0 sco:0 events:62 errors:0
         TX bytes:4755 acl:0 sco:0 commands:62 errors:0

Manual setup for bluetooth:

Bluetooth is activated by default on the RockPi-E

Check Bluetooth device:

 $ hciconfig
 hci0:   Type: Primary  Bus: USB
         BD Address: 74:EE:2A:55:23:F7  ACL MTU: 1021:8  SCO MTU: 255:12
         UP RUNNING 
         RX bytes:40357 acl:34 sco:0 events:814 errors:0
         TX bytes:216782 acl:379 sco:0 commands:101 errors:0

Activating bluetooth:

hciconfig hci0 up

Check Bluetooth device:

 $ hciconfig
 hci0:   Type: Primary  Bus: UART
         BD Address: 22:22:70:B2:10:6F  ACL MTU: 1021:8  SCO MTU: 255:12
         UP RUNNING 
         RX bytes:1399 acl:0 sco:0 events:45 errors:0
         TX bytes:3458 acl:0 sco:0 commands:45 errors:0

Activating bluetooth:

hciconfig hci0 up

Check Bluetooth device:

 $ hciconfig
 hci0:   Type: Primary  Bus: UART
         BD Address: 22:22:70:B2:10:6F  ACL MTU: 1021:8  SCO MTU: 255:12
         UP RUNNING 
         RX bytes:1399 acl:0 sco:0 events:45 errors:0
         TX bytes:3458 acl:0 sco:0 commands:45 errors:0

Release Info

  1. RockPi-4
  1. RockPi-E
  1. RockPi-N10
  1. RockPi-PX30
  1. RockPi-S

Change Log

Contributing

Please use github for pull requests: https://github.com/nishantpoorswani/meta-radxa/pulls

Reporting bugs

The github issue tracker (https://github.com/nishantpoorswani/meta-radxa/issues) is being used to keep track of bugs.

Maintainers