Tech Support Forum banner
Status
Not open for further replies.
1 - 6 of 6 Posts

· Registered
Joined
·
6 Posts
Discussion Starter · #1 ·
Hi everyone!

I have a p4s8x with an onboard sis 963 NIC. I recently installed Redhat 8, only to find out it wasn't configuring the NIC correctly, so I couldn't access the internet.

I searched the redhat site and found this link :

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=77258

It says I have to recompile a newer kernel because the CD version only supports SiS <= 962

It also has 2 files attached, sis900.h and sis900.c

Apparently it says those 2 files will fix the problem with Kernel 2.4

I may be getting confused here.

I am VERY new to linux and recompiling a newer kernel is quite intimidating. Is there a more simple solution to my problem? Perhaps as simple as copying those 2 files somewhere?

Thanks a lot!!

-R
 

· Registered
Joined
·
711 Posts
You have a couple options, neither of which will let you just put files somewhere and be done with it :(

First you can just compile the module itself (thats the .c and .h files)

You'd use something like gcc blah.c
and it will spit out a .o file which is the object code or "driver" for a piece of hardware.

You then put it in /usr/src/linux/kernel/drivers/net and update /etc/modules.conf to call it on bootup.

or you upgrade/recompile your kernel :(
 

· Registered
Joined
·
6 Posts
Discussion Starter · #3 ·
Well, I tried recompiling my kernel and failed miserably! :no:

So I'm going to try your other method which makes more sence to me......

If I understand you correctly, i put both sis900.c and sis900.h in the same directory and then run gcc sis900.c then it will give me a .0 file and that's all I need???

I don't need to put the .c or the .h some where special for this to work?

Thanks!

-R
 

· Registered
Joined
·
711 Posts
Yep, sorry if my earlier reply was a bit cranky.. suffering from severe sleep deprivation this week! I don't want to continue the horror story of receiving support for linux from some cranky nasty guy!

Anyways you'll need to make a directory (doesn't matter where really) and then place the 2 files .. the dot C file is the actual source code that "is" the driver and the dot h file is the header file which includes things the C file needs to build correctly.

run gcc nicdriver.c <replace with file name
and assuming gcc requires no special arguments, it should spit out a dot o file, the object file which is the actual driver (they're called modules in linux speak) and then place the dot o file in /usr/src/whatever redhat calls their kernel source directory/drivers/net

and then edit /etc/modules.conf and add a line which reads like the others to reference that module.
 

· Registered
Joined
·
711 Posts
I can't compile it for you, for a couple reasons.

Different kernel versions
My platform may be different from yours
the location of required header files
---
Try and post the errors you're getting so we can try and help you. Chances are its a matter of compile time options that you need to invoke before it will compile, if there's a readme, that should point you in the right direction.
 
1 - 6 of 6 Posts
Status
Not open for further replies.
Top