Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probmlems gettin wlan card to work
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Thu May 22, 2003 6:02 pm    Post subject: Probmlems gettin wlan card to work Reply with quote

Hi!
Just a short question:
Has anyone had success with a rtl8180 based wlan pcmcia card?
I'm trying to get this one to work but fail.
There is no kernel-module exept the ond from realtek's site.
I can compile it (the binay versions don't work).
But when I insmod it, it segfaults.
Any ideas?
_________________
linux user 65882
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Mon May 26, 2003 5:37 am    Post subject: Reply with quote

bmp.
Has noone ever tried or is it impossible to get this to work?
_________________
linux user 65882
Back to top
View user's profile Send private message
qanuta
n00b
n00b


Joined: 04 Apr 2003
Posts: 43
Location: NJ, USA

PostPosted: Sat May 31, 2003 3:29 pm    Post subject: Reply with quote

zypher,

I am currently struggling with this myself. I also downloaded the driver from the realtek site after coming to the conclusion that nothing else was going to work. I found linuxquestions
marginally useful to get me started.

I didn't run into the segfault issues you mentioned. Both the precompiled and my own compiled versions would both insmod without a hitch. I am using a vanilla 2.4.20 kernel.

I have a Linksys WPC11 v.4 card, which has this RTL8180 chip. Not to be confused with the WPC11 v.3, which appears to work OK with linux from what I've read, but uses the orinoco driver.

I have gotten pretty far trying to get this card to work with the realtek driver, but and getting stuck at the very end. After I insmod the rtl8180_24x.o module, ifconfig reports a wlan0 interface (good!). I can configure this interface without any problems using the realtek-supplied scripts as a guide. (These use iwpriv, iwconfig, ifconfig). However, try as I might, I can't get the thing to talk to my Linksys wireless router with DHCP. I know that is working fine because I have another computer (with an identical WPC11 v.4 under Windows 2000) that talks to it.

Here are the details of where I'm getting stuck.

1. I insert the card, and insmod rtl8180_24x.o

2. ifconfig shows me my new wlan0 interface:
Code:

# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:06:25:2D:11:EA 
          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:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x4800


3. I run my personalized version of the realtek-supplied wlanup script:
Code:

iwpriv wlan0 wlan_para bcnint=100
iwpriv wlan0 wlan_para channel=6
iwpriv wlan0 wlan_para basicrates=0xf
iwpriv wlan0 wlan_para oprates=0xf
iwpriv wlan0 wlan_para authtype=both
iwpriv wlan0 wlan_para ssid2scan=L112A4
iwpriv wlan0 wlan_para rtsthres=512
iwpriv wlan0 wlan_para fragthres=512
iwpriv wlan0 wlan_para preamble=long
iwpriv wlan0 wlan_para wepmode=off
iwpriv wlan0 wlan_para wepdkeyid=0
iwpriv wlan0 wlan_para networktype=infra
iwpriv wlan0 wlan_para encmode=off
iwpriv wlan0 enable


4. These commands seem to be accepted as shown by dmesg...
Code:

cs: cb_alloc(bus 6): vendor 0x10ec, device 0x8180
PCI: Enabling device 06:00.0 (0000 -> 0003)
PCI: Setting latency timer of device 06:00.0 to 64
RTL8180: 06:00.0: region #0 IS a PIO resource!
RTL8180: STA is NOT acting as AP!
RTL8180: #define RTL_LITTLE_ENDIAN
RTL8180: rtl8180_pci_driver loaded. ioaddr=0x4800, irq=11, MAC_addr=0:6:25:2d:11:ea
RTL8180: Use RTL private command [bcnint]
RTL8180: Use RTL private command [channel]
RTL8180: Use RTL private command [basicrates]
RTL8180: Use RTL private command [oprates]
RTL8180: Use RTL private command [authtype]
RTL8180: Use RTL private command [ssid2scan]
RTL8180: Set ssid2scan = 0x4c(L) 0x31(1) 0x31(1) 0x32(2) 0x41(A) 0x34(4)
RTL8180: Use RTL private command [rtsthres]
RTL8180: Use RTL private command [fragthres]
RTL8180: Set wCtx->pMIB.RegFragThres = 512 !!!
RTL8180: Use RTL private command [preamble]
RTL8180: Use RTL private command [wepmode]
RTL8180: Set wepmode = OFF
RTL8180: Use RTL private command [wepdkeyid]
RTL8180: Set WEP default key id = 0
RTL8180: Use RTL private command [networktype]
RTL8180: Use RTL private command [encmode]
RTL8180: Set encryptmode = OFF
RTL8180:  ------ Enable RTL8180 driver ------
RTL8180: Read CONFIG4: RTL8180 + RFMD RF.
RTL8180: Autoload RFChipID in EEPROM -> RTL8180 + MAXIM RF.
RTL8180: Scan PHY channel number = 1
RTL8180: Scan PHY channel number = 2
RTL8180: Scan PHY channel number = 3
RTL8180: Scan PHY channel number = 4
RTL8180: Scan PHY channel number = 5
RTL8180: Scan PHY channel number = 6
RTL8180: Scan PHY channel number = 7
RTL8180: Scan PHY channel number = 8
RTL8180: Scan PHY channel number = 9
RTL8180: Scan PHY channel number = 10
RTL8180: Scan PHY channel number = 11
RTL8180: Neither joining a BSS or starting an IBSS


It almost looks like it tried to find something to connect to with those "Scan" lines at the bottom, doesn't it?

5. At this point, the output of ifconfig wlan0 is unchanged. I would like to be able to type
Code:

dhcpcd wlan0

and be magically connected. No such luck though. dhcpcd times out with an exit code of 14. I haven't looked that up yet.

I can also do the following:
Code:

ifconfig wlan0 128.192.1.104

and try to force an IP. ifconfig looks good, but the interface is dead. It's just not talking to the router.
Code:

# ifconfig wlan0             
wlan0     Link encap:Ethernet  HWaddr 00:06:25:2D:11:EA 
          inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::206:25ff:fe2d:11ea/10 Scope:Link
          UP BROADCAST RUNNING 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:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x4800

# ifconfig wlan0 del fe80::206:25ff:fe2d:11ea/10
# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:06:25:2D:11:EA 
          inet addr:192.168.1.104  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING 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:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x4800


Does anyone have any ideas?

Zephyr, I don't think I helped you any, except to show that I did get a little further. But I am not out of the woods yet!
Back to top
View user's profile Send private message
zentek
n00b
n00b


Joined: 03 Jul 2002
Posts: 41

PostPosted: Mon Jun 02, 2003 2:28 pm    Post subject: Reply with quote

D*m linksys and their policy of changing the hardware and keeping the same name.

All this time i was shure i had a Prism3 card and it was a RTL8180. I new i was not crazy. I fought for 2 days trying to get the wlan-ng drivers to work. I will try this and post my results.
Back to top
View user's profile Send private message
Ledneh
n00b
n00b


Joined: 08 Jun 2003
Posts: 72
Location: Las Vegas, NV USA

PostPosted: Tue Jun 10, 2003 2:39 pm    Post subject: Reply with quote

Well, how about that. A linux problem that ISN'T my fault!! :wink:

I also have a WPC11 v4 PCMCIA wireless NIC (how's THAT for a lot of TLA's?). I'll try getting the realtek drivers (there should be an ebuild for this. I'm calling out to you l33ter-than-I ebuild makers!) and I'll post the results.

*edit*

Grr. I just did a "cardctl ident" at the console with the WPC11 v4 plugged in, and here's what it reported:

Code:

Socket 0:
  product info: "Realtek", "rtl8139"
  manfid: 0x0000, 0x024c
  function: 6 (network)
  PCI id: 0x10ec, 0x8180


Okay, so I figure my card is somehow different from the others. No biggie, I go to the realtek site (www.realtek.com.tw? Wha?) and find the drivers--
--and find that their drivers don't work. I'm trying to compile everything in the kernel with a 8139 in it as a module, let you know if it works. In the meantime, anyone else experience this, PLEASE POST!
_________________
LAZOR ATTACK OLOZL ^_________________^
Back to top
View user's profile Send private message
qanuta
n00b
n00b


Joined: 04 Apr 2003
Posts: 43
Location: NJ, USA

PostPosted: Tue Jun 10, 2003 8:46 pm    Post subject: Reply with quote

Ledneh,

I no longer have the card, but your cardctl output looks very similar. I'm not sure if it is exact or not. And yes, the realtek site was a .tw, but luckily in english! The way I used their module was to insert the card, then do an insmod -f rtl8180_24x.o while in the directory containing the .o file. With their precompiled module, this would work, but I would get a warning since they used a slightly older kernel (I forget which one). I recompiled the module myself, and the warning went away, although the end result was the same.

Of course, since your card says 8139 instead of 8180, then I don't know....

Regardless, I got fed up with the card. I couldn't get it to work on my Windows ME setup either. (Windows 2000 seemed OK though). I took it back and got a Netgear MA401, which I had running in about 15 minutes.
Back to top
View user's profile Send private message
Ledneh
n00b
n00b


Joined: 08 Jun 2003
Posts: 72
Location: Las Vegas, NV USA

PostPosted: Tue Jun 10, 2003 9:21 pm    Post subject: Reply with quote

Wish that were an option for me. Unfortunately, I bought mine about a month ago and the boxes are long gone (along with the receipt). So, I guess I'm stuck with it--but what the hell, at least it works reliably in Windows XP Pro (which is why I lost track of the receipt and boxes in the first place, I guess :/ ).

If anyone has gotten these cards to work in Gentoo (or, hell, any linux, for that matter), please, say something! :cry:

*edit*
By the way, no kernel modules work, either. *sob*
_________________
LAZOR ATTACK OLOZL ^_________________^
Back to top
View user's profile Send private message
Ledneh
n00b
n00b


Joined: 08 Jun 2003
Posts: 72
Location: Las Vegas, NV USA

PostPosted: Tue Jun 10, 2003 10:11 pm    Post subject: Reply with quote

Okay, I just made a run through the forums and made what changes I could, putting pcmcia on boot instead of default, removing linux-wlan-ng, removing hotplugging from the kernel, and a bunch of other stuff. Seems I did the right (?) combination of stuff, because when pcmcia started next boot, it picked up on the card--but it said something about it being "unsupported", then output the results of a "cardctl ident" (shown in another post in this thread). Which I guess means none of the pcmcia-cs drivers will work at all for a Linksys WPC11 v4 Wireless PCMCIA NIC card.

Dammit. :cry:

Well, off to the pcmcia-cs homepage to fire off some letters, I guess.
_________________
LAZOR ATTACK OLOZL ^_________________^
Back to top
View user's profile Send private message
Ledneh
n00b
n00b


Joined: 08 Jun 2003
Posts: 72
Location: Las Vegas, NV USA

PostPosted: Thu Jun 12, 2003 6:02 pm    Post subject: Reply with quote

Quick update...

I fired off an email to the pcmcia-cs guys, but no response yet. Also, I did an lspci with the card plugged in (using every related kernel option in the book), and it says:

Code:

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.: Unknown device 8180 (rev 20)


Considering cardctl ident calls it a "Realtek", "rtl8139", this new info is confusing, but probably more accurate than the Linksys techie's "Atmel chipset" explanation. *shrug*

This give any ideas to anyone?
_________________
LAZOR ATTACK OLOZL ^_________________^
Back to top
View user's profile Send private message
Nostra23
n00b
n00b


Joined: 05 Apr 2003
Posts: 24

PostPosted: Sat Jun 21, 2003 12:10 pm    Post subject: Reply with quote

any working 8180?
:()
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Mon Jul 07, 2003 3:03 pm    Post subject: Reply with quote

Not for me :-(
The newest realtek-module builds fine but won't load on my machine.
(no such device).
Dunno what to do.
_________________
linux user 65882
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Mon Jul 07, 2003 3:04 pm    Post subject: Reply with quote

I forgot: That card works fine with WinXP.
I use the drivers provided on the realtek site where the linux-modules are.
_________________
linux user 65882
Back to top
View user's profile Send private message
deviljelly
Apprentice
Apprentice


Joined: 19 Feb 2003
Posts: 193
Location: Netherlands

PostPosted: Wed Jul 09, 2003 7:24 am    Post subject: Posting this over an Rtl8180 Reply with quote

It only took me an hour to get it working....

Code:

bash-2.05b# cardctl ident
Socket 0:
  product info: "Realtek", "Rtl8180"
  manfid: 0x0000, 0x024c
  function: 6 (network)
Socket 1:
  no product info available
bash-2.05b# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 00:50:FC:D0:54:C5
          inet addr:192.168.2.5  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2746 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2459 errors:0 dropped:0 overruns:2 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:11 Base address:0x4000


I used the Suse 8.2 package from the Realtek site and uncommented a line in one of the header files (timer_t), changed the kernel version in the Makefile, compiled it, emerged wireless-tools and then adjusted net.wlan0 (it's not very spohisticated though)

The wireless tools iw* are a bit broken but work enough to get the card up....

/etc/init.d/net.wlan0

Code:

#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/net.eth0,v 1.28 2003/03/16 08:03:19 azarah Exp $

#NB: Config is in /etc/conf.d/net


# For pcmcia users. note that pcmcia must be added to the same
# runlevel as the net.* script that needs it.
depend() {
   use hotplug pcmcia
}


checkconfig() {
   if [ -z "${iface_IFACE}" ]
   then
      eerror "Please make sure that /etc/conf.d/net has \$iface_$IFACE set"
      return 1
   fi
}

setup_env() {
   # No reason to check these multiple times in the file
   iface_IFACE="$(eval echo \$\{iface_${IFACE}\})"
   dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${IFACE}\})"
   inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})"
   alias_IFACE="$(eval echo \$\{alias_${IFACE}\})"
   status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')"
}

start() {
insmod rtl8180_24x
/usr/sbin/iwpriv wlan0 wlan_para ssid2scan=belkin54g
/usr/sbin/iwpriv wlan0 enable

   local retval=0

   setup_env
   checkconfig || return 1
   
   ebegin "Bringing ${IFACE} up"
   if [ "${iface_IFACE}" != "dhcp" ]
   then
      /sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {
         retval=$?
         eend ${retval} "Failed to bring ${IFACE} up"
         return ${retval}
      }
      # ifconfig do not always return failure ..
      /sbin/ifconfig ${IFACE} &> /dev/null || {
         retval=$?
         eend ${retval} "Failed to bring ${IFACE} up"
         return ${retval}
      }
   else
      # Check that eth0 was not brough up by the kernel ...
      if [ "${status_IFACE}" != "up" ]
      then
         /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || {
            retval=$?
            eend ${retval} "Failed to bring ${IFACE} up"
            return ${retval}
         }
      fi
   fi
   eend 0

   if [ -n "${alias_IFACE}" ]
   then
      local x=""
      local num=0
      local aliasbcast=""
      local aliasnmask=""

      ebegin "  Adding aliases"
      for x in ${alias_IFACE}
      do
         aliasbcast="$(eval echo \$\{broadcast_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
         if [ -n "${aliasbcast}" ]
         then
            aliasbcast="broadcast ${aliasbcast}"
         fi

         aliasnmask="$(eval echo \$\{netmask_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
         if [ -n "${aliasnmask}" ]
         then
            aliasnmask="netmask ${aliasnmask}"
         fi
      
         ebegin "    ${IFACE}:${num}"
         /sbin/ifconfig ${IFACE}:${num} ${x} \
            ${aliasbcast} ${aliasnmask} >/dev/null
         num=$((num + 1))
         eend 0
      done
      save_options "alias" "${alias_IFACE}"
   fi

   if [ -n "${inet6_IFACE}" ]
   then
      local x=""
      ebegin "  Adding inet6 addresses"
      for x in ${inet6_IFACE}
      do
         ebegin "    ${IFACE} inet6 add ${x}"
         /sbin/ifconfig ${IFACE} inet6 add ${x} >/dev/null
         eend 0
      done
      save_options "inet6" "${inet6_IFACE}"
   fi
   
   if [ -n "${gateway}" ] && [ "${gateway%/*}" = "${IFACE}" ]
   then
      ebegin "  Setting default gateway"
      # First delete any existing routes if it was setup by kernel ..
      /sbin/route del default dev ${gateway%/*} &>/dev/null
      /sbin/route add default gw ${gateway#*/} dev ${gateway%/*} \
         netmask 0.0.0.0 metric 1 >/dev/null || {
         
         local error=$?
         ifconfig ${IFACE} down &>/dev/null
         eend ${error} "Failed to bring ${IFACE} up"
         stop
         return ${error}
      }
      eend 0
   fi

   # Enabling rp_filter causes wacky packets to be auto-dropped by
   # the kernel
   if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
   then
      echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter
   fi
}

stop() {
   local myalias="$(get_options alias)"
   local myinet6="$(get_options inet6)"

   setup_env

   ebegin "Bringing ${IFACE} down"

   # Also down the inet6 interfaces
   if [ -n "${myinet6}" ]
   then
      local x=""
      /usr/sbin/iwpriv wlan0 enable
      for x in ${myinet6}
      do
         /sbin/ifconfig ${IFACE} inet6 del ${x} >/dev/null
      done
   fi
   
   # Do some cleanup in case the amount of aliases change
   if [ -n "${myalias}" ]
   then
      local x=""
      local num=0
      for x in ${myalias}
      do
         /sbin/ifconfig ${IFACE}:${num} down >/dev/null
         num=$((num + 1))
      done
   fi

   if [ "${iface_IFACE}" = "dhcp" ]
   then
      local count=0
      while /sbin/dhcpcd -k ${IFACE} &>/dev/null && [ "${count}" -lt 9 ]
      do
         # Give dhcpcd time to properly shutdown
         sleep 1
         count=$((count + 1))
      done
      if [ "${count}" -ge 9 ]
      then
         eerror "Timed out trying to stop dhcpcd"
      fi
   else
      /sbin/ifconfig ${IFACE} down >/dev/null
   fi
   /usr/sbin/iwpriv wlan0 disable
   rmmod rtl8180_24x
   eend 0
}


# vim:ts=4
Back to top
View user's profile Send private message
moonshine
n00b
n00b


Joined: 20 Jul 2003
Posts: 35

PostPosted: Sun Jul 20, 2003 10:46 pm    Post subject: Reply with quote

Hello, my first post on the forum! hehe, anyways.. I am having some trouble getting the WPC11 v4 card working in my gentoo setup. I've tried searching google and the forums here and to no avail. Has anyone gotten this to work with linux? Any help would be appreciated. Here is some info on some linux commands...

the following informatin is from dmesg after I tried to insmod the compiled driver from the realtek website.. info from the above post.
Code:
******** RTL8180 Wireless Lan Driver Version 1.1 <2003-05-22> loaded********
PCI: No IRQ known for interrupt pin A of device . Please try using pci=biosirq.
RTL8180: : region #0 not a PIO resource, aborting
unregister_netdevice: device wlan%d/cac8d800 never was registered
RTL8180: wlan driver load failed
rtl8180: No devices found, RTL8180 Wireless Lan Driver Version 1.1 <2003-05-22>


here is some more information when I do cardctl ident
Code:
Socket 0:
  no product info available
  PCI id: 0x10ec, 0x8180
Socket 1:
  no product info available


I've installed pcmcia-cs and wlan-ng thinger. Anyone?
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Tue Jul 22, 2003 8:21 pm    Post subject: Reply with quote

Moonshine: I had to compile cardbus support directly into the kernel, after that the "No IRQ known for interrupt pin A of device" disappearde and my card worked.

deviljelly: Thanks for the hints and the script!!!!

I submitted a bug and included your script.
I hope that's ok for you (pm me if not), credits are mentioned.

If you like to, you can put yourself into the cc-list of that bug.
You'll find it here:
https://bugs.gentoo.org/show_bug.cgi?id=25078
_________________
linux user 65882
Back to top
View user's profile Send private message
moonshine
n00b
n00b


Joined: 20 Jul 2003
Posts: 35

PostPosted: Tue Jul 22, 2003 11:21 pm    Post subject: Reply with quote

zypher wrote:
Moonshine: I had to compile cardbus support directly into the kernel, after that the "No IRQ known for interrupt pin A of device" disappearde and my card worked.

deviljelly: Thanks for the hints and the script!!!!

I submitted a bug and included your script.
I hope that's ok for you (pm me if not), credits are mentioned.

If you like to, you can put yourself into the cc-list of that bug.
You'll find it here:
https://bugs.gentoo.org/show_bug.cgi?id=25078


zypher:

i built cardbus into the kernel as you suggested but i am still getting this for my cardctl ident:

Code:

Socket 0:
  no product info available
  PCI id: 0x10ec, 0x8180
Socket 1:
  no product info available


I cant seem to get it to come up with identifying it as a realtek. i have pcmcia-ps and wlan-ng installed.. what do i need to do so that it comes up showing that it is a realtek? thanks man.
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Wed Jul 23, 2003 9:30 am    Post subject: Reply with quote

Hmmm.
Just guessing, enable pci-hotplugging in the kernel.
I can't remember why I have enabled it but I think I read about it in these forums.
_________________
linux user 65882
Back to top
View user's profile Send private message
moonshine
n00b
n00b


Joined: 20 Jul 2003
Posts: 35

PostPosted: Wed Jul 23, 2003 1:44 pm    Post subject: Reply with quote

zypher wrote:
Hmmm.
Just guessing, enable pci-hotplugging in the kernel.
I can't remember why I have enabled it but I think I read about it in these forums.


hmm gave that a shot this morning.. no go. hmm.. yeesh. not sure what to do next...
Back to top
View user's profile Send private message
zypher
Retired Dev
Retired Dev


Joined: 10 Jun 2002
Posts: 416
Location: Cologne, ger.

PostPosted: Wed Jul 23, 2003 5:50 pm    Post subject: Reply with quote

I'm trying to follow this howto right now...
https://forums.gentoo.org/viewtopic.php?t=38225
I'll report when it's finished...
_________________
linux user 65882
Back to top
View user's profile Send private message
Merlin-TC
l33t
l33t


Joined: 16 May 2003
Posts: 603
Location: Germany

PostPosted: Sat Aug 09, 2003 9:06 am    Post subject: Reply with quote

Did anyone got it to work properly yet?
I have been trying it for days but no success.
It seems that my card isn't properly recognized.
cardctrl ident finds my card but when I try to load the rtl8180_24x.o module I get an error and I think it is because no IRQ is assigned to it.

The card driver tries to load it at irq0 and that's not gonna work :(

If anyone can help me plzzz do so.

EDIT: I got the card running now...somehow at least
It still tells me that I cannot assign an IRQ but I can start the wlanup script shipped with the drivers from the realtek site.
And after I started it the Tx/Rx light is blinking but I cannot get any connection to the router :(

Any suggestions?

Thank you.
Back to top
View user's profile Send private message
higginz
n00b
n00b


Joined: 22 Aug 2003
Posts: 6
Location: Newburgh, NY

PostPosted: Fri Aug 22, 2003 12:58 pm    Post subject: Reply with quote

I have the pcmcia-cs and hotplug packages installed.

I downloaded the realtek driver, uncommented the line (128) in the rtl8180_types.h file (I think that was the name)

Compiled the driver, insmod -f'd it...

ran my net.wlan0 script... it all worked beautifully

then I ejected the card... BOOM!!! Kernel panic... did I do something wrong or are you supposed to to cardctl eject always before you eject a card?

Chris
_________________
Dell Inspiron 8500
Back to top
View user's profile Send private message
higginz
n00b
n00b


Joined: 22 Aug 2003
Posts: 6
Location: Newburgh, NY

PostPosted: Tue Aug 26, 2003 2:00 am    Post subject: Reply with quote

just a small update on this... even when I do cardctl eject, I still get a panic and the lights start flashing at me... anyone have any insight?
_________________
Dell Inspiron 8500
Back to top
View user's profile Send private message
qanuta
n00b
n00b


Joined: 04 Apr 2003
Posts: 43
Location: NJ, USA

PostPosted: Tue Aug 26, 2003 10:41 pm    Post subject: Reply with quote

Just a shot in the dark, but have you brought the interface down first with ifconfig wlan0 down? Don't really know if that's it, but worth a try.
Back to top
View user's profile Send private message
higginz
n00b
n00b


Joined: 22 Aug 2003
Posts: 6
Location: Newburgh, NY

PostPosted: Sat Aug 30, 2003 5:13 pm    Post subject: Reply with quote

qanuta wrote:
Just a shot in the dark, but have you brought the interface down first with ifconfig wlan0 down? Don't really know if that's it, but worth a try.


yeah I tried it step by step
ifconfig wlan0 down
iwconfig wlan0 disable
BOOM!

Chris
_________________
Dell Inspiron 8500
Back to top
View user's profile Send private message
mister u
n00b
n00b


Joined: 30 Aug 2003
Posts: 4

PostPosted: Sat Aug 30, 2003 7:24 pm    Post subject: Reply with quote

hi!
i just got my rtl8180 based level one wpc-0101 wireless card working. i'm using kernel 2.4.20-gentoo-r5 with pcmcia-support compiled into the kernel. i have ds in /etc/modules.autoload and compiled the rtl8180_24x_suse82 package (uncomment line 128 in r8180_type.h).

this is my wlanup script:

    Load module
    /sbin/insmod -f rtl8180_24x.o

    #Set SSID
    /usr/sbin/iwpriv wlan0 wlan_para ssid=home
    #/sbin/iwpriv wlan0 wlan_para ssid2scan=CISCO1100
    #/sbin/iwpriv wlan0 wlan_para ssid2scan=802.11b-SSID
    /usr/sbin/iwpriv wlan0 wlan_para ssid2scan=home
    /usr/sbin/iwpriv wlan0 wlan_para networktype=infra
    #/usr/sbin/iwpriv wlan0 wlan_para encmode=off,wepmode=off
    #/sbin/iwpriv wlan0 wlan_para encmode=tkip,wepmode=wep40
    #/sbin/iwpriv wlan0 wlan_para encmode=off,wepmode=wep40
    #/sbin/iwpriv wlan0 wlan_para hiddenAP=true


    #/sbin/iwpriv wlan0 wlan_para addmac=00e04c818816
    #/sbin/iwpriv wlan0 wlan_para rtsthres=256
    /usr/sbin/iwpriv wlan0 wlan_para wepmode=wep40,wepdkeyid=0,wepkey40_1=xxxxxxxxxx

    #Enable wireless lan driver
    /usr/sbin/iwpriv wlan0 enable

    #Configure wlan0 IP address
    /sbin/ifconfig wlan0 192.168.0.24
    echo "$(/sbin/ifconfig wlan0)"


after running wlanup, dmesg tells me:
Quote:

******** RTL8180 Wireless Lan Driver Version 1.1 <2003-05-22> loaded********
RTL8180: 02:00.0: region #0 IS a PIO resource!
RTL8180: request_region(0x00004000,0x00000100) !
RTL8180: STA is NOT acting as AP!
RTL8180: LITTLE_ENDIAN memory access
RTL8180: station mode eeprom info
RTL8180: EEpromAddressSize = 8!
RTL8180: eepromID = 0x8129
RTL8180: EEPROMVersion = 0x0102
RTL8180: Tx Power Level, channel 0 = 0xc0
RTL8180: Tx Power Level, channel 1 = 0xc0
RTL8180: Tx Power Level, channel 2 = 0xc0
RTL8180: Tx Power Level, channel 3 = 0xc0
RTL8180: Tx Power Level, channel 4 = 0xc0
RTL8180: Tx Power Level, channel 5 = 0xc0
RTL8180: Tx Power Level, channel 6 = 0xc0
RTL8180: Tx Power Level, channel 7 = 0xc0
RTL8180: Tx Power Level, channel 8 = 0xc0
RTL8180: Tx Power Level, channel 9 = 0xc0
RTL8180: Tx Power Level, channel 10 = 0xc0
RTL8180: Tx Power Level, channel 11 = 0xc0
RTL8180: Tx Power Level, channel 12 = 0xc0
RTL8180: Tx Power Level, channel 13 = 0xc0
RTL8180: ChannelPlan = 0x0002
RTL8180: RFChipID = 0x0003
RTL8180: EEPROMVersion > 0x0101
RTL8180: AntennaDiversity = TRUE
RTL8180: CSThreshold = 0x000b
RTL8180: DigitalPhy = FALSE
RTL8180: DefaultAntennaB = FALSE
RTL8180: CSMethod = RCR_EnCS1
RTL8180: wlan driver loaded. ioaddr=0x4000, irq=5, MAC_addr=0:50:fc:xx:xx:xx
RTL8180: Use RTL private command [ssid]
RTL8180: Use RTL private command [ssid2scan]
RTL8180: Use RTL private command [networktype]
RTL8180: Use RTL private command [wepmode]
RTL8180: Set wepmode = ON <WEP40>
RTL8180: Use RTL private command [wepdkeyid]
RTL8180: Set WEP default key id = 0
RTL8180: Use RTL private command [wepkey40_1]
RTL8180: Set WEP40 [1]th default key = xxxxxxxxxx <in hex>
RTL8180: Set WEP40 [1]th default key = xx xx xx xx xx <in hex>
RTL8180: ------ Enable wlan driver ------
RTL8180: wireless LAN controller RTL8180 + philips RF.
RTL8180: PHILIPS_Config()
RTL8180: PHILIPS_Config() - Analog mode
RTL8180: ENABLE_RTL_DCST
RTL8180: Set dot11PrivacyInvoked = 1.
RTL8180: encryptmode = RTL_ENC_WEP
RTL8180: wepkeymode = WEP_MODE_ON_40
RTL8180: Turn on hardware WEP. SCR = 0x3
RTL8180: Scan PHY channel number = 1
RTL8180: Scan PHY channel number = 2
RTL8180: Scan PHY channel number = 3
RTL8180: Scan PHY channel number = 4
RTL8180: Scan PHY channel number = 5
RTL8180: Scan PHY channel number = 6
RTL8180: Scan PHY channel number = 7
RTL8180: Scan PHY channel number = 8
RTL8180: Scan PHY channel number = 9
RTL8180: Scan PHY channel number = 10
RTL8180: Scan PHY channel number = 11
RTL8180: Select a BSS and Join it at channel 6.
RTL8180: ----------------------------------------------------------
RTL8180: wlan0 Link status:
RTL8180: Channel number = 6
RTL8180: beacon period = 100
RTL8180: BSSID = 0x00:0x40:0x05:0xca:0xfc:0x60
RTL8180: SSID = home
RTL8180: Capability = 0x51
RTL8180: AID = 0x01
RTL8180: Operational rate = 0x0F <bit 0~3 = 1~11 Mbps>
RTL8180: ----------------------------------------------------------


now i just set my default gateway and it works.

NOTE: the link led does not stop blinking, as it does in windows, but it works anyway

hope this might help anyone

mister u
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum