LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-25-2016, 01:07 PM   #1
Exaga
Member
 
Registered: Nov 2012
Posts: 127

Rep: Reputation: Disabled
Slackware ARM on a Raspberry Pi 3 - SARPi3


The Slackware ARM on a Raspberry Pi 3 - SARPi3 installer, system packages, and HOW-TO guide are now available.

http://rpi3.fatdog.eu

Within the guide there are certain references to Slackware ARM 14.2, but as that hasnīt yet been released so please work around that for now. Just until 14.2 is released and then it will all be relevant. I just wanted to save having to edit the guide a second time with 14.2 being close to a release date. (Hope these arenīt my famous last words!)

As always, let me know if you find any errors/mistakes/bugs/etc.

Cheers!
 
Old 04-26-2016, 03:54 AM   #2
mike_booth76
Member
 
Registered: May 2006
Posts: 32

Rep: Reputation: 3
slackware-arm-on-a-raspberry-pi-3-sarpi3

Good work. Doing it now

Rgds

Mike
 
Old 04-27-2016, 01:16 PM   #3
mtslzr
LQ Newbie
 
Registered: May 2005
Location: Austin, TX
Distribution: Slackware
Posts: 12

Rep: Reputation: Disabled
Awesome, thanks! Have one arriving this week; will be giving this a shot.
 
Old 05-03-2016, 05:00 AM   #4
mike_booth76
Member
 
Registered: May 2006
Posts: 32

Rep: Reputation: 3
Worked like a dream apart from the wifi.
I expected that and it's working fine now.

Thanks

Mike
 
Old 05-04-2016, 02:45 PM   #5
Exaga
Member
 
Registered: Nov 2012
Posts: 127

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mike_booth76 View Post
Worked like a dream apart from the wifi.
I expected that and it's working fine now.

Thanks

Mike
Youīre most welcome.

I toyed with the notion of adding the rpi3 wi-fi drivers but then if itīs not in the official Slackware ARM tree then itīs not going to be included in the SARPi3 installer either. Adding the wireless and bluetooth drivers can be a īlearning-curveī for those who are interested. :-p

Glad itīs working fine for you. If I may be so bold, Iīd say this was the best work weīve done yet on the SARPi projects.
 
Old 04-10-2018, 05:40 AM   #6
PragmaticCypher
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Rep: Reputation: Disabled
How do you get Bluetooth working on the Raspberry Pi 3? I couldn't find a mention of it on sarpi.co.uk, and isn't working for me. Is rpi-update required?

I am running slackware-current:
uname -r
4.14.31-v7-arm

lsmod
Module Size Used by
ipv6 434176 28
8021q 32768 0
garp 16384 1 8021q
stp 16384 1 garp
llc 16384 2 garp,stp
fuse 106496 1
dm_mod 122880 0
dax 24576 1 dm_mod
brcmfmac 307200 0
brcmutil 16384 1 brcmfmac
cfg80211 569344 1 brcmfmac
rfkill 28672 1 cfg80211
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
fixed 16384 0
 
Old 04-10-2018, 12:30 PM   #7
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 231

Rep: Reputation: 67
Quote:
Originally Posted by PragmaticCypher View Post
How do you get Bluetooth working on the Raspberry Pi 3? I couldn't find a mention of it on sarpi.co.uk, and isn't working for me. Is rpi-update required?

I am running slackware-current:
uname -r
4.14.31-v7-arm
Try this URL: Pi3 onboard wifi and Bluetooth

Hope it helps.
 
Old 04-17-2018, 02:19 AM   #8
PragmaticCypher
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Rep: Reputation: Disabled
@Penthux thanks for the link. It took some time to figure everything out for the device. Following are instructions for setting this up for anyone else interested.

# Download firmware into the /etc/firmware directory (not /lib/firmware). You will have to find the firmware via a search engine.
mkdir /etc/firmware
wget $URL/BCM43430A1.hcd -O /etc/firmware/BCM43430A1.hcd

# Load the firmware automagically when starting bluetooth. I've added a 30 second delay for stability as the command occasionally timeout.
>>/etc/bluetooth/uart.conf echo "-t 30 /dev/ttyAMA0 bcm43xx"

# Comment out the line for ttyAMA0 to free it from being used for a terminal (?).
nano /etc/inittab

# Modify rc.bluetooth so the firmware is loaded _before_ bringing up the device.
# This seems like it _may_ be a bug in Slackware's bluetooth script.
#
# In start(), move 'start_uarts' before 'start_hci_dev'
#
nano /etc/rc.d/rc.bluetooth

# Enable bluetooth on start
chmod +x /etc/rc.d/rc.bluetooth

# Load the bluetooth module. This creates /sys/class/bluetooth/ which rc.bluetooth needs to run.
>>/etc/rc.d/rc.modules.local echo "/sbin/modprobe bluetooth"

# In order to get performance required for streaming audio through the device, wifi
# needs to be disabled.
# To do this modify and insert "dtoverlay=pi3-disable-wifi" into /boot/config.txt
# Make sure /boot is mounted! I've made this mistake myself... otherwise the wrong file is being modified.
nano /boot/config.txt

# Reboot
reboot

One nuisance with this setup though is restarting bluetooth during runtime will not work. Not sure why, but hciattach can only
be run at most once.

References:
https://wiki.alpinelinux.org/wiki/Ra...g_Up_Bluetooth
https://raspberrypi.stackexchange.co...-on-pi-3#62522
http://forum.fatdog.eu/viewtopic.php?t=168#p487

edited: Added part about loading bluetooth module

Last edited by PragmaticCypher; 04-17-2018 at 11:54 AM.
 
2 members found this post helpful.
Old 04-17-2018, 11:40 AM   #9
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 231

Rep: Reputation: 67
Quote:
Originally Posted by PragmaticCypher View Post
@Penthux thanks for the link. It took some time to figure everything out for the device. Following are instructions for setting this up for anyone else interested.
You are most welcome. Glad you were able to find a solution.

I love it when people, much like your good self, do what you do and are successful in doing it. That's what Slackware [ARM] is all about for me personally; learning and growing in knowledge and experience. Well done. Nice work.
 
Old 04-17-2018, 05:14 PM   #10
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 519

Rep: Reputation: 276Reputation: 276Reputation: 276
Quote:
Originally Posted by PragmaticCypher View Post
Following are instructions for setting this up for anyone else interested.

# Download firmware into the /etc/firmware directory (not /lib/firmware). You will have to find the firmware via a search engine.
mkdir /etc/firmware
wget $URL/BCM43430A1.hcd -O /etc/firmware/BCM43430A1.hcd

# Load the firmware automagically when starting bluetooth. I've added a 30 second delay for stability as the command occasionally timeout.
>>/etc/bluetooth/uart.conf echo "-t 30 /dev/ttyAMA0 bcm43xx"
Thanks for the short recipe and letting me know about the issues with the BT/WiFi. I'm about to bite the bullet and start buying (again) Pi3 boards for my needs (hopefully I can manage to cool/underclock them), since Pi2Bv1.1 ones are not available anymore, and constantly looking for info/knowledge about them, your guide is really helpful.

I suppose you can extract the required BT firmware form the Raspbian image instead of searching the Internet for it, by following louigi600's instructions (first section from the Manual installation method):
https://docs.slackware.com/howtos:ha...rm:raspberrypi
Why do you need to put it in /etc/firmware? I have it already available in /lib/firmware (I'm extracting all the useful stuff from the Raspbian image).

There's also something I'm not sure about, is the bcm43xx driver actually recommended for usage? I've looked over at the official Raspberry Forums and learned that btbcm is being used:
https://www.raspberrypi.org/forums/v...8145&start=125

Here's a short investigation I did on a Pi board on which I took the kernel&modules&firmware&other useful stuff from a Raspbian image:
Code:
#find / -name BCM43430* -noleaf
/lib/firmware/BCM43430A1.hcd

# find / -name bcm43* -noleaf
/lib/modprobe.d/bcm43xx.conf
/lib/firmware/brcm/bcm43xx_hdr-0.fw
/lib/firmware/brcm/bcm43xx-0.fw

#cat /lib/modprobe.d/bcm43xx.conf
##############################################################################
# Do not edit this file; instead, copy it to /etc/modprobe.d/ and edit that
##############################################################################

# Deprecated BCM4318 driver.
blacklist bcm43xx

#modinfo btbcm
filename:       /lib/modules/4.4.50-v7+/kernel/drivers/bluetooth/btbcm.ko
license:        GPL
version:        0.1
description:    Bluetooth support for Broadcom devices ver 0.1
author:         Marcel Holtmann <marcel@holtmann.org>
srcversion:     7D407A503FFEAA8C872B3E9
depends:        bluetooth
intree:         Y
vermagic:       4.4.50-v7+ SMP mod_unload modversions ARMv7
The official thread about the BT-Wifi issues - still unresolved - I didn't know about this until now - weird:
https://github.com/raspberrypi/linux/issues/1402
 
Old 08-04-2018, 08:55 AM   #11
PragmaticCypher
LQ Newbie
 
Registered: Feb 2016
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by abga View Post
There's also something I'm not sure about, is the bcm43xx driver actually recommended for usage? I've looked over at the official Raspberry Forums and learned that btbcm is being used:
https://www.raspberrypi.org/forums/v...8145&start=125
The btbcm driver is used under the hood. 'bcm43xx' refers to the device .

I've had to correct the configuration since my last post. On some Rasp Pi 3's, the default baud rate is too high for the device to handle. Therefor, I've needed to set it to '460800' on load.

Code:
 >>/etc/bluetooth/uart.conf echo "-t 30 /dev/ttyAMA0 bcm43xx 460800"
 
1 members found this post helpful.
Old 08-05-2018, 03:38 AM   #12
abga
Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 519

Rep: Reputation: 276Reputation: 276Reputation: 276
Quote:
Originally Posted by PragmaticCypher View Post
The btbcm driver is used under the hood. 'bcm43xx' refers to the device .
Thanks for the clarification.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware ARM on a Raspberry Pi 2 Exaga Slackware - ARM 28 05-06-2015 06:42 AM
Slackware ARM 14.1 on a Raspberry Pi Exaga Slackware - Installation 2 11-17-2013 08:11 AM
Installing Slackware ARM on a Raspberry Pi Penthux Slackware - Installation 20 03-24-2013 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 09:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration