Broadcom wireless BCM4313

128 views
Skip to first unread message

Olaoluwa Omokanwaiye

unread,
Oct 10, 2016, 7:15:14 AM10/10/16
to Emre Gundogan via freebsd-questions
Hi,
Pls how can I get the above wireless card to be recognized and function on my FreeBSD 10.3

Thanks

Sent from my iPhone
_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Polytropon

unread,
Oct 10, 2016, 6:10:29 PM10/10/16
to Olaoluwa Omokanwaiye, Emre Gundogan via freebsd-questions
On Mon, 10 Oct 2016 12:14:59 +0100, Olaoluwa Omokanwaiye wrote:
> Pls how can I get the above wireless card to be recognized and
> function on my FreeBSD 10.3

Even though "man 4 bwn" and "man 4 bwi" list several Broadcom devices,
your particular model 4313 doesn't seem to support those drivers (but
models 4312 and 4319 do). It might be possible to use the "NDIS wrapper"
port to load the "Windows" driver for the device.

This problem has been discussed and, as it seems, solved 5 years ago:

I just downloaded the drivers on my Windows computer,
extracted the driver files, and transferred the necessary
ones (bcmwl5.inf, bcmwl564.sys, bcm43xx64.cat and
bcmwlcoi64.dll, since I am running amd64) over to my
FreeBSD machine using a USB memory stick.

I then had to convert the files to FreeBSD kernel modules
by using ndisgen, however, since one of the driver files
was encoded in UTF-8 ndisgen required converters/libiconv,
so that had to be installed first:

# cd /usr/ports/converters/libiconv && make install clean

All I had to do next was to run ndisgen and follow the
instructions. I should mention that, for some reason, I had
to run ndisgen from another directory than the driver files
were located in, otherwise ndisgen failed to build the kernel
modules.

Once ndisgen had finished I ended up with three .KO files,
which I placed in the /boot/modules directory. I was unable
to load these files using /boot/loader.conf, so I ended up
making a /etc/rc.d script which can be found here. Save the
script to /etc/rc.d/bcm4313 and run:

# chmod a-w+rx /etc/rc.d/bcm4313

Done!

Sources:

Is it possible to use the Broadcom BCM4313?

https://forums.freebsd.org/threads/26616/

Manually connecting to a wireless WPA-protected network.

https://forums.freebsd.org/threads/33728/


--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

Polytropon

unread,
Oct 11, 2016, 12:38:52 PM10/11/16
to Olaoluwa Omokanwaiye, freebsd-...@freebsd.org
Re-including list, hope that's okay.


On Tue, 11 Oct 2016 15:25:17 +0100, Olaoluwa Omokanwaiye wrote:
> Thanks for this.
>
> It was going successfully but had a hitch because I had not install kernel
> source tree while installing my FreeBSD 10.3.
> The kernel source tree us needed for successful conversion of windows
> driver.

Yes, that is correct (at least certain parts of the /usr/src
subtree are needed).



> how can I install the kernel source tree at this point since I
> didn't install during previous installation. I am using FreeBSD
> 10.3-RELEASE-p7

This can easily be done with freebsd-update (which I assume you
have been using to get to 10.3-RELEASE-p7): In /etc/freebsd-update.conf,
make sure you have "src" in the line

Components src world kernel

This will install or update the sources when you run an update.
If I remember correctly, you can perform this as a "partial update"
where only the missing component will be installed.

Olaoluwa Omokanwaiye

unread,
Oct 12, 2016, 8:25:16 AM10/12/16
to JD, Emre Gundogan via freebsd-questions
Hi,

Tried the above steps, successfully converted the files but when I try to
load the .ko driver I get a stackoverflow and the OS reboots pls what do I
do? This has not allowed me to load the successfully converted windows
driver using ndisgen.

Help!!!!!
Ola
Sent from my MotoE2(4G-LTE)

On 10 Oct 2016 4:59 p.m., "JD" <jd1...@gmail.com> wrote:

> On URL https://forums.freebsd.org/threads/26616/
> you will find this solution using windos XP driver and ndis.
> ------------------------------------------------------------
> ---------------
> nox@ said:
> There's a link to a Windows XP driver that can be used for this nic with
> ndis(4) on FreeBSD/PCBSD >= 9.0 in the PCBSD wiki:
> http://wiki.pcbsd.org/index.php/Wireless_Testing. If you are on amd64
> like me you may get a panic "Unregistered use of FPU in kernel", the fix
> for that is in gnats:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=165622.
>
> PS: Assuming you have kernel sources installed and the patch from that
> ticket applies to 9.0 too (I only tested head) you can just rebuild and
> install ndis.ko instead of rebuilding the entire kernel:
> # cd /usr/src/sys/modules/ndis && make && make install
>
> HTH, [image: :)]
> Juergen
>
> I just got my Broadcom BCM4313 up and running yesterday by checking out
> that PC-BSD Wiki!
>
> I just downloaded the drivers on my Windows computer, extracted the driver
> files, and transferred the necessary ones (bcmwl5.inf, bcmwl564.sys,
> bcm43xx64.cat and bcmwlcoi64.dll, since I am running amd64) over to my
> FreeBSD machine using a USB memory stick.
>
> I then had to convert the files to FreeBSD kernel modules by using ndisgen,
> however, since one of the driver files was encoded in UTF-8 ndisgen
> required converters/libiconv, so that had to be installed first:# cd
> /usr/ports/converters/libiconv && make install cleanAll I had to do next
> was to run ndisgen and follow the instructions. I should mention that,
> for some reason, I had to run ndisgen from another directory than the
> driver files were located in, otherwise ndisgen failed to build the
> kernel modules.
>
> Once ndisgen had finished I ended up with three .KO files, which I placed
> in the /boot/modules directory. I was unable to load these files using
> /boot/loader.conf, so I ended up making a /etc/rc.d script which can be
> found here <http://forums.freebsd.org/showthread.php?t=33728>. Save the
> script to /etc/rc.d/bcm4313 and run:# chmod a-w+rx /etc/rc.d/bcm4313
>
> Done!
>
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe
>> @freebsd.org"

JD

unread,
Oct 12, 2016, 12:26:30 PM10/12/16
to FreeBSD Users
I cannot find 10.3 kernel source package online.
Start by looking at
http://ftp.freebsd.org/pub/FreeBSD/

On Tue, Oct 11, 2016 at 8:26 AM, Olaoluwa Omokanwaiye <laolu...@gmail.com>
wrote:

> Hi, thanks
> It was going successfully but had a hitch because I had not install kernel
> source tree while installing my FreeBSD 10.3.
> The kernel source tree us needed for successful conversion of windows
> driver. how can I install the kernel source tree at this point since I
> didn't install during previous installation. I am using FreeBSD
> 10.3-RELEASE-p7
>
> Warm regards
> Ola
>
> Sent from my MotoE2(4G-LTE)
>
>>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe
>>> @freebsd.org"

Manish Jain

unread,
Oct 13, 2016, 12:12:16 PM10/13/16
to freebsd-...@freebsd.org


On 10/13/16 17:30, freebsd-ques...@freebsd.org wrote:
> Hi,
>
> Tried the above steps, successfully converted the files but when I try to
> load the .ko driver I get a stackoverflow and the OS reboots pls what do I
> do? This has not allowed me to load the successfully converted windows
> driver using ndisgen.
>
> Help!!!!!

I suggest you include more explicit information when requesting help.

You say you tried to "load the .ko driver" you got from ndisgen.

From what I remember, there should have been 3 .ko's generated by
ndisgen, which have to be loaded in this order :

kldload bcm<N1>.cat.ko
kldload bcm<N2>.dll.ko
kldload bcm<N3>.sys.ko

So what exactly are you trying ?

I can not help you beyond a point because I do not have that card
myself. And as I said earlier, Broadcom open source support for its NIC
is virtually non-existent. Perhaps Atheros would have been a better choice.


Regards
Manish Jain
Reply all
Reply to author
Forward
0 new messages