Ubuntu Kernel Build
How to build an Ubuntu12 kernel
The latest UBUNTU12 64bit kernel can be built using these instructions.
# To install a specific version: sudo apt-get update sudo apt-get install linux-image-3.2.0-56-generic linux-headers-3.2.0-56-generic # Or if you want to install some more recent: sudo apt-get update sudo apt-get search linux-image (to find the latest -X-generic) sudo apt-get install linux-image-3.8.0-36-generic # Then reboot sudo reboot # # Now build the apod module. # cd /tmp mkdir ipod cp -rp /share/emulab/emulab-stable/ipod/linux_mod . cd linux_mod sudo make sudo make install sudo depmod -a -v `uname -r` # # And build the openvswitch module # cd /tmp tar zxf /share/openvswitch/openvswitch-2.1.0.tar.gz cd openvswitch-2.1.0 ./configure --with-linux=/lib/modules/`uname -r`/build make sudo make install sudo make modules_install sudo depmod -a -v `uname -r` sudo ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema sudo /usr/local/share/openvswitch/scripts/ovs-ctl start sudo ovs-vsctl --no-wait init sudo /usr/local/share/openvswitch/scripts/ovs-ctl stop # # For the XEN image, update the last resort kernel/ramdisk links. # cd /boot sudo ln -s vmlinuz-xenU vmlinuz-3.2.46 sudo ln -s vmlinuz-3.2.46 vmlinuz-xenU sudo ln -s initrd.img-3.2.46 initrd-xenU # # For a single module build, like the UFS module. # cd /usr/src cd linux kernel source sudo cp /usr/src.old/linux-headers-3.2.0-56-generic/Module.symvers . make oldconfig # it copies .config to ./ make prepare make modules_prepare make SUBDIRS=scripts/mod make SUBDIRS=fs/ufs modules cp fs/ufs/ufs.ko /lib/modules/3.2.0-56-generic/kernel/fs/ufs/ufs.ko sudo depmod -a `uname -r` # # Specifically for a RW ufs.ko module in Ubuntu 14.04 # cd /tmp apt-get source linux-image-3.13.0-68-generic cd linux-3.13.0 cp /usr/src/linux-headers-3.13.0-68-generic/Module.symvers . make oldconfig # it copies .config to ./ echo CONFIG_UFS_FS_WRITE=y >> .config make prepare make modules_prepare make SUBDIRS=scripts/mod make SUBDIRS=fs/ufs modules sudo cp fs/ufs/ufs.ko /lib/modules/3.13.0-68-generic/kernel/fs/ufs/ufs.ko sudo strip -d /lib/modules/3.13.0-68-generic/kernel/fs/ufs/ufs.ko sudo depmod -a `uname -r`