thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Thu Jun 24, 2021 11:09 pm

I've done some more searching on Korean forums. Yeah, this seems to be a country-wide issue related to the radio firmware since version 7.45.98.38 was released in Mar 2018. People here are either giving up on the built-in WiFi and using a dongle, or, as I just learned, they go through a process of hacking the regulatory database. They build a new regulatory.bin file by copying the US section into the KR section and editing 2.4 GHz band entry to match Korea's.

Here is a writeup (in Korean, but with translate you can get the gist of it) of the process. I have not tried this, I'm holding out for a more official solution.
https://www.clien.net/service/board/cm_rasp/15050269

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4052
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Jun 25, 2021 11:13 am

It doesn't sound very likely that spl237 would create a Cypress ticket - he would just ask me to - and I couldn't find any record of one. I can reproduce the behaviour and have opened a new ticket for it.

The reason that I find it unlikely that the same issue causing the 43455 CC problem is responsible for the KR failure is that the 43438 firmware is product-specific, so it shouldn't have multiple "regrev"s for CCs - just one.

thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Jun 25, 2021 8:04 pm

Thanks for checking this. I’m these cases, what’s the typical turn around time to a fix? Are we talking days, weeks, months? I’m facing the decision whether to wait for an official solution or temporarily try the hack posted above.

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

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Jun 25, 2021 8:06 pm

thestumbler wrote:
Fri Jun 25, 2021 8:04 pm
Thanks for checking this. I’m these cases, what’s the typical turn around time to a fix? Are we talking days, weeks, months? I’m facing the decision whether to wait for an official solution or temporarily try the hack posted above.
It will be quicker to try the hack. Cypress can be slow to respond, depends how busy they are.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Working in the Applications Team.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4052
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Wed Jun 30, 2021 8:05 pm

I couldn't make the hack work, even after recompiling the kernel to get it to accept unsigned (or differently signed) regulatory dbs. I could see using "iw reg get" that changes to the regulatory info for KR were having an effect, but that wasn't enough to make it work.

Cypress have asked a few questions but not come back with any suggestions yet.

thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Wed Jun 30, 2021 11:16 pm

Yeah, that was my experience, too, although I was [edit]NOT[/edit] as confident as you that I did it correctly.
I got an email back from the original hacker, and he wasn't sure whether they got it working on Pi Zero or not.
They were focused on some issue regarding Pi 4.

thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Jul 23, 2021 10:09 am

Just curious, any updates on this?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4052
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Jul 23, 2021 10:20 am

We've been told that 43430 WiFi firmware contains a clm_blob that requires the use of non-zero versions of the CC settings in order to work correctly in some regions - "KR" being the main one. The brcmfmac driver does not support this usage except via obsolete board support code. The suggested route forward is the creation of a number of product-specific clm_blob files, and a firmware with no built-in clm_blob. This requires a large number of spreadsheets to be filled out and submitted, and is taking some time to complete.

In the meantime I located a clm_blob file that appears to work better. Try downloading this (https://github.com/pftf/RPi3/blob/maste ... o.clm_blob) and copying it into /lib/firmware/brcm.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4052
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Thu Jul 29, 2021 9:14 am

Update: We have a trial clm_blob file from Cypress. This is unlikely to be the final version, but early testing suggests that it will at least restore the missing channels in some CCs: https://drive.google.com/file/d/1aT-Eq4 ... sp=sharing

As before, it should be copied into /lib/firmware/brcm, which will require root privilege ("sudo cp ..."). To revert the change, just delete the file (there should be nothing there at present).

thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Jul 30, 2021 3:59 am

Hmm, no joy. I tried both blobs, same failure.

Code: Select all

Jul 30 12:53:08 raspi0-gpib kernel: usbcore: registered new interface driver cdc_ether
Jul 30 12:53:08 raspi0-gpib kernel: brcmfmac: F1 signature read @0x18000000=0x1541a9a6
Jul 30 12:53:08 raspi0-gpib kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
Jul 30 12:53:08 raspi0-gpib kernel: usbcore: registered new interface driver brcmfmac
Jul 30 12:53:08 raspi0-gpib kernel: brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
Jul 30 12:53:08 raspi0-gpib kernel: usb 1-1: reset high-speed USB device number 2 using dwc_otg
Jul 30 12:53:08 raspi0-gpib kernel: Indeed it is in host mode hprt0 = 00001101
Jul 30 12:53:09 raspi0-gpib kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
Jul 30 12:53:09 raspi0-gpib kernel: ieee80211 phy0: brcmf_c_process_clm_blob: clmload (4733 byte file) failed (-52)
Jul 30 12:53:09 raspi0-gpib kernel: ieee80211 phy0: brcmf_c_preinit_dcmds: download CLM blob file failed, -5
Jul 30 12:53:09 raspi0-gpib kernel: ieee80211 phy0: brcmf_bus_started: failed: -5
Jul 30 12:53:09 raspi0-gpib kernel: ieee80211 phy0: brcmf_attach: dongle is not responding: err=-5
Jul 30 12:53:09 raspi0-gpib kernel: brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed
I tried on two different Pi Zeros. I also wondered if there might be some interaction because of the USB to LAN adaptor, but booting in an isolated mode (no network, just a keyboard and a monitor) resulted in these same error messages.

-Chris

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4052
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Tue Aug 03, 2021 3:23 pm

You'll also need to download a trial firmware that doesn't have a built-in clm_blob file. There is one available here: https://drive.google.com/file/d/16orVPz ... sp=sharing

It will download as brcmfmac43430-sdio.ext_blob.bin, but will have to be copied to the usual name and location: /lib/firmware/brcm/brcmfmac43430-sdio.bin

thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Mon Aug 09, 2021 10:43 am

Woohoo! That did the trick. The 'fix' was to

* copy the trial clm_blob file from Cypress, brcmfmac43430-sdio.clm_blob
* replace (saving the original) brcmfmac43430-sdio.bin

Code: Select all

pi@raspi0-gpib2:~ $ ifconfig
<snip>
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.138  netmask 255.255.255.0  broadcast 192.168.1.255
        ether b8:27:eb:14:8d:e9  txqueuelen 1000  (Ethernet)
        RX packets 56  bytes 7383 (7.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 2317 (2.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 

thestumbler
Posts: 18
Joined: Thu May 06, 2021 7:09 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Thu Aug 19, 2021 6:29 am

Can you hazard a guess when this patch will be mainstream? It's not urgent for my particular application, but just curious, so I can forward to the couple of Korean folks I know who have been impacted by this.
-Chris

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4052
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Thu Aug 19, 2021 10:29 am

I was hoping to get a bit more feedback before releasing. Would you consider asking your Korean friends to test the trial firmware and blob?

bluedisk
Posts: 1
Joined: Sun Aug 29, 2021 10:45 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Sun Aug 29, 2021 11:03 am

OMG! I can't believe it! It works like a charm!!

FYI, I'm in Korea and stressed by the malfunctioning WIFI on RPi4.

So, I've tested it on RPi4 like
- download brcmfmac43455-sdio.* from https://github.com/pftf/RPi3/tree/master/firmware
- copy all the files to the /lib/firmware/brcm/ - I just overwrote those files without backup because it wasn't working anyway. ;)
- sync & reboot

Then~~! Tada! It's working perfectly without any additional steps!
I didn't expect a positive result but it's awesome!
I've tested it multiple times. So, I can guarantee it's way better than before.

I really love this solution. plz, apply it to the official release!

beowulf
Posts: 1
Joined: Sat Sep 04, 2021 4:44 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Sat Sep 04, 2021 4:48 am

The firmware from https://github.com/pftf/RPi3.git saved my RPi4, 3, and ZeroW which was in trouble with Wifi setup in South Korea. Thank a lot!

lordmiss
Posts: 1
Joined: Fri Sep 10, 2021 12:17 am

Re: Any Updates on the Pi Zero Wifi in South Korea Issue?

Fri Sep 10, 2021 12:19 am

This solved the most nagging bug of my raspberry pi 3. It worked like a charm!

Please use these files in the next official release!

Return to “Troubleshooting”