compile KERNEL
whats' ur current OS version
$ cat /etc/issue.net or $ cat /etc/issue.net
whats' ur current Kernel
$ uname -a
other
$ /sbin/lspci or lspci
$ cat /proc/cpuinfo
links
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.tar.bz2
http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
http://www.faqs.org/docs/kernel/x145.html
http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html
http://sites.google.com/site/compilelinuxkernel/
Steps
Install following
gcc
ibncurses5-dev
tar -xjvf linux-2.6.25.tar.bz2 -C /usr/src
cd /usr/src
make menuconfig ##change name etc as #####
make
make modules
su
make modules_install
make install
cd /boot
mkinitrd -o initrd.img-2.6.33##### 2.6.33##### /mkinitramfs -o initrd.img-2.6.33##### 2.6.33#####
also change in /boot/grub/grub.cfg as :
menuentry "Name what ever u want may be like ' Ubuntu, Linux 2.6.33##### ' "
{
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 605b7a90-590a-4883-8126-7af6f76df5f5
linux /boot/vmlinuz-2.6.33
##### root=UUID=605b7a90-590a-4883-8126-7af6f76df5f5 ro quiet splash
initrd /boot/initrd.img-2.6.33
#####
}
modprobe : used for loading/unloading lodable kernel module
depmod -a : finds dependent
insmod: first load any prerequisite modules into the kernel : then the requested module
lsmod:
copy to local system from remote machine to current directory(.)
scp -P <port_no> <user_name>@<port_name>:/home/<path> .
printk(KERN_INFO "#####%s#####%s#####%d",__FILE__,__FUNCTION__,__LINE__);
printf("#####%s#####%s#####%d",__FILE__,__FUNCTION__,__LINE__);