LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 07-31-2009, 04:26 AM   #1
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Rep: Reputation: 0
How to insert dhcp module into the kernel ?


Hi all,

I have a dhcp 4.1.0.tar file .
How do i insert it into the kernel ????????

Steps needed plzzzzzzzz

Help needed urgently
 
Old 07-31-2009, 04:32 AM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
First off, it's bad form to assert the urgency of your problem like that. We are all volunteering time, and what is urgent for you is not urgent for us.

Now, I can tell you right off that you are way off from where you want to be - the file you referenced is simply an archive of other files and does not go in the kernel, nor does the dhcp functionality. Rather than ask for help with a particular step, why don't you explain to us what you are really trying to do, what you've done so far, and what happened (that means copy/paste any relevant output), and we'll tell you how to do that.

Edit: fixed a typo.
 
Old 07-31-2009, 04:40 AM   #3
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
Hi Buddy,

First of all sorry for that .
Thanks for the reply.

I have a kernel 2.6.18 configured and built now.
I need to insert the dhcp module onto that and check the working of dhcp with that kernel.

How to do that ????
 
Old 07-31-2009, 04:46 AM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Again - you're down a wrong path trying insert a .tar into the kernel. I promise you that that doesn't even make sense. What's the real problem you're trying to fix/functionality you're trying to gain?
 
Old 07-31-2009, 04:50 AM   #5
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
hey Ted,

I know that we cannot insert a .tar file.
I untarred it and configured it by command ./configure
then i made a "make install".
Now i have the dhcpclient.o file .How to insert that ?

Since i am using a 2.6.18 kernel it is not allowing me to insert using the command insmod and throws an error "unrecognised format"

It needs a .ko file

How do i get that ?
 
Old 07-31-2009, 04:57 AM   #6
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
You're not getting me, friend. I get that you are having trouble making that tar combine with your kernel, and I had inferred that it contained source code for something. I am quite sure it is not a kernel module, both because dhcp services are a userland thing and because the .o extension tells you that it's not meant to be used as kernel code. The square peg will not fit in the round hole.

Now, take a big step back - don't worry about your tar, don't worry about kernel modules, just tell us what you really want to do.
 
Old 07-31-2009, 05:12 AM   #7
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
My linux kernel should support DHCP on a target PC.
How do i do that ?
 
Old 07-31-2009, 05:13 AM   #8
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Much closer. Just to make sure - you mean that you want to run a dhcp server, correct?
 
Old 07-31-2009, 05:14 AM   #9
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
Pretty much yes .
 
Old 07-31-2009, 05:23 AM   #10
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
There we go. So, dhcp is a userland service (i.e., not run in the kernel); I recommend you look into a program called dnsmasq. It provides some DNS services in addition to DHCP, and isn't too hard to configure. Install it with `yum install dnsmasq` (you will need to sudo that or be root), and after you do, read `man dnsmasq` and check out /etc/dnsmasq.conf. That should be enough to do what you want to do, but if it's not, Google `CentOS dnsmasq` or something similar, and if you're still not sure, feel free to post back here with whatever info you've got and your current problem. As for me, it's 05:20 local time, so I've gotta go to bed. Good night, and good luck.

One more procedural note - if you've got the time, report your original post and ask the mods to move it to 'Linux - Networking'. There will be more people there who are interested in helping you with this particular problem should you need more assistance.
 
Old 07-31-2009, 05:30 AM   #11
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
Go to bed. Thanks
 
Old 07-31-2009, 09:20 AM   #12
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
DHCP is traditionally run as a service (a root-owned daemon process), not as a kernel module. When you ran make against the source tarball, it should have produced an executable binary object file, suitable for execution in user-space. When this is run with the appropriate permissions, commandline options, and an appropriately written configuration file, it will provide DHCP server services on the host. The mechanics of how all of this is done should be documented either in your tarball, or at the website from which you acquired it. There may be a shell script suitable for inclusion into a host startup file system to allow the service to be launched in a traditional way, such as with the service command.
--- rod.
 
Old 08-03-2009, 12:02 AM   #13
AjayCelst
LQ Newbie
 
Registered: Jul 2009
Location: Bangalore, INDIA
Distribution: Centos 5.2
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for clearing the misconception.

Thanks again

Ajay
 
  


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
not able to insert kernel module ?? nishant.mishra Linux - Newbie 1 12-13-2007 03:45 AM
how to insert a hello world module into kernel dinesh_t Ubuntu 2 03-31-2007 03:08 AM
how to insert a loadable module into the kernel.? moog Linux - Newbie 2 01-08-2007 08:37 AM
failled tp insert module into kernel actteoh Linux - Hardware 2 05-07-2004 10:18 AM
Can't insert module into kernel swamysk Linux - Newbie 14 08-22-2003 05:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:22 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