LinuxQuestions.org
Help answer threads with 0 replies.
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 04-02-2006, 12:47 AM   #1
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Rep: Reputation: 15
edimax wireless card (ralink chip) gentoo isntallation


Been trying to install Gentoo;
can't use emerge to get ndiswrapper or wireless-tools; everything has been installed by hand, because I have only wireless and have to download everything from Windows.
Tried ndiswrapper-1.11 and ndiswrapper-0.11 because someone claimed 0.11 worked with the card.
If anyone has this card working, either with ndiswrapper or the 'included linux drivers,' which are pieces of shit, please tell me how you did it.
If it involves an rpm or deb or something like that I can't use it because I'm installing in Gentoo.
Thanks in advance.
 
Old 04-02-2006, 05:07 PM   #2
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
gentoo and ndiswrapper

OK
I've emerged ndiswrapper, and installed my windows drivers; it sees both the hardware and the driver.

But, when I modprobe ndiswrapper, it doesn't give me an error, but my dmesg betrays the sad truth that it hasn't worked:

Code: 0f 0b 68 2d 22 46 80 c2 50 00 48 63 d0 44 89 c7 48 69 d2 08
RIP <ffffffff801218a7>{dma_alloc_pages+63} RSP <ffff81003de9d890>
<3>ndiswrapper (wrapper_init:173): loadndiswrapper failed (11); check system log for messages from 'loadndisdriver'
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
<ffffffff8043a128>{__lock_text_start+0}
PGD 3e5ab067 PUD 3efe1067 PMD 0
Oops: 0002 [2] SMP
CPU 0
Modules linked in: ndiswrapper
Pid: 6188, comm: modprobe Tainted: P 2.6.15-gentoo-r5 #2
RIP: 0010:[<ffffffff8043a128>] <ffffffff8043a128>{__lock_text_start+0}
RSP: 0018:ffff81003e9f9e70 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff88030558 RCX: 0000000000000034
RDX: 0000000000000034 RSI: ffffffff80256c90 RDI: 0000000000000000
RBP: ffffffff804fdde0 R08: 0000000000000003 R09: 00000000000000fa
R10: ffffffff802c1a2e R11: ffffffff802c1a2e R12: 0000000000000000
R13: 00000000005160e0 R14: 00007fffff820dd8 R15: 00002aaaaaac2010
FS: 00002aaaaade6b00(0000) GS:ffffffff80658800(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 000000003e2fd000 CR4: 00000000000006e0
Process modprobe (pid: 6188, threadinfo ffff81003e9f8000, task ffff81003e9337c0)
Stack: ffffffff80437eff 0000000000000000 ffffffff880304b0 ffffffff804e6120
ffffffff802c0fca ffffffff880304c0 ffffffff8802f900 ffffffff804e6120
ffffffff802c17b7 ffffffff88030460
Call Trace:<ffffffff80437eff>{klist_remove+18} <ffffffff802c0fca>{bus_remove_driver+128}
<ffffffff802c17b7>{driver_unregister+13} <ffffffff802610a6>{pci_unregister_driver+15}
<ffffffff880063b0>{:ndiswrapper:loader_exit+82} <ffffffff8801628d>{:ndiswrapper:module_cleanup+6}
<ffffffff88033177>{:ndiswrapper:wrapper_init+375} <ffffffff801518bb>{sys_init_module+246}
<ffffffff8010f8da>{system_call+126}

Code: f0 ff 0f 0f 88 de 01 00 00 c3 31 c0 87 07 85 c0 0f 9f c0 0f
RIP <ffffffff8043a128>{__lock_text_start+0} RSP <ffff81003e9f9e70>
CR2: 0000000000000000
<7>eth0: no IPv6 routers present
ndiswrapper: version magic '2.6.15-gentoo-r5 gcc-3.4' should be '2.6.15-gentoo-r5 SMP gcc-3.4'

Anyway, not sure what I'm doing wrong; it's probably something to do with my kernel as it is custom built, and my first try at doing so. Any help is appreciated.
 
Old 04-02-2006, 06:00 PM   #3
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Well, the problem seems to be :
Code:
ndiswrapper: version magic '2.6.15-gentoo-r5 gcc-3.4' should be '2.6.15-gentoo-r5 SMP gcc-3.4'
What this means is that you compiled ndiswrapper for your kernel, then changed the kernel to have smp support (Multi Processing)

Try recompiling your kernel and then
Code:
USE="debug" emerge -atv ndiswrapper
If you dont need the SMP support (so if your not running a multi-core or multi-cpu system) Then take it out of your kernel.

Hope this helps
-Rob
 
Old 04-03-2006, 01:54 AM   #4
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
yeah, thanks. I recompiled my kernel without SMP support (not sure how it got in there in the first place) and the error messages all went away. And my wireless still doesnt work, lol.
Thanks anyway. I'm trying a different approach (and posting a new thread on it too, since ndiswrapper failed me.)
 
Old 04-03-2006, 02:02 AM   #5
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
ralink 2500 linux drivers & gentoo

Trying to get my Edimax ew-7128g to work with the ralink 2500 linux drivers.

I've:

ACCEPT_KEYWORDS="~amd64" emerge net-wireless/rt2500

and it installs without a hitch. No error messages, nothing. I've carefully compiled and recompiled my kernel without SMP and with the necessary wireless support to make it work. But you'd think when there arent any errors, it would start working.

On the gentoo tutorial:
http://gentoo-wiki.com/HARDWARE_rt2500

it tells me that all I need to do after this emerge (if everything works) is reboot and then type

iwconfig ra0

but this doesn't work. Neither does the AMD64 version of this tutorial (it doesnt even begin to work.)

Any help is appreciated. It's really necessary since my only internet connection here is wireless and I have to boot into XP to post and do research
 
Old 04-03-2006, 04:52 AM   #6
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
LOL,

A step in the right direction I guess
 
Old 04-03-2006, 05:00 AM   #7
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
ok bud,

Paste us the output of
Code:
ndiswrapper -l
Code:
lsmod
Code:
dmesg | grep ndis
Code:
ifconfig -a
Should be able to fix the problem.

By the way, I dont think you need to use ndis for that card, it has native support in linux kernel. (I know, I have one )

Regards
-Rob
 
Old 04-03-2006, 10:28 AM   #8
Kman12
LQ Newbie
 
Registered: Mar 2004
Location: California
Distribution: Slackware 10.0
Posts: 12

Rep: Reputation: 0
If it's a ralink chip, you should be able to use the drivers from here. They are open source and have worked very well for me. I never had any luck with ndiswrapper.
 
Old 04-03-2006, 12:47 PM   #9
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
ndiswrapper -l:
Installed Drivers:
rt61 driver present, hardware present
/*this is interesting because I could have sworn I removed ndis so I could use the Linux driver :P*/

lsmod:
Module Size Used by
rt2500 169896 0
/*This is the Linux driver... I'm not familiar with lsmod though, so I'm not sure what else that means..*/

dmesg | grep ndis
/*this returned nothing :P maybe I did delete ndis...*/

eth0 Link encap:Ethernet HWaddr 00:16:17:1B:A4:A6
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:217 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metr
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0b) TX bytes:0 (0.0b)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0b) TX bytes:0 (0.0b)

/*as you can see, no ra0 or wlan0, also note there's no eth0 ip; stupid school doesn't let us have a wired connection*/
 
Old 04-03-2006, 02:00 PM   #10
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Ah, not much there that can help.

try:
Code:
rmmod rt2500 && modprobe rt2500
Check dmesg and the system log for any error/warning messages.
 
Old 04-03-2006, 03:56 PM   #11
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
the rmmod && modprobe did absolutely nothing;
dmesg betrayed that the computer didnt even register the module coming out and going back in.
I ran lspci to make sure that my computer was even seeing the card and the following output:




00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:06.0 Network controller: RaLink Unknown device 0301
01:07.0 Multimedia audio controller: Rockwell International Riptide PCI Audio Controller
01:07.1 Communication controller: Rockwell International Riptide HCF 56k PCI Modem
01:07.2 Input device controller: Rockwell International Riptide PCI Game Controller
01:0c.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 Gigabit Ethernet Controller (rev 15)
05:00.0 VGA compatible controller: nVidia Corporation NV41.1 [GeForce 6800] (rev a2)


shows that the computer does see it.. I'm at a loss... my kernel doesnt have SMP support, and does have wlan support...

the dmesg doesnt change at all when I modprobe rt2500...

I'm at a loss again... I think it's something to do with my kernel configuration though..
thanks for all of your help.

-Ian
 
Old 04-04-2006, 01:21 AM   #12
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Mod note: You have created three separate threads that all basically cover the same ground. I have merged them together, to keep the conversation in one place. In the future, please simply post any updates to your existing thread rather than to start a new, similar thread. Thanks
 
Old 04-04-2006, 06:49 PM   #13
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
I'm still not sure what I'm doing wrong; I'm getting an interesting error.
I've installed the rt2500 to the proper directory and created a net.ra0 in /etc/init.d/and when i run
Code:
 /etc/init.d/net.ra0
it gives me an error that rt2500.ko doesn't pass a sanity check (???!??) and that iwconfig is not a "valid module, missing provides."
Iwconfig isn't a valid module?! Could this have been the problem all along?! I'm confused...

(I changed where to look for modules inside of net.ra0 to where rt2500.ko is installed.. could that be the reason for this error? And if so, what is the default value there so I can change it back? (the one that is in net.eth0)

Last edited by unknown_mosquito; 04-04-2006 at 06:52 PM.
 
Old 04-06-2006, 12:09 AM   #14
unknown_mosquito
LQ Newbie
 
Registered: Mar 2006
Distribution: Fedora Core 4, Gentoo (sort of)
Posts: 29

Original Poster
Rep: Reputation: 15
trying to resurrect this problem
Just figured out I actually have a rt61 chip on my edimax card. Apparently they have changed which chip goes on the ew-7128g recently.

This cleared up some things. Now I can finally see ra0 on my ifconfig -a...

but, you see, when I ifconfig up ra0 I get this nasty kernel oops (and I think it's on account of my 64-bit system )
(This is dmesg: )

Code:
RT61: Vendor = 0x1814, Product = 0x0301 
Unable to handle kernel paging request at 0000000000073000 RIP: 
<ffffffff880022c6>{:rt61:RT61_open+51}
PGD 3dc3b067 PUD 3f3a6067 PMD 0 
Oops: 0000 [1] 
CPU 0 
Modules linked in: rt61
Pid: 6071, comm: ifconfig Tainted: P      2.6.15-gentoo-r5 #1
RIP: 0010:[<ffffffff880022c6>] <ffffffff880022c6>{:rt61:RT61_open+51}
RSP: 0018:ffff81003df65d88  EFLAGS: 00010206
RAX: 0000000000073000 RBX: ffff81003dca0000 RCX: 0000000000000000
RDX: 00000000ffffffed RSI: 0000000000001043 RDI: ffff81003dc46800
RBP: 0000000000000000 R08: ffff81003f8d19c0 R09: ffffffff80383fbf
R10: 00002aaaaabc09a8 R11: 0000000000000202 R12: ffff81003dc46800
R13: 0000000000000000 R14: 0000000000000000 R15: ffff81003dc46800
FS:  00002aaaaade6b00(0000) GS:ffffffff80610800(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000073000 CR3: 000000003dc38000 CR4: 00000000000006e0
Process ifconfig (pid: 6071, threadinfo ffff81003df64000, task ffff81003f2ccfe0)
Stack: 0000000000000000 0000000000000000 ffff81003dc46800 0000000000000000 
       0000000000001002 ffffffff8038bc52 00002aaaaabc09a8 ffff81003dc46800 
       0000000000001043 ffffffff8038cc3f 
Call Trace:<ffffffff8038bc52>{dev_open+51} <ffffffff8038cc3f>{dev_change_flags+88}
       <ffffffff803c0acb>{devinet_ioctl+691} <ffffffff80401ac1>{do_page_fault+1018}
       <ffffffff803c1c9e>{inet_ioctl+124} <ffffffff803841ce>{sock_ioctl+527}
       <ffffffff8017304e>{do_ioctl+30} <ffffffff801732c9>{vfs_ioctl+589}
       <ffffffff80173312>{sys_ioctl+60} <ffffffff8010e58a>{system_call+126}
       

Code: 8b 10 8b 00 85 c0 75 15 bf e8 03 00 00 e8 2e 58 01 00 89 e8 
RIP <ffffffff880022c6>{:rt61:RT61_open+51} RSP <ffff81003df65d88>
CR2: 0000000000073000
help is appreciated on fixing this!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing wireless network card Ralink RT2500 runnerpaul Linux - Newbie 1 03-16-2006 05:37 PM
Help with Linksys (TI chip) Wireless card Kieffer87 Ubuntu 3 01-14-2006 10:51 AM
help with wireless (belkin f5d7000 with the ralink rt2500 chip) penguin tech Linux - Newbie 2 08-08-2005 03:43 PM
Ralink 2400 Cnet Wireless 311 pci card -driver install hnash53 Linux - Wireless Networking 2 07-26-2005 11:15 PM
How do you set up a Ralink Wireless PCI Card in Fedora? jhern54 Linux - Wireless Networking 3 05-09-2005 11:08 PM

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

All times are GMT -5. The time now is 01:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration