New Post: Shipping new SparkLAN Wifi cards with Librem 5

I’m so relieved to hear that… :relieved:

1 Like


connector at bottom is just tad short, should I try to pull a bit on wire or anything else?
RedPine has connection point on one side of notch and that’s how long the connector is.

4 Likes

Don’t pull on wire. Reroute it to go through the same path in the case as the other one (you’ll have to unscrew the case frame to do that).

6 Likes

See @ChriChri’s earlier post and link to pics. You can also remove the protective plastic casing/frame to expose more of the wires and see how to free them. Don’t just pull them.

4 Likes

Thanks for pointing that.
I seem to have working Modem and WiFi after install so I guess it’s success.
I need to test Bluetooth, previously I had to enable BLE to connect one of my keyboard, do I need to do it again?

Headphones are connected via bluetooth, just needed reboot and now sound is coming through headphones

2 Likes

Any plans for a video tutorial about this hardware upgrade? :smirk: That would be most appreciated. :pray:

3 Likes

I’m not sure if I want to re-open the phone for video.
However Key points
backplate has 3 screws
frame has 8 (NOT 6) screws

[Looking at back of phone]
Swap left and right connector as you look at back of phone, these are just antennas so you can swap them (if I understand correctly and that’s how I’ve done it).
Current left connector can be taken out from track, it already runs along right edge of phone. Remove it from track which brings it to left.

[Modem]
Connectors go in port [1] and [3] (counting 1, 2, 3)

1 Like

It’s a good idea and something we’ll look into adding to the queue.

5 Likes

It says the following about the old Redpine card: “Card uses 0.65 W while suspended”

That’s quite a lot, so considering that the phone battery has a capacity of about 15Wh would that mean that just the wifi card if turned on would drain the battery in approximately 24 hours?

I guess then that it’s highly recommended to upgrade the wifi module if you want decent standby time with wifi turned on?

1 Like

My phone doesnt have the firmware jail. Instructions failed to flash:

I have the write_flash.sh script i have the firmware.sqsh file (which i downloaded using the browser, the command line did not download the file) but flashing command does not run properly for some reason.

i tried where the files are in the same librem5-devkit-tools/scripts folder:

‘./write_flash.sh firmware.sqsh 0x30000’

with error

': 26 : bc : not found

any ideas? does the firmware.sqhs file need to be in a different folder?

Also the wget command in the flashscript returns error no such file or directory when executed by itself:

‘wget -Ofiles/u-boot-librem5.imx https://arm01.puri.sm/job/u-boot_builds/job/uboot_librem5_build/lastSuccessfulBuild/artifact/output/uboot-librem5/u-boot-librem5.imx

fyi: i installed uuu.

1 Like

Try running:
sudo apt-get install bc

Sometimes, programs like bc are grouped together in a package, like something-tools. In which case, apt-cache search bc or apt-file search bc might help locate it.

2 Likes

bingo that executed the flash script!

2 Likes

Now the modem is detected but firmware has failed to load (one step further at least):

[ 11.373712] brcmfmac: F1 signature read @0x18000000=0x1042aae8
[ 11.379478] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2
[ 11.391873] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.purism,librem5r4.bin failed with error -2
[ 11.391980] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.bin failed with error -2
[ 12.399573] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 73.998319] brcmfmac: F1 signature read @0x18000000=0x1042aae8
[ 74.002140] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2
[ 74.011039] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.purism,librem5r4.bin failed with error -2
[ 74.011088] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.bin failed with error -2
[ 75.021281] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[ 134.601758] brcmfmac: F1 signature read @0x18000000=0x1042aae8
[ 134.605683] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43752-sdio for chip BCM43752/2
[ 134.614787] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.purism,librem5r4.bin failed with error -2
[ 134.614835] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43752-sdio.bin failed with error -2
[ 135.625097] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50

1 Like

I remember a Purism employee mentioning that the firmware travels from the jail to the kernel image. My guess is that this will start working after you update your phone with a newer Linux kernel. It might take a few weeks before such an update shows up, assuming that your phone is already up-to-date. Maybe there is a way to manually run this, but if run incorrectly, you might not be able to boot the phone without wiping it. You can also manually put the file in the kernel’s firmware directory. These errors might be normal. I am not sure. I do know that the kernel searches for a number of firmware file name variations, with certain file names taking priority.

1 Like

i noticed that my folder ’ /usr/share/firmware-librem5-nonfree/firmware/brcm is empty if i downloaded and knew where to download the driver, could i just copy paste it in there? i thought the flash script may download and install the modem driver?

Update: Copying firmware.sqsh into that folder manually still results in the same error messages of inability to load driver into modem.

Linux Kernel version: 6.1.0

1 Like

The flash script, which I have not used or looked at, probably just puts the firmware in the jail, which is separate from the operating system storage. I am guessing that it takes a kernel image rebuild to copy the firmware from the jail to the kernel image. You could put the file in the path that you shared and it would also work. The purpose of the jail is to keep the firmware out of the PuroOS distribution, but as a user, you do not need that unless you want to be able to reinstall PureOS without having to put the file in that directory again.

3 Likes

Did you do, on the phone: sudo apt install librem5-fw-jail
(after doing the flashing) and then reboot?

1 Like

yes i did but it was already installed. just redit the entire process same result.

2 Likes

Because it is outputting to a file in the files subdirectory, I think it is assuming that you have done
cd librem5-devkit-tools
before wget ... in turn before the actual flashing.

1 Like

Ah gotcha that makes sense and thanks for pointing that out: however just tried that wget command from git still gives the same error regarding file u-boot-librem5.imx’ no such file or directory’.

Apart from the flashing script not working out of the box to create the firmware jail, which you can work around- i think my issue is not having the actual driver for the module. I doubt the firmware.sqsh is the actual driver.

Update: running the wget command ’ ```
wget https://source.puri.sm/Librem5/firmware-librem5-nonfree/-/jobs/389262/artifacts/raw/firmware.sqsh -O files/firmware.sqsh

1 Like