-
Notifications
You must be signed in to change notification settings - Fork 36
Home
tvelter edited this page Sep 13, 2010
·
19 revisions
This is a brief how-to on building xPUD with Ubuntu 9.10 (karmic koala).
(you can find the list of up-to-date mirrors on mirror list for faster download)
$ wget http://xpud.org/download/karmic-rootfs.tgz
$ mkdir karmic-xpud
$ sudo tar zxvf karmic-rootfs.tgz -C karmic-xpud/
$ sudo chroot karmic-xpud/rootfs/ mkdir -p /proc/net/dev/
$ sudo chroot karmic-xpud/rootfs/ dhclient
$ sudo cp /etc/hosts karmic-xpud/rootfs/etc/hosts
$ sudo chroot karmic-xpud/rootfs/ apt-get update
$ sudo chroot karmic-xpud/rootfs/ apt-get upgrade
$ sudo git clone git://github.com/penk/mkxpud.git karmic-xpud/rootfs/mkxpud
$ find karmic-xpud/rootfs/mkxpud -name .git* -exec sudo rm -rf {} \;
$ sudo chroot karmic-xpud/rootfs/
$ cd mkxpud/
$ ./tools/mkxpud all
That’s it, the default cookbook will work. :-)
if you’re looking for a way to combine the kernel and rootfs, download the linux-source, and edit .config
to find this line:
CONFIG_INITRAMFS_SOURCE="/home/penk/snap-mkxpud/deploy/default/rootfs.cpio"
replace it with your absolute path pointing to the rootfs.cpio just created, then:
$ make bzImage
after compiling, the file will be put under
arch/x86/boot/bzImage
.