Ubuntu Environment

From OMAPpedia

Revision as of 02:31, 11 March 2010 by GeethaT (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Ubuntu Build Env Setup - Rootstock

Tool to build an ubuntu root filesystem for a target device from scratch The RootStock project aims to create a commandline and graphical set of tools to create a fully configured tarball or VM image of an ubuntu rootfs from scratch so that you can extract it to a root device on e.g. armel systems. (this project was formerly known as build-arm-rootfs and could be found at https://wiki.ubuntu.com/ARM/RootfsFromScratch)

Requirements: Jaunty (9.04) and Debian:

sudo apt-get install qemu
wget http://ports.ubuntu.com/pool/main/d/debootstrap/debootstrap_1.0.20~jaunty1_all.deb
sudo dpkg -i debootstrap_1.0.20~jaunty1_all.deb
wget http://launchpad.net/project-rootstock/trunk/0.1/+download/rootstock-0.1.3.tar.gz
tar xf rootstock-0.1.3.tar.gz
cd rootstock-0.1.3

Karmic (9.10)

sudo apt-get install rootstock

Proxy Info:

If you are behind a corporate firewall, an extra configuration is needed since the http_proxy variable is not passed to qemu during the final stage of the image creation. There is a quick workaround for this problem: simply add this in the rootstock script when it generates the 'installer' script:

# write installer script to image
cat > $BUILDDIR/installer <<EOF
set -e

export PATH
export LC_ALL=C

export http_proxy='http://<proxy address>.com:<port>'



Rootstock Command line:

sudo ./rootstock --fqdn <hostname> --login <rootuser> --password <rootuserpasswd> --imagesize <qemu image size> \
--seed <packages> --dist <jaunty/karmic> --serial <ttySx>  --kernel-image <http>
Personal tools