I just made a modem firmware update and made a new merge of the preivous descriptions.
For each manual update part there are the following subpoints:
a.) How to see the version which is currently in place on the personal device?
b.) Where can we get the latest (and hopefully also historic) version of the update?
c.) Where can we see which is the suggested version by Purism?
d.) Instructions how to do the update.
And that for all five detected parts:
1.) Modem Firmware
2.) WLan Firmware
3.) uBoot (Status of Suspend for Librem 5)
4.) SmartCardReader Firmware (https://puri.sm/posts/openpgp-in-your-pocket)
5.) USB-C PD firmware
I tried to collect some of the information and put into this thread.
If you find information please share it here. May be this can be moved to a documentation?
I think for the point c) “Which is the suggested version by Purism” we would need somebody from Purism to comment on this.
I have not tested yet all described instructions. Please be aware that you should not update the firmware if you are not sure what you are doing!
For now we have:
1a) How to see the Modem Firmware Version of your device [tested]:
sudo apt install bm818-tools
1b) Where can we get the latest Modem firmware Version [tested]:
Contact support@puri.sm
1c) How can we see which Modem Firmware version is suggested by Purism [tested]:
Based on the post of dos (Status of Suspend for Librem 5):
The first and second part of the firmware version string needs to have the timestamp of at least 2022-09-26. If it’s older than that, waking the system up on modem events may be unreliable.
Contact support@puri.sm for the suggested version for upgrade.
1d) How to install an Modem Firmware Version [tested]:
Contact support@puri.sm
2a) How to see the WLan RedPine Firmware Version [tested]:
sudo dmesg | grep redpine | grep Version
2b) Where can we get the latest WLan RedPine firmware Version [tested]:
May be not the latest but at least some versions:
There seems to be a newer version which I haven’t tested yet:
2c) How can we see which WLan Firmware version is suggested by Purism [not tested]:
???
2d) How to install an WLan Firmware Version [tested]:
Create the directory /lib/firmware if it does not already exist
Download firmware
copy it in that directory
Reboot
New firmware should be transferred to WiFi card automatically during boot
The firmware file should be deleted after the successfull installation
3a) How to see the uBoot Version of your device [tested]:
cat /proc/cmdline
3b) Where can we get the latest uBoot Version [tested]:
Go to https://source.puri.sm/Librem5/uboot-imx/-/jobs/
3c) How can we see which uBoot version is suggested by Purism [not working]:
I assume that the version in the PureOS Page with the package name “u-boot-librem5” is declared as stable by Purism.
3d) How to install an uBoot Version [tested]:
Go to https://source.puri.sm/Librem5/uboot-imx/-/jobs/
find a recent job which passed
Download the “u-boot*_arm64.deb” for the recent job:
wget https://source.puri.sm/Librem5/uboot-imx/-/jobs/406070/artifacts/raw/debian/output/u-boot-librem5_2022.10-librem5.1_arm64.deb
Install the downloaded package with:
sudo apt install ./u-boot*_arm64.deb
Update the bootloader:
sudo u-boot-install-librem5 /dev/mmcblk0
Reboot the phone to start the phone using the newly updated bootloader.
4a) How to see the SmartCard Reader Version of your device [not tested]:
???
4b) Where can we get the latest SmartCard Reader Version [not tested]:
4c) How can we see which SmartCard Reader Firmware version is suggested by Purism [not tested]:
???
4d) How to install an SmartCard Reader Firmware Version [not tested]:
sudo apt install stm32flash git
git clone https://source.puri.sm/firmware/ttxs-firmware
cd ttxs-firmware
./scripts/stm_reflash.sh
5a) How to see the USB-C PD Firmware Version of your device [not tested]:
based on https://source.puri.sm/Librem5/firmware-tps6598x-nonfree/-/blob/master/dp-alt-mode-adapters.org
sudo cat /sys/kernel/debug/tps6598x/0-003f/customer_use
sudo cat /sys/kernel/debug/tps6598x/0-003f/code_version
5b) Where can we get the latest USB-C PD firmware Version [not tested]:
May be not the latest but at least some versions:
5c) How can we see which USB-C PD Firmware version is suggested by Purism [not tested]:
???
5d) How to install an USB-C PD Firmware Version [not tested]: