25fc7 Broadcom WiFi - Page 11 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Mobile Computing

Mobile Computing This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Reply
 
Thread Tools Display Modes
  #251  
Old July 10th, 2011, 19:48
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 302
Thanks: 22
Thanked 40 Times in 30 Posts
Default

Is it possible to enable the Broadcom WiFi card (BCM43225, works with Linux only using the new drivers) using Windows drivers with NDIS?
Reply With Quote
  #252  
Old July 12th, 2011, 20:16
emc2 emc2 is offline
Junior Member
 
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

Theoretically yes. However, ndisgen seems to have trouble with the drivers I'm using (the Apple Bootcamp drivers for windows). When I looked at disassembled output, the device probe function seems to always returns an error code. Sure enough, it won't attach when I load the .ko. I'm guessing ndisgen isn't finding something it needs in the windows driver.
Reply With Quote
  #253  
Old July 19th, 2011, 20:11
richardpl richardpl is offline
Member
 
Join Date: Nov 2008
Location: Croatia
Posts: 841
Thanks: 6
Thanked 68 Times in 67 Posts
Default

This usually means that inf file is invalid/empty.

Found bug, want to improve software, then report it, on link bellow is website when you can do it and even post links to drivers you are using.
__________________
Project: github.com/richardpl/NDISulator
Reply With Quote
  #254  
Old July 21st, 2011, 02:35
KNOStic's Avatar
KNOStic KNOStic is offline
Junior Member
 
Join Date: Jun 2010
Location: Voorheesville, NY
Posts: 71
Thanks: 5
Thanked 13 Times in 8 Posts
Default

Quote:
Originally Posted by emc2 View Post
Can the FreeBSD kernel support Linux network driver interfaces and kernel APIs directly? (I'd be rather surprised if it can)
Sorry to say, no. Linux exposes a lot of things in their kernel that BSD is smart enough not to, the system calls are radically different and of course as Jeung said a long time ago, PHY-N isn't really there either to support the Broadcom stuff and that's why he piped off that ship.

It would take a lot of work on the kernel side to make any of those wl library calls work. Sure would love to see it happen though - there's an awful lot of Broadcom stuff out there and BSD just doesn't support it. And as much as NDISGEN is nice and all, having to do all that tweaking for each and every different radio is just not practical if you want BSD to just start, pick up the radio and go.
__________________
Kevin McAleavey
The KNOS Project
Reply With Quote
  #255  
Old July 21st, 2011, 22:39
emc2 emc2 is offline
Junior Member
 
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

From what I've seen of the Broadcom linux driver, it seems possible to reverse-engineer something. All the driver's logic seems to be contained in the closed-source object file. Its interface with the kernel seems to be some kind of custom OS-independent layer built by the broadcom developers. They don't seem to do anything inside the closed source object file that's specific to any OS. They do pass in some linux-specific data structures to some of the functions in the object file, but they pass them in as void pointers, which would suggest they're treated as opaque values (ie, handles). My suspicion is they have an OS interface layer, and a common core driver logic, and they shipped the core logic as an object file, along with the linux version of the OS layer's source code.

I'm working on reverse-compiling the object file to see if that suspicion is correct. If it turns out to be, then it shouldn't be too hard to adapt the driver to work with FreeBSD, and possibly to use the knowledge gained in the other Broadcom drivers (bwn and bwi)
Reply With Quote
  #256  
Old September 23rd, 2011, 12:39
Seeker's Avatar
Seeker Seeker is offline
Member
 
Join Date: May 2009
Location: Europe/Croatia/Zagreb
Posts: 832
Thanks: 13
Thanked 11 Times in 10 Posts
Default

So? What?
You are all dead or what?
Is driver ready? Where can I get it, to test it for a little bit?
Reply With Quote
  #257  
Old September 25th, 2011, 05:31
shokry shokry is offline
Junior Member
 
Join Date: Sep 2011
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Ok then, I was just holding the installation CD in my hand to install FreeBSD on my laptop, but I have the bcm4313 card :/ , that's what's gonna stop me from installing as I rely on wireless connection almost completely.
So sad.
Reply With Quote
  #258  
Old October 12th, 2011, 12:33
nirnr00t nirnr00t is offline
Junior Member
 
Join Date: Mar 2010
Posts: 28
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by shokry View Post
Ok then, I was just holding the installation CD in my hand to install FreeBSD on my laptop, but I have the bcm4313 card :/ , that's what's gonna stop me from installing as I rely on wireless connection almost completely.
So sad.
+1. Have asus eee pc 1215N with broadcom 4313.
Reply With Quote
  #259  
Old October 12th, 2011, 15:47
pkubaj pkubaj is offline
Member
 
Join Date: Jun 2010
Posts: 302
Thanks: 22
Thanked 40 Times in 30 Posts
Default

Buy some USB WiFi card.
Reply With Quote
  #260  
Old October 16th, 2011, 02:02
KNOStic's Avatar
KNOStic KNOStic is offline
Junior Member
 
Join Date: Jun 2010
Location: Voorheesville, NY
Posts: 71
Thanks: 5
Thanked 13 Times in 8 Posts
Default

Quote:
Originally Posted by emc2 View Post
I'm working on reverse-compiling the object file to see if that suspicion is correct. If it turns out to be, then it shouldn't be too hard to adapt the driver to work with FreeBSD, and possibly to use the knowledge gained in the other Broadcom drivers (bwn and bwi)
I'm also holding out hope that this can somehow be done. With so many machines out there *requiring* broadcom support, it's becoming a major showstopper that BSD doesn't. Any word on progress? Want to collaborate? BSD *really* needs to get this done one way or another.
__________________
Kevin McAleavey
The KNOS Project
Reply With Quote
The Following User Says Thank You to KNOStic For This Useful Post:
shokry (October 18th, 2011)
  #261  
Old October 16th, 2011, 08:13
emc2 emc2 is offline
Junior Member
 
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm in a semester-of-death right now. I will get back to all this when it blows over.
Reply With Quote
  #262  
Old October 16th, 2011, 08:22
KNOStic's Avatar
KNOStic KNOStic is offline
Junior Member
 
Join Date: Jun 2010
Location: Voorheesville, NY
Posts: 71
Thanks: 5
Thanked 13 Times in 8 Posts
Default

Quote:
Originally Posted by emc2 View Post
I'm in a semester-of-death right now. I will get back to all this when it blows over.
Page me when it's over ... somebody's GOTTA do this. I'm not the world's best 'nix coder, but maybe with a few more keystrokes at your back, we can get this done somehow. This is one important task that'll make a lot of people happy ...
__________________
Kevin McAleavey
The KNOS Project
Reply With Quote
  #263  
Old October 16th, 2011, 10:13
avilla@'s Avatar
avilla@ avilla@ is offline
FreeBSD Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 258
Thanks: 8
Thanked 55 Times in 47 Posts
Default

People, may I suggest you all to talk about this on freebsd-wireless@? That's a better place for trying to coordinate efforts on this.
__________________
Alberto Villa, FreeBSD committer <avilla@FreeBSD.org>
http://people.FreeBSD.org/~avilla
Reply With Quote
  #264  
Old October 16th, 2011, 10:51
KNOStic's Avatar
KNOStic KNOStic is offline
Junior Member
 
Join Date: Jun 2010
Location: Voorheesville, NY
Posts: 71
Thanks: 5
Thanked 13 Times in 8 Posts
Default

Quote:
Originally Posted by avilla@ View Post
People, may I suggest you all to talk about this on freebsd-wireless@? That's a better place for trying to coordinate efforts on this.
I'll be willing to do so if there's some contribution I can offer along with emc. At this time, I'd rather not noise up the list over there since there's a new maintainer for bwn and bwi seems to be chugging along. Currently I'm all tied up with 9beta and cups madness since I'm a one man band over here and am already doubleshifting my days as it is.

My interest in chiding in over here is merely to see if we can light a fire under getting the Linux code ported over and I'm certainly not up to speed to be a lead. I know Weongyo Jeong threw up his hands a while ago and haven't seen much on the bwn front, thus my act of encouragement here if there's anyone willing to take it up. Promise that I'll mosey over there once I see that I can be useful but am also cautious about making promises I'm not in a condition to keep at this time. Are you aware of any plans/movement/etc on the wl stuff?
__________________
Kevin McAleavey
The KNOS Project
Reply With Quote
  #265  
Old October 18th, 2011, 15:04
emc2 emc2 is offline
Junior Member
 
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm a little confused as to just what drivers exist on the linux side. The closed-source Broadcom driver is apparently called wl. In addition there's a completely open-source driver called b43, and an older one called bw. It seems that b43 has N-PHY support (the newer cards, like the 4322), but it's not clear to me what the differences between b43 and wl are.

My plan was (and still is) to analyze wl as follows: disassemble -> reconstruct CFG's, offsets, and others -> parse C headers to get type info -> type inference. Hopefully, this should result in C code that will yield some insight into how the thing works. However, if all the code we need is in b43, then there's little sense in going through all this.

Also, there has been some discussion on wireless, but they seem more concerned with other things at the moment, namely getting things in order for 9-RELEASE.
Reply With Quote
  #266  
Old October 19th, 2011, 17:48
gurki gurki is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 1
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by nirnr00t View Post
+1. Have asus eee pc 1215N with broadcom 4313.
Hey

Just wanted to let you know I got wireless working on my asus 1215N with ndis.
I downloaded Windows XP drivers for the broadcom chipsets and then ndis was working fine.

On another note by using the work being done here http://wiki.freebsd.org/Intel_GPU and the new acpi_call module found here http://forums.freebsd.org/showthread.php?t=27010 I got full acceleration using the Intel card and good battery time by turning off the nvidia adapter.

Hope this can help you to get FreeBSD running on your asus 1215n
Reply With Quote
The Following 2 Users Say Thank You to gurki For This Useful Post:
gelraen (October 20th, 2011), salam4ik (November 17th, 2011)
  #267  
Old October 20th, 2011, 02:03
redw0lfx redw0lfx is offline
Junior Member
 
Join Date: Aug 2011
Posts: 95
Thanks: 18
Thanked 14 Times in 13 Posts
Default

Quote:
Originally Posted by gurki View Post
Hey

Just wanted to let you know I got wireless working on my asus 1215N with ndis.
I downloaded Windows XP drivers for the broadcom chipsets and then ndis was working fine.
Do you have a Broadcom 4313 chip on your asus 1215N? I have been looking for XP drivers for that chip, but only found Windows 7 drivers. If you wouldn't mind, could you provide a link to where I can find them, or upload them somewhere for me?

Thanks.
Reply With Quote
  #268  
Old October 20th, 2011, 07:32
gurki gurki is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 1
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by redw0lfx View Post
Do you have a Broadcom 4313 chip on your asus 1215N? I have been looking for XP drivers for that chip, but only found Windows 7 drivers. If you wouldn't mind, could you provide a link to where I can find them, or upload them somewhere for me?

Thanks.
Here is the link

http://wikidrivers.com/wiki/Broadcom...x_5.100.235.19

Please consider that I do not think this is a reliable website to download them from but it was the only one I could find.
If someone could find the same drivers from some manufacturers website it would be alot better choice.
Reply With Quote
The Following User Says Thank You to gurki For This Useful Post:
redw0lfx (October 20th, 2011)
  #269  
Old October 20th, 2011, 11:49
nirnr00t nirnr00t is offline
Junior Member
 
Join Date: Mar 2010
Posts: 28
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gurki View Post
Hey

Just wanted to let you know I got wireless working on my asus 1215N with ndis.
I downloaded Windows XP drivers for the broadcom chipsets and then ndis was working fine.

On another note by using the work being done here http://wiki.freebsd.org/Intel_GPU and the new acpi_call module found here http://forums.freebsd.org/showthread.php?t=27010 I got full acceleration using the Intel card and good battery time by turning off the nvidia adapter.

Hope this can help you to get FreeBSD running on your asus 1215n
Probably you use http://forums.freebsd.org/showpost.p...12&postcount=5 ? Thanks for winxp drivers, but, as i now, ndis works only on -RELEASE, but develop of many desktop features (probably GEM) doing on -CURRENT. Its sad.
Reply With Quote
  #270  
Old October 20th, 2011, 14:13
gurki gurki is offline
Junior Member
 
Join Date: Oct 2011
Posts: 3
Thanks: 1
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by nirnr00t View Post
Probably you use http://forums.freebsd.org/showpost.p...12&postcount=5 ? Thanks for winxp drivers, but, as i now, ndis works only on -RELEASE, but develop of many desktop features (probably GEM) doing on -CURRENT. Its sad.
Yes I'm using that, I execute it in /etc/rc.local on boot, thanks for that post btw .

I'm running on FreeBSD 9-RC1, the kms/intel patch applied fine to that release.

Last edited by DutchDaemon; October 20th, 2011 at 15:07.
Reply With Quote
  #271  
Old October 20th, 2011, 15:23
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,720
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

Quote:
Originally Posted by nirnr00t View Post
Thanks for winxp drivers, but, as i now, ndis works only on -RELEASE
What makes you think that?
Reply With Quote
  #272  
Old November 12th, 2011, 15:38
nirnr00t nirnr00t is offline
Junior Member
 
Join Date: Mar 2010
Posts: 28
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wblock@ View Post
What makes you think that?
It was mistake. I confirm that broadcom wifi xp driver described above works fine (with bcw 4313).

Code:
kldload ndis & kldload /path/to/generated/driver/module
ifconfig wlan0 create wlandev ndis0
ifconfig wlan0 up scan
wpa_supplicant -D ndis -i wlan0 -c /etc/wpa_supplicant.conf

Last edited by DutchDaemon; November 13th, 2011 at 03:11. Reason: [cmd] is for single commands.
Reply With Quote
  #273  
Old March 20th, 2012, 15:22
paulfrottawa's Avatar
paulfrottawa paulfrottawa is offline
Member
 
Join Date: Nov 2008
Posts: 238
Thanks: 68
Thanked 15 Times in 13 Posts
Default

Working
Code:
bwi0@pci0:5:2:0:	class=0x028000 card=0x1355103c chip=0x431814e4 rev=0x02 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller'
    class      = network
/boot/loader.conf:

Code:
if_bwi_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
rc.conf:
Code:
wlans_bwi0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
Added port
cd /usr/ports/net/bwi-firmware-kmod && make install clean


Code:
FreeBSD freea 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012     
root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Last edited by DutchDaemon; March 20th, 2012 at 15:28. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #274  
Old March 27th, 2012, 01:30
emc2 emc2 is offline
Junior Member
 
Join Date: May 2011
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
Default

Just letting anyone who was discussing bcm4322 support before, I am starting to have more free time now. I'm currently writing another driver, but that shouldn't take too long. I should be able to pick up where I left off.
Reply With Quote
  #275  
Old March 29th, 2012, 15:25
azizi azizi is offline
Junior Member
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have BCM4322, and freebsd FreeBSD 9.0, I can help to test driver, if any.

Last edited by DutchDaemon; March 29th, 2012 at 19:37. Reason: Mind your writing style: http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcom Wireless chips support SaveTheRbtz System Hardware 41 October 25th, 2010 14:37
RAIDcore Broadcom BC4852 compatible? oceanofapathy System Hardware 1 March 20th, 2009 14:58
Broadcom 802.11b/g WLAN alie System Hardware 1 February 17th, 2009 15:05
Broadcom Input Errors Karrj Networking 0 December 24th, 2008 18:08
BroadCom NetXtreme Ethernet? Weinter System Hardware 0 November 17th, 2008 09:42


All times are GMT +1. The time now is 05:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0