Hi all... Ok, I admit it I'm totally lost here. <G> I d/l two files I need to get a NIC to work. But I don't know what to do now. What I have is "atp.c" and "atp.h". The only info with it was that I had to compile it with the -O option. OK...... #1 Where should I put the "atp.h" file so that gcc can find it? #2 What is the command to compile "atp.c"? I'm sorry if these questions are a bit simple, but normally source comes with a bit more help. BTW, if there is anything else I should know about doing a "raw" compile, please tell me. TIA! -- Jim Hatridge ------------------------------------------------------ BayerWulf The Recycled Beowulf Project Looking for throw-away or obsolete computers and parts to recycle into a Linux super computer
Check how atp.c #include:s the file. If there's a line
#include "atp.h"
then it should be in the same directory as atp.c. If it's
#include
Hi all...
Ok, I admit it I'm totally lost here. <G> I d/l two files I need to get a NIC to work. But I don't know what to do now.
What I have is "atp.c" and "atp.h". The only info with it was that I had to compile it with the -O option. OK......
#1 Where should I put the "atp.h" file so that gcc can find it?
#2 What is the command to compile "atp.c"?
I'm sorry if these questions are a bit simple, but normally source comes with a bit more help. BTW, if there is anything else I should know about doing a "raw" compile, please tell me.
TIA!
----- Original Message -----
From: "Jim Hatridge"
What I have is "atp.c" and "atp.h". The only info with it was that I had to compile it with the -O option. OK......
#1 Where should I put the "atp.h" file so that gcc can find it?
#2 What is the command to compile "atp.c"? <snip> -- Jim Hatridge
------------------------------------------------------
After you get the drivers compiled you may still have a bit to do. Your drivers may need options and such. Are you sure there are no drivers included with the kernel or distro that you can use? That would make things much easier. If you have compiled them here are the basic things you have to do: -place the drivers in the kernel driver dir for ex: cp /dir/atp.o /lib/modules/2.2.xx/kernel/net/ of course substitute 2.2.xx for the kernel you are using. -rebuild the module dependencies: depmod -a -tell the system how you want to use it in /etc/modules.conf: alias atp eth0 (or eth1, etc. you can check that it doesn't exist already with ifconfig.) -tell the system how to access the card (if neccessary) /etc/modules.conf: options atp io=320 irq=9 dma=5 (or whatever) try without this line first. -do "modprobe atp" -check if the interface is recognized and assign address: ifconfig eth0 192.168.10.50 do "ifconfig" again without options and look for an entry for etho -if it works you can configure SuSEconfig to load it for you or add modprobe atp in your /etc/init.d/boot.local. Hope I didn't miss anything but I probably did. John
participants (3)
-
Anders Johansson
-
Jim Hatridge
-
John Scott