LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2004, 01:44 PM   #16
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15

I get the following:

gcc -D_KERNAL__ -DMODULE -Wall -Wstrict-prototypes -O2 -I/usr/src/linux-x.4/include -fomit-frame-pointer -fno-strict-aliasing -Wno-trigraphs -fno-common -pipe -mpreferred-stack-boundary=2 -march=i386 -c adm8201.c
make: gcc: Command not found
make: *** [adm8201.o] Error 127
 
Old 05-10-2004, 02:13 PM   #17
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
OK, well you have a slight problem now unfortunately...

You need to install gcc in order to compile. Usually when you first install a distribution it will ask you if you want to install something like 'Development Tools' and if you say no to this then it won't install gcc and some other stuff that you need in order to compile things. You will need to get gcc installed before you can go any further.

You will have to read other threads to find out how to do that on Fedora, because I don't have Fedora and I don't know what the easiest way to install gcc on Fedora is. Perhaps they have some information on their website?

This is turning out to be a tough thing to do for just one little driver!

You can either persist and see if you can get gcc installed (and it is well worth having, since you will need it if you ever want to make your own custom kernel or install programs for which there are no Fedora packages available)... or you can go back to your supplier and ask them for a compiled version instead of source, then you can avoid installing gcc.

Mark.
 
Old 05-10-2004, 02:16 PM   #18
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
OK,

I will get this running!

Thanks for all your help.

I will reinstall RH90 and try this again.

Thanks for all your help. Now I know what I'm up against.
 
Old 05-10-2004, 02:18 PM   #19
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Before you try... I wonder what that .o file is.... maybe its the driver? If you haven't deleted everything yet, I could have one last attmept...
 
Old 05-10-2004, 02:23 PM   #20
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
This is a wild guess but if it works then it will save you a few hours of reinstall + setup...
That .o file might be the compiled driver, and perhaps it just needs putting in the module folder.

su
cp ADM_Prv.o /lib/modules/`uname -r`
modprobe ADM_Prv.o

Nah it will never work! Otherwise they would have mentioned it in the instructions....

Oh well, see if you can reinstall with gcc, thats probably quicker anyway!

Good Luck!
 
Old 05-10-2004, 04:22 PM   #21
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
Oops, too late I reinstalled, I have 15 minutes to go, so I can copy the .tar files back to the desktop and go through it quickly. I will get back to you soon and try your method.

Thanks.

Steve
 
Old 05-10-2004, 04:56 PM   #22
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Nah now that you have reinstalled, you should do it the proper way - hopefully this time you have gcc. It's my bed time now, good night and good luck!
 
Old 05-10-2004, 05:00 PM   #23
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
OK,

I'm back. I installed the workstation version of Fedora which appears to have development tools like GCC in it.

I've copied the driver onto the root directory and typed "ls" showing that yes indeed it is on the root\ directory.

Now I am having problems "untarring?" this package. I typed:
tar -zxvf 2635ADM8211 Linux driver 1[1].03.tar
tar (child): 2635ADM8211: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Linux: Not found in archive
tar: driver: Not found in archive
tar: 1[1].03.tar: Not found in archive
tar: Error exit delayed from previous errors
 
Old 05-11-2004, 01:32 AM   #24
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Don't use root unless you absolutely have to. Do this as a user, to avoid accidental damage to your system.

The only step that needs to be performed as root should be 'make install'.

The error you get may be a permissions error if you are not running as root.
 
Old 05-11-2004, 10:31 AM   #25
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
Good afternoon,

OK,

I renamed the file from
2635ADM8211 Linux driver 1[1].03.tar to
simply 2635ADM8211.tar
and it untarred so now I am ready to continue.

I am pasting the complete instructions that came with the readme (Below). I am on step 4b but there is no Install directory and nothing happens when I type ./install, so does that mean I need to compile using the wireless tools I downloaded in step 5?




I. Installation Guide

Please follow the below to install your ADMtek ADM8211 wireless
Adapter linux driver,

1. Power on, make sure you have the privilege of superuser, and login as
root.

2. If you use CARDBUS, make sure your PCMCIA device work well.
You can try the command 'lsmod' to see the output. If the keyword
"pcmcia_core" had been found, it means that you had installed
pcmcia-cs (Normally, most laptops can be autodetected in the
installation step).

3. Choose the proper version of installation file.

4. Install your ADMtek ADM8211 Wireless Adapter Linux driver for different
OS version.
a. If your OS is RedHat 7.3, please tar zxvf Install_RH73_100.tar.gz.
If your OS is RedHat 8.0, please tar zxvf Install_RH80_100.tar.gz.
The directory "Install" will be made.
b. Type command "cd Install" to enter directort "Install".
c. Type command "./install" to begin installing Linux driver.

