LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2007, 10:02 AM   #1
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Rep: Reputation: 15
how to compile CONFIG_NETLINK, CONFIG_RTNETLINK, and CONFIG_FILTER ???


Hi,

I have downloaded a mobile ip program called dynamic mobile ip ( version 0.8.1 ) from:
http://dynamics.sourceforge.net/

There is a part from README file of dynamic mobile ip as below:

Following Linux kernel compile time options are needed to make a
compatible kernel:

- Loadable module support (if ipip tunneling is used as a module)
- Networking options (in addition to the default selections):
Packet socket (CONFIG_PACKET)
Kernel/User netlink socket (CONFIG_NETLINK)
Routing messages (CONFIG_RTNETLINK)
IP: Socket Filtering (CONFIG_FILTER)
IP: tunneling (CONFIG_NET_IPIP)
- In addition the following options are needed for Foreign Agents:
IP: advanced router (CONFIG_IP_ADVANCED_ROUTER)
IP: policy routing (CONFIG_IP_MULTIPLE_TABLES)
- Additional options for the wireless extensions for MN:
Wireless LAN (non-hamradio) (CONFIG_NET_RADIO)


Then i follow the command you given to me to check it as below:

[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_PACKET
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y

[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_NETLINK
[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_RTNETLINK
[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_FILTER

[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_NET_IPIP
CONFIG_NET_IPIP=m

[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_IP_ADVANCED_ROUTER
CONFIG_IP_ADVANCED_ROUTER=y

[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_IP_MULTIPLE_TABLES
CONFIG_IP_MULTIPLE_TABLES=y

[root@localhost ~]# cat /boot/config-$(uname -r) | grep CONFIG_NET_RADIO
CONFIG_NET_RADIO=y


From the above, only CONFIG_NETLINK, CONFIG_RTNETLINK, and CONFIG_FILTER
do not have any response. Is it mean it the 3 modules do not loaded ??
If i want to load the module, may i know how to do it ???


Please reply me if you know it,Thanks.
 
Old 03-21-2007, 12:45 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Based on your information, I believe that means the items that are 'm' are modules, the items that are 'y' are compiled into the kernel, and the other 3 are neither.
My next guess as to what to do, is to run xconfig or menuconfig, the kernel-compiler interface, and select the 3 items you need, and compile the modules.
Hope this helps you
 
Old 03-22-2007, 02:06 AM   #3
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Hi Grapefruit Girl,

To run xconfig or menuconfig, is it just straight type it in terminal ??

Is that can you tell me more details how to compile it ? Because i never compile anything before to kernel and i still new to linux.
 
Old 03-22-2007, 08:07 AM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yup, here's a bit more detail:
You need the sourcecode for your kernel, first, as well as the .config file that goes along with it. The .config file, if nowhere else, will be found in the /proc directory, called config.gz or something very similar. Copy & extract that file into the folder where your kernel source is. Then navigate to the sourcecode directory, open a console and type 'make xconfig'. You will now have a large menu of kernel options to choose from.
If all you need are those new modules, then locate them in the networking section somewhere, activate them as <M> for modules (or maybe a [.] for modules in xconfig) , and click the diskette picture up top to save the configuration.
Exit xconfig.
Type 'make modules && make modules_install'
Done! That should be all that is required to simply make those modules.
There is a lot more info about kernel compiling procedures; just search for it. The kernel source should also come with a README file.
 
Old 03-22-2007, 02:47 PM   #5
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
[QUOTE=GrapefruiTgirl]
You need the sourcecode for your kernel, first, as well as the .config file that goes along with it. The .config file, if nowhere else, will be found in the /proc directory, called config.gz or something very similar. QUOTE]


May I know what do you mean the sourcecode for the kernel ?

Currently my kernel is kernel-2.6.11-1.1369_FC4.stk16.

i got kernel source file for kernel-2.6.11-1.1369_FC4.stk16.src.rpm, is it this you mean ??
 
Old 03-22-2007, 03:00 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Yes, that sounds like the source package, but you should check with another user who uses FC4 and RPM files. My system doesn't use either of them, and I don't know much about Fedora.
If you have difficulties compiling the kernel, there are lots of tutorials, including the README usually included with the source, as well as loads of info here on LQ already.
Also, for Fedora specifics, try asking in the Fedora forum.
 
Old 03-23-2007, 09:55 AM   #7
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Hi Grapefruit Girl,

I cannot find CONFIG_NETLINK,CONFIG_RTNETLINK, and CONFIG_FILTER after i type "make menuconfig".

May i know is that possible that these 3 CONFIG_NETLINK,CONFIG_RTNETLINK, and CONFIG_FILTER are only avaiable in kernel 2.4.X ??

Is that can you check your kernel whether got these 3 options under networking ??
Currently i am using fedora core 4, kernel 2.6.11-1.1369_FC4.stk16


Please help me if you know it.

Thanks
 
Old 12-07-2009, 03:08 PM   #8
antonioli
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Hi!

I'm trying use Dynamics Mobile IP for a project but have same difficulties.

Someone have already found a solution?
 
Old 12-08-2009, 04:10 AM   #9
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Frankly speaking that i have forgot everything with what i have been done since it has been 2 years plus.
My suggestion for you is don't use the Dynamic HUT for the testing, because it is an old software and you need to change a lot of source code in order to run it in the kernel options.

I have solved the problem but the Dynamics HUT doesn't able to perform well, so i changed to use OLSR
 
Old 12-08-2009, 06:17 AM   #10
antonioli
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by wahaha View Post
Frankly speaking that i have forgot everything with what i have been done since it has been 2 years plus.
My suggestion for you is don't use the Dynamic HUT for the testing, because it is an old software and you need to change a lot of source code in order to run it in the kernel options.

I have solved the problem but the Dynamics HUT doesn't able to perform well, so i changed to use OLSR
Unfortunately I really need to use...
 
Old 12-09-2009, 04:09 AM   #11
wahaha
Member
 
Registered: Jul 2006
Posts: 130

Original Poster
Rep: Reputation: 15
Now your problem is you cannot install Mobile IP HUT into your fedora?
Can you please check in online because i remember someone posted his solution to solve it.

I believe you still can find the solution, previously i use up to 1 month to solve it... by following the person's solution.
You might need more time to find how people solve it in any linux forum
 
  


Reply



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
Compile madwifi, ... compile error , how can i do. ERBRMN Linux - Networking 3 03-08-2006 07:56 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Nothing to do: they don't compile.... fenice1976 Linux - Software 6 05-18-2004 01:50 PM
c/c++ compile zdos Linux - Software 2 05-16-2004 03:22 PM
I can't compile anything please help sovietpower Linux - Software 10 11-13-2003 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration