Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 09-08-2006, 02:35 AM   #1
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, 06:56 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
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 kernel. There are about three extra steps if you are using a 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.

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 07:06 AM.
Old 09-11-2006, 12:39 AM   #3
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


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 07:51 AM
tun interface does not exist in slackware 10.1 with kernel antken Linux - Networking 1 05-29-2005 10:10 PM
Unable to open tun device after kernel upgrade. EOHooligan Linux - Software 4 02-06-2005 10:31 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 02:40 PM

All times are GMT -5. The time now is 09:58 AM.

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