LinuxQuestions.org
Help answer threads with 0 replies.
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 01-12-2021, 01:48 PM   #61
sndwvs
Member
 
Registered: Aug 2014
Posts: 920

Rep: Reputation: Disabled

Quote:
Originally Posted by pchristy View Post
Well, the init didn't fail this time! It just timed out! Progress?
yes, serial0 is not the right port.
Code:
sudo killall hciattach
sudo hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:aa:aa:aa
 
Old 01-12-2021, 02:04 PM   #62
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
Code:
killall hciattach
hciattach /dev/serial1 bcm43xx 3000000 flow - b8:27:eb:aa:aa:aa
bcm43xx_init
Initialization timed out.
(as root)

Not that one either!

--
Pete
 
Old 01-12-2021, 04:22 PM   #63
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Exaga View Post
Some of my old notes on kernel .config settings for Bluetooth shizzle...
Not sure that that is the answer either. I did try doing a full sarpi/slackwarearm (32 bit) install on the Pi-400, and I couldn't get bluetooth or wifi to work on that either.

Of course, that could also have been the firmware issue, but I suspect there must be something fundamentally different in the Pi 400 that is causing the problem.

--
Pete
 
Old 01-13-2021, 02:51 AM   #64
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware [ARM]
Posts: 649

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Quote:
Originally Posted by pchristy View Post
Not sure that that is the answer either.
It sure is the answer if you're going to build your own kernels with Bluetooth support included.

An easier option might be to forget the onboard Bluetooth device and use a plug-in alternative that you know works.
 
Old 01-13-2021, 03:29 AM   #65
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
I used to always build my own kernels on x86_64, tailoring them to the hardware on which they were running. However, once I ended up with two desktops and a laptop, it just became too time consuming, and I now just run the stock kernels. This also means that any apps I compile myself only have to be done on one machine and can then be applied to the others without fear of a mismatch.

My point was that there is something about the bluetooth hardware implementation on the 400 that is different from the 4, and the clue is that it didn't work on a stock sarpi/slackwarearm install either. (I'm assuming that that stock install had your bluetooth configurations applied.)

Yes, I can use a dongle, and I know it works. Its just annoying me that the built-in one doesn't! Its like an itch in a hard-to-reach place - irritating!

I appreciate that it is probably a low priority for yourself and sndwvs, and also appreciate the efforts to help me out here. I intend to keep trying to get to the bottom of it, because the 400 is currently the newest design and its features will probably be carried forward to forthcoming models. Solving this issue now, whilst there aren't many around, may save a lot of grief in future.

One other thought occurs to me, though I think its unlikely. I installed slarm64 from the xfce image provided by sndwvs. I used this rather than the base version as it already had X11 etc built in and set up. I then added the other things I wanted via slackpkg (kde, etc). The problem with this method, as opposed to the standard Slackware setup program, is that I don't know what is included in the image. Its possible that there is something else that needs to be installed that is missing from the image. I would have expected the tests that sndwvs has had me carry out would have spotted this, but you never know!

--
Pete
 
Old 01-13-2021, 03:52 AM   #66
sndwvs
Member
 
Registered: Aug 2014
Posts: 920

Rep: Reputation: Disabled
I do not think that this is because of the programs, the installed packages are known.
also 2020-12-02-raspios-buster-armhf-lite uses a different kernel (you can move it and see what happens).
the sources and kernel configuration are located in /usr/src. there is also a new compiled kernel.
 
Old 01-13-2021, 04:27 AM   #67
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
First thing I'm going to try is to make another sarpi/slackwarearm sd card (I erased the last one, silly me!) and try it with the latest brcm firmware. That is what got wifi working on slarm64. If it gets that and bluetooth working on the 400, then it points to a configuration issue somewhere - possibly in the kernel.

It will take a while, though! It takes over an hour to do the full install on an sd card...!

Watch this space!

--
Pete
 
Old 01-13-2021, 06:22 AM   #68
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
OK, so the situation is as follows:

Raspbian: Wifi and Bluetooth work perfectly (so it is NOT a hardware issue!)

Slarm64: Wifi works once /lib/firmware/brcm is replaced with the one from Raspbian. Bluetooth does NOT work (no adapters found).

Sarpi/Slackwarearm (32-bit): Exactly the same as Slarm64. Wifi works once /lib/firmware/brcm replaced, bluetooth doesn't.

Me: stumped!

--
Pete
 
Old 01-13-2021, 06:37 AM   #69
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware [ARM]
Posts: 649

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Quote:
Originally Posted by pchristy View Post
Sarpi/Slackwarearm (32-bit): Exactly the same as Slarm64. Wifi works once /lib/firmware/brcm replaced, bluetooth doesn't.
It's why I distribute a sarpi-hacks pkg - which includes the latest BRCM wireless firmware - because it's not included in the official Slackware ARM source-tree. I haven't done anything with the onboard Bluetooth for well over a year or so, as I have no use for it on the RPi devices. Perhaps when I've got time to waste I may look into it once again for end-users to play with.
 
Old 01-13-2021, 06:37 AM   #70
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
UPDATE: Found this link which appears to describe the problem and a fix in Ubuntu: https://bugs.launchpad.net/ubuntu/+s...z/+bug/1903048

Looks like its a bug in bluez. Lots of information there, including some patches from the Raspberry Pi Foundation (post #9). However, this is all for Ubuntu - not sure how it would relate to here.

--
Pete

Last edited by pchristy; 01-13-2021 at 06:52 AM. Reason: update patch information
 
Old 01-14-2021, 06:46 AM   #71
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
I managed to find the patches for Bluez, and applied them (using the Slackware64-current sources, as I can't find the slarm64 ones). I've tweaked the slackbuild to detect aarch64, but the build fails, complaining about missing GLib:
Code:
......
checking linux/if_alg.h presence... yes
checking for linux/if_alg.h... yes
checking for GLIB... no
configure: error: GLib >= 2.28 is required
As far as I can tell, all the glib packages are installed, so I'm not quite sure why this is happening. How did you build Bluez? Any chance of a copy of your slackbuild?

--
Pete
 
Old 01-14-2021, 06:56 AM   #72
sndwvs
Member
 
Registered: Aug 2014
Posts: 920

Rep: Reputation: Disabled
all Slackbuilds are original from Slackware64, some have additional patches, everything is in git
the only thing that complements the script
Code:
sed '0,/^elif \[ "$ARCH" = "\(x86_64\|arm.*\)" \].*$/s/^elif \[ "$ARCH" = "\(x86_64\|arm.*\)" \].*$/elif \[ \"\$ARCH\" = \"aarch64\" \]; then\
  SLKCFLAGS=\"-O2\"\
  LIBDIRSUFFIX=\"64\"\n&/g' -i *.SlackBuild
 
Old 01-14-2021, 07:49 AM   #73
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
/source/n/bluez appears to be empty in git. I used the stock slackware64 source for bluez, but added:
Code:
elif [ "$ARCH" = "aarch64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
to the slkcflags definitions.

I notice that your alteration to the slkcflags doesn't seem to add -fPIC. I know this is a requirement for x86_64, and I thought I'd read somewhere that this also applied to 64-bit arm. Is this correct?

None of which seems to explain why the bluez slackbuild can't find GLib, when it is definitely installed!

Code:
ls /var/log/packages/glib*
/var/log/packages/glib-1.2.10-aarch64-7
/var/log/packages/glib-networking-2.66.0-aarch64-1
/var/log/packages/glib2-2.66.4-aarch64-1
/var/log/packages/glibc-2.30-aarch64-2
/var/log/packages/glibc-i18n-2.30-aarch64-2
/var/log/packages/glibc-profile-2.30-aarch64-2
/var/log/packages/glibc-solibs-2.30-aarch64-2
/var/log/packages/glibc-zoneinfo-2020f-noarch-1
/var/log/packages/glibmm-2.64.5-aarch64-1
--
Pete
 
Old 01-14-2021, 10:24 AM   #74
sndwvs
Member
 
Registered: Aug 2014
Posts: 920

Rep: Reputation: Disabled
tried everything goes

Code:
checking for explicit_bzero... yes
checking for signalfd... yes
checking for clock_gettime in -lrt... yes
checking for pthread_create in -lpthread... yes
checking for dlopen in -ldl... yes
checking for linux/types.h... yes
checking for linux/if_alg.h... yes
checking for glib-2.0 >= 2.28... yes
checking for dbus-1 >= 1.6... yes
checking D-Bus configuration directory... /etc
checking D-Bus system bus services dir... /usr/share/dbus-1/system-services
checking D-Bus session bus services dir... /usr/share/dbus-1/services
 
1 members found this post helpful.
Old 01-14-2021, 10:54 AM   #75
pchristy
Member
 
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 700

Original Poster
Rep: Reputation: Disabled
Weird! Could you see anything missing from my list of glib stuff? I couldn't see anything obvious.

I'm attaching the patches that are supposed to make it work with the 400. Some people - but not all - have apparently complained that these stop it working with the 4. Got them from here: https://www.spinics.net/lists/linux-.../msg89532.html

There are three of them. Seems that this issue has been known about for a few months! (I had to add a .txt suffix to make them uploadable) I have no idea if or when these might get added to bluez upstream.

--
Pete
Attached Files
File Type: txt raspi-bcm43xx-3wire.patch.txt (537 Bytes, 9 views)
File Type: txt raspi-bcm43xx-load-firmware.patch.txt (680 Bytes, 9 views)
File Type: txt raspi-cypress-305-bdaddr.patch.txt (407 Bytes, 6 views)
 
  


Reply

Tags
pi 400


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
Pi 400 slarm64-current not booting pchristy Slackware - ARM 18 12-29-2020 12:16 PM
[SOLVED] Slarm64 / Xfce / Blueman / PyGObject - GUI seems broken? shelldweller Slackware - ARM 9 02-20-2020 10:25 AM
Installing slarm64 on a Raspberry PI 4 akschu Slackware - ARM 0 01-04-2020 09:44 PM
slarm64 no wifi kermitdafrog8 Slackware - ARM 45 09-27-2019 10:33 AM
[VPS] 4 load page = 100 MB RAM loaded? do i need 100x 400 mb ram for next 400 page? vaporizel Linux - Server 1 03-14-2011 08:40 PM

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

All times are GMT -5. The time now is 09:30 AM.

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