[轉載] Build xPUD with mkxpud

Build xPUD with mkxpud

This is a brief how-to on building xPUD with Ubuntu 9.04.

Download Rootfs and Modules

$ wget http://download.xpud.org/devel/jaunty-rootfs.tgz $ mkdir jaunty-xpud $ sudo tar zxvf jaunty-rootfs.tgz -C jaunty-xpud/ 

Internet connection inside build system

$ sudo chroot jaunty-xpud/rootfs/ mkdir -p /proc/net/dev/ $ sudo chroot jaunty-xpud/rootfs/ dhclient 

Upgrade and Setting

$ sudo cp /etc/hosts jaunty-xpud/rootfs/etc/hosts $ sudo chroot jaunty-xpud/rootfs/ apt-get update $ sudo chroot jaunty-xpud/rootfs/ apt-get upgrade 

Export mkxpud from Repository

$ sudo git clone git://github.com/penk/mkxpud.git jaunty-xpud/rootfs/mkxpud $ find jaunty-xpud/rootfs/mkxpud -name .git* -exec rm -rf {} \; 

Build the xPUD Rootfs

$ sudo chroot jaunty-xpud/rootfs/ $ cd mkxpud/ $ ./tools/mkxpud all 

That’s it, the default cookbook will work. :-)

Bonus: Creating Image

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.

虹光大成就-密教灌頂(一)