Ubuntu for ARM wiki:https://wiki.ubuntu.com/ARM
Rootfs From Scratch:https://wiki.ubuntu.com/ARM/RootfsFromScratch
RootfsFromScratch
This page describes building an armel Debian/Ubuntu root filesystem. It's only from scratch in that you are not starting from installer images, and you don't need target hardware to build it; the code is not rebuilt though, pre-build .deb packages are downloaded and installed instead.
Using rootstock
Simplest and recommended way, just run rootstock to create your rootfs (check ARM/RootStock for more info about rootstock).
Rootstock will automate the creation of a rootfs tarball and exposes some config options to tweak the contents/setup.
If you're running Ubuntu 9.10 (karmic) or later, you just need to install the rootstock package and it will pull the appropriate dependencies.
If you install rootstock manually or if you are running it from a bzr checkout, you will also need:
-
qemu (see Installation/QemuEmulator )
-
a recent debootstrap: debootstrap_1.0.10ubuntu3_all.deb or newer
Please note: rootstock will not automatically give you a kernel package. You will have to include the kernel package you need for your hardware. For instance, for OMAP3 based hardware, you will need to include "--seed linux-image-omap" somewhere in your rootstock command.
To create an armel rootfs tarball of, for instance, xubuntu-desktop:
sudo rootstock \ --fqdn myhostname \ --login ubuntu \ --password temppwd \ --imagesize 2G \ --seed xubuntu-desktop
Here's another example for ubuntu-desktop:
sudo rootstock \ --fqdn ubuntu \ --login ubuntu \ --password ubuntu \ --imagesize 3G \ --seed ubuntu-desktop
Some typical flags when developing headless (connecting over the network):
--seed build-essential,openssh-server
Note that you should edit /etc/network/interfaces and