LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-23-2003, 11:46 AM   #1
velska
Member
 
Registered: Aug 2003
Location: Finland
Distribution: Fedora 14, Ubuntu 10.4 LTS
Posts: 65

Rep: Reputation: 15
Lightbulb kernel isdn module customizing


I haven't installed kernel sources yet, and when I do, I'm gonna get the 2.4.22 from kernel.org so I get some mileage out of my troubles.

My driver manufacturer's instructions say that there should already be a file by the name of w6692.c in my /usr/src/linux/drivers/isdn/hisax. I'm supposed to replace the old file with the new one (maybe I should add the pertinent lines to the old one?) and recompile kernel.

Now what troubles me is that I should have to recompile the whole kernel because of one driver file. Okay, live and learn.

Then, I'd like to know what tools I should use for separately compiling a C language source file. I have some windoze experience with programming in C++ and Visual Basic (3 years), so understanding that part of it isn't as hard as getting inside the workings of linux, for now.

Okay, let's go from here and see what we get.

Last edited by velska; 09-23-2003 at 11:48 AM.
 
Old 09-23-2003, 11:55 AM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
If the module is already in the Make heriarchy of the kernel source, you should have no trouble getting it to work. If you are going to compile a newer kernel, however, you may as well just overwrite the one given file with the other and since you are going to upgrade your kernel anyway, you compile the new source of the driver and the kernel in the same build.

First you will need the sources, then look for the file you should overwrite:
Code:
$ su
password:
# cd /to/your/sources
# find . -iname w6692.c
Note the single dot (.) on the find command above, it means the current directory. After a short while the command should retrun the absolute path to the file, 'cd' to that location and just copy over the file:
Code:
# cd /to/the/file/path
# cp /location/to/the/newer/w6692.c .
Now follow the steps in the guide to configure the kernel, see if under the ISDN kernel options is your device mentioned (don't forget to read the HELP entries) then make as usual
 
Old 09-23-2003, 11:57 AM   #3
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
To compile just the file, you should first know what will the module be called, then you could simply type:
Code:
# gcc -o <modulename>.o w6692.c
Though I would not do it, because the in the kenrel's Makefile there are additional options parsed to gcc and ld (the linker) as to how the module should be built.

Last edited by Thetargos; 09-23-2003 at 12:01 PM.
 
Old 09-23-2003, 12:12 PM   #4
velska
Member
 
Registered: Aug 2003
Location: Finland
Distribution: Fedora 14, Ubuntu 10.4 LTS
Posts: 65

Original Poster
Rep: Reputation: 15
that's just it

I'm not quite sure of the module. The kernel only reports "ISDN Module" and it's supposed to be a part of HiSax (or hisaxctrl - might be spelled wrong for now). But it could be isdnctrl (again, spelling may be wrong), too.

I just gotta wait till my ftp finishes downloading full kernel sources.
 
Old 09-23-2003, 12:14 PM   #5
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Let me check on my config how is it confiugured.
 
Old 09-23-2003, 12:17 PM   #6
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Yes there it is, your driver is under: ISDN Subsystem-->Passive ISDN cards-->HiSax siemens chipset driver support

Last edited by Thetargos; 09-23-2003 at 12:22 PM.
 
Old 09-23-2003, 12:32 PM   #7
velska
Member
 
Registered: Aug 2003
Location: Finland
Distribution: Fedora 14, Ubuntu 10.4 LTS
Posts: 65

Original Poster
Rep: Reputation: 15
thanks, I thought so

I'll probably just find out what all there is in the native file and try to add the pertinent lines from the driver file. It's not really new, its date being May 2001, but it has the Asus card information.

I'll come back with my kernel compilation griefs... I just can't believe it's as easy as you outlined in your howto...
 
Old 09-23-2003, 12:36 PM   #8
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
Well if you want a practical Linux Kernel compilation guide for dummies yes, it is THAT easy. (and I considered myself a dummy for quite a long time!)

Last edited by Thetargos; 09-23-2003 at 12:39 PM.
 
  


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
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
Customizing the kernel - huh? Gurduloo Linux - Newbie 1 02-18-2004 07:34 AM
kernel module ignorant newbie looking for any one with kernel module knowledge cpoet Slackware 4 11-24-2003 09:37 PM
can't reinstall soundcard after customizing kernel LeechBot Linux - Hardware 11 09-08-2003 07:53 PM
Customizing my kernel jspaceman Slackware 16 09-01-2003 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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