Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.