Pi3 onboard wifi and Bluetooth

The SARPi project forum. For anything and everything relating to Slackware ARM on a Raspberry Pi 1, 2, and 3. This forum is NOT a replacement or substitute for the Slackware (ARM) forums on Linux Questions website! Please try to seek help there first about any issues you may be experiencing, or question you might have, before posting on here.
User avatar
jloco
Registered user
Registered user
Posts: 4
Joined: Tue Feb 24 2015 - 05:48:50

Pi3 onboard wifi and Bluetooth

Postby jloco » Sat Mar 19 2016 - 16:56:47

Got the pi3 and I can't seem to figure out why I can't get the kernel modules for wifi and bt to work. To be fair I've only looked at the wifi at this point as I'm not ready to tamper with the Bluetooth yet.

I'm using the rpi-update tool running Slackware-current. I had assumed their kernel would auto-load the required modules once it detected it was on a pi3 now instead of the old pi2 I was running on but it hasn't.

Anyone got a pi3, and got this stuff running on it?

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

Re: Pi3 onboard wifi and Bluetooth

Postby Exaga » Fri Mar 25 2016 - 01:41:43

jloco wrote:Got the pi3 and I can't seem to figure out why I can't get the kernel modules for wifi and bt to work. To be fair I've only looked at the wifi at this point as I'm not ready to tamper with the Bluetooth yet.

I'm using the rpi-update tool running Slackware-current. I had assumed their kernel would auto-load the required modules once it detected it was on a pi3 now instead of the old pi2 I was running on but it hasn't.

Anyone got a pi3, and got this stuff running on it?


I'm hoping to get hold of a rpi3 sometime soon and have a play with it. 8-)
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
jloco
Registered user
Registered user
Posts: 4
Joined: Tue Feb 24 2015 - 05:48:50

Re: Pi3 onboard wifi and Bluetooth

Postby jloco » Thu Apr 21 2016 - 05:57:33

OK,

Well I made a Raspbian SD card and did a little research out of boredom...

Wifi works with 2 files taken from the /lib/firmware/bcrm directory....

brcmfmac-43430-sdio.txt
brcmfmac-43430-sdio.bin

Copy those files into your Slackware ARM installs /lib/firmware/bcrm directory and reboot.

I didn't use whatever the built-in system is for loading wifi in linux these days, I just used wicd to connect, but it runs perfectly fine.
Setting up wicd was simple, a "ifconfig -a" told me it was labeled "wlan1" so I changed that in wicd and connected.

I'll upload those files sometime for use by whomever needs them, but I'm sure they are available out there if anyone needs them.

Sometime this weekend I'll look into bluetooth support and see where I get with that and post the results.

Cheers!

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

Re: Pi3 onboard wifi and Bluetooth

Postby Exaga » Tue Apr 26 2016 - 16:43:47

jloco wrote:
I'll upload those files sometime for use by whomever needs them, but I'm sure they are available out there if anyone needs them.

Sometime this weekend I'll look into bluetooth support and see where I get with that and post the results.

Cheers!



Good work! Thanks for contributing. :ok:
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
Harlock
New member
New member
Posts: 2
Joined: Fri May 06 2016 - 04:06:48

Re: Pi3 onboard wifi and Bluetooth

Postby Harlock » Fri May 06 2016 - 04:24:51

don't know if anyone else has figured it out yet but I think I finally got Bluetooth working for Pi3 internal... YES!!!

my end product...

