This is a step by step procedure to build the original kernel that comes with your tp2. All responsibility is yours. The software built here is to replace the kernel and modules on an existing operational sata or usb disk. The purpose is to assure yourself that you can build a functional kernel. I highly recommend that you build a stable kernel before creating a new one with different capabilities.
The kernel can be compiled on the plug itself, or you can use a Linux desktop. The described procedure works on Debian-based systems and should be the same for other flavors of Linux, except for installing dependencies.
» wget http://www.plugcomputer.org/405/us/gplugd/tool-chain/arm-marvell-linux-gnueabi.tar.bz2» sudo tar xvjpf arm-marvell-linux-gnueabi.tar.bz2 -C /opt/»rm arm-marvell-linux-gnueabi.tar.bz2» sudo apt-get install build-essential automake autoconf libtool pkg-config intltool»sudo apt-get install libncurses5-dev uboot-mkimage» mkdir tonido» cd tonido» wget http://www.tonidoplug.com/partners/topkick/2011/kernel/source/kernel-2.6.31-topkick1281p2-codelathe-20111122.tar.bz2» tar xvjpf kernel-2.6.31-topkick1281p2-codelathe-20111122.tar.bz2» rm kernel-2.6.31-topkick1281p2-codelathe-20111122.tar.bz2» mv kernel-2.6.31-topkick1281p2-codelathe-20111122 kernel-2.6.31» cd kernel-2.6.31» export PATH=/opt/arm-marvell-linux-gnueabi/bin:$PATH» export ARCH=arm» export CROSS_COMPILE=””» export CROSS_COMPILE=“arm-marvell-linux-gnueabi-”» make mrproper» make mv88f6281_gw_defconfig» make uImage» make modules» mkdir ../current_kernel» mkdir ../current_kernel/boot» make INSTALL_MOD_PATH=../current_kernel modules_install» cp arch/arm/boot/uImage ../current_kernel/boot/» chmod 744 ../current_kernel/boot/uImage
The new kernel is at ../current_kernel/boot/uImage
The new modules are at ../current_kernel/lib/modules
Assuming you boot directly from the tp2 and you have a bootable disk that is mounted at /media/disk1part1/.
» cd /media/disk1part1/boot» sudo mv uImage uImage_save» cd /media/disk1part1/lib» sudo mv modules modules_save~/tonido/kernel-2.6.31.» sudo mv ../current_kernel/boot/uImage /media/disk1part1/boot/» sudo mv ../current_kernel/lib/modules/ /media/disk1part1/lib/» scp ../current_kernel/boot/uImage root@tp2:/media/disk1part1/boot/» scp ../current_kernel/lib/modules/ root@tp2:/media/disk1part1/lib/Source: http://www.tonido.com/forum/viewtopic.php?f=37&t=4338