Re: [lfs-support] bcmwl-kernel-source

2017-07-07 Thread Andrew Dance
Thanks for the replies.

I must admit I'm a bit a dummy when it comes to this stuff which is why I
wanted to go through the whole LFS process to try and learn a bit.

I've attached the tree of the bcmwl-kernel-source debian package.

Do I have to compile any files?  Or do I just need to move them into the
right place in the file system?

I know  is looking for something in /lib/modules/4.9.9/ called
"wl".  Is it looking for a single file called "wl" or a directory, or...?

Could a rebuild my kernel and have it include a driver from list below?  If
so which file?

Thanks


/mnt/lfs/sources/bcmwl-6.30.223.271+bdcom/
├── built-in.o
├── dkms.conf
├── lib
│   ├── LICENSE.txt
│   └── wlc_hybrid.o_shipped_x86_64
├── Makefile
├── patches
│   ├── 0001-MODULE_LICENSE.patch
│   ├── 0002-Makefile.patch
│   ├── 0003-Make-up-for-missing-init_MUTEX.patch
│   ├── 0004-Add-support-for-Linux-3.2.patch
│   ├── 0005-add-support-for-linux-3.4.0.patch
│   ├── 0006-add-support-for-linux-3.8.0.patch
│   ├── 0007-nl80211-move-scan-API-to-wdev.patch
│   ├── 0008-add-support-for-linux-3.9.0.patch
│   ├── 0009-add-support-for-linux-3.10.0.patch
│   ├── 0010-change-the-network-interface-name-from-eth-to-wlan.patch
│   ├── 0011-do-not-define-__devinit-as-__init-in-linux-3.8-as-__.patch
│   ├── 0012-add-support-for-Linux-3.15.patch
│   ├── 0013-gcc.patch
│   ├── 0014-add-support-for-Linux-3.17.patch
│   ├── 0015-add-support-for-Linux-3.18.patch
│   ├── 0016-repair-make-warnings.patch
│   ├── 0017-add-support-for-Linux-4.0.patch
│   ├── 0018-cfg80211_disconnected.patch
│   ├── 0019-broadcom-sta-6.30.223.248-3.18-null-pointer-fix.patch
│   ├── 0020-add-support-for-linux-4.3.patch
│   ├── 0021-add-support-for-Linux-4.7.patch
│   └── 0022-add-support-for-Linux-4.8.patch
└── src
├── common
│   └── include
│   └── proto
│   ├── 802.11.h
│   ├── 802.1d.h
│   ├── bcmeth.h
│   ├── bcmevent.h
│   ├── bcmip.h
│   ├── ethernet.h
│   ├── ieee80211_radiotap.h
│   └── wpa.h
├── include
│   ├── bcmcrypto
│   │   └── tkhash.h
│   ├── bcmdefs.h
│   ├── bcmendian.h
│   ├── bcmutils.h
│   ├── epivers.h
│   ├── linux_osl.h
│   ├── linuxver.h
│   ├── osl.h
│   ├── packed_section_end.h
│   ├── packed_section_start.h
│   ├── pcicfg.h
│   ├── siutils.h
│   ├── typedefs.h
│   └── wlioctl.h
├── shared
│   ├── bcmwifi
│   │   └── include
│   │   ├── bcmwifi_channels.h
│   │   └── bcmwifi_rates.h
│   ├── linux_osl.c
│   └── linux_osl.o
└── wl
└── sys
├── bcmdefs.h
├── bcmendian.h
├── bcmutils.h
├── epivers.h
├── include
│   ├── bcmcrypto
│   │   └── tkhash.h
│   ├── bcmdefs.h
│   ├── bcmendian.h
│   ├── bcmutils.h
│   ├── epivers.h
│   ├── linux_osl.h
│   ├── linuxver.h
│   ├── osl.h
│   ├── packed_section_end.h
│   ├── packed_section_start.h
│   ├── pcicfg.h
│   ├── siutils.h
│   ├── typedefs.h
│   └── wlioctl.h
├── linux_osl.h
├── linuxver.h
├── osl.h
├── packed_section_end.h
├── packed_section_start.h
├── pcicfg.h
├── siutils.h
├── typedefs.h
├── wlc_ethereal.h
├── wl_cfg80211_hybrid.c
├── wl_cfg80211_hybrid.h
├── wlc_key.h
├── wlc_pub.h
├── wlc_types.h
├── wlc_utils.h
├── wlc_wowl.h
├── wl_dbg.h
├── wl_export.h
├── wlioctl.h
├── wl_iw.c
├── wl_iw.h
├── wl_linux.c
└── wl_linux.h

15 directories, 94 files


Andrew Dance
n32...@gmail.com
(585)348-0928

On Thu, Jul 6, 2017 at 12:49 PM, Tim Tassonis  wrote:

> On July 6, 2017 7:56:02 PM Andrew Dance  wrote:
>
> > Hi all!
> >
> > I've been tinkering with LFS on my Macbook Pro Retina and have managed to
> > get it booted up.  However, I'm having trouble getting my wifi card to
> work.
> >
> > It's a Broadcom bcm4360.  There are 2 flavors, evidently.  Standard b43
> > drivers don't work on mine, so I have to use something called 'wl'.
> >
> > On my Ubuntu installation, I did...
> >
> > *apt-get install bcmwl-kernel-source*
> >
> > and then followed with..
> >
> > *modprobe wl*
> >
> > This worked great for Ubuntu.
> >
> > Questions is; how do I replicate this process in LFS without a package
> > manager like 'dpkg'
> >
> > I tried unpacking the debian package but could make any sense of it.
>
> This is how you unpack a dpkg:
> mkdir tmp
> cd tmp
> ar xf ../your.pkg
> tar xf data.*
> tar xf control.*
>
> Then you get some dirs with files, where stuff under 

Re: [lfs-support] bcmwl-kernel-source

2017-07-06 Thread Tim Tassonis



On July 6, 2017 7:56:02 PM Andrew Dance  wrote:


Hi all!

I've been tinkering with LFS on my Macbook Pro Retina and have managed to
get it booted up.  However, I'm having trouble getting my wifi card to work.

It's a Broadcom bcm4360.  There are 2 flavors, evidently.  Standard b43
drivers don't work on mine, so I have to use something called 'wl'.

On my Ubuntu installation, I did...

*apt-get install bcmwl-kernel-source*

and then followed with..

*modprobe wl*

This worked great for Ubuntu.

Questions is; how do I replicate this process in LFS without a package
manager like 'dpkg'

I tried unpacking the debian package but could make any sense of it.


This is how you unpack a dpkg:
mkdir tmp
cd tmp
ar xf ../your.pkg
tar xf data.*
tar xf control.*

Then you get some dirs with files, where stuff under usr,lib etc go exactly 
to the corresponding place in the filesystem. You might also get some 
postinst or prerm stuff, they are scripts that would be run at the 
appropriate action. If you are familiar with shell scripts, it's easy to 
find out what you have to do apart from copying files to the right place.


Cheers
Tim




Many thanks in advance.

Andrew



--
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] bcmwl-kernel-source

2017-07-06 Thread Ken Moffat
On Thu, Jul 06, 2017 at 10:54:07AM -0700, Andrew Dance wrote:
> Hi all!
> 
> I've been tinkering with LFS on my Macbook Pro Retina and have managed to
> get it booted up.  However, I'm having trouble getting my wifi card to work.
> 
> It's a Broadcom bcm4360.  There are 2 flavors, evidently.  Standard b43
> drivers don't work on mine, so I have to use something called 'wl'.
> 
> On my Ubuntu installation, I did...
> 
> *apt-get install bcmwl-kernel-source*
> 
> and then followed with..
> 
> *modprobe wl*
> 
> This worked great for Ubuntu.
> 
> Questions is; how do I replicate this process in LFS without a package
> manager like 'dpkg'
> 
> I tried unpacking the debian package but could make any sense of it.
> 
> Many thanks in advance.
> 
> Andrew

Perhaps the suggestions at
https://wiki.archlinux.org/index.php/broadcom_wireless have
something to help (in particular, not building the upstream b43
drivers, or unloading them, if they really don't work).

There seem to be a lot of reports of failure with the upstream
drivers for broadcom on macs, so I assume that loading the required
firmware would probably be a waste of your time and you probably do
need the nonfree drivers from broadcom (linked from that wiki page).

An out-of-tree module needs to be compiled against the kernel on
which you wish to use it.  If you google for the Arch package source
files it should give some indication of how to compile it.

It seems that apple do their best to keep everybody within their
walled garden.

ĸen
-- 
I live in a city. I know sparrows from starlings.  After that
everything is a duck as far as I'm concerned.  -- Monstrous Regiment
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] bcmwl-kernel-source

2017-07-06 Thread Pierre Labastie

On 06/07/2017 19:54, Andrew Dance wrote:

Hi all!

I've been tinkering with LFS on my Macbook Pro Retina and have managed 
to get it booted up.  However, I'm having trouble getting my wifi card 
to work.


It's a Broadcom bcm4360.  There are 2 flavors, evidently. Standard b43 
drivers don't work on mine, so I have to use something called 'wl'.


On my Ubuntu installation, I did...

/apt-get install bcmwl-kernel-source/

and then followed with..

/modprobe wl/
/
/
This worked great for Ubuntu.

Questions is; how do I replicate this process in LFS without a package 
manager like 'dpkg'


I'd suggest you go to http://www.broadcom.com/support/802.11/linux_sta.php,
then download the proper driver. The README at the bottom of the page 
has good instructions.
I guess you'll need to have your kernel source (compiled with your 
configuration) in a known location, like /usr/src.


I do not have a wireless card, so I cannot tell more...

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] bcmwl-kernel-source

2017-07-06 Thread Andrew Dance
Hi all!

I've been tinkering with LFS on my Macbook Pro Retina and have managed to
get it booted up.  However, I'm having trouble getting my wifi card to work.

It's a Broadcom bcm4360.  There are 2 flavors, evidently.  Standard b43
drivers don't work on mine, so I have to use something called 'wl'.

On my Ubuntu installation, I did...

*apt-get install bcmwl-kernel-source*

and then followed with..

*modprobe wl*

This worked great for Ubuntu.

Questions is; how do I replicate this process in LFS without a package
manager like 'dpkg'

I tried unpacking the debian package but could make any sense of it.

Many thanks in advance.

Andrew
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style