Name: meta-lamobo-r1
Owner: CAROS.io
Description: null
Created: 2015-11-16 21:29:32.0
Updated: 2016-02-01 15:16:04.0
Pushed: 2016-07-15 21:47:19.0
Size: 183
Language: BitBake
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Un-Official OpenEmbedded layer for the lamobo-r1 aka. bananapi router board (BPi-R1).
The following steps has just been tested under ubuntu 12.04 and it may also works on others *nix like OS.
do apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath libsdl1.2-dev xterm
et http://downloads.yoctoproject.org/releases/yocto/yocto-1.8/poky-fido-13.0.0.tar.bz2
r xvjf poky-fido-13.0.0.tar.bz2
poky-fido-13.0.0
t clone https://github.com/pokymobo/meta-lamobo-r1.git
t clone -b fido https://github.com/openembedded/meta-openembedded.git
urce ./oe-init-build-env
Add meta-lamobo-r1, meta-networking, meta-oe and meta-python layers to ./conf/bblayer.conf, and it will be something like this:
t ./conf/bblayers.conf
AYER_CONF_VERSION is increased each time build/conf/bblayers.conf
hanges incompatibly
F_VERSION = "6"
TH = "${TOPDIR}"
LES ?= ""
YERS ?= " \
e/john/opensource/yocto/poky-fido-13.0.0/meta \
e/john/opensource/yocto/poky-fido-13.0.0/meta-yocto \
e/john/opensource/yocto/poky-fido-13.0.0/meta-yocto-bsp \
e/john/opensource/yocto/poky-fido-13.0.0/meta-lamobo-r1 \
e/john/opensource/yocto/poky-fido-13.0.0/meta-openembedded/meta-networking \
e/john/opensource/yocto/poky-fido-13.0.0/meta-openembedded/meta-oe \
e/john/opensource/yocto/poky-fido-13.0.0/meta-openembedded/meta-python \
YERS_NON_REMOVABLE ?= " \
e/john/opensource/yocto/poky-fido-13.0.0/meta \
e/john/opensource/yocto/poky-fido-13.0.0/meta-yocto \
the parent path of poky maybe different in your pc.
And change the machine type to sun7i-a20-lamobo-r1 in ./conf/local.conf
INE ??= "sun7i-a20-lamobo-r1"
tbake core-image-minimal
This will cost a lot of time in your first compile, it will donwload the sources form internet and then compile the sources, so be patient with it.
You will get a image file under ./tmp/deploy/images/sun7i-a20-lamobo-r1/core-image-minimal-sun7i-a20-lamobo-r1.sunxi-sdimg
Flash this image file with your tools to sd card to boot the system.
sic switch settings
nfig dev switch0 set reset_mib 1
nfig dev switch0 set reset 1
nfig dev switch0 set enable_vlan 1
nfig dev switch0 set enable_jumbo 1
tup vlans for ports, CPU is on port 8 and wants tagged frames
n ports vlan 1-4
e switch chip ports map to the physical ports on the board:
LAN WAN
4 0 1 2 ] [ 3 ]
nfig dev switch0 port 4 set pvid 1
nfig dev switch0 vlan 1 set ports "8t 4"
nfig dev switch0 port 0 set pvid 2
nfig dev switch0 vlan 2 set ports "8t 0"
nfig dev switch0 port 1 set pvid 3
nfig dev switch0 vlan 3 set ports "8t 1"
nfig dev switch0 port 2 set pvid 4
nfig dev switch0 vlan 4 set ports "8t 2"
n port vlan 5
nfig dev switch0 port 3 set pvid 5
nfig dev switch0 vlan 5 set ports "8t 3"
nfig dev switch0 set apply 1
d vlan interface to eth0
v in $(seq 1 5); do
ip link add link eth0 name eth0.${v} type vlan id ${v}
Don't forget edit your /etc/config/network accordingly!
i.e. add eth0.1, eth0.2, eth0.3, … interfaces there as well
Also be aware that the VLAN interface link state is not linked to the physical port, you can query the link of each port via:
v in $(seq 0 4); do
nfig dev switch0 port $v get link
Per-port counters can be queried via:
v in $(seq 0 4) 8; do
nfig dev switch0 port $v get mib