LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-03-2021, 10:40 AM   #31
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 697

Rep: Reputation: Disabled

I'm not sure what the exact filename of the firmware would be for your system, I only know it for the 400. If you can determine exactly which firmware *should* be loaded, try looking for duplicate filenames in /lib/firmware.

I've just done a complete re-install of slarm64 (on a new sd card!), and that troublesome ap6256 folder is definitely there again! I'm not sure where its coming from, as it certainly isn't in the kernel-firmware package! I will need to move it out of the way as part of my (ongoing) setting up!

My new install does not have that /opt/vc/bin/vcmailbox file. Can't remember where I must have got it from - perhaps form the same location as the bluetoothResetFirmware.sh script? I'll have to go back and have a look...

--
Pete
 
Old 02-03-2021, 12:29 PM   #32
TheTKS
Member
 
Registered: Sep 2017
Location: The deep south... of Canada
Distribution: Slackware, Xubuntu, OpenBSD, elementary, Raspberry Pi OS, Puppy, TinyCore
Posts: 247

Rep: Reputation: 150Reputation: 150
louigi, clear something up. In various posts, you’ve mentioned SlackwareARM 14.2 and Sarpi and RPi 4.

But those aren’t meant to go together. You should only be installing -current on RPi 4, otherwise - problems!

So , do you have -current or 14.2 on your Pi4?

I don’t understand it enough to explain why you’ll have problems. I’m going by the instructions on the Sarpi website.

Getting that right doesn’t eliminate the BT problems, though.

TKS
 
Old 02-03-2021, 02:42 PM   #33
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Quote:
Originally Posted by TheTKS View Post
louigi, clear something up. In various posts, youíve mentioned SlackwareARM 14.2 and Sarpi and RPi 4.

But those arenít meant to go together. You should only be installing -current on RPi 4, otherwise - problems!

So , do you have -current or 14.2 on your Pi4?

I donít understand it enough to explain why youíll have problems. Iím going by the instructions on the Sarpi website.

Getting that right doesnít eliminate the BT problems, though.

TKS
I have kernel form current and userland from 14.2, there is no official kernel for the RPi4 running 14.2 so that's just a workaround since I don't like to run current.
The kernel does offer hardfloat but the userland will never require it so it's ok to use the current kernel on softfloat userland.
Actually the only problem I have is bluetooth, everything else is working fine, ethernet, wifi, audio, X ... I even compiled the kernel with Exaga's bt config.
I don't think it's because I'm doing this workaround to run 14.2 on my RPi4 ... but I have 2 more spare uSD ... I can try current on one of them and see how it goes.
And besides that I think Exaga himself is having the same problem on current.
 
2 members found this post helpful.
Old 02-05-2021, 02:42 AM   #34
Desiderius
Member
 
Registered: Jun 2017
Posts: 88

Rep: Reputation: Disabled
No Bluetooth

I have also a RPI4 running current and impossible to make PI Bluetooth work !

I have also tested many things without success !

When I plug a USB Bluetooth adapter, everything works perfectly ! But impossible to use the onboard Bluetooth adapter


Quote:
Originally Posted by louigi600 View Post
I have kernel form current and userland from 14.2, there is no official kernel for the RPi4 running 14.2 so that's just a workaround since I don't like to run current.
The kernel does offer hardfloat but the userland will never require it so it's ok to use the current kernel on softfloat userland.
Actually the only problem I have is bluetooth, everything else is working fine, ethernet, wifi, audio, X ... I even compiled the kernel with Exaga's bt config.
I don't think it's because I'm doing this workaround to run 14.2 on my RPi4 ... but I have 2 more spare uSD ... I can try current on one of them and see how it goes.
And besides that I think Exaga himself is having the same problem on current.
 
Old 02-05-2021, 03:30 AM   #35
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 697

Rep: Reputation: Disabled
Desiderius: This is a firmware issue! I have a Pi 400 which is different from the 4, but some of the fixes I used on the 400 apply. The only one that may not is patching Bluez, and even one of those patches is probably a good idea. Have a look here: https://www.linuxquestions.org/quest...-a-4175689669/

The main points are: 1) Replace the /lib/firmware/brcm folder with the one from a recent Raspbian. 2) If your system has a /lib/firmware/ap6256 folder, move it out of the way (I put it in /root/tmp). Don't just delete it, in case you need it back!

This should make your adapter appear! If it still won't bind, try patching Bluez - but I believe this is only necessary for the 400.

