The device: Linksys WUSBF54G v1.1, which appears to be of the ZD1211B chip 
type. 
This model slightly differs from the Linksys WUSBF54G, described here: 
http://www.opensolaris.org/os/community/laptop/wireless/zyd/

Vendor/Device-id of Linksys WUSBF54G v1.1 is 13b1,24   

#prtconf -v 

                 name='usb-product-name' type=string items=1
                        value='USB2.0 WLAN'
                    name='usb-vendor-name' type=string items=1
                        value='ZyDAS'
                    name='usb-raw-cfg-descriptors' type=byte items=46

                   name='usb-product-id' type=int items=1
                        value=00000024
                    name='usb-vendor-id' type=int items=1
                        value=000013b1
                    name='compatible' type=string items=9
                        value='usb13b1,24.4802' + 'usb13b1,24' + 
'usb13b1,classff.ff.ff' + 'usb13b1.classff.ff' + 'usb13b1.classff' + 
'usb,classff.ff.ff' + 'usb,classff.ff' + 'usb,classff' + 'usb,device'

Then compiled the zyd module from "svn co 
http://svn9.cvsdude.com/kdesolaris/zyd/trunk";.
Checked out revision 64.
Operating system: Solaris Nevada bld 104 x86 on Acer Aspire 5735z laptop

Set Makefile to 64 bit:
ISA= amd64
#ISA=i386

Set path to the right onnv-gate  
GATE= ../onnv-gate
(Inside the directory ../onnv-gate I made a symlink from usr-b99 to usr.)

Then encountered a small error during compilation:

$gmake
gcc -D_KERNEL -ffreestanding -fno-builtin -Wall -Werror -Wno-unknown-pragmas 
-m64 -mcmodel=kernel -mno-red-zone -I../onnv-gate/usr/src/uts/common -c zyd.c
zyd.c:99:1: macro "DDI_DEFINE_STREAM_OPS" requires 10 arguments, but only 9 
given
zyd.c:89: warning: type defaults to `int' in declaration of 
`DDI_DEFINE_STREAM_OPS'
zyd.c:89: warning: data definition has no type or storage class
zyd.c:105: error: `zyd_devops' undeclared here (not in a function)
zyd.c:105: error: initializer element is not constant
zyd.c:105: error: (near initialization for `zyd_modldrv.drv_dev_ops')
gmake: *** [zyd.o] Error 1

Added the line "ddi_quiesce_not_needed" to the "DDI_DEFINE_STREAM_OPS(" part in 
zyd.c.
(Ben T. plz repair this in the source code?)

To test the README descriptions, I had the device installed & running from the 
same Makefile:

#gmake install
#gmake add (after adding "usb13b1,24" to the string of existing 
Vendor/Device-id's in the makefile.)

This works fine as you can see...

#tail -f /var/adm/messages
Jan  3 01:59:22 nosparc zyd: [ID 768731 kern.notice] NOTICE: _info: begin
Jan  3 01:59:22 nosparc zyd: [ID 768731 kern.notice] NOTICE: _init: begin
Jan  3 01:59:22 nosparc zyd: [ID 768731 kern.notice] NOTICE: zyd_attach: begin
Jan  3 01:59:22 nosparc zyd: [ID 262384 kern.notice] NOTICE: zyd_hw_lookup: 
looking up chip type (ZD1211/ZD1211B) for usb13b1,24
Jan  3 01:59:22 nosparc zyd: [ID 115713 kern.notice] NOTICE: 
zyd_usb_loadfirmware: firmware size = 5120
Jan  3 01:59:22 nosparc zyd: [ID 668847 kern.notice] NOTICE: 
zyd_usb_open_pipes: begin zyd_usb_open_pipes
Jan  3 01:59:22 nosparc zyd: [ID 128766 kern.notice] NOTICE: zyd_read_mac: read 
first part of mac
Jan  3 01:59:22 nosparc zyd: [ID 800693 kern.notice] NOTICE: zyd_read_mac: read 
second part of mac
Jan  3 01:59:22 nosparc zyd: [ID 177619 kern.notice] NOTICE: zyd_read_mac: 
exiting zyd_read_mac - MAC = 00:18:f8:d1:22:45
Jan  3 01:59:22 nosparc zyd: [ID 665093 kern.notice] NOTICE: zyd_read_eeprom: 
sc->fix_cr47 = 0x0
Jan  3 01:59:22 nosparc zyd: [ID 939791 kern.notice] NOTICE: zyd_read_eeprom: 
sc->fix_cr157 = 0x0
Jan  3 01:59:22 nosparc zyd: [ID 638671 kern.notice] NOTICE: zyd_read_eeprom: 
Found RF AL2230 chip, sc->rf_rev = 0x4
Jan  3 01:59:22 nosparc zyd: [ID 243574 kern.notice] NOTICE: zyd_read_eeprom: 
regulatory domain 30
Jan  3 01:59:22 nosparc zyd: [ID 639599 kern.notice] NOTICE: zyd_hw_configure: 
firmware base address=0xf772
Jan  3 01:59:22 nosparc zyd: [ID 918292 kern.notice] NOTICE: zyd_hw_configure: 
firmware revision number=0x4725
Jan  3 01:59:22 nosparc zyd: [ID 240861 kern.notice] NOTICE: 
zyd_al2230_rf_init_b: zd1211b AL2230 RF chip initialized
Jan  3 01:59:22 nosparc zyd: [ID 452214 kern.notice] NOTICE: zyd_hw_init: Zyd 
HW inited. MAC = 00:18:f8:d1:22:45
Jan  3 01:59:22 nosparc mac: [ID 469746 kern.info] NOTICE: zyd0 registered

Got some connection through the NWAM interface, but there was no way to add the 
WEP key here.
So the only test I 'll have to do is WEP/WPA working with zyd & Linksys 
WUSBF54G v1.1 with dladm, which I'll add later.
As you can see from the logging, it was very late. :-)

Regs, Kuba
-- 
This message posted from opensolaris.org

Reply via email to