LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 09-08-2006, 01:35 AM   #1
gv_rajasekhar
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
adding tun to kernel and kernel compile


i need help with kernel compile

i want add "tun" and to recompile my kernel please tell me how to do it

I have done

#mknod /dev/tun c 10 200

then entry in file /etc/modules.conf
alias char-major-10-200 tun

now i have to compile my kernel how to do it


thanks for help

I am running RedHat 3 kernel version--> 2.4.21-4.EL
 
Old 09-08-2006, 05:56 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
You normally wouldn't need to recompile the kernel after adding a device file/socket and loading its driver module.

All the same here is what you can do if you are using a 2.6.xxx kernel. There are about three extra steps if you are using a 2.4.xxx kernel. Please note that instructions to recopile the kernel have been provide in this forum thousands of times. A site search would provide the information that you seek. Therefore I am just going to provide a quick and dirty example.

Code:
cd /usr/src/linux
make menuconfig
make && make modules_install
cp arch/i386/bzImage /boot/vmlinuz
The exact details, such as the file name of the kernel in /boot, vary by distribution and personal taste. Don't cp bzImage to /boot if the make failed. If the make fails there is no cleanup required. You can just leave the system the way it is.

Last edited by stress_junkie; 09-08-2006 at 06:06 AM.
 
Old 09-10-2006, 11:39 PM   #3
gv_rajasekhar
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
i have done make xconfig and make make modules_install.
instead of replacing i just added as new kernel. after restart with new kernel .it says kernel panic and init not found

please give some suggestions.make was succesfull

thanks for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restore out-of-box kernel settings if my kernel compile fails? brgr88 Slackware 8 04-18-2006 06:51 AM
tun interface does not exist in slackware 10.1 with kernel 2.6.11.10 antken Linux - Networking 1 05-29-2005 09:10 PM
Unable to open tun device after kernel upgrade. EOHooligan Linux - Software 4 02-06-2005 09:31 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM


All times are GMT -5. The time now is 06:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration