[firmware-raspberrypi] Rpi 400 wifi drivers are missing

Problems with packages? Post here, using [tags] of the package name.

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby graysky » Fri Dec 25, 2020 4:15 pm

$this->bbcode_second_pass_quote('msa', 'B')luetooth stopped working on my rpi4 and rpi3 when I installed 20201224-1. Reverting to firmware-raspberrypi-6-1 made it come back.

You may have to pick and choose the FW versions.


Thanks for the feedback. I do not use bluetooth myself but I have read the AW page on it. On my RPi4 running armv7h, I cannot seem to get it working even with version 6-1:

$this->bbcode_second_pass_code('', '% lsmod | grep blue
bluetooth 385024 8 btsdio,bnep
ecdh_generic 16384 1 bluetooth
')

$this->bbcode_second_pass_code('', '<< bluetooth.service is running >>>
# bluetoothctl
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
No default controller available
[bluetooth]# list
[bluetooth]#
')

What am I missing?

$this->bbcode_second_pass_code('', '# rfkill
ID TYPE DEVICE SOFT HARD
0 wlan phy0 unblocked unblocked
')
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby msa » Fri Dec 25, 2020 7:48 pm

On the aarch64 kernel, running bluetoothctl "power on" is all you need.

On the armv7 kernel you must run btattach to start bluetooth. This is the service file I start as btattach@ttyAMA0.service:
$this->bbcode_second_pass_code('', '
[msa@hipi3 ~]$ cat /etc/systemd/system/btattach@.service
[Unit]
Description=Bluetooth attach daemon (interface-specific version)
BindsTo=dev-%i.device
After=dev-%i.device
Before=bluetooth.service

[Service]
Type=simple
ExecStart=/usr/bin/btattach -P bcm -B /dev/%I

[Install]
Alias=multi-user.target.wants/btattach@%i.service
')

The BT hiccups are most noticeable with a keyboard. I tried three different models: one would not connect at all, the other two stutter and stick. I think the controller is skipping messages; btmon tells me there are distinct events for key press and key release.

My BT mice appear to be OK.
msa
 
Posts: 5
Joined: Fri Dec 25, 2020 3:00 pm

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby graysky » Fri Dec 25, 2020 8:54 pm

Adding that btattach@.service manually is lame. Not documented anywhere. In any case, I can confirm the updated firmware does not work on my end. Under 6-1, a microsoft 6000 keyboard paired and worked. Under 20201224-1:

$this->bbcode_second_pass_code('', '
Agent registered
[CHG] Controller DC:A6:32:XX:XX:XX Pairable: yes
[bluetooth]# power on
Failed to start discovery: org.bluez.Error.NotReady
')

I restored the legacy versions and just added the RPi 400 stuff (I think). Someone with a RPi 400 will need to confirm.

https://github.com/archlinuxarm/PKGBUIL ... b34c0e440a
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby msa » Sat Dec 26, 2020 2:50 pm

I installed 20201225-2: bluetooth works again. Thanks.

About this btattach lame business:

The aarch64 kernel creates an internal fe201000.serial/serial0 device and this is good enough for bluetooth. This is also good enough for me -- I switched to aarch64 a while back. :)

The armv7 kernel exposes a f201000.serial/tty which requires some user space way to connect the bluetooth daemon to the controller at the other end. I am not 100% certain why we have an external tty -- probably something to do with uart0 doubling up as a serial console in the 32-bit kernel.

To this day the pi-bluetooth aur package uses 'hciattach', which is deprecated. This is why I suggested 'btattach'.

https://aur.archlinux.org/cgit/aur.git/tree/brcm43438.service?h=pi-bluetooth#n9
https://wiki.archlinux.org/index.php/Bluetooth#Deprecated_BlueZ_tools
msa
 
Posts: 5
Joined: Fri Dec 25, 2020 3:00 pm

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby graysky » Sat Feb 06, 2021 7:46 pm

Would you be willing to try the latest firmware version from upstream and report back for me?

Build it from here: https://github.com/graysky2/PKGBUILDs/t ... aspberrypi
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby jyno » Wed May 05, 2021 4:46 pm

I'm having the same problem on RPi3.
Neither Bluetooth nor Wifi work.

Most recent update, a few minutes ago:
$this->bbcode_second_pass_code('', '
:: Starting full system upgrade...
warning: libtool: local (2.4.6+44+gb9b44533-14) is newer than core (2.4.6+42+gb88cebd5-15)
resolving dependencies...
looking for conflicting packages...

Packages (10) ffmpeg-2:4.4-2 harfbuzz-2.8.1-1 libldap-2.4.58-2 libxcrypt-4.4.20-1 linux-raspberrypi-5.10.33-2 mesa-21.0.3-3 mpfr-4.1.0-2
nano-5.7-1 ncurses-6.2-2 srt-1.4.3-1

Total Download Size: 52.13 MiB
Total Installed Size: 126.87 MiB
Net Upgrade Size: 0.73 MiB
')
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby graysky » Wed May 05, 2021 6:24 pm

Since I got no feedback from 2 months ago, I assume things are fine. Can you try the PKGBUILD I referenced and report back?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby jyno » Thu May 06, 2021 6:59 am

It's not working

$this->bbcode_second_pass_code('', '
[root@alarmpi ~]# systemctl start bluetooth

[root@alarmpi ~]# bluetoothctl
Agent registered
[bluetooth]# scan on
No default controller available

[root@alarmpi ~]# btmgmt
[mgmt]# info
Index list with 0 items

[root@alarmpi ~]# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down
')

After reboot:
$this->bbcode_second_pass_code('', '
[root@alarmpi ~]# systemctl status bluetooth
* bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
[root@alarmpi ~]# systemctl start bluetooth
[root@alarmpi ~]# btmgmt
[mgmt]# info
Index list with 0 items
[mgmt]# exit
[root@alarmpi ~]# bluetoothctl
Agent registered
[bluetooth]# scan on
No default controller available
[bluetooth]# exit
[root@alarmpi ~]# iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down

[root@alarmpi ~]# systemctl status bluetooth
* bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2021-05-06 07:02:11 UTC; 31s ago
Docs: man:bluetoothd(8)
Main PID: 343 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 1572)
CPU: 70ms
CGroup: /system.slice/bluetooth.service
`-343 /usr/lib/bluetooth/bluetoothd

May 06 07:02:11 alarmpi systemd[1]: Starting Bluetooth service...
May 06 07:02:11 alarmpi bluetoothd[343]: Bluetooth daemon 5.58
May 06 07:02:11 alarmpi systemd[1]: Started Bluetooth service.
May 06 07:02:11 alarmpi bluetoothd[343]: Starting SDP server
May 06 07:02:11 alarmpi bluetoothd[343]: Bluetooth management interface 1.18 initialized
')

Here's how I built it.
$this->bbcode_second_pass_code('', '
[alarm@alarmpi ~]$ cd pkgbuild/
[alarm@alarmpi pkgbuild]$ mkdir firmware-raspberrypi/
[alarm@alarmpi pkgbuild]$ cd firmware-raspberrypi/
[alarm@alarmpi firmware-raspberrypi]$ wget https://raw.githubusercontent.com/graysky2/PKGBUILDs/extra-firmware/alarm/firmware-raspberrypi/PKGBUILD https://raw.githubusercontent.com/graysky2/PKGBUILDs/extra-firmware/alarm/firmware-raspberrypi/RPi-WM8804.conf https://raw.githubusercontent.com/graysky2/PKGBUILDs/extra-firmware/alarm/firmware-raspberrypi/brcmfmac43455-sdio.raspberrypi%2C4-model-b.txt
--2021-05-06 06:53:40-- https://raw.githubusercontent.com/graysky2/PKGBUILDs/extra-firmware/alarm/firmware-raspberrypi/PKGBUILD
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2208 (2.2K) [text/plain]
Saving to: 'PKGBUILD'

PKGBUILD 100%[===================>] 2.16K --.-KB/s in 0.001s

2021-05-06 06:53:42 (3.19 MB/s) - 'PKGBUILD' saved [2208/2208]

--2021-05-06 06:53:42-- https://raw.githubusercontent.com/graysky2/PKGBUILDs/extra-firmware/alarm/firmware-raspberrypi/RPi-WM8804.conf
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 384 [text/plain]
Saving to: 'RPi-WM8804.conf'

RPi-WM8804.conf 100%[===================>] 384 --.-KB/s in 0s

2021-05-06 06:53:43 (2.37 MB/s) - 'RPi-WM8804.conf' saved [384/384]

--2021-05-06 06:53:43-- https://raw.githubusercontent.com/graysky2/PKGBUILDs/extra-firmware/alarm/firmware-raspberrypi/brcmfmac43455-sdio.raspberrypi%2C4-model-b.txt
Reusing existing connection to raw.githubusercontent.com:443.
HTTP request sent, awaiting response... 200 OK
Length: 1883 (1.8K) [text/plain]
Saving to: 'brcmfmac43455-sdio.raspberrypi,4-model-b.txt'

brcmfmac43455-sdio. 100%[===================>] 1.84K --.-KB/s in 0.001s

2021-05-06 06:53:43 (3.30 MB/s) - 'brcmfmac43455-sdio.raspberrypi,4-model-b.txt' saved [1883/1883]

FINISHED --2021-05-06 06:53:43--
Total wall clock time: 3.1s
Downloaded: 3 files, 4.4K in 0.001s (3.14 MB/s)
[alarm@alarmpi firmware-raspberrypi]$ makepkg -sri
==> Making package: firmware-raspberrypi 20210223-1 (Thu May 6 06:54:10 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading BCM43430A1.hcd...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 190 100 190 0 0 75 0 0:00:02 0:00:02 --:--:-- 75
100 30049 100 30049 0 0 6790 0 0:00:04 0:00:04 --:--:-- 33276
-> Downloading BCM4345C0.hcd...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 189 100 189 0 0 99 0 0:00:01 0:00:01 --:--:-- 99
100 57622 100 57622 0 0 13441 0 0:00:04 0:00:04 --:--:-- 48749
-> Found brcmfmac43455-sdio.raspberrypi,4-model-b.txt
-> Downloading brcmfmac43430-sdio.txt...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1014 100 1014 0 0 333 0 0:00:03 0:00:03 --:--:-- 333
-> Downloading brcmfmac43456-sdio.bin...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196 100 196 0 0 89 0 0:00:02 0:00:02 --:--:-- 89
100 484k 100 484k 0 0 50908 0 0:00:09 0:00:09 --:--:-- 121k
-> Downloading brcmfmac43456-sdio.clm_blob...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 201 100 201 0 0 56 0 0:00:03 0:00:03 --:--:-- 56
100 7163 100 7163 0 0 987 0 0:00:07 0:00:07 --:--:-- 2135
-> Downloading brcmfmac43456-sdio.txt...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196 100 196 0 0 98 0 0:00:02 0:00:01 0:00:01 98
100 2053 100 2053 0 0 532 0 0:00:03 0:00:03 --:--:-- 2701
-> Found RPi-WM8804.conf
==> Validating source files with sha256sums...
BCM43430A1.hcd ... Passed
BCM4345C0.hcd ... Passed
brcmfmac43455-sdio.raspberrypi,4-model-b.txt ... Passed
brcmfmac43430-sdio.txt ... Passed
brcmfmac43456-sdio.bin ... Passed
brcmfmac43456-sdio.clm_blob ... Passed
brcmfmac43456-sdio.txt ... Passed
RPi-WM8804.conf ... Passed
==> Extracting sources...
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "firmware-raspberrypi"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: firmware-raspberrypi 20210223-1 (Thu May 6 06:54:52 2021)
==> Installing package firmware-raspberrypi with pacman -U...
[sudo] password for alarm:
loading packages...
warning: downgrading package firmware-raspberrypi (20210224-1 => 20210223-1)
resolving dependencies...
looking for conflicting packages...

Packages (1) firmware-raspberrypi-20210223-1

Total Installed Size: 0.57 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [####################################################] 100%
(1/1) checking package integrity [####################################################] 100%
(1/1) loading package files [####################################################] 100%
(1/1) checking for file conflicts [####################################################] 100%
(1/1) checking available disk space [####################################################] 100%
:: Processing package changes...
(1/1) downgrading firmware-raspberrypi [####################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[alarm@alarmpi firmware-raspberrypi]$
')
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby graysky » Thu May 06, 2021 12:08 pm

Please confirm:
1) If you freshly installed the firmware, I believe that a reboot is required to initialize elements from them.
2) The current repo packages do NOT supply you with a functional BT or Wifi?
3) The older experimental build at my github repo does NOT supply you with a functional BT or Wifi?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: [firmware-raspberrypi] Rpi 400 wifi drivers are missing

Postby jyno » Thu May 06, 2021 11:38 pm

1) Confirmed.
2) Confirmed.
3) Confirmed.
jyno
 
Posts: 67
Joined: Wed May 05, 2021 4:37 pm

PreviousNext

Return to Packages

Who is online

Users browsing this forum: No registered users and 9 guests