LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-28-2006, 01:19 AM   #1
Vegetarian Smoker
LQ Newbie
 
Registered: Dec 2005
Location: St. Louis Area
Distribution: Windoze Vista x64; Debian 4.0r0 server
Posts: 23

Rep: Reputation: 15
Why was "ksyms" dropped from 2.6+?


I'm trying to make an old ISA NIC work in a PC (kernel 2.6.8).

Apparently I've discovered that the driver requires ksyms, which kernel 2.6.8 doesn't have.

I know it was replaced by kallsyms, but why? It's annoying because now the driver module for the NIC won't work. The NIC itself was released around the turn of the century and the driver, I believe, was written in 2001. Thus, it's plausible that the driver relied on a feature not present in the latest kernel.

Is there any way I can make ksyms appear anyway?

I've heard that ksyms is a security risk. Is it and how so?

The NIC, by the way, is a 3C515.


If necessary, I'll buy another NIC (Gigabit, PCI based), but I'd rather not. And I think that ksyms is the issue.


Ben
 
Old 08-28-2006, 01:43 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,127

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
There is a 3C515 option in the kernel config - have you tried using that ???.
 
Old 08-28-2006, 02:08 AM   #3
Vegetarian Smoker
LQ Newbie
 
Registered: Dec 2005
Location: St. Louis Area
Distribution: Windoze Vista x64; Debian 4.0r0 server
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00
There is a 3C515 option in the kernel config - have you tried using that ???.
Yes. In fact that's how I originally got the compiled module. I was trying to load the module from the source directory via the command "insmod.modutils." Just using "insmod" gives an error about invalid module format, as it's an older format (not surprising, the NIC driver was written in 2001).

When I used "insmod.modutils," that's when I got the complaint about "ksyms," and discovered I didn't have it.

I wonder if there's a way to make "ksyms" appear anyway, despite the newer kernel.


Ben
 
Old 08-28-2006, 02:41 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,127

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I think we are talking at cross purposes - why not build it into the kernel ???.
Why a module at all.
 
Old 08-28-2006, 03:35 AM   #5
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
Yes. In fact that's how I originally got the compiled module. I was trying to load the module from the source directory via the command "insmod.modutils." Just using "insmod" gives an error about invalid module format, as it's an older format (not surprising, the NIC driver was written in 2001).
When the driver was written doesn't really matter, the support is still in the modern kernel. If you are getting a module format error, then that module was compiled for a different kernel than the one you are running. Enable support for 3C515 in the kernel (as a module or built in, either will do), compile the kernel, and then install it. Follow the directions, remember to install the modules with make modules_install.

Also, it is generally better to use modprobe rather than insmod (it loads modules in a smarter fashion than insmod). Assuming the module is called 3c515, just do:
Code:
modprobe 3c515
no extension. It will load the proper module.

If it can't find the module, then you haven't compiled it for your current kernel.

Last edited by zhangmaike; 08-28-2006 at 03:36 AM.
 
Old 08-28-2006, 07:44 AM   #6
Vegetarian Smoker
LQ Newbie
 
Registered: Dec 2005
Location: St. Louis Area
Distribution: Windoze Vista x64; Debian 4.0r0 server
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your help.

Syg00:

I'm sorry. When you first suggested that it wasn't clear to me what you meant. I like the idea of using modules because it lets me keep the overall kernel size down. Plus if something messes up, I can just shut off that part and/or turn it on again. The greater control is a plus too. A good analogy is the lights in your house. Do you really want one light switch for your entire house? It'll work, but c'mon.

I was about to try that suggestion, since the PC in question is destined to be a router (and thus needs that NIC 24/7). However, the next poster suggested something that didn't occur to me before.

Zhangmaike:

I've done the "make modules_install." I've reconfigured and recompiled the kernel before, so I know how important that is.

I've tried using "modprobe" instead of "insmod." I don't know why, but it seemed to work while "insmod.modutils" did not. Thanks for the suggestion. Now I've got my secondary NIC going. All I need to do now is set up NAT and the firewall and hopefully it can now serve it's purpose as a router.


Ben
 
Old 08-28-2006, 07:56 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,127

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Should have thought of that - have had similar issues with modprobe vs. insmod.

All's well that ends well.
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Any way to get "Alice"; "Call of Duty" series and "Descent 3" to work? JBailey742 Linux - Games 13 06-23-2006 01:34 PM
Multiple "eth0: interrupt(s) dropped" messages appearing CaptainRandom Debian 1 05-16-2004 03:39 PM
What makes "ksyms" logs? ifm Linux - Newbie 0 06-10-2002 11:46 AM

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

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

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