StarLabsLtd / firmware

71 stars 5 forks source link

[StarBook MK VI - Intel - AMI] switch-branch: image write failed, err=2 #80

Closed drainboy closed 1 year ago

drainboy commented 1 year ago

Since coreboot has been updated quite a bit (since i last had it), I wanted to try switching back to it but I kept getting this error

Perform operation? [Y|n]: 
Downloading…             [***************************************]
Downloading…             [***************************************]
Decompressing…           [***************************************]
Authenticating…          [***************************************]
Waiting…                 [***************************************]
Writing…                 [***************************************]
Writing…                 [                                       ]image write failed, err=2
Sean-StarLabs commented 1 year ago

That's an old fwupd bug - you need a newer version

drainboy commented 1 year ago

I have installed the following packages

Packages (2) flashrom-starlabs-1.3.0rc2-4 fwupd-starlabs-1.8.10-4

are these the latest versions?

Sean-StarLabs commented 1 year ago

Is that Manjaro? If so, replace fwupd-starlabs with fwupd

drainboy commented 1 year ago

Yes i'm using Manjaro. I installed fwupd but i'm still experiencing the same error

Here's the logs when I used the fwupdmgr --version command

compile   org.freedesktop.fwupd         1.8.10
compile   com.hughsie.libjcat           0.1.12
runtime   org.freedesktop.fwupd-efi     1.4
compile   org.freedesktop.gusb          0.4.3
runtime   com.hughsie.libjcat           0.1.12
runtime   com.dell.libsmbios            2.4
runtime   org.freedesktop.gusb          0.4.5
runtime   org.freedesktop.fwupd         1.8.10
runtime   org.kernel                    6.1.12-1-MANJARO
Sean-StarLabs commented 1 year ago

What does sudo flashrom -p internal -r foo.bar -i bios --ifd -N show?

drainboy commented 1 year ago
flashrom unknown on Linux 6.1.12-1-MANJARO (x86_64)
flashrom is free software, get the source code at https://flashrom.org

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Opened /dev/mtd0 successfully
Found Programmer flash chip "Opaque flash chip" (32768 kB, Programmer-specific) on internal.
Reading ich descriptor... done.
Using region: "bios".
Reading flash... done.
Sean-StarLabs commented 1 year ago

Okay, might be kermel - can you let me know the version you're using? And are you able to try an older one?

drainboy commented 1 year ago

I'm using Manjaro 6.1.12-1 and I have tried fwupdmgr switch-branch on the following kernel versions:

drainboy commented 1 year ago

Managed to install coreboot 8.31 by live booting to Linux Mint and following the instructions from the support page