LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-19-2021, 12:09 PM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
error with driver in a raspberry pi4 Raspbian; how to overwrite with a better one?


hello,
following errors appear in the dmesg; how to get rid of it? any advice is welcome (dont disturb for now; just the red color disturb a bit).
Thanks a lot.
dmesg
Quote:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.7-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1395 SMP Mon Jan 18 16:17:57 GMT 2021
[ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
...
[ 4.861336] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 4.863125] usbcore: registered new interface driver brcmfmac
[ 4.889043] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
[ 5.124373] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.134759] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea
...
 
Old 01-20-2021, 06:52 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,281

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Ah, that's a familiar name, as I had my own issues there. It's in /lib/firmware/brcm/. Is the wifi working? I'm on RazPi OS, I see you're on Ubuntu. A kernel firmware upgrade might sort it. That's done every time you upgrade the kernel firmware. Razpi OS has patched firmware, so I can't really help you more
 
Old 01-20-2021, 02:21 PM   #3
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Thanks.
I dont use wifi on that raspberry. It will be a small server for testing an expert system accessible via web interface. its reachable via ssh.
In /lib/firmware/brcm/ are several files. Perhaps I should download the
Quote:
brcmfmac43455-sdio.bin
brcmfmac43455-sdio.clm_blob
brcmfmac43455-sdio.txt
from anywhere (where? how?) and just overwrite?

Update: according https://www.raspberrypi.org/forums/v...c.php?t=225906
Quote:
sudo rmmod brcmfmac
works
Quote:
sudo insmod /lib/modules/5.10.7-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
gives insmod: ERROR: could not insert module /lib/modules/5.10.7-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko: Invalid module format
and dmesg show brcmfmac: disagrees about version of symbol module_layout
brcmfmac.ko is perhaps wrong and should be updated with a new one?

Last edited by floppy_stuttgart; 01-20-2021 at 02:51 PM.
 
Old 01-21-2021, 12:54 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ Don't use insmod/rmmod if you can use modprobe instead.

floppy_stuttgart, please use CODE tags for code and output, not quote tags. See my signature.

I assume you are refering to this line:
Code:
[ 4.889043] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2
Here's a search for the edited error message - if your device has wifi hardware but you don't use it, you could blacklist the driver?
 
Old 01-21-2021, 05:29 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,281

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by floppy_stuttgart View Post
Thanks.
I dont use wifi on that raspberry. It will be a small server for testing an expert system accessible via web interface. its reachable via ssh.
In /lib/firmware/brcm/ are several files. Perhaps I should download the

from anywhere (where? how?) and just overwrite?

Update: according https://www.raspberrypi.org/forums/v...c.php?t=225906
works

gives insmod: ERROR: could not insert module /lib/modules/5.10.7-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko: Invalid module format
and dmesg show brcmfmac: disagrees about version of symbol module_layout
brcmfmac.ko is perhaps wrong and should be updated with a new one?
As I said
Quote:
Originally Posted by business_kid
A kernel firmware upgrade might sort it.
 
Old 01-21-2021, 01:10 PM   #6
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Since I did not know how to upgrade that firmware (all available raspbian standard upgrade were not working), I just blacklisted the module as indicated
Quote:
sudo nano /etc/modprobe.d/blacklist-diverse.conf
and included the line
Quote:
blacklist brcmfmac
the error message is gone after reboot. All fine.
Thanks for the support.
 
Old 01-22-2021, 03:50 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,281

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Most probably i9t's from a different kernel version.
 
Old 01-23-2021, 07:48 AM   #8
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
despite it works, I am searching for a better solution in case the wifi is used later (copy a working bin to the driver area).I will document my tries here.
here are some advices https://github.com/raspberrypi/firmware/issues/1403
any remark from anyone is welcome in case I am bullshitting here ;-)

Try a)
lets try the download of https://drive.google.com/file/d/1vz3...kUK3rh8fC/view
how to download a file ? see there https://stackoverflow.com/questions/...ive-using-wget and there https://www.matthuisman.nz/2019/01/d...wget-curl.html
Quote:
sudo wget -O brcmfmac43455-sdio.bin "https://drive.google.com/uc?export=downlod&id=1vz30u4UFWWA8Uh5ivo78ppYkUK3rh8fC"
sudo cp brcmfmac43455-sdio.bin /lib/firmware/brcm/
sudo md5sum /lib/firmware/brcm/brcmfmac43455-sdio.bin
0a45a7a828e49e20fee2fe0438149523 /lib/firmware/brcm/brcmfmac43455-sdio.bin
Quote:
dmesg |grep "brcmfmac.*Firmware"
[ 5.111749] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: May 20 2020 00:36:51 version manifest (de496ab CY) FWID 01-12aa6092
sudo reboot
.. small "red" still there in dmesg output. But "error -2" gone. looks better.

Try b)
Quote:
sudo wget -O brcmfmac43455-sdio-88ee44ea.bin "https://drive.google.com/uc?export=downlod&id=10ivocg5PrOwVxAYFKOzJEdv_gdCd-IUF"
sudo mv brcmfmac43455-sdio-88ee44ea.bin brcmfmac43455-sdio.bin
sudo cp brcmfmac43455-sdio.bin /lib/firmware/brcm/
Quote:
sudo md5sum /lib/firmware/brcm/brcmfmac43455-sdio.bin
c4d098fdac7b453408341d5709481b10 /lib/firmware/brcm/brcmfmac43455-sdio.bin
Quote:
dmesg |grep "brcmfmac.*Firmware"
[ 4.936618] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 23 2020 02:19:54 version 7.45.206 (r725000 CY) FWID 01-88ee44ea
sudo reboot
.. error still there.. oh no. I was coming back to previous driver. Forget Try b.

Try c) .. perhaps to come. However, since I am not using wifi, I cannot test Try a) and "error -2" is gone. lets stop here for now.

Last edited by floppy_stuttgart; 01-23-2021 at 07:53 AM.
 
Old 01-23-2021, 10:39 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,281

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I never got your error, but I did have wifi weirdness.

I got one of the arm-specific kernel releases periodically linked on the Slackware Arm list, which gave me the vanilla firmware blobs. I also had the installed RazPi (=Debian) firmware, which was different. The Debian one was bigger. But they both worked. I tested them.

I found it insensitive, slow, and the aluminium case I had it in as an alternative to some gutless, noisy and dead cheap fan actually acted as a Faraday shield and made the wifi slow. I think the wifi crowding locally prevented it being sensitive.I haven't looked back with an external one.

Last edited by business_kid; 01-23-2021 at 11:15 AM.
 
Old 01-23-2021, 01:45 PM   #10
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by business_kid View Post
I never got your error, but I did have wifi weirdness.

I got one of the arm-specific kernel releases periodically linked on the Slackware Arm list, which gave me the vanilla firmware blobs. I also had the installed RazPi (=Debian) firmware, which was different. The Debian one was bigger. But they both worked. I tested them.

I found it insensitive, slow, and the aluminium case I had it in as an alternative to some gutless, noisy and dead cheap fan actually acted as a Faraday shield and made the wifi slow. I think the wifi crowding locally prevented it being sensitive.I haven't looked back with an external one.
Haha. My pi4 server has a good looking aluminium case. https://www.reichelt.de/gehaeuse-fue...s_0&nbc=1&&r=1
it could be an issue? That would be no wonder for me, a wifi behind an aluminium shield. Good thinking; changing to a plastic case when I will use wifi.
 
Old 01-23-2021, 07:04 PM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by floppy_stuttgart View Post
Haha. My pi4 server has a good looking aluminium case. https://www.reichelt.de/gehaeuse-fue...s_0&nbc=1&&r=1
it could be an issue? That would be no wonder for me, a wifi behind an aluminium shield. Good thinking; changing to a plastic case when I will use wifi.
For you or anyone else reading who may want to be rid of the wifi, bluetooth or audio on the install.


Code:
# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
# Added by me to disable audio
dtparam=audio=off

[all]
#dtoverlay=vc4-fkms-v3d
# Added by me to disable wifi and bluetooth
dtoverlay=disable-wifi
dtoverlay=disable-bt
Will do it and my wifi worked out of the box on the default kernel in Raspian Buster, until I disabled it.

Edit: settings are made in the /boot/config.txt near the bottom for the audio and at the bottom for the wifi and bluetooth edits.

Last edited by HappyTux; 01-23-2021 at 07:07 PM.
 
1 members found this post helpful.
Old 01-24-2021, 02:54 AM   #12
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Fine. I will disconnect the whole internal stuff since I dont use it and it's damaged by the aluminium case.
Looks like my aluminium case is the worst of all for the PI 4 wifi behaviour; see link/analysis below (no wonder.. metal around wifi.. the dead of wifi).
So, if the PI 4 should have a multipurpose use, my recommendation would be NEVER BUY A METAL CASE if the internal wifi should be used (an additional external wifi is possible anytime).
https://www.martinrowan.co.uk/2019/0...ry-pi-4-cases/
 
Old 01-24-2021, 06:22 AM   #13
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,281

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I have the Flirc case for my Pi 4, and started with 500Kbps to 2Mbps. The Flirc case has 5 metal sides and one plastic one. By pointing the plastic in the (nearest to) line of sight, I got a significant improvement Not only has inbuilt wifi a lower capability, but it also has less sensitivity. Th neuter it, in /boot/config.txt, add
Code:
dtoverlay=pi3-disable-wifi
 
Old 01-25-2021, 12:32 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by business_kid View Post
The Flirc case has 5 metal sides and one plastic one. By pointing the plastic in the (nearest to) line of sight, I got a significant improvement
So it works like a "cantenna", possibly even boosting the signal? Clever.
 
Old 01-25-2021, 05:55 AM   #15
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,281

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by ondoho View Post
So it works like a "cantenna", possibly even boosting the signal? Clever.
Not really, it nearly kills wifi unless you give it line of sight, then it acts as an attenuator. And it wasn't a fast wifi to begin with. The Pi is too small to have it's own wifi aerial, with digital tracks adjacent to the aerial on 2 layers.
 
  


Reply

Tags
buster, raspberry pi 4, raspbian



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
Parrot on Berryboot/Raspberry Pi4 the red poppet Linux - Embedded & Single-board computer 4 01-18-2021 11:38 AM
Raspberry Pi4 does not show on the HDMI the 3.5" TFT display output dr_berta Linux - Hardware 8 11-27-2020 12:38 PM
What OS for an ISPcorporate datacentre based on Raspberry PI4 ronatartifact Linux - Server 16 10-04-2019 09:30 AM
LXer: Raspberry WebKiosk 6.0 Released for Raspberry Pi, Based on Raspbian Jessie Lite LXer Syndicated Linux News 0 04-28-2017 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:26 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