Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: PayloadHasher on May 27, 2017, 07:57:56 PM

Title: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 27, 2017, 07:57:56 PM
Hello guys/gals,
I just installed booted CorePlus on my MBA 2013 with a USB drive and installed the system onto an SD card. During the installation process, I ticked the boxes saying "wifi support/firmware" and it finished really quickly.
But when I booted into TC from my SD card, I typed "ifconfig" in the terminal and it only gave me a "lo" loopback interface. There's no "wlan" or "eth" or any other interface. Then I typed "lspci" and it showed me that there is a Broadcom network controller. I encountered the very same problem of having no wifi interface when I installed Debian on my MBA and I solved it by installing the broadcom-sta-dkms.deb package. Is there a similar way to solve this in TC?

Thanks! Any help would be appreciated  :D
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Misalf on May 27, 2017, 10:24:57 PM
Running  ifconfig  only displays active connections. What does  iwconfig  give?
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 27, 2017, 10:34:03 PM
There can be up to three choices with broadcom hardware:

* native reverse-engineered kernel driver plus additional firmware
* broadcom "wl" kernel driver, which includes firmware
* ndiswrapper with windows driver

As per: http://wiki.tinycorelinux.net/wiki:list_of_supported_wifi_devices#pci

..please supply the pci id of your hardware to help decide the best way to proceed.
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 27, 2017, 11:55:08 PM
Here's the output of iwconfig:
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 27, 2017, 11:56:50 PM
@Juanito,
I used the broadcom "wl" package and solved my problem with Debian wifi. It came as a .deb package from debian.org.
Can I install the same package on my TC?
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 28, 2017, 12:02:16 AM
you might be able to use the wl-modules-KERNEL extension (read the info file), but it would be better if you could post your device pci id to double-check
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 28, 2017, 12:37:32 AM
Oops sorry, I forgot to paste the wifi card device id
Here you go:

Software Versions:
  CoreWLAN:   11.0 (1200.31)
  CoreWLANKit:   12.0 (1200.31)
  Menu Extra:   12.0 (1200.46)
  System Information:   12.0 (1200.3)
  IO80211 Family:   12.0 (1200.12.2)
  Diagnostics:   7.0 (700.5)
  AirPort Utility:   6.3.7 (637.6)
  Interfaces:
en0:
  Card Type:   AirPort Extreme  (0x14E4, 0x117)
  Firmware Version:   Broadcom BCM43xx 1.0 (7.21.171.124.1a2)
  MAC Address:   48:bf:6b:de:59:c0
  Locale:   RoW
  Country Code:   US
  Supported PHY Modes:   802.11 a/b/g/n/ac
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 28, 2017, 12:46:45 AM
Could you post the results of this command in tinycore:
Code: [Select]
$ lspci -vnn -d 14e4:
14e4:0177 does not look correct?

The wl-modules-KERNEL extension will probably work - remember to blacklist the bcma, ssb and b43 modules
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 28, 2017, 12:53:01 AM
Here it is:

03:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev03)
      Subsystem: Apple Inc. Device [106b:0117]
      Flags: bus master, fast devsel, latency 0, IRQ 18
      Memory at b0600000 (64-bit, non-prefetchable) [size=32K]
      Memory at b0400000 (64-bit, non-prefetchable) [size=2M]
      Capabilities: <access denied>
      Kernel driver in use: bcma-pci-bridge

P.S. Where can I find & download the "wl-modules-KERNEL extension" you mentioned??
Thanks a lot
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 28, 2017, 01:27:17 AM
Hmm - as per: https://wireless.wiki.kernel.org/en/users/Drivers/b43

..you look to be out of luck for pci id 14e4:4360, but the wl driver should work for 14e4:43a0

broadcom's wl driver was last updated in 2015 and says:
Quote
Broadcom's IEEE 802.11a/b/g/n hybrid Linux.. device driver for use with Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, and BCM43225-, BCM43227- and BCM43228-based hardware

..so I'd be kind of surprised if it worked - where did the debian package come from?

to use the wl-modules-KERNEL extension, either use the apps gui to download it or "tce-load -wil wl-modules-KERNEL"
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 28, 2017, 01:43:16 AM
I typed the command and it said that the module is already installed. Is that what supposed to happen?
I got the broadcom-sta-dkms.deb package from this link: https://packages.debian.org/jessie/broadcom-sta-dkms

Just a question: Is TC Linux compatible with Mac hardware? is there just a little bit of incompatibility or a lot?
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 28, 2017, 02:04:58 AM
If it says the module is already installed, that's fine.

Do you know if you have the the bcma, ssb and b43 modules blacklisted? You can check by looking at the control panel -> system stats -> boot.

You can also check with iwconfig if you have eth1 (used by broadcom for wifi) and examine dmesg for details on broadcom, wifi or eth0.

The debian version of the wl driver is 6.30.223.248, whereas the tinycore version is 6.30.223.271, but the debian version says it supports "BCM4360-, and BCM4352-based hardware" - since the tinycore version appears to be more recent, you would think it also supports those?

tinycorelinux works fine on my mac mini
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 28, 2017, 02:27:42 AM
I check the system stats > boot panel and I saw nothing related to "network", "broadcom", "b43", "wl", "bcma", etc. I assume that means I didn't blacklist anything yet? How do I blacklist something? I searched on Google and tried the "modprobe blacklist" command but it didn't work.
P.S. I noticed a message saying "Unsupported SPROM version" and "bcma: no SPROM available" during TC startup. Does that have anything to do with my network problems?
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 28, 2017, 02:54:59 AM
You need to blacklist the modules in your bootloader config, using blacklist=bcma blacklist=ssb blacklist=b43

I'm not sure about about the sprom message, but you would definately see something about broadcom in dmesg if the bcma, ssb and b43 modules were blacklisted and then the wl-modules-KERNEL extension was loaded.
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: polikuo on May 28, 2017, 03:37:17 AM
You need to blacklist the modules in your bootloader config, using blacklist=bcma blacklist=ssb blacklist=b43
You need to modify your extlinux.conf
The full-path should be /etc/sysconfig/tcedir/boot/extlinux.conf
At the line "APPEND", add blacklist=bcma blacklist=ssb blacklist=b43
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Misalf on May 28, 2017, 05:17:12 AM
Can be done a little shorter also.
Code: [Select]
blacklist=bcma,ssb,b43
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 28, 2017, 06:37:10 AM
@polikuo Thank you very much! It took me quite a bit of fuss to find that path. I can't find a wiki page giving me any info about this.
I added the blacklist and rebooted the TC, and an eth0 interface came out when I typed "ifconfig" into the terminal. Isn't eth0 an ethernet interface? But I don't have any ethernet cards on my MBA?! I did the same in Arch Linux and "wlan0" came out instead of eth0.
What should I do from here? How can I know that the "eth0" interface is actually valid?
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on May 28, 2017, 06:42:01 AM
Hey guys,
Perfect! It worked!I was able to connect to my wifi with no problem using the Wifi tool included in the installation.
Thanks to you all! :)
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Juanito on May 28, 2017, 06:45:45 AM
several disros patch the wl driver to come up as wlanx, the tinycore wl driver is not patched for this, so it comes up as ethx - when I mentioned eth1, I hadn't expected you would not have an eth0.
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: Misalf on May 28, 2017, 07:07:29 AM
Hi PayloadHasher,
if you want your wifi interface name to be wlan0, see here
http://forum.tinycorelinux.net/index.php/topic,18522.msg113238.html#msg113238 (http://forum.tinycorelinux.net/index.php/topic,18522.msg113238.html#msg113238)
Title: Re: Wifi card problem with CorePlus on MacBook Air
Post by: PayloadHasher on June 13, 2017, 12:06:20 AM
Thanks Misalf!  :)