The reason for moving the ap6256 folder is that it contains files with the same names as some in the brcm folder. Being higher up the "pecking order", it gets loaded first, so the updates to brcm become ineffective! Moving the ap6256 folder out of the way allows the correct firmware from the brcm folder to load.

That is my experience anyway! It certainly works on the 400.

--
Pete
 
1 members found this post helpful.
Old 02-05-2021, 07:50 AM   #36
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Guys I have copied from PRiOS with working onboard bluetooth (on the very same RPi4):
the entire /lib/firmware and /etc/firmware is linked to /lib/firmware.
kernel and modules
boot firmware

The only thing that is left over is the renaming txt file I renamed ... I will remove that and see if it's any better.
I will take with me one of my old bt dongles and see if they work with the same setup.

Last edited by louigi600; 02-05-2021 at 08:08 AM.
 
Old 02-05-2021, 07:54 AM   #37
Desiderius
Member
 
Registered: Jun 2017
Posts: 88

Rep: Reputation: Disabled
Thanks for your answer @PChristhy

Where can I download the Raspbian /lib/firmware/brcm ?

Desiderius

Quote:
Originally Posted by pchristy View Post
Desiderius: This is a firmware issue! I have a Pi 400 which is different from the 4, but some of the fixes I used on the 400 apply. The only one that may not is patching Bluez, and even one of those patches is probably a good idea. Have a look here: https://www.linuxquestions.org/quest...-a-4175689669/

The main points are: 1) Replace the /lib/firmware/brcm folder with the one from a recent Raspbian. 2) If your system has a /lib/firmware/ap6256 folder, move it out of the way (I put it in /root/tmp). Don't just delete it, in case you need it back!

This should make your adapter appear! If it still won't bind, try patching Bluez - but I believe this is only necessary for the 400.

The reason for moving the ap6256 folder is that it contains files with the same names as some in the brcm folder. Being higher up the "pecking order", it gets loaded first, so the updates to brcm become ineffective! Moving the ap6256 folder out of the way allows the correct firmware from the brcm folder to load.

That is my experience anyway! It certainly works on the 400.

--
Pete
 
Old 02-05-2021, 08:53 AM   #38
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 697

Rep: Reputation: Disabled
Quote:
Originally Posted by Desiderius View Post
Thanks for your answer @PChristhy

Where can I download the Raspbian /lib/firmware/brcm ?

Desiderius
Ah! My Pi-400 came with a working copy of Raspbian, so I simply copied it from there. You can download Raspbian images from here: https://www.raspberrypi.org/software/operating-systems/

You will need to mount the image (or install it on an SD card) and then extract the firmware files.

Alternatively, Exaga's sarpi-hacks package contains firmware files, which I believe he got from Raspbian: https://sarpi.fatdog.eu/index.php?p=downloads

Click on the appropriate version for your system, and it will take you to a second page where you can find the hacks package.

I'm not sure if Exaga uses the "pure" Raspbian files, or if he tweaks them somewhat. I've been using the pure Raspbian ones, which are a bit more effort to obtain, but I know they work!

--
Pete
 
Old 02-05-2021, 09:51 AM   #39
Desiderius
Member
 
Registered: Jun 2017
Posts: 88

Rep: Reputation: Disabled
Thanks for your quick answer

I will try to extract it from the Raspian image since actually I have the files from the Exaga sarpi-hacks package ( since I use SARPI to install Slackware ) and it does not work.

I will let you know if it works !

Didier
 
Old 02-05-2021, 09:53 AM   #40
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 697

Rep: Reputation: Disabled
Yes, please let us know! I'm afraid I only have a 400, so my experience is not necessarily applicable to other Pis! But from your description of your problem, it sounds the same as mine!

--
Pete
 
Old 02-07-2021, 08:41 AM   #41
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Quote:
Originally Posted by louigi600 View Post
Guys I have copied from PRiOS with working onboard bluetooth (on the very same RPi4):
the entire /lib/firmware and /etc/firmware is linked to /lib/firmware.
kernel and modules
boot firmware

The only thing that is left over is the renaming txt file I renamed ... I will remove that and see if it's any better.
I will take with me one of my old bt dongles and see if they work with the same setup.
Not sure if RPiOS uses some stuff out of /opt/vc to make the bluetooth work but on 14.2 I can't do much about it because I can't find a softfloat version of that stuff.
Concerning the firmware now even the renamd txt fie was removed and still can't see the onboard BT device.

I tried a usb BT dongle and it works
 