latest Bluez-5.39 (built with slackware build scripts)
that gives the bluetoothctl that you see in all the raspbian how-tos
next you will need the firmware (for some reason its hard coded to reside in /etc/firmware instead of /lib/firmware (archaic its been forever since slackware had firmware there)
I got the firmware from a raspbian install from /lib/firmware/BCM43430A1.hcd

starting up run

hciattach /dev/ttyAMA0 bcm43xx 921600 noflow
on first run init times out (I'm still missing something) second run goes through
hciattach /dev/ttyAMA0 bcm43xx 921600 noflow

you should see
---
root@Pi:~# hciattach /dev/ttyAMA0 bcm43xx 921600 noflow
bcm43xx_init
Set Controller UART speed to 921600 bit/s
Flash firmware /etc/firmware/BCM43430A1.hcd
Initialization timed out.
root@Pi:~# hciattach /dev/ttyAMA0 bcm43xx 921600 noflow
bcm43xx_init
Patch not found, continue anyway
Set Controller UART speed to 921600 bit/s
Device setup complete
root@Pi:~#
---

then start services
/etc/rc.d/rc.bluetooth start

---
Starting Bluetooth services: bluetoothd hciconfig sdptool hciattach rfcomm
---
hcitool dev
Devices:
hci0 <bluetooth Mac>


Running!!!

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

Re: Pi3 onboard wifi and Bluetooth

Postby Exaga » Sat May 07 2016 - 12:54:44

Harlock wrote:don't know if anyone else has figured it out yet but I think I finally got Bluetooth working for Pi3 internal... YES!!!


COOL! 8-)
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
kross
Registered user
Registered user
Posts: 5
Joined: Sun May 15 2016 - 20:34:41

Re: Pi3 onboard wifi and Bluetooth

Postby kross » Sun May 15 2016 - 20:46:23

Thanks Jloco for the tip on copying the firmware files to get wifi working, but even though I think I followed those steps, I still don't have a wifi interface. I have a clean install of slackware arm 14.1 on a raspberry pi 3 using the fatdog instructions. I copied the two files as mentioned from the raspbian installation as described in your post. When I restart and ifconfig -a there is only eth0 and lo. If I modprobe brcmfmac it loads and brings brcmutil with it. What could I be missing?

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

Re: Pi3 onboard wifi and Bluetooth

Postby Exaga » Sun May 15 2016 - 22:27:09

kross wrote:What could I be missing?


What does 'ifconfig wlan0' tell you after you 'modprobe brcmfmac' ?
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
kross
Registered user
Registered user
Posts: 5
Joined: Sun May 15 2016 - 20:34:41

Re: Pi3 onboard wifi and Bluetooth

Postby kross » Sun May 15 2016 - 22:52:44

Exaga: "What does 'ifconfig wlan0' tell you after you 'modprobe brcmfmac' ?"
"wlan0: error fetching interface information: Device not found"

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

Re: Pi3 onboard wifi and Bluetooth

Postby Exaga » Sun May 15 2016 - 23:03:23

I am running Slackware ARM 14.1 and I see this...

root@drie:~# modprobe brcmfmac
root@drie:~# ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:60:ec:1b txqueuelen 1000 (Ethernet)
RX packets 522 bytes 239374 (233.7 KiB)
RX errors 0 dropped 522 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
kross
Registered user
Registered user
Posts: 5
Joined: Sun May 15 2016 - 20:34:41

Re: Pi3 onboard wifi and Bluetooth

Postby kross » Sun May 15 2016 - 23:42:32

Exaga wrote:I am running Slackware ARM 14.1 and I see this...

root@drie:~# modprobe brcmfmac
root@drie:~# ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:60:ec:1b txqueuelen 1000 (Ethernet)
RX packets 522 bytes 239374 (233.7 KiB)
RX errors 0 dropped 522 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


That's what I get with my raspbian jessie sd card, so it's not hardware. The only thing I've modified on this slack arm 14.1 installation is adding me as a user and copying the two mentioned files. Puzzling. What I was trying to get from the OP was that no other changes were required. Is that correct for your situation?

User avatar
kross
Registered user
Registered user
Posts: 5
Joined: Sun May 15 2016 - 20:34:41

Re: Pi3 onboard wifi and Bluetooth

Postby kross » Sun May 15 2016 - 23:53:29

Exaga wrote:I am running Slackware ARM 14.1 and I see this...


Well, dmesg after modprobe shows promise:
[ 126.885434] cfg80211: Calling CRDA to update world regulatory domain
[ 126.913163] usbcore: registered new interface driver brcmfmac
[ 126.940424] cfg80211: World regulatory domain updated:
[ 126.940447] cfg80211: DFS Master region: unset

by that I mean at least there are no errors. But still no device.
I'm not that technical when it comes to this stuff, but it doesn't make sense to me that I would have to manually create the device when others don't.

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

Re: Pi3 onboard wifi and Bluetooth

Postby Exaga » Sun May 15 2016 - 23:54:38

kross wrote:
Exaga wrote:What I was trying to get from the OP was that no other changes were required. Is that correct for your situation?


The OP has -current installed. We have 14.1 installed. This might be what's missing. I'm going to test with -current and see if I find the same results.
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
Exaga
FatDog Network Administrator
FatDog Network Administrator
Posts: 199
Joined: Wed Apr 18 2012 - 02:01:03
Location: England [UK]

RPi3 onboard wifi on Slackware 14.1 - SOLVED!

Postby Exaga » Mon May 16 2016 - 01:03:14

Ok...

Partially following jloco's advice, and taking into account there's usually some configuring to do in Slackware when adding new hardware, I did this to get a wireless Internet connection working in Slackware 14.1 on the Raspberry Pi 3...

1. I copied brcmfmac-43430-sdio.txt and brcmfmac-43430-sdio.bin from latest Raspbian image to my Slackware ARM 14.1 /lib/firmware/brcm directory and rebooted the system. After rebooting, I logged in as 'root' user and ran 'modprobe brcmfmac' and then 'ifconfig wlan0' which told me the wireless device had been loaded and was recognised. Then I ran these commands:

# iwconfig wlan0 essid MYWIFISSID freq 2.432G
# iwconfig wlan0 essid MYWIFISSID channel auto

2. Then I installed 'wicd-1.7.2.4-arm-3.tgz' from slackwarearm-14.1/extra/wicd source directory.

3. Next I followed AlienBOB's "Configuring your network in Slackware" guide and configured the wireless settings (I'm using WPA2 encryption) on command-line. It took me a few attempts to find the correct settings that worked.

