How to make an Angstrom rootfs for MIPS CI20

From eLinux.org
Revision as of 09:03, 4 December 2014 by Vincent (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Downloading Angstrom v2014.12

Clone the angstrom-v2014.12-yocto1.7 branch from the Angstrom git repository by issuing the following command:

git clone -b angstrom-v2014.12-yocto1.7 git://github.com/Angstrom-distribution/setup-scripts.git

Configuring Angstrom

Enter into the new "setup-scripts" directory which has been creating when cloning the previous git repository, and configure Angstrom:

cd setup-scripts
MACHINE="ci20" ./oebb.sh config ci20

Adding the CI20 machine

Create the "sources/openembedded-core/meta/conf/machine/ci20.conf" file:

cat > sources/openembedded-core/meta/conf/machine/ci20.conf << "EOF"
#@TYPE: Machine
#@NAME: CI20
#@DESCRIPTION: MIPS Creator CI20

require conf/machine/include/tune-mips32r2.inc

DEFAULTTUNE = "mips32r2el"
MACHINE_FEATURES = "serial"
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS4"
IMAGE_FSTYPES ?= "tar.bz2"
EOF

Configuring the build

Specify our target machine:

echo 'MACHINE="ci20"' > conf/local.conf

Disable gdm display manager:

echo 'PACKAGE_EXCLUDE = "gdm"' > conf/local.conf

Install some nice XFCE4 packages:

echo 'IMAGE_INSTALL += "lxdm mousepad gigolo orage ristretto xarchiver xfce4-mixer xfce4-notifyd xfce4-screenshooter xfce4-taskmanager xfce4-terminal"' > conf/local.conf

Use lxdm as the default display manager:

echo 'VIRTUAL-RUNTIME_graphical_init_manager = "lxdm"' > conf/local.conf

Building the rootfs

Source the environment script and create the rootfs tarball:

source environment-angstrom-v2014.12
bitbake development-xfce-image

When the build process finishes you will find your rootfs image in the "deploy/glibc/images/ci20/" directory.

deploy/glibc/images/ci20/Angstrom-development-XFCE-image-glibc-ipk-v2014.12-ci20.rootfs.tar.bz2