Old 02-10-2021, 07:52 AM   #42
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
I have some interesting updates that also span to a little OT from this post.
I recently treated myself with a new 2Gb ram RPi4 instead of the stingy 1Gb I'd usually buy (the old one will become a NAS).
Code:
Hardware        : BCM2711
Revision        : b03114
Serial          : 100000009dc116e9
Model           : Raspberry Pi 4 Model B Rev 1.4
with SARPi4 kernel build from Jan 2021 (v 5.10.11) on the above device usb does not work at all ... but seems to be fine with latest 5.10.14.

No change at all regarding BT on this device even with latest SARPi kernel and firmware.

I set up a multiboot uSD so that the 14.2 userland on it will boot from both RPi4 and RPi0 ... so I can also report that BT on the RPi0 is in the same state as the RPi4
 
Old 02-11-2021, 03:50 AM   #43
Desiderius
Member
 
Registered: Jun 2017
Posts: 88

Rep: Reputation: Disabled
I did the test yesterday !

First I have looked for an ap6256 folder on the RPI : no ap6256 folder !

In /lib/firmware I have renamed the "brcm" folder to "old_brcm" and I have put the "brcm" folder extracted from the actual Raspberry PI OS image.

Look for an ap6256 folder : no !

Chown root:root to brcm and reboot !

No Bluetooth icon in the task bar and when asking KDE for Bluetooth adapters, the answer is "No adapter available" !

To be sure, I have plugged an USB Bluetooth stick and the icon appears in the task bar and KDE sees the USB adapter !


Quote:
Originally Posted by pchristy View Post
Desiderius: This is a firmware issue! I have a Pi 400 which is different from the 4, but some of the fixes I used on the 400 apply. The only one that may not is patching Bluez, and even one of those patches is probably a good idea. Have a look here: https://www.linuxquestions.org/quest...-a-4175689669/

The main points are: 1) Replace the /lib/firmware/brcm folder with the one from a recent Raspbian. 2) If your system has a /lib/firmware/ap6256 folder, move it out of the way (I put it in /root/tmp). Don't just delete it, in case you need it back!

This should make your adapter appear! If it still won't bind, try patching Bluez - but I believe this is only necessary for the 400.

The reason for moving the ap6256 folder is that it contains files with the same names as some in the brcm folder. Being higher up the "pecking order", it gets loaded first, so the updates to brcm become ineffective! Moving the ap6256 folder out of the way allows the correct firmware from the brcm folder to load.

That is my experience anyway! It certainly works on the 400.

--
Pete
 
Old 02-11-2021, 10:17 AM   #44
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 697

Rep: Reputation: Disabled
Oh, dear! Well, as I said at the start, I have a 400, not a 4 which I know is slightly different. I can only say what worked on my system.

It was worth a try, though, and thanks for posting so that others will know!

--
Pete
 
Old 02-12-2021, 12:12 AM   #45
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
So recapping :
  • no trace of ap6256 in /lib/firmware
  • /etc/firmware linked to /lib/firmware
  • tried both SARPi hack /lib/firmware and RPiOS /lib/firmware
  • tried both SARPi boot firmware RPiOS boot firmware
  • tried latest SARPi kernel (5.10.14) and RPiOS kernel (5.4.83)

Onbpard bluetooth does work if I boot RPiOS but not with any of the above combinations with slackwareARM 14.2.
USB bluetooth dongles work fine.

I tried on the below RPi models :

Code:
Hardware        : BCM2711
Revision        : a03111
Serial          : 1000000091328354
Model           : Raspberry Pi 4 Model B Rev 1.1


Hardware        : BCM2711
Revision        : b03114
Serial          : 100000009dc116e9
Model           : Raspberry Pi 4 Model B Rev 1.4

Hardware        : BCM2835
Revision        : 9000c1
Serial          : 000000009b4bd2c0
#this is a RPi0W
Does RPiOS send some vc command to switch on the onboard BT, something with rfkill: they must do something which is not driver/firmware related (I tried with their kernel and firmware).

Last edited by louigi600; 02-12-2021 at 12:19 AM.
 
  


Reply

Tags
bluetooth, firmware, sarpi, slackware arm


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
[SOLVED] Create/add a 'Revision needed' Forum (like Intro) for Threads *needing revision/rewrite* (n00bs) !!! LQ Suggestions & Feedback 1 12-20-2017 03:26 PM
[SOLVED] bluetooth dongle + bluetooth speaker but no sound on the bluetooth speaker vonbiber Slackware 4 05-11-2017 09:53 AM
svn restore directory to a revision also removing files not part of revision Four Linux - Software 1 03-03-2009 04:18 PM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 03:58 AM

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

All times are GMT -5. The time now is 09:27 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
Open Source Consulting | Domain Registration