NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Ralink WIFI card not found



Matthias Scheler wrote:
On Mon, Oct 10, 2011 at 11:06:31PM -0500, Ron McDowell wrote:
  
voodoo# uname -a
NetBSD voodoo 5.1 NetBSD 5.1 (XEN3_DOM0) #0: Mon Oct 10 16:21:47 CDT 2011  root@voodoo:/mnt/usr/src/sys/arch/amd64/compile/XEN3_DOM0 amd64

voodoo# pcictl pci5 list
005:00:0: Ralink Technologies product 0x0781 (miscellaneous network)

If somebody can point me to the right kernel files I'll try adding
this unknown 0x0781 to the matrix and see if this will work...
    
You will have to add it to "pcidevs" in "src/sys/dev/pci" and
run "make -f Makefile.pcidevs" afterwards.

Afterwards you will have to change ral_pci_match() in "if_ral_pci.c"
(in the same directory) to accept the new device identifier that
you defined.

	Kind regards

  

[root@voodoo(NetBSD)]> diff -c pcidevs.orig pcidevs
*** pcidevs.orig        Sat Oct 15 21:18:51 2011
--- pcidevs     Sat Oct 15 21:28:41 2011
***************
*** 3485,3490 ****
--- 3485,3491 ----
  product       RALINK  RT2560          0x0201  RT2560 802.11b/g
  product       RALINK  RT2561S         0x0301  RT2561S 802.11b/g
  product       RALINK  RT2561          0x0302  RT2561 802.11b/g
+ product       RALINK  RT2561C         0x0781  RT2561C 802.11b/g
  product       RALINK  RT2661          0x0401  RT2661 802.11b/g/n
 
  /* RATOC Systems products */
/usr/src/sys/dev/pci
[root@voodoo(NetBSD)]> diff -c if_ral_pci.c.orig if_ral_pci.c
*** if_ral_pci.c.orig   Sat Oct 15 21:42:40 2011
--- if_ral_pci.c        Sat Oct 15 21:31:26 2011
***************
*** 107,112 ****
--- 107,113 ----
                switch (PCI_PRODUCT(pa->pa_id)) {
                        case PCI_PRODUCT_RALINK_RT2560:
                        case PCI_PRODUCT_RALINK_RT2561:
+                       case PCI_PRODUCT_RALINK_RT2561C:
                        case PCI_PRODUCT_RALINK_RT2561S:
                        case PCI_PRODUCT_RALINK_RT2661:
                                return 1;
=====================
gives me the following in dmesg:

pci5: i/o space, memory space enabled
ral0 at pci5 dev 0 function 0: vendor 0x1814 product 0x0781 (rev. 0x00)
ioapic0: int17 1a9b8<vector=b8,delmode=1,logical,actlo,level,masked,dest=0> ff000000<target=ff>
ral0: interrupting at ioapic0 pin 17, event channel 5
ral0: 802.11 address ff:ff:ff:ff:ff:ff
ral0: MAC/BBP RT40400010, RF unknown
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps

Getting closer... [I made up the RT2561C moniker...C for Clone[?]  I'd really like to learn how to do stuff like this, if someone is willing to teach...either on- or off-list.  Thanks.

BTW, I originally had Ubuntu 10.04 on this box.  It did not see the wifi card from the Install CD but did work fine once booted from the HD after install.

-- 
Ron McDowell
San Antonio TX





Home | Main Index | Thread Index | Old Index