User avatar
carriba
Posts: 139
Joined: Tue Nov 18, 2014 5:55 pm
Contact: ICQ

Re: Wireless firmware testers wanted

Tue Feb 27, 2018 11:57 am

Please pay attention to my post viewtopic.php?f=66&t=205485&p=1278761#p1278750 that describes the situation of a Raspbian Stretch OS crash that always occurs when the RPi 0 W device looses its connection to a Wifi AP that advertises its SSID, and then is retrying to regain the WLAN connection back to the same Wifi AP.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Wireless firmware testers wanted

Tue Feb 27, 2018 12:21 pm

Yes, we are pretty sure that something untoward has crept in to the latest firmware and it was missed in testing.. It's under investigation at Cypress. We will probably roll back to the previous version until this issue is resolved.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5967
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Wireless firmware testers wanted

Wed Feb 28, 2018 3:38 pm

We've reverted the firmware back to the previous version until we have a fix.

User avatar
DougieLawson
Posts: 36150
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Wireless firmware testers wanted

Wed Feb 28, 2018 3:44 pm

ShiftPlusOne wrote:
Wed Feb 28, 2018 3:38 pm
We've reverted the firmware back to the previous version until we have a fix.
Thank you. I've got two of my Raspberries that weren't playing nicely. One is RPi3B, the other is an original Zero with a BRCM 43143 dongle. I've reverted both to the previous version (from a local backup).

Is there going to be another new beta or do the folks at Cypress still have some educational baseball bat treatment in the schedule before they'll be ready to break another million raspberries?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Tfontoura
Posts: 9
Joined: Sat Jul 01, 2017 1:31 am

Re: Wireless firmware testers wanted

Fri Mar 02, 2018 8:14 pm

ShiftPlusOne wrote:
Wed Feb 28, 2018 3:38 pm
We've reverted the firmware back to the previous version until we have a fix.
How to get back to the previous (good) firmware version? Can we download the bin file from somewhere? Or is there another solution?

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: Wireless firmware testers wanted

Fri Mar 02, 2018 9:09 pm

Tfontoura wrote:
Fri Mar 02, 2018 8:14 pm
How to get back to the previous (good) firmware version? Can we download the bin file from somewhere? Or is there another solution?
Try another sudo apt update and sudo apt upgrade

MrEngman
Posts: 3850
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wireless firmware testers wanted

Fri Mar 02, 2018 9:57 pm

Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Tfontoura
Posts: 9
Joined: Sat Jul 01, 2017 1:31 am

Re: Wireless firmware testers wanted

Sat Mar 03, 2018 11:54 am

Thanks @allfox and @MrEngman

mcblack
Posts: 4
Joined: Sun Mar 04, 2018 11:40 am

Re: Wireless firmware testers wanted

Sun Mar 04, 2018 1:27 pm

I have tested the firmware in view of freezing of my Pi's at the time that wifi is restored after rebooting my router. Also with this new firmware the freezing problem still excists.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Wireless firmware testers wanted

Sun Mar 04, 2018 7:14 pm

mcblack wrote:
Sun Mar 04, 2018 1:27 pm
I have tested the firmware in view of freezing of my Pi's at the time that wifi is restored after rebooting my router. Also with this new firmware the freezing problem still excists.
Hmm, odd. I wonder if there is also an issue with the linux side driver that has turned up at the same time as the firmware change.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

mcblack
Posts: 4
Joined: Sun Mar 04, 2018 11:40 am

Re: Wireless firmware testers wanted

Sun Mar 04, 2018 8:09 pm

I have solved my problem with freezing Pi when rebooting router using old firmware from jessie as attached.
Also tested with the firmware from Stretch Lite and they appeared to be working as well!
brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378

Replaced following files in /lib/firmware/brcm/:
brcmfmac43430-sdio.bin
brcmfmac43430-sdio.txt
Attachments
brcmfmac_driver.zip
(241.23 KiB) Downloaded 64 times

wolfgangrupprecht
Posts: 1
Joined: Mon Mar 05, 2018 8:47 pm

Re: Wireless firmware testers wanted

Mon Mar 05, 2018 9:03 pm

I just got the new batch of wifi firmware a few days ago with the latest apt update/upgrade. Previous firmware worked flawlessly for over 6 months. The current firmware causes my rpi 3B to either drop off the wifi net entirely or to allow an incoming ssh but not much more. An outgoing rsync over IPv6 (in case it matters) now comes back with a permissions error or just a hang. The pki keys for remote login haven't changed in 6 months. The problem is most likely related to the wifi and dropped or trashed packets. None of the ethernet connected RPI 3B's have that problem. They still rsync just fine.

Setting up firmware-realtek (1:20161130-3+rpt2) ...
Setting up firmware-libertas (1:20161130-3+rpt2) ...
Setting up firmware-atheros (1:20161130-3+rpt2) ...
Setting up firmware-brcm80211 (1:20161130-3+rpt2) ...

Can someone please point me to instructions for rolling back the wifi firmware?

pcmanbob
Posts: 6939
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Wireless firmware testers wanted

Mon Mar 05, 2018 11:52 pm

Can someone please point me to instructions for rolling back the wifi firmware?
ShiftPlusOne wrote:
Wed Feb 28, 2018 3:38 pm
We've reverted the firmware back to the previous version until we have a fix.
allfox wrote:
Fri Mar 02, 2018 9:09 pm
Try another sudo apt update and sudo apt upgrade

Have you tried the fix as already posted .
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

leemoore1966
Posts: 25
Joined: Sat Aug 29, 2015 2:39 pm

Re: Wireless firmware testers wanted

Tue Mar 06, 2018 10:07 am

jamesh wrote:
Wed Jan 24, 2018 3:14 pm
Sure, something along these lines (i have simply typed these in here, not C&P, so may be typo's)
unzip the file to produce the brcmfmac43430-sdio.bin file
...
Hi James,
Apologies for the long time getting back to this.

Finally got around to trying the patch (even though I could see it had been pulled from release)
unfortunately it has no effect on the issue I am seeing.

I am very confused about the bug I see, and can easily reproduce

I am sending small udp packets over WiFi once a second from an RPI3 setup as an AP.
The WiFi client receiver has a critical timeout of 5 seconds, and occasionally nothing is received for 5 seconds which causes a break to the entire system. In fact I have written a special test harness, and what you can see is that at the receiver the UDP packets regularly block for 1-3 seconds (perhaps 1 a minute) then arrive in a burst, and very occasionally they break the 5 second timeout.

So I am not seeing a loss of data, but a blocking - latency issue on transmission
I have also monitored the UDP Transmit buffers /proc/net/udp, and where the 'stalls' occur, I do see a transmit buffer growing, then flushing, so very convinced the issue is at the transmission end.

If I use the wired network, so that UDP packets are sent & received over the wired interface - there are no issues whatsoever, and I see a regular beat 1 per second, so I presume I can rule out a basic kernel/scheduling issue.

The strange thing is I can send huge amounts of data using UDP, and it is very reliable, the issue is the latency stalling issue.
I think under no circumstances should a small UDP packet (less than an MTU of 1500 bytes) be stalled for upto 5 seconds, nor should I see regular stalls once a minute - bearing in mind the system is very lightly loaded.

And in fact I should mention this is not isolated to UDP, I see the same behavior when using TCP for transmission.
Wired interface, regular 1 second intervals
WiFi interface, erratic stalls and latency

any help greatly appreciated, not sure what approach to pursue next.

Thx
Lee

leemoore1966
Posts: 25
Joined: Sat Aug 29, 2015 2:39 pm

Re: Wireless firmware testers wanted

Tue Mar 06, 2018 10:53 am

jamesh wrote:
Wed Jan 24, 2018 3:14 pm
Sure, something along these lines (i have simply typed these in here, not C&P, so may be typo's)
unzip the file to produce the brcmfmac43430-sdio.bin file

Code: Select all

unzip brcmfmac43430-sdio.zip
Backup old file

Code: Select all

sudo cp /lib/firmware/brcm/brcmfmac43430-sdio.bin /lib/firmware/brcm/brcmfmac43430-sdio.bin.old
Copy the new file to /lib/firmware/brcm

Code: Select all

sudo cp brcmfmac43430-sdio.bin /lib/firmware/brcm/
Reboot
Hi James,
following my previous email, I am not sure your instructions actually had an effect.
I followed your description above, but when I reboot, I notice the following message when running dmesg

Code: Select all

[    4.340240] usbcore: registered new interface driver brcmfmac
[    4.557765] brcmfmac: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[    7.564934] brcmfmac: power management disabled
So I am guessing this has not loaded ?
the current contents of this directory aer as follows

Code: Select all

-rw-r--r-- 1 root root  96224 Jun  7  2016 bcm43xx-0.fw
-rw-r--r-- 1 root root    180 Jun  7  2016 bcm43xx_hdr-0.fw
-rw-r--r-- 1 root root 397312 Jun  7  2016 brcmfmac43143.bin
-rw-r--r-- 1 root root 385067 Jun  7  2016 brcmfmac43143-sdio.bin
-rw-r--r-- 1 root root 455745 Jun  7  2016 brcmfmac43241b0-sdio.bin
-rw-r--r-- 1 root root 403855 Jun  7  2016 brcmfmac43241b4-sdio.bin
-rw-r--r-- 1 root root 253748 Jun  7  2016 brcmfmac4329-sdio.bin
-rw-r--r-- 1 root root 222126 Jun  7  2016 brcmfmac4330-sdio.bin
-rw-r--r-- 1 root root 451566 Jun  7  2016 brcmfmac4334-sdio.bin
-rw-r--r-- 1 root root 569291 Jun  7  2016 brcmfmac4335-sdio.bin
-rw-r--r-- 1 root root 219557 Jun  7  2016 brcmfmac43362-sdio.bin
-rw-r--r-- 1 root root 388739 Mar  6 10:36 brcmfmac43430-sdio.bin
-rw-r--r-- 1 root root 388739 Mar  6 10:35 brcmfmac43430-sdio.bin.new
-rw-r--r-- 1 root root 369576 Mar  6 10:36 brcmfmac43430-sdio.bin.old
-rw-r--r-- 1 root root   1108 Jun  7  2016 brcmfmac43430-sdio.txt
-rw-r--r-- 1 root root 507752 Jun  7  2016 brcmfmac4354-sdio.bin
So I presume it is required to have some binding to indicate which of these to load ?

thx
Lee

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Wireless firmware testers wanted

Tue Mar 06, 2018 11:40 am

The driver knows which firmware to load - that folder contains loads for different sorts of wireless adaptor.

Things have moved on a bit - we did release the latest firmware but have had some regressions so have rolled it back (we think we now know the problem - currently testing a fix). Might be worth waiting until we release the new firmware again, and just using that. If tests go well, it won't be long.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

leemoore1966
Posts: 25
Joined: Sat Aug 29, 2015 2:39 pm

Re: Wireless firmware testers wanted

Tue Mar 06, 2018 1:17 pm

jamesh wrote:
Tue Mar 06, 2018 11:40 am
The driver knows which firmware to load - that folder contains loads for different sorts of wireless adaptor.

Things have moved on a bit - we did release the latest firmware but have had some regressions so have rolled it back (we think we now know the problem - currently testing a fix). Might be worth waiting until we release the new firmware again, and just using that. If tests go well, it won't be long.
Hi James,
Many thanks for the update, once available, I will try again.

Coming back to my description of my problem, is it likely that any updates are addressing the issue I described.
If not, is there a way I can formalise the issue I am experiencing for it to be investigated ?

Thx
Lee

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Wireless firmware testers wanted

Tue Mar 06, 2018 1:37 pm

Unfortunately, Cypress have not supplied us with a specific list of issues this firmware fixes. It's basically their most recent build, which presumably is the best they can do.

Once you have been able to try it, and if you still see the issue, then add an item to our github issues system. As much data as possible on how to replicate is useful. We can them pass that information on to Cypress if we think it's a firmware problem, or the Linux driver developers or we can check ourselves if on the Linux side.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

macmpi
Posts: 38
Joined: Tue Dec 15, 2015 9:39 pm

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 7:43 am

@ jamesh,
does new wifi firmware require updated Pi firmware and/or latest 4.14 kernel for proper operations?
This gets a bit confusing...

Current firmware-brcm80211 package (1:0.43+rpi6 as of writing) has reverted wifi firmware, right?
Shall we expect an updated firmware-brcm80211 package will soon contain updated/final Pi3/Pi0W wifi firmware (and eventually newer Pi3+) suitable for 4.9 and 4.14, or will 4.14 be required?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 7:49 am

4.14 works fine with the new firmware, and the driver fix has been backported to 4.9 so will be available through apt.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

macmpi
Posts: 38
Joined: Tue Dec 15, 2015 9:39 pm

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 8:03 am

Thanks for the quick response.
What is "new" referring to now (which file version number, apt package version, commit# on github repo,...)?

So, which apt package (& version) shall I take if I build my own distribution, either on 4.9 or 4.14?

MrEngman
Posts: 3850
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 10:08 am

Updated my Pi 3 to kernel 4.14.26 via rpi-update and the built in wifi will not connect to my network

dmesg re brcmfmac shows

Code: Select all

pi@Pi-3-src:~ $ dmesg | grep brcmfmac
[    3.271535] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    3.277532] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[    3.277794] usbcore: registered new interface driver brcmfmac
[    3.489670] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Aug  7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
[    3.490441] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.41 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-08-07 00:37:47
[    4.485258] brcmfmac: power management disabled
[   16.279767] brcmfmac: brcmf_sdio_hostmail: Unknown mailbox data content: 0x40012
[   18.791504] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   18.795066] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   21.351520] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   21.355076] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   21.355088] brcmfmac: brcmf_pno_clean: failed code -110
[   28.871553] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   28.875113] brcmfmac: brcmf_sdio_checkdied: firmware trap in dongle
[   28.875126] brcmfmac: brcmf_do_escan: error (-110)
[   28.875133] brcmfmac: brcmf_cfg80211_scan: scan error (-110)
However, my Pi 0 W, also updated to 4.14.26 is working fine.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

MrEngman
Posts: 3850
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 10:57 am

Just created a new SD card using the latest kernel image 2018-03-13-raspbian-stretch-lite and the wifi is now working.

Updated to kernel 4.14.26 using rpi-update and it is still working.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23682
Joined: Sat Jul 30, 2011 7:41 pm

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 11:09 am

MrEngman wrote:
Thu Mar 15, 2018 10:57 am
Just created a new SD card using the latest kernel image 2018-03-13-raspbian-stretch-lite and the wifi is now working.

Updated to kernel 4.14.26 using rpi-update and it is still working.
I suspect a issue in the update for the Pi3.

To double check the wireless version is what I hope it is, can you

dmesg | grep brcmfmac

And get the firmware version and date?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
"My grief counseller just died, luckily, he was so good, I didn't care."

MrEngman
Posts: 3850
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wireless firmware testers wanted

Thu Mar 15, 2018 11:26 am

jamesh wrote:
Thu Mar 15, 2018 11:09 am
MrEngman wrote:
Thu Mar 15, 2018 10:57 am
Just created a new SD card using the latest kernel image 2018-03-13-raspbian-stretch-lite and the wifi is now working.

Updated to kernel 4.14.26 using rpi-update and it is still working.
I suspect a issue in the update for the Pi3.

To double check the wireless version is what I hope it is, can you

dmesg | grep brcmfmac

And get the firmware version and date?
Ran dmesg | grep brcmfmac when it failed and it is in my post 3 posts back.

Now it is working dmesg | grep brcmfmac now shows

Code: Select all

pi@Pi-3-test:~ $ dmesg | grep brcmfmac
[    3.681700] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[    3.695297] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
[    3.695557] usbcore: registered new interface driver brcmfmac
[    3.918345] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[    3.919257] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.39 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-10-23 03:47:14
[    5.233058] brcmfmac: power management disabled
Shows a difference in the firmware version. I'm sure at some point I loaded the firmware you suggested to revert to a working version using

Code: Select all

wget http://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/firmware-brcm80211_20161130-3+rpi2_all.deb
sudo dpkg -i firmware-brcm80211_20161130-3+rpi2_all.deb
but seems it may have changed again.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

Return to “General discussion”