Re: Help Using NDIS & Broadcom 4321ag 802.11a/b/g/draft-n

2008-03-30 Thread Kemian Dang
I also use a HP laptop, This is the pciconf -lv output of my machine,
vendor = 'Broadcom Corporation'
device = 'BCM4310 broadcom wireless 1490 (dell)'
class  = network

The strange thing is it said 1490 dell, so after the fail attempt on
the HP driver, I turn to Dell 1490 driver, this time it works.

Another thing is I can not use ifconfig scan to find the AP neither,
but when I just ifconfig ndis0 ssid xxx, I find the state change to
assocaite, and dhclient obtain the IP.
My ap does not use a authentication method.

Best wishes,
Kemian

On 30/03/2008, std <[EMAIL PROTECTED]> wrote:
> Hi:
>
>  I can't seem to find a definitive answer on the net to whether (and how)
>  FreeBSD supports Broadcom 4321ag 802.11a/b/g/draft-n Wi-Fi Adapters.
>  Apparently there's no native support (except through experimental drivers?)
>  so you have to use NDIS (which is like ndswrapper for other linux os's only
>  NDIS is built into the FreeBSD project).  I've tried ndisgen bcml##.inf
>  bcml## for three different driver sets, blcmwl5.sys/inf, bcmwl564.sys/inf,
>  and bcmwl6.sys/inf.  I've got the best results with the oldest drivers,
>  bcmwl5.sys/inf.  kldstat shows ndis, if_ndis, and bcmwl5_sys loaded in the
>  kernel and the system recognizes an ndis0 adapter, but, ifconfig ndis0 up
>  scan just hangs forever.
>
>  My system is a HP tx1320us tablet pc [2.0 GHz AMD Turion 64 X2 Dual-Core
>  Mobile Technology TL-60, 2048 MB DDR2 (2 Dimm), Broadcom 4321AG
>  802.11a/b/g/draft-n Wi-Fi Adapter, fingerprint sensor, remote,.touch screen,
>  etc. -
>  
> http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01161310&lc=en&cc=us&dlc=en&softwareitem=ob-58904-1&product=3548576&os=2093&rule=8034&lang=en
>  ]
>  running FreeBSD 7.0-RELEASE, installed from CDS and
>  ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages a couple weeks ago in a dual
>  boot config with windows vista home premium (a good reason for dual booting
>  fbsd :).
>
>  The procedure I followed was to
>
>  (1) identify the NIC;
>
>  (2) download the windows drivers from the manufacturers website.
>
>  I first tried the drivers built for windows vista because those are the
>  drivers built for the 4321 card in my system.
>  These drivers, bcmwl6, contained in hp's
>  ftp://ftp.hp.com/pub/softpaq/sp38501-39000/sp38764.exe were apparently
>  released March 12, 2008.  After running ndisgen bcmwl6.inf bcmwl6.sys and
>  creating bcmwl6_sys.ko, when I kldload bcmwl6_sys.ko it loads ndis.ko and
>  if_ndis.ko, but dmesg shows about 20 "no match" for various device settings
>  (see below).
>
>  The latest bcmwl6 drivers don't seem to work.  It could be the inf has more
>  than a few extraneous quotation marks which throw off the utf-8 to ascii
>  conversion, but I tried several different methods and suspect it's NDIS
>  itself which lacks the necessary support.
>
>  Is Bill Paul of Project Evil working on this (see
>  
> http://lists.freebsd.org/pipermail/freebsd-hardware/2004-January/001005.html)?
>
>  I downloaded the windows XP drivers for my broadcom 4321AG
>  802.11a/b/g/draft-nftp:
>  from //ftp.hp.com/pub/softpaq/sp36501-37000/sp36684.exe.  These were released
>  August 15, 2007.
>  cabextract -l sp36684.exe
> Viewing cabinet: sp36684.exe
> File size | Date   Time | Name
> ---+-+-
> 14310 | 13.08.2007 14:46:28 | bcm43xx.cat
> 14310 | 13.08.2007 14:46:28 | bcm43xx64.cat
> 803496 | 13.08.2007 14:46:30 | bcmwl5.inf
> 822272 | 13.08.2007 14:46:30 | bcmwl5.sys
> 983552 | 13.08.2007 14:46:30 | bcmwl564.sys
> 9028380 | 13.08.2007 14:46:32 | Setup.exe
> 6584 | 14.08.2007 09:36:30 | sp36684.cva
>
>  (3) generate linux kernel modules with ndisgen and load them
>
>  ndisgen bcmwl6.inf bcmwl6.sys (without any additional files)
>  kldstat
> Id Refs AddressSize Name
> 1   17 0xc040 906518   kernel
> 21 0xc0d07000 14324snd_hda.ko
> 32 0xc0d1c000 4a5acsound.ko
> 71 0xc0fb2000 6a32cacpi.ko
> 81 0xc5c6a000 22000linux.ko
>  kldload bcmwl6_sys
>  kldstat
> Id Refs AddressSize Name
> 1   17 0xc040 906518   kernel
> 21 0xc0d07000 14324snd_hda.ko
> 32 0xc0d1c000 4a5acsound.ko
> 71 0xc0fb2000 6a32cacpi.ko
> 81 0xc5c6a000 22000linux.ko
> 91 0xc69ae000 1a2000   bcmwl6_sys.ko
> 101 0xc55dd000 c000 if_ndis.ko
> 112 0xc6971000 16000ndis.ko
>  ifconfig | grep ndis0   -- no match
>  tail -f /var/log/dmesg
> no match for NdisMRegisterInterruptEx
> no match for NdisMIndicateStatusEx
> no match for NdisFreeNetBufferList
> no match for NdisAllocateMdl
> no match for NdisFreeMdl
> no match for NdisMDeregisterScatterGatherDma
> no match for NdisMDeregisterInterruptEx
> 

Help Using NDIS & Broadcom 4321ag 802.11a/b/g/draft-n

2008-03-29 Thread std
Hi:

I can't seem to find a definitive answer on the net to whether (and how) 
FreeBSD supports Broadcom 4321ag 802.11a/b/g/draft-n Wi-Fi Adapters.  
Apparently there's no native support (except through experimental drivers?) 
so you have to use NDIS (which is like ndswrapper for other linux os's only 
NDIS is built into the FreeBSD project).  I've tried ndisgen bcml##.inf 
bcml## for three different driver sets, blcmwl5.sys/inf, bcmwl564.sys/inf, 
and bcmwl6.sys/inf.  I've got the best results with the oldest drivers, 
bcmwl5.sys/inf.  kldstat shows ndis, if_ndis, and bcmwl5_sys loaded in the 
kernel and the system recognizes an ndis0 adapter, but, ifconfig ndis0 up 
scan just hangs forever.

My system is a HP tx1320us tablet pc [2.0 GHz AMD Turion 64 X2 Dual-Core 
Mobile Technology TL-60, 2048 MB DDR2 (2 Dimm), Broadcom 4321AG 
802.11a/b/g/draft-n Wi-Fi Adapter, fingerprint sensor, remote,.touch screen, 
etc. - 
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01161310&lc=en&cc=us&dlc=en&softwareitem=ob-58904-1&product=3548576&os=2093&rule=8034&lang=en
 ] 
running FreeBSD 7.0-RELEASE, installed from CDS and 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages a couple weeks ago in a dual 
boot config with windows vista home premium (a good reason for dual booting 
fbsd :).

The procedure I followed was to

(1) identify the NIC;

(2) download the windows drivers from the manufacturers website.

I first tried the drivers built for windows vista because those are the 
drivers built for the 4321 card in my system.  
These drivers, bcmwl6, contained in hp's 
ftp://ftp.hp.com/pub/softpaq/sp38501-39000/sp38764.exe were apparently 
released March 12, 2008.  After running ndisgen bcmwl6.inf bcmwl6.sys and 
creating bcmwl6_sys.ko, when I kldload bcmwl6_sys.ko it loads ndis.ko and 
if_ndis.ko, but dmesg shows about 20 "no match" for various device settings 
(see below).

The latest bcmwl6 drivers don't seem to work.  It could be the inf has more 
than a few extraneous quotation marks which throw off the utf-8 to ascii 
conversion, but I tried several different methods and suspect it's NDIS 
itself which lacks the necessary support.

Is Bill Paul of Project Evil working on this (see 
http://lists.freebsd.org/pipermail/freebsd-hardware/2004-January/001005.html)?  

I downloaded the windows XP drivers for my broadcom 4321AG 
802.11a/b/g/draft-nftp: 
from //ftp.hp.com/pub/softpaq/sp36501-37000/sp36684.exe.  These were released 
August 15, 2007.
cabextract -l sp36684.exe
Viewing cabinet: sp36684.exe
File size | Date   Time | Name
---+-+-
14310 | 13.08.2007 14:46:28 | bcm43xx.cat
14310 | 13.08.2007 14:46:28 | bcm43xx64.cat
803496 | 13.08.2007 14:46:30 | bcmwl5.inf
822272 | 13.08.2007 14:46:30 | bcmwl5.sys
983552 | 13.08.2007 14:46:30 | bcmwl564.sys
9028380 | 13.08.2007 14:46:32 | Setup.exe
6584 | 14.08.2007 09:36:30 | sp36684.cva

(3) generate linux kernel modules with ndisgen and load them

ndisgen bcmwl6.inf bcmwl6.sys (without any additional files)
kldstat
Id Refs AddressSize Name
1   17 0xc040 906518   kernel
21 0xc0d07000 14324snd_hda.ko
32 0xc0d1c000 4a5acsound.ko
71 0xc0fb2000 6a32cacpi.ko
81 0xc5c6a000 22000linux.ko
kldload bcmwl6_sys
kldstat
Id Refs AddressSize Name
1   17 0xc040 906518   kernel
21 0xc0d07000 14324snd_hda.ko
32 0xc0d1c000 4a5acsound.ko
71 0xc0fb2000 6a32cacpi.ko
81 0xc5c6a000 22000linux.ko
91 0xc69ae000 1a2000   bcmwl6_sys.ko
101 0xc55dd000 c000 if_ndis.ko
112 0xc6971000 16000ndis.ko
ifconfig | grep ndis0   -- no match
tail -f /var/log/dmesg
no match for NdisMRegisterInterruptEx
no match for NdisMIndicateStatusEx
no match for NdisFreeNetBufferList
no match for NdisAllocateMdl
no match for NdisFreeMdl
no match for NdisMDeregisterScatterGatherDma
no match for NdisMDeregisterInterruptEx
no match for NdisMSynchronizeWithInterruptEx
no match for NdisMRegisterMiniportDriver
no match for NdisMSetMiniportAttributes
no match for NdisMGetBusData
no match for NdisMRegisterScatterGatherDma
no match for NdisAllocateNetBufferListPool
no match for NdisMOidRequestComplete
no match for NdisAllocateIoWorkItem
no match for NdisMSetBusData
no match for NdisAllocateNetBufferAndNetBufferList
no match for NdisMDeregisterMiniportDriver
no match for NdisFreeNetBufferListPool
no match for NdisOpenConfigurationEx
no match for NdisFreeIoWorkItem
no match for NdisMSendNetBufferListsComplete
no match for NdisMIndicateReceiveNetBufferLists
no match for NdisAllocateMemoryWithTagPr