The OpenEmbedded/Yocto Project BSP layer for the Radxa machines
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
1) RockPi-4A 2) RockPi-4B 3) RockPi-4C 4) RockPi-E 5) RockPi-N10 6) RockPi-PX30 7) RockPi-S 8) Radxa-Zero
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
~/yocto/poky $ source oe-init-build-env
~/yocto/poky/build $ cp ../meta-radxa/conf/bblayers.conf.sample conf/bblayers.conf
${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 \
~/yocto/poky/build $ cp ../meta-radxa/conf/local.conf.sample conf/local.conf
~/yocto/poky/build $ nano conf/local.conf
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.
If you wish to build a minimal image use the command given below:
~/yocto/poky/build $ bitbake -k radxa-minimal-image
If you wish to build a console image use the command given below:
~/yocto/poky/build $ bitbake -k radxa-console-image
~/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
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:
Username: root
Password: rock
Network Devices available:
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.
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
Please use github for pull requests: https://github.com/nishantpoorswani/meta-radxa/pulls
The github issue tracker (https://github.com/nishantpoorswani/meta-radxa/issues) is being used to keep track of bugs.