After upper command, ADMtek ADM8211 Linux driver will be installed.
And the utilities including wireless-tool and kwifimanager will be also
installed.The two utilities are popular tools that can help you configure the Wireless Lan.
For further reading, please reference the Linux Wireless LAN Howto,
located at <http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/>.

5. If you get the source code and you want to compile it by yourself.
a. Install wireless-tool by yourself.
(We recommand wireless-tools-25)
b. Make sure you have the kernel 2.4.x source code.
c. You can modify the Makefile to fit your enviroment. We recommad
you make a soft link linux-2.4 of kernel source in /usr/src/
eg. If you had kenrel source linux-2.4.20 in /usr/src/
type "ln -s linux-2.4.20 linux-2.4"
d. Type "make"
e. The file 8211.o is the ADM8211 linux driver
f. "insmod 8211.o" to test your linux driver
(If you encounter some error messages, please try "insmod -f 8211.o")


6. Reboot your system and use the command "netconfig" to configure your
network.You may need start network using "/etc/rc.d/init.d/network start" to take effect.
You can use either iwconfig or kwifimanager(In KDE) to setup up your
wireless lan.
 
Old 05-11-2004, 10:57 AM   #26
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
I continued to step 5 and untarred the wireless_tools.26.
I cd into the wirless_tools directory and
I make the soft link by typing ln -s linux-2.4.22 linux-2.4
then I typed make

I got a couple of warnings saying:

iwlib.c:40:2: warning: #wanring "Wireless Extension earlier than v16 detected"
iwlib.c:41:2: warning: #warning "Not all tools features will be comiled in !"
iwlib.c:42:2: warning: #warning "No worry, I'll try to make the best of it ;-)"

then it continued with some gcc etc.
I am assuming the "No worry message" override any concernes the warnings might have. So I think I've compiled tools properly.

Then I continue to step 5f and type:
insmod 8211.o
but I got the following message
No such file or directory

So I went back to the ADM2811 directory and did the softlink again
ln -s linux-2.4.20 linux-2.4
typed "make"
and got a bunch of text run by including syntax errors:
In file incuded from adm8201.c:8:
/usr/include/linux/timer.h:45:error: syntax error before "spinlock_t"

I got a bunch of errors with the same /usr/include/linux/timer.h...
syntax error before '}' token
syntax error before "tvec_base_t"
syntax error before "tvec_bases"
In function 'init_timer':
dereferencing pointer to incomplete type
'NULL' undeclared (first use in this function)

it goes on and on....

Am I going about this correctly now?
 
Old 05-11-2004, 11:58 AM   #27
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
Muzzy,

Going on your assumption that the ADM_Prv.o file might be the compiled driver, I went ahead and typed

insmod ADM_Prv.o

and got

ADM_Prov.o: couldn't find the kernel version the module was compiled for

I could always try typing your assumption of

su
cp ADM_Prv.o /lib/modules/`uname -r`
modprobe ADM_Prv.o
and see what happens?

Thanks.

Steve
 
Old 05-11-2004, 12:32 PM   #28
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Perhaps try doing 'make configure' before you do make. Usually there is a configure script or something. I can't understand why there isn't one, when the instructions say that there should be.

It looks like you are on the right lines with the compiling, but it seems that there is some sort of versioning problem, perhaps with the kernel or the wireless tools.

Now it is getting beyond what I know about compiling drivers on Linux, so you may have to get back in touch with your supplier and report the errors - it may be that they have seen them before. Or hope that someone more knowledgable than me can provide further assistance.
 
Old 05-11-2004, 12:35 PM   #29
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
Oh one more thing I noticed:

You said you did make for the wireless_tools, but you didn't mention doing a make install. make just compiles the files, you need to to make install to actually use them, once the make has succeeded. You should also do a ./configure before you do make.

95% of the time to compile from source you need to do:
Code:
less README
./configure
make
su
make install
 
Old 05-11-2004, 01:17 PM   #30
bitamois
LQ Newbie
 
Registered: May 2004
Location: Chicago, USA
Distribution: Red Hat Fedora Kernal 2.4.22
Posts: 29

Original Poster
Rep: Reputation: 15
I'm in the wireless_tools.26 directory and typed

./configure

I got "No such file or directory"
 
  


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
LAN help with ADMtek driver laforge Mandriva 0 05-19-2005 06:58 PM
ADMtek 983 Driver for linux havvy69 Linux - Networking 0 05-29-2004 02:32 PM
SMC2602W (ADMTek 8211) problems donniejones18 Linux - Wireless Networking 0 02-08-2004 11:37 AM
ADMtek 8211 in Mandrake 9.2? isdnip Linux - Wireless Networking 34 01-24-2004 07:33 AM
Admtek wp2000 lanready.com dardare Red Hat 3 09-03-2003 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 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