LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-27-2003, 06:29 PM   #1
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Rep: Reputation: 15
Unhappy Problems Getting Wireless Setup


Ive just bought a Wireless 802.11b PCMCIA and PCI Card.
The PCMCIA card uses uses the ATMEL chipset Ive been told, and the PCI card uses the RALINK chipset, and has Linux drivers on the cd.

Ive been trying to get the PCMCIA card setup in my laptop, which is currently running Mandrake 9.1, and when I plug in the card, I hear a big deep "BEEP", meaning its not working right.

Ive been trying to install the ATMEL drivers without any luck, I just get errors which I will post.

Secondly, my PCI card is plugged into my Clarkconnect 1.3 gateway server box.
Im thinking I need to make a new recompiled kernel, which Ive never done. The instructions for installing the RALINK drivers have me a bit confused. I will post these as well.

Thanks for any help, I'd really appreciate it.
 
Old 06-27-2003, 06:42 PM   #2
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
Im using the Atmelwlan driver, version 2.1.2.2

I run a make realclean, then make config, and choose to build all.

It then asks me for 'root dir of external pcmcia', which I have NO idea about. Ive tried various paths, but it says 'pcmcia include dir /include does not exist. run again with the proper directory'.

If I use the atmelwlan driver, version 2.1.1 this doesnt happen.

I run a make realclean, then make config, and choose to build all.

I run make all, as it says, and heaps of things run past, but at the end I get a whole lot of errors.

About 30 that are similar to:

/usr/include/linux/ethtool.h:153 parse error before "tx_coalesce_usecs_low"

Then:

make[1]: *** [all] Error 1
make[1]: Leaving directory '/root/atmelwlandriver/src/apps/cmd_line'
make: *** [all] Error 2

The file /usr/include/linux/ethtool.h exists also.

I continued anyway and did a 'make install', which shows the following:

set -x
depmod -aq
depmod: cannot read ELF header from /lib/modules/2.4.21-0.13mdk/kernel/drivers/pcmcia/include
make: *** [install] Error 1

Then, when I insert the card, I get this:

cardmgr[787]: socket 1: ATMEL 11 Mbps Wireless RFMD Revision D PCMCIA Card
cardmgr[787]: executing: 'modprobe pcmf502rd'
cardmgr[787]: + modprobe: Can't locate module pcmf502rd
cardmgr[787]: modprobe exited with status 255
cardmgr[787]: module /lib/modules/2.4.21-0.13mdk/pcmcia/pcmf502.rd.0 not available
cardmgr[787]: get dev info on socket 1 failed: Resource temporarily unavailable

So, I have NO idea! Can anyone please help?

Thanks
 
Old 06-27-2003, 06:45 PM   #3
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
My PCI Card has a Linux driver, RT2400_LINUX.tgz

Im wanting to install this on my Clarkconnect 1.3 box, and this is what the README says:

1) Compatibility.

RedHat 7.1
RedHat 7.2
RedHat 7.3
RedHat 8.0
RedHat 9.0

2) Installation Procedure

- run 'make config' to set up module install directory.
(If the new kernel has a different version string, you need to
change the directory. The default answer is correct for most users.)

- run 'make install'
(This will do everything (install the driver and the necessary files ).
(make sure that you logged on as root).

- run '/sbin/insmod rt2400.o' (as root)
run '/sbin/ifconfig ra0 inet YOUR_IP up'
run '/sbin/route add default gw YOUR_DEFAULT_GW dev ra0'
(where [YOUR_IP] like [192.168.1.1], [YOUR_DEFAULT_GW] like [192.168.1.254])

- run '/usr/local/bin/RaConfig' to start the Configuring Utility.



Running 'make config' in the rt2400_linux directory gives me:
Please specify kernel source directory [/usr/src/linux-2.4.18-27.7.x]:

However, Im not sure whether the stock Clarkconnect Kernel can handle this, and Im not sure whether the card is being detected now?

Last edited by nuxie1; 06-27-2003 at 06:48 PM.
 
Old 06-29-2003, 06:05 AM   #4
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
Well, Ive just installed the kernel source on my clarkconnect machine, after installing the development packages.

Now, I installed the linux-2.4.18-27.7.x kernel source, which is the kernel Im running. I installed the drivers for my PCI card, which all worked fine.

BUT, I tried to insmod the rt2400.o driver, like the readme says from the /lib/modules/2.4.18-27.7.x/kernel/drivers/net directory, but it says:

rt2400.o: kernel-module version mismatch
rt2400.o was compiled for kernel version 2.4.18-14
while this kernel is version 2.4.18-27.7.x.

I dont have the 2.4.18-14 kernel installed!!! Unless the kernel source I installed was a misnamed rpm, and installed into a misnamed directory...?
 
Old 06-29-2003, 07:45 PM   #5
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
I seem to have the PCMCIA card working on my laptop too. After a lot of searching I found out that the errors were caused because the ethtool.h file is not needed to be included..

So, I edited /usr/include/linux/wireless.h and commented out the include ethtool.h line, using /*

Then, when I made the atmel driver, I didnt get any errors, and it all worked, I restarted and inserted the card, and it was detected. I ran the config utility and set everything up, and the little light came on!

However, I dont have another wireless setup to test it with.

For my PCI card on my Clarkconnect box, I am trying to upgrade the kernel, as I think I have some sort of mismatch problem. So I am downloading a new kernel/kernel source from redhat, and will run that and try installing the files again.

Im really happy that a relative can sort out these problems without much help!
 
Old 06-29-2003, 08:22 PM   #6
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
Well, I downloaded the 2.4.20-18.7 kernel and source from redhat, and installed them and am running it now.

I retried make config, and make install

I then went to the /lib/modules/2.4.20-18.7/kernel/drivers/net directory, and ran insmod rt2400.o

Result:

insmod rt2400.o
rt2400.o: kernel-module version mismatch
rt2400.o was compiled for kernel version 2.4.20-8
while this kernel is version 2.4.20-18.7.

What on earth is going on??
 
Old 06-30-2003, 05:34 AM   #7
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
Well, guess I'll answer more of my own questions.

I think maybe the driver archive: RT2400_LINUX.TGZ that Im uncompressing has the modules pre-made? And that they were made only for redhat 7.1-9.0, and require the exact kernel to be running, that those base systems run? Ive tried insmod'ing each module, as in the uncompressed directory, there is a rt2400rh71 rt2400rh72 ... rt2400rh90 directory, with rt2400.o module (?) in each, and running insmod on each says it was configured using a different kernel, compared to the one I am using.

So, I'll try installing the redhat 9.0 2.4.20-8 kernel and source!
 
Old 06-30-2003, 06:22 PM   #8
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Don't even sweat it, they're all the same kernel, just different builds of that same kernel...

insmod -f rt2400.o

That'll force load it past RH's or whatever's "kernel version symboling" mismatch keeeerap.

Offhand, what's the story with this Ralink card, never heard of it, got a link to where you picked it up?

Cheers,

Finegan
 
Old 06-30-2003, 06:48 PM   #9
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
I picked it up cheaply for $69 AUS, which I think is about $46US?
The PCMCIA card was even less, at $40 AUS, $27 US

Its from Minitar, I'd never heard of them, but it was cheap and was said to run in Linux: http://www.minitar.com/index.php?mai...wls_pci&page=1

Perhaps its just a standardish chipset, prism..orinoco..atmel.. but theyre just calling it something else, and making their own software? Seems strange that theyve created their own one.

Meanwhile, insmod -f rt2400.o on the rt2400_rh90 (I think made for Redhat 9.0) yields this:

insmod -f rt2400.o
Warning: kernel-module version mismatch
rt2400.o was compiled for kernel version 2.4.20-8
while this kernel is version 2.4.20-18.7
rt2400.o: unresolved symbol dev_base_R24f66f3d
rt2400.o: unresolved symbol register_netdev_Rf81ba6ec
rt2400.o: unresolved symbol __netdev_watchdog_up_R19eface2
rt2400.o: unresolved symbol skb_over_panic_R95644aaa
rt2400.o: unresolved symbol unregister_netdev_Rfb4ebad9
rt2400.o: unresolved symbol alloc_skb_R57542abc
rt2400.o: unresolved symbol eth_type_trans_R84df3c10
rt2400.o: unresolved symbol netif_rx_R8d84bcda
rt2400.o: unresolved symbol filp_open_R060a55d2
rt2400.o: unresolved symbol softnet_data_R67d71c0a
rt2400.o: unresolved symbol filp_close_R7e555b69
rt2400.o: unresolved symbol alloc_etherdev_R5d6946ce

However, using the Redhat 7.3 part (in rt2400_rh73) yields this:

insmod -f rt2400.o
Warning: kernel-module version mismatch
rt2400.o was compiled for kernel version 2.4.18-3custom
while this kernel is version 2.4.20-18.7
rt2400.o: unresolved symbol pci_release_regions_Ree185a37
rt2400.o: unresolved symbol alloc_skb_Rea4a1fcf
rt2400.o: unresolved symbol eth_type_trans_R1af63081
rt2400.o: unresolved symbol dev_base_R06b094eb
rt2400.o: unresolved symbol pci_unregister_driver_R6387cfd3
rt2400.o: unresolved symbol __netdev_watchdog_up_Rdba22fb8
rt2400.o: unresolved symbol softnet_data_Rb74b2783
rt2400.o: unresolved symbol skb_over_panic_Ra17c230b
rt2400.o: unresolved symbol unregister_netdev_R56cbba84
rt2400.o: unresolved symbol filp_open_Ra284e424
rt2400.o: unresolved symbol alloc_etherdev_R0edba8cf
rt2400.o: unresolved symbol pci_free_consistent_R4a863b05
rt2400.o: unresolved symbol pci_alloc_consistent_Rd2217097
rt2400.o: unresolved symbol register_netdev_Re32f6bc3
rt2400.o: unresolved symbol netif_rx_R35fec680
rt2400.o: unresolved symbol pci_request_regions_Reddf5b5b
rt2400.o: unresolved symbol filp_close_Re2b85e82
rt2400.o: unresolved symbol pci_register_driver_R9e6cd8b6
rt2400.o: unresolved symbol pci_enable_device_Rbd4d327a
rt2400.o: unresolved symbol pci_set_master_R1fb64c17
rt2400.o: unresolved symbol do_BUG_R577f4bff

lsmod does not show it as loaded.. Maybe I need to upgrade something on the CC machine. Or else I have no idea!

Last edited by nuxie1; 06-30-2003 at 06:54 PM.
 
Old 06-30-2003, 06:58 PM   #10
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Did they only give you 5 precompiled modules, or did you get any source package from them? I think their little precompiled mess is going to require that you have an RH kernel running, which is not a big deal really... just annoying to graft onto another distrobution.

Cheers,

Finegan
 
Old 06-30-2003, 07:06 PM   #11
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
I was given a TGZ archive.
I will upload it so you can have a look if you want. Its at http://users.bigpond.net.au/robi/RT2400_LINUX.TGZ

I think theyre precompiled, because all you do is run a make config, which asks for your source and modules directories, and then sets which driver it will install (from RH7.1 -> RH9.0)

I am running a redhat kernel, as Clarkconnect is based on Redhat 7.3, but Ive upgraded the kernel and am running a 2.4.20 kernel, which it detects as RH9.0

Last edited by nuxie1; 06-30-2003 at 07:11 PM.
 
Old 06-30-2003, 07:12 PM   #12
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Geocites is making evil whimpering noises about "I can't load this", you can send it as an attachment to:

fin splat clockwatching.net

Cheers,

Finegan
 
Old 06-30-2003, 07:18 PM   #13
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
Sorry, uploaded it somewhere else, see above, and below!
Also, just incase this might help, I ran an lspci -v

Network controller: Unknown device 1814:0101
Subsystem: CNet Technology Inc: Unknown device 0010
Flags: bus master, slow devsel, latency 32, IRQ 10
Memory at e4000000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [40] Power Management version 0

http://users.bigpond.net.au/robi/RT2400_LINUX.TGZ
 
Old 06-30-2003, 07:34 PM   #14
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Five precompiled modules, not a single line of source code. Also, they only built for the default kernels of each release and not any of the upgrades... so... It looks like either switching back to an older redhat kernel or mailing these guys and asking for the source code... which they may very well provide. I've had a lot of luck with realtek and admtek lately.

Cheers,

Finegan
 
Old 07-01-2003, 06:07 AM   #15
nuxie1
Member
 
Registered: Oct 2002
Location: Melbourne, Australia
Distribution: Mandrake 9.1, Clarkconnect 1.3
Posts: 39

Original Poster
Rep: Reputation: 15
I received this *support*, and am not sure what exactly it means:

----------------------------------

Dear Sir :

You must edit config.mk (You want version) than compile again.



for example :



TARGET_MODDIR=/lib/modules/2.4.18-3 <-----Edit this
SOURCE_PLATFORM=rt2400_rh73



How to compile ???



1. Enter terminal mode .

2. Select the driver folder.

3. Run "make" command.

----------------------------------------

???
 
  


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
Wireless setup help kkempter Linux - Wireless Networking 1 11-19-2005 11:29 AM
wireless setup jbclarkman Mandriva 2 01-13-2005 03:03 PM
wireless setup Patbuzz86 Linux - Wireless Networking 5 11-28-2004 09:28 AM
Wireless Setup seventhhat Red Hat 8 11-07-2004 11:29 PM
Wireless setup Arza Linux - Wireless Networking 3 06-20-2002 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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