Updating Firmware EC

I’m running PureOS / PureBoot on a Librem 14 and have updated the system. I’m having weird battery charging issues - the computer shuts off when the battery is at about 60% and is running on battery power. I suspect this may have to do with updating the EC but thought I did that about a year ago or so. I’m not sure how to check if I have the most up to date EC and when I went to the GitHub repository (librem_14 · master · firmware / releases · GitLab) referenced from Librem-EC on Purism Devices – Purism, it says it was last updated 2 years ago, which makes me wonder if this is now being automatically updated when I update the operating system? Any guidance is greatly appreciated. At the moment, I basically can’t use my laptop on battery power.

1 Like

No, EC firmware is manually updated.

1 Like

You might try a Live Boot in order to fault isolate the operating system, software and settings.

The EC firmware is different from the boot firmware (in your case PureBoot) as well. So that’s three pieces of software in all that can be independently upgraded.

2 Likes

Thank you. So is the most recent EC update found here? (librem_14 · master · firmware / releases · GitLab )
Is the most recent update from 2 years ago?

1 Like

Yes, the latest EC update is from two years ago.

1 Like

Yes, although technically System76 is the upstream maintainer:

1 Like

I’m a bit confused - upstream maitainer, EC firmware, Live Boot - not super versed in linux. I just want my computer to work properly. So how do I found out if I already have the most recent EC installed?

2 Likes
  1. Download the purism_ectool tool (https://source.puri.sm/firmware/releases/-/blob/master/tools/purism_ectool.gz).
    curl -LO https://source.puri.sm/firmware/releases/-/raw/master/tools/purism_ectool.gz
    
  2. Decompress/extract the file.
    gzip -d purism_ectool.gz
    
  3. Ensure the executable permission is set.
    sudo chmod +x purism_ectool
    
  4. Verify the EC firmware version using the Purism ectool.
    sudo ./purism_ectool info
    
2 Likes

When I tried to decompress / extract the file I got this:

teddy@teddy1:~$ gzip -d purism_ectool.gz
gzip: purism_ectool.gz: No such file or directory

The file is in my Downloads folder - not sure if that matters

1 Like

If the file is in the Downloads folder, you need to point the gzip tool to that location. It is easier to change the directory to your Downloads folder though, which is what I will provide steps for.

cd ~/Downloads
gzip -d ./purism_ectool.gz
sudo chmod +x ./purism_ectool
sudo ./purism_ectool info
2 Likes

teddy@teddy1:~/Downloads$ cd ~/Downloads
teddy@teddy1:~/Downloads$ gzip -d ./purism_ectool.gz
gzip: ./purism_ectool.gz: No such file or directory

1 Like

The archive has already been extracted by gzip, so use these remaining commands in the active terminal:

sudo chmod +x ./purism_ectool
sudo ./purism_ectool info

teddy@teddy1:~/Downloads$ sudo ./purism_ectool info
board: purism/librem_14
version: 1.11_2022-10-25

1 Like

Your EC firmware is currently out of date by two minor versions.

1 Like

Thank you. I’ll update it

1 Like

I updated the EC and got this report out afterwards when checking the EC version. Does this look up to date now?

teddy@teddy1:~$ cd ~/Downloads
teddy@teddy1:~/Downloads$ sudo chmod +x ./purism_ectool
teddy@teddy1:~/Downloads$ sudo ./purism_ectool info
board: purism/librem_14
version: 1.13_2023-03-22

I also saw an odd note about the bluetoot: Loading patch file failed on the final screen when booting from the USB which concerned me. Anything to do about that? see screenshot. THANK YOU!

1 Like

Your EC firmware is now up to date. I do not know what the Bluetooth patch file is.

1 Like