How do you create a driver file in linux?

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
I'm pretty clueless on linux but desparately need to install a driver for a cisco 350 client card. I've unpacked the package and have .c and .h files at my disposal.

Thanks for any guidance, it's kind of critical that I get this going and it seems like an easy task - just replace a driver. The kicker is it is a very scaled down linux and doesn't have a lot of the libraries required of the install script included with the driver package.

I guess I'm just looking for how to create the .o files.

-edit- MODS - feel free to move to OS
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
gcc is your compiler.

gcc whatever.c will compile it for you. gcc has a million options and is not exactly intuitive.
 

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I don't think you need much more than gcc and some libraries to use the install script (which you'd also need to do it manually). Do you mean it includes a "configure" file or "Makefile"? Or is this autoconf or something else?
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
you can see my linux ignornance.

there is a install script, that when it runs it complains about not having libraries. I go do install libbsig++ and gtkmm (the ones the install script were complaining about) but I don't really even know how to install them.

So rather than go through all that I figured I could just generate a .o file (whatever that is) and just replace the old ones with the new.

thanks again for any help. seems like there is something simple that can be done, I just don't know how to do it.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
libsigc++ and gtkmm are C++ userland libraries, there's no way they're needed for a kernel driver.

Do you have a URL where I can get the driver to look at it?