StarLabsLtd / firmware

71 stars 5 forks source link

Unable to install coreboot 4.17 on StarLite Mk IV #47

Closed maxengel closed 2 years ago

maxengel commented 2 years ago

On my StarLite Mk IV I receive the following:

max@starlitemkiv:~$ fwupdmgr refresh --force
Updating lvfs
Downloading…             [***************************************]
Downloading…             [***************************************]
Successfully downloaded new metadata: 2 local devices supported
max@starlitemkiv:~$ fwupdmgr switch-branch
Selected device: StarLite (bios)
╔══════════════════════════════════════════════════════════════════════════════╗
║ Switch branch from default to coreboot?                                      ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release includes the following features:                         ║
║                                                                              ║
║ • Rebased on coreboot 4.17                                                   ║
║ • Built using edk2 202205                                                    ║
║ • Enabled Enhanced C-States                                                  ║
║ • Fixed bug with USB ports                                                   ║
║ • Disabled SATA Port 1                                                       ║
║ • Initialise all Heci interfaces                                             ║
║ • Simplified GPIO configuration                                              ║
║ • Enabled SATA Power Optimisations                                           ║
║ • Adjust TCC Offset depending on Power Profile                               ║
║ • Disabled UFS Device                                                        ║
║ • Configure LPC IO Registers                                                 ║
║ • Configure BIOS Control register on device 31                               ║
║ • Open MMIO window for the Nuvoton EC to allow updates                       ║
╚══════════════════════════════════════════════════════════════════════════════╝

Do you understand the consequences of changing the firmware branch? [y|N]: y
╔══════════════════════════════════════════════════════════════════════════════╗
║ Upgrade StarLite (bios) from 1.0 to 4.17?                                    ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ This stable release includes the following features:                         ║
║                                                                              ║
║ • Rebased on coreboot 4.17                                                   ║
║ • Built using edk2 202205                                                    ║
║ • Enabled Enhanced C-States                                                  ║
║ • Fixed bug with USB ports                                                   ║
║ • Disabled SATA Port 1                                                       ║
║ • Initialise all Heci interfaces                                             ║
║ • Simplified GPIO configuration                                              ║
║ • Enabled SATA Power Optimisations                                           ║
║ • Adjust TCC Offset depending on Power Profile                               ║
║ • Disabled UFS Device                                                        ║
║ • Configure LPC IO Registers                                                 ║
║ • Configure BIOS Control register on device 31                               ║
║ • Open MMIO window for the Nuvoton EC to allow updates                       ║
║                                                                              ║
║ StarLite (bios) and all connected devices may not be usable while updating.  ║
╚══════════════════════════════════════════════════════════════════════════════╝

Perform operation? [Y|n]: y
Downloading…             [***************************************]
Downloading…             [***************************************]
Decompressing…           [***************************************]
Authenticating…          [***************************************]
Reading…                 [ -                                     ]failed to back up original firmware

It fails in that last step.

Sean-StarLabs commented 2 years ago

That's a very old bug in fwupd, so you'll need a newer version. What distro are you using?

maxengel commented 2 years ago

I'm running Pop!_OS 22.04. Here is the output of fwupdmgr --version

max@starlitemkiv:~$ fwupdmgr --version
Decompressing…           [-                                      ]runtime   org.freedesktop.fwupd         1.8.0
runtime   org.freedesktop.fwupd-efi     1.0
runtime   com.dell.libsmbios            2.4
compile   org.freedesktop.gusb          0.3.10
runtime   org.kernel                    5.17.15-76051715-generic
compile   com.hughsie.libjcat           0.1.9
compile   org.freedesktop.fwupd         1.8.0
runtime   org.freedesktop.gusb          0.3.10
Sean-StarLabs commented 2 years ago

I'd suggest using the version in our PPA, there's a guide on our support site with all the steps

maxengel commented 2 years ago

Thanks @Sean-StarLabs. I do have the PPA added, but it seems to be grabbing the Pop version:

fwupd is already the newest version (1.8.0-1pop0~1651249442~22.04~70f32d3).

I can't remove it with sudo apt remove --purge fwupd because I get:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pop-desktop : Depends: fwupd but it is not going to be installed
               Depends: fwupdate
               Recommends: io.elementary.sideload but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Sean-StarLabs commented 2 years ago

IRC, you need to pin the PPA (or you could grab the debs or build from source)

maxengel commented 2 years ago

Thanks @Sean-StarLabs. Pinning the PPA did the trick. In case it helps others, the code I used was:

  1. Created a preferences file via: sudo nano /etc/apt/preferences
  2. Pin the Star Labs PPA with a high priority above any OS-related PPA's
    Package: *
    Pin: release o=LP-PPA-starlabs
    Pin-Priority: 1002
  3. Force the installation of fwupd to replace the older, OS-provided version via apt (which was being held back by apt for some reason).