Wifi/bluetooth issues

Thanks for your feedback. I’m running this kernel: kernel 5.16.0-1-librem5

and this firmware version:
redpine_91x: FW Version : 0.2.0.16
redpine_91x: RSI FW Version : 1610.0.2.0.0024
redpine_91x: Driver Version : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
redpine_91x: Operating mode : 5 [Wi-Fi STA + BT EDR]
redpine_91x: Firmware file : RS9116_NLINK_WLAN_BT_IMAGE.rps

On https://source.puri.sm/Librem5/redpine-firmware-nonfree the FW Version is: 1.2.20.0 which seems to be newer, but these scripts are only for devkit, birch and chestnut.

In /etc/modprobe.d/librem5-devkit.conf dev_oper_mode is set to 5

There are no messages in dmesg the moment wifi stops working. So, when yours is working at the same time, I assume that my wifi/bluetooth card is defective?

I have:

redpine_91x: FW Version : 1.2.20.0
redpine_91x: RSI FW Version     :  0000.1.2.0.0502
redpine_91x: Driver Version     : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
redpine_91x: Operating mode     : 5 [Wi-Fi STA + BT EDR]
redpine_91x: Firmware file      : RS9116_NLINK_WLAN_BT_IMAGE.rps

IIRC, one has to place the file RS9116_NLINK_WLAN_BT_IMAGE.rps in some dir and it gets loaded automagically on boot…

1 Like

Thanks. I put RS9116_NLINK_WLAN_BT_IMAGE.rps into /lib/firmware, but the new firmware is not loaded/flashed.

dmesg says

[   20.283488] redpine_91x: rsi_probe: ***** 9116 Module *****
[   20.286089] redpine_91x: redpine_hal_device_init: oper_mode = 5, coex_mode = 2
[   20.292533] redpine_91x: Received Board Version Number: 10
[   20.293636] redpine_91x: rsi_load_firmware: Loading file RS9116_NLINK_WLAN_BT_IMAGE.rps
[   20.297552] redpine_91x:  FW Length = 328192 bytes
[   20.297583] redpine_91x: ================================================
[   20.297586] redpine_91x: ================ RSI Version Info ==============
[   20.297589] redpine_91x: ================================================
[   20.297592] redpine_91x: FW Version	: 2.0.0.0
[   20.297597] redpine_91x: RSI FW Version	:  1610.2.0.0.0024
[   20.297603] redpine_91x: Driver Version	: RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
[   20.297606] redpine_91x: Operating mode	: 5 [Wi-Fi STA + BT EDR]
[   20.297611] redpine_91x: Firmware file	: RS9116_NLINK_WLAN_BT_IMAGE.rps
[   20.297614] redpine_91x: ================================================
[   20.475529] redpine_91x:  *** Flash CRC passed ***
[   20.479197] redpine_91x: ***** Loaded Firmware *****
[   25.568309] redpine_91x: ================================================
[   25.568331] redpine_91x: ================ RSI Version Info ==============
[   25.568335] redpine_91x: ================================================
[   25.568338] redpine_91x: FW Version	: 0.2.0.16
[   25.568343] redpine_91x: RSI FW Version	:  1610.0.2.0.0024
[   25.568349] redpine_91x: Driver Version	: RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
[   25.568353] redpine_91x: Operating mode	: 5 [Wi-Fi STA + BT EDR]
[   25.568358] redpine_91x: Firmware file	: RS9116_NLINK_WLAN_BT_IMAGE.rps
[   25.568361] redpine_91x: ================================================
[   25.572424] redpine_91x: rsi_send_bt_reg_params: Sending BT reg frame
[   25.572899] redpine_91x:  HCI module init done...

It still uses the old 0.2.0.16.

Can someone with a recently received librem5 confirm

  • which firmware he has? (by typing e.g. sudo dmesg | grep redpine)
  • if active bluetooth connection and wifi work at the same time?

Thanks!

Few days ago I reflashed phone to Byzantium, result (output) is here (no Bluetooth device connected):

0.2.0.16

Works on mobile data bluetooth in the car.

I have gotten it to connect at home to a bluetooth receiver and i was never able to stream though no sound came out.

Once in a while connection caused WiFI interrupt.

Amazing the Redpine firmware update suggestion fixed my streaming issue at home while on wifi. Its a little picky in configuring the receiver at first (took me 5 or so tries but it eventually worked).

(dev_oper_mode=5) Connection to bluetooth does drop frequently together with wifi connection, so far 1-3 minutes- not 100% stable but better than before.
(dev_oper_mode=13) Seems to find more devices and more easily setup home receiver no disconnects 30min)

That makes me wonder if using the open driver works if you just change the conf values to 13?!

# git clone https://source.puri.sm/guido.gunther/firmware-rs9116-nonfree/
# git clone https://source.puri.sm/angus.ainslie/firmware-rs9116-nonfree/

By mkdir and cd to separeate folders both of above should work in accordance with:

But still, @pit and @Captain_Morgan, I’m too tired now to try method signed from @dos: https://source.puri.sm/Librem5/redpine-firmware-nonfree (that I prefer and consider reliable):

git clone https://source.puri.sm/Librem5/redpine-firmware-nonfree
cd redpine-firmware-nonfree/
./files/update_redpine.sh linux-5.3.0-librem5-h1/
1 Like

That script is old and irrelevant these days. All you should do is to put the firmware file into /lib/firmware.

2 Likes

Thanks, I put the firmware file into /lib/firmware. It finds it, but it does not flash it. So the version stays at 0.2.0.16, see dmesg output in previous post. wifi/bluetooth problems remain the same.

Not to duplicate files within /lib/firmware folder please delete previously downloaded one. Afterwards this CLI steps should work well (worked out fine for me, please let us know …):
mkdir RS9116_GG
cd RS9116_GG
sudo apt install git --no-install-recommends
git clone https://source.puri.sm/guido.gunther/firmware-rs9116-nonfree.git
cd firmware-rs9116-firmware/Firmware
ls -l
sudo mv -t /lib/firmware RS9116_NLINK_WLAN_BT_IMAGE.rps
sudo dmesg | grep -E 'GNU.LNX'
sudo reboot
sudo dmesg | grep -E 'RSI FW'

Thanks, i did these steps, and as I have written the new firmware is found but it does not flash it. So the version stays at 0.2.0.16, see the long dmesg output above.

You mention duplicate files within /lib/firmware: These are all files within this folder:

regulatory.db         
regulatory.db.p7s         
regulatory.db.p7s-upstream  
regulatory.db-debian  
regulatory.db.p7s-debian 
regulatory.db-upstream
RS9116_NLINK_WLAN_BT_IMAGE.rps

The last file is the one I moved there. I do not know what the regulatory files do, if they contain the old firmware?

1 Like

I do not know either, but please take a look at (if they duplicate or change before and after reboot):
sudo dmesg | grep -E 'RSI FW'

Also, why not to change your download to:
git clone https://source.puri.sm/angus.ainslie/firmware-rs9116-nonfree.git

I do not have (anymore) any file there and the loading fails:

Mar 26 09:58:02 pureos kernel: [ 1743.075522] redpine_91x: rsi_load_firmware: Loading file RS9116_NLINK_WLAN_BT_IMAGE.rps
Mar 26 09:58:02 pureos kernel: [ 1743.076553] RSI-SDIO WLAN mmc1:fffd:1: Direct firmware load for RS9116_NLINK_WLAN_BT_IMAGE.rps failed with error -2
Mar 26 09:58:02 pureos kernel: [ 1743.076605] redpine_91x: rsi_load_firmware: Failed to open file RS9116_NLINK_WLAN_BT_IMAGE.rps
Mar 26 09:58:02 pureos kernel: [ 1743.079165] redpine_91x: ***** Loaded Firmware *****
Mar 26 09:58:05 pureos systemd[1]: systemd-rfkill.service: Succeeded.
Mar 26 09:58:07 pureos kernel: [ 1748.266213] redpine_91x: ================================================
Mar 26 09:58:07 pureos kernel: [ 1748.266405] redpine_91x: ================ RSI Version Info ==============
Mar 26 09:58:07 pureos kernel: [ 1748.266415] redpine_91x: ================================================
Mar 26 09:58:07 pureos kernel: [ 1748.266424] redpine_91x: FW Version   : 1.2.20.0
Mar 26 09:58:07 pureos kernel: [ 1748.266447] redpine_91x: RSI FW Version       :  0000.1.2.0.0502
Mar 26 09:58:07 pureos kernel: [ 1748.266456] redpine_91x: Driver Version       : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
Mar 26 09:58:07 pureos kernel: [ 1748.266473] redpine_91x: Operating mode       : 5 [Wi-Fi STA + BT EDR]

Btw: What mean the two different log lines:
redpine_91x: FW Version : 1.2.20.0
and
redpine_91x: RSI FW Version : 0000.1.2.0.0502

Please delete current one inside this “room” (with rm command from this folder) was my thought (not to have very same file twice in-there), and replace it with another one, actually write it again over there. Please use sudo for what recommended above: sudo mv -t …) as we do not know if you already done so (at least I’m unsure).

1 Like

That’s the latest one. The logs should look like this:

Mar 24 02:05:16 librem5 kernel: redpine_91x: rsi_load_firmware: Loading file RS9116_NLINK_WLAN_BT_IMAGE.rps
Mar 24 02:05:16 librem5 kernel: redpine_91x:  FW Length = 328192 bytes
Mar 24 02:05:16 librem5 kernel: redpine_91x: ================================================
Mar 24 02:05:16 librem5 kernel: redpine_91x: ================ RSI Version Info ==============
Mar 24 02:05:16 librem5 kernel: redpine_91x: ================================================
Mar 24 02:05:16 librem5 kernel: redpine_91x: FW Version        : 2.0.0.0
Mar 24 02:05:16 librem5 kernel: redpine_91x: RSI FW Version        :  1610.2.0.0.0024
Mar 24 02:05:16 librem5 kernel: redpine_91x: Driver Version        : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
Mar 24 02:05:16 librem5 kernel: redpine_91x: Operating mode        : 5 [Wi-Fi STA + BT EDR]
Mar 24 02:05:16 librem5 kernel: redpine_91x: Firmware file        : RS9116_NLINK_WLAN_BT_IMAGE.rps
Mar 24 02:05:16 librem5 kernel: redpine_91x: ================================================
Mar 24 02:05:16 librem5 kernel: redpine_91x:  *** Flash CRC passed ***
Mar 24 02:05:16 librem5 kernel: redpine_91x: ***** Loaded Firmware *****
Mar 24 02:05:22 librem5 kernel: redpine_91x: ================================================
Mar 24 02:05:22 librem5 kernel: redpine_91x: ================ RSI Version Info ==============
Mar 24 02:05:22 librem5 kernel: redpine_91x: ================================================
Mar 24 02:05:22 librem5 kernel: redpine_91x: FW Version        : 0.2.0.16
Mar 24 02:05:22 librem5 kernel: redpine_91x: RSI FW Version        :  1610.0.2.0.0024
Mar 24 02:05:22 librem5 kernel: redpine_91x: Driver Version        : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
Mar 24 02:05:22 librem5 kernel: redpine_91x: Operating mode        : 5 [Wi-Fi STA + BT EDR]
Mar 24 02:05:22 librem5 kernel: redpine_91x: Firmware file        : RS9116_NLINK_WLAN_BT_IMAGE.rps
Mar 24 02:05:22 librem5 kernel: redpine_91x: ================================================
1 Like

Thanks. So my logs look exactly like your logs. Since bluetooth and wifi still do not work (described above) there seems to be a hardware issue? I will contact purism support.

purism@pureos:~$ sudo dmesg | grep redpine
[sudo] password for purism:
[ 6.943617] redpine_91x: rsi_probe: ***** 9116 Module *****
[ 6.944370] redpine_91x: redpine_hal_device_init: oper_mode = 5, coex_mode = 2
[ 6.945540] redpine_91x: Received Board Version Number: 10
[ 6.946629] redpine_91x: rsi_load_firmware: Loading file RS9116_NLINK_WLAN_BT_IMAGE.rps
[ 6.948907] redpine_91x: FW Length = 328192 bytes
[ 6.948929] redpine_91x: ================================================
[ 6.948933] redpine_91x: ================ RSI Version Info ==============
[ 6.948936] redpine_91x: ================================================
[ 6.948939] redpine_91x: FW Version : 2.1.0.0
[ 6.948944] redpine_91x: RSI FW Version : 0000.2.1.0.0502
[ 6.948950] redpine_91x: Driver Version : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
[ 6.948954] redpine_91x: Operating mode : 5 [Wi-Fi STA + BT EDR]
[ 6.948959] redpine_91x: Firmware file : RS9116_NLINK_WLAN_BT_IMAGE.rps
[ 6.948962] redpine_91x: ================================================
[ 7.181620] redpine_91x: *** Flash CRC passed ***
[ 7.194109] redpine_91x: ***** Loaded Firmware *****
[ 12.259007] redpine_91x: ================================================
[ 12.259030] redpine_91x: ================ RSI Version Info ==============
[ 12.259033] redpine_91x: ================================================
[ 12.259036] redpine_91x: FW Version : 1.2.20.0
[ 12.259045] redpine_91x: RSI FW Version : 0000.1.2.0.0502
[ 12.259051] redpine_91x: Driver Version : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
[ 12.259055] redpine_91x: Operating mode : 5 [Wi-Fi STA + BT EDR]
[ 12.259059] redpine_91x: Firmware file : RS9116_NLINK_WLAN_BT_IMAGE.rps

WPAN and WLAN it work good here, i see some bug when Epiphany it running together with WPAN on active and inactive mode, which causes interruptions on w.p.a.n it transmitting…seems out of CPUs.

There is a Programer to burn the Firmware onto the chipset? then i delete the rps file on /lib/firmware

@dos How Burn the RS9116_NLINK_WLAN_BT_IMAGE.rps in into the Controller on Evergreen?
Also how Burn new firmware into Display Controller.? current display firmware seem buggy, i need upgrade.

EDIT: I GOT IT HOW BURN THE IMAGE INTO CONTROLLER, I just learned now. Thank you
dos.
Seems fully programed with top firm version, i deleted rps file on /lib/firmware/

purism@pureos:/lib/firmware$ ls
regulatory.db regulatory.db-debian regulatory.db.p7s regulatory.db.p7s-debian regulatory.db.p7s-upstream regulatory.db-upstream
purism@pureos:/lib/firmware$ sudo dmesg | grep redpine
[ 7.599945] redpine_91x: rsi_probe: ***** 9116 Module *****
[ 7.601762] redpine_91x: redpine_hal_device_init: oper_mode = 5, coex_mode = 2
[ 7.602986] redpine_91x: Received Board Version Number: 10
[ 7.604335] redpine_91x: rsi_load_firmware: Loading file RS9116_NLINK_WLAN_BT_IMAGE.rps
[ 7.604461] redpine_91x: rsi_load_firmware: Failed to open file RS9116_NLINK_WLAN_BT_IMAGE.rps
[ 7.606971] redpine_91x: ***** Loaded Firmware *****
[ 12.771360] redpine_91x: ================================================
[ 12.771384] redpine_91x: ================ RSI Version Info ==============
[ 12.771388] redpine_91x: ================================================
[ 12.771391] redpine_91x: FW Version : 3.2.2.16
[ 12.771399] redpine_91x: RSI FW Version : 1610.3.2.2.0003
[ 12.771405] redpine_91x: Driver Version : RS9116.NB0.NL.GNU.LNX.OSD.2.0.0.0024
[ 12.771408] redpine_91x: Operating mode : 5 [Wi-Fi STA + BT EDR]
[ 12.771413] redpine_91x: Firmware file : RS9116_NLINK_WLAN_BT_IMAGE.rps

1 Like

I doubt this.

Probably a good idea.

2 Likes

Could you tell us how you proceeded? Thanks. And you seem to have a newer firmware than the one purism provides, can you give a download link of your version? Thanks.

2 Likes