4. Under a normal user account I started a desktop session (Xfce in my case) and ran 'su -' in a terminal, and then I ran 'wicd-client' as root user. wlan0 was enabled in the wicd-client and ready to connect to a wireless network. I scanned for available networks and connected to my home Wi-Fi.

root@drie:~# ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.226 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ba27:ebff:fe60:ec1b prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:60:ec:1b txqueuelen 1000 (Ethernet)
RX packets 10336 bytes 4501766 (4.2 MiB)
RX errors 0 dropped 9627 overruns 0 frame 0
TX packets 542 bytes 80875 (78.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

root@drie:~# iwconfig
wlan0 IEEE 802.11bgn ESSID:"MYWIFISSID"
Mode:Managed Frequency:2.412 GHz Access Point: 98:FC:11:70:E3:23
Bit Rate=43.3 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=-32 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:4 Invalid misc:0 Missed beacon:0

Voila! :love: :S: :love:
Exaga

====
__ KEEP THE DOG ALIVE!!!
()'`; /
/\|` W00f W00f W00f
www.fatdog.eu

User avatar
kross
Registered user
Registered user
Posts: 5
Joined: Sun May 15 2016 - 20:34:41

Re: RPi3 onboard wifi on Slackware 14.1 - SOLVED!

Postby kross » Sat Jun 04 2016 - 22:34:07

Exaga wrote:Ok...

Partially following jloco's advice, and taking into account there's usually some configuring to do in Slackware when adding new hardware, I did this to get a wireless Internet connection working in Slackware 14.1 on the Raspberry Pi 3...
Voila! :love: :S: :love:


Since I was making no progress and had no new leads I decided to start over last weekend and by then there was a new installer so I used that. AFAIK I followed the same process and this time it worked fine. The wireless config was new to me so that took a few tries. My only issue now is that ntpdate runs after eth0 fails (no wired connection) and before wlan0 succeeds, so I still have to figure that one out, but other than that everything that I need is working. Even got some Java things on it. Thanks for the help.

User avatar
yustin
New member
New member
Posts: 2
Joined: Fri Feb 10 2017 - 16:15:07

Re: Pi3 onboard wifi and Bluetooth

Postby yustin » Fri Feb 10 2017 - 22:22:36

i had a hard time to figure out why hciattach always timed out unless i found this page
http://www.netzmafia.de/skripten/hardwa ... erial.html

the solution to make /dev/ttyAMA0 accessible for hciattach was just to comment out one line in /etc/inittab

# Local serial lines:
#s0:12345:respawn:/sbin/agetty 115200 ttyAMA0 vt100 <<<<<

now it's working for me with slackwarearm 14.2

have phun :)

Return to “SARPi Project - Slackware ARM on a Raspberry Pi”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests