firmware-lenovo icon indicating copy to clipboard operation
firmware-lenovo copied to clipboard

firmware is not updated after reboot on Lenovo P1 Gen 3

Open neupsh opened this issue 3 years ago • 5 comments

Describe the bug My Lenovo Thinkpad P1 Gen 3 is failing to update the system firmware. fwupdmgr update finds the udpate and prepares for the update too, but when the computer is rebooted to apply the update, it quickly flashes the following text (had to take a video to see what it says): WARNING: No updates to process. Called in error?

Steps to Reproduce Steps to reproduce the behavior.

  1. Run fwupdmgr update
  2. Reboot the computer

Expected behavior The new firmware update is applied and fwupdmgr update shows no new updates.

fwupd version information Please provide the version of the daemon and client.

#fwupdmgr --version

client version: 1.6.3
compile-time dependency versions
gusb:   0.3.7

daemon version: 1.6.3

Please note how you installed it (apt, dnf, pacman, source, etc): pacman -S fwupd I have fwupd-efi 1.1 installed as well

fwupd device information Please provide the output of the fwupd devices recognized in your system.

fwupdmgr get-devices --show-all-devices
20TJS06X00
│
├─USB2.0 Hub:
│     Device ID:          23ec719b6aabc2d2dac5176c232f0da7a21881b0
│     Summary:            USB 3.x hub
│     Current version:    3.124
│     Vendor:             VIA Labs, Inc. (USB:0x2109)
│     Install Duration:   15 seconds
│     GUIDs:              7d751c46-559f-5a8c-bddd-7a874d716056
│                         3f0581b6-15ed-5f87-91eb-296db71e0838
│                         d390a7f5-ea48-5370-87a7-eba89bf5606e
│                         7fde3a64-a5e4-5ccf-880c-5f1c4f278c09
│                         f3db5c82-5c06-58d0-b1f6-cfa1642eaa1c
│     Device Flags:       • Updatable
│                         • Cryptographic hash verification is available
│                         • Device stages updates
│                         • Device can recover flash failures
│   
├─USB3.0 Hub:
│     Device ID:          da77984c82b59c6fc69516431f467fd9a8d39a7f
│     Summary:            USB 3.x hub
│     Current version:    3.124
│     Vendor:             VIA Labs, Inc. (USB:0x2109)
│     Install Duration:   15 seconds
│     GUIDs:              b187e9ff-6c12-5f27-9ae3-0ac891cb8f07
│                         26f33695-3a3e-5c08-badb-f6141390ebd9
│                         10eb3a15-c177-5810-af53-1963e9200e65
│                         b15e6e94-ddf5-579d-82db-3afc7dc964f4
│                         c3f32af1-992d-5981-8a60-b5a491933490
│     Device Flags:       • Updatable
│                         • Cryptographic hash verification is available
│                         • Device stages updates
│                         • Device can recover flash failures
│   
├─Core™ i7-10850H CPU @ 2.70GHz:
│     Device ID:          4bde70ba4e39b28f9eab1628f9dd6e6244c03027
│     Current version:    0x000000ea
│     Vendor:             Intel
│     GUIDs:              b9a2dd81-159e-5537-a7db-e7101d164d3f
│                         30249f37-d140-5d3e-9319-186b1bd5cac3
│                         a45b0522-5722-54bd-b802-86cd044262df
│                         7b9b6e8c-226c-5db6-86cb-ea3187578013
│     Device Flags:       • Internal device
│   
├─Embedded Controller:
│     Device ID:          2292ae5236790b47884e37cf162dcf23bfcd1c60
│     Summary:            UEFI ESRT device
│     Current version:    0.1.8
│     Minimum Version:    0.1.8
│     Vendor:             DMI:LENOVO
│     Update State:       Success
│     GUIDs:              b616d3d6-cca9-40bd-964e-b86ffb62744d
│                         56ee8ee1-8935-5d75-9ede-2ab1422d642e
│     Device Flags:       • Internal device
│                         • Updatable
│                         • System requires external power source
│                         • Supported on remote server
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│   
├─Integrated Camera:
│     Device ID:          0fef0a0c55f6442bffaebd774ae771341c89571b
│     Current version:    58.18
│     Vendor:             Chicony Electronics Co.,Ltd. (USB:0x04F2)
│     GUIDs:              08c6b922-0e9b-5283-9e1a-2f5a549abf8e
│                         95b07a8e-2063-5025-80b5-1fcf4ca8e9e3
│     Device Flags:       • Updatable
│   
├─Intel Management Engine:
│     Device ID:          349bb341230b1a86e5effe7dfe4337e1590227bd
│     Summary:            UEFI ESRT device
│     Current version:    224.48.1605
│     Minimum Version:    0.0.1
│     Vendor:             DMI:LENOVO
│     Update State:       Success
│     GUIDs:              5695cc48-4f4f-4677-8ffb-9f496d3ad9d3
│                         3ef35d3b-ceeb-5e27-8c0a-ac25f90367ab
│     Device Flags:       • Internal device
│                         • Updatable
│                         • System requires external power source
│                         • Supported on remote server
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│   
├─KXG6AZNV1T02 TOSHIBA:
│     Device ID:          08e1798bf5d9cb56a0290b552cab6c1a371b5089
│     Summary:            NVM Express solid state drive
│     Current version:    5108AGLA
│     Vendor:             Toshiba Corporation (NVME:0x1179)
│     GUIDs:              9da14130-275e-52fc-8119-63be32bd58dd
│                         141102bc-3608-5bc8-a700-983f47d476f4
│                         de51500a-8b48-5f13-b0c1-0bbded7c54c1
│                         94eae9cd-5ee6-5b80-9a3e-ffa2db88cd87
│                         d0831dc7-f39b-50dc-bc13-a4f0c315c0ba
│     Device Flags:       • Internal device
│                         • Updatable
│                         • System requires external power source
│                         • Supported on remote server
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│   
├─System Firmware:
│ │   Device ID:          a45df35ac0e948ee180fe216a5f703f32dda163f
│ │   Summary:            UEFI ESRT device
│ │   Current version:    0.1.11
│ │   Minimum Version:    0.1.0
│ │   Vendor:             LENOVO (DMI:LENOVO)
│ │   Update State:       Success
│ │   GUIDs:              6e58e73d-8061-44e4-8949-33b7f0d5c726
│ │                       230c8b18-8d9b-53ec-838b-6cfc0383493a
│ │                       0e91d507-ea0c-5543-9850-204d9a6635c7
│ │   Device Flags:       • Internal device
│ │                       • Updatable
│ │                       • System requires external power source
│ │                       • Supported on remote server
│ │                       • Needs a reboot after installation
│ │                       • Cryptographic hash verification is available
│ │                       • Device is usable for the duration of the update
│ │ 
│ ├─Intel AMT [unprovisioned]:
│ │     Device ID:        e2623122c99d58220498aacbfcfdb1baebbae3c5
│ │     Summary:          Hardware and firmware technology for remote out-of-band management
│ │     Current version:  14.0.48.1605
│ │     Bootloader Version:14.0.48.1605
│ │     Vendor:           Intel Corporation
│ │     GUID:             2800f812-b7b4-2d4b-aca8-46e0ff65814c
│ │     Device Flags:     • Internal device
│ │   
│ └─UEFI dbx:
│       Device ID:        362301da643102b9f38477387e2193e57abaa590
│       Summary:          UEFI revocation database
│       Current version:  83
│       Minimum Version:  83
│       Vendor:           UEFI:Linux Foundation
│       Install Duration: 1 second
│       GUIDs:            14503b3d-73ce-5d06-8137-77c68972a341
│                         5971a208-da00-5fce-b5f5-1234342f9cf7
│                         c6682ade-b5ec-57c4-b687-676351208742
│                         f8ba2887-9411-5c36-9cee-88995bb39731
│       Device Flags:     • Internal device
│                         • Updatable
│                         • Needs a reboot after installation
│                         • Only version upgrades are allowed
│     
├─TPM:
│ │   Device ID:          c6a80ac3a22083423992a3cb15018989f37834d6
│ │   Current version:    1.258.0.0
│ │   Vendor:             ST Microelectronics (TPM:STM)
│ │   GUIDs:              ff71992e-52f7-5eea-94ef-883e56e034c6
│ │                       84df3581-f896-54d2-bd1a-372602f04c32
│ │                       bfaed10a-bbc1-525b-a329-35da2f63e918
│ │                       70b7b833-7e1a-550a-a291-b94a12d0f319
│ │                       06f005e9-cb62-5d1a-82d9-13c534c53c48
│ │   Device Flags:       • Internal device
│ │ 
│ └─Event Log:
│       Device ID:        58bd405f31c48e6eca290b425f530a94c91e955c
│       GUID:             a25657fe-b5dc-5be0-8b78-8b9dfec678ff
│       Device Flags:     • Internal device
│     
├─TU117GLM [Quadro T2000 Mobile / Max-Q]:
│     Device ID:          ce4c74a5188d5b9cdb1e72ed32dad2d313c1c999
│     Current version:    a1
│     Vendor:             NVIDIA Corporation (PCI:0x10DE)
│     GUIDs:              c258fe25-b489-56a1-9919-f004f4148b0d
│                         3dbb64d3-7ea4-547b-bf30-9c634057aff0
│                         43948b38-3adb-5c42-af77-8619f6b96f4e
│                         32757a2c-105b-5e6c-9566-cd704c90f081
│     Device Flags:       • Internal device
│                         • Cryptographic hash verification is available
│   
├─UEFI Device Firmware:
│     Device ID:          f95c9218acd12697af946874bfe4239587209232
│     Summary:            UEFI ESRT device
│     Current version:    16777222
│     Minimum Version:    1
│     Vendor:             DMI:LENOVO
│     Update State:       Success
│     GUIDs:              439d54f4-5548-4698-a8b0-46a047c0e66e
│                         5b1a70bd-0c00-56c1-9a9e-d54fe2072ce1
│     Device Flags:       • Internal device
│                         • Updatable
│                         • System requires external power source
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│
├─UEFI Device Firmware:
│     Device ID:          d96de5c124b60ed6241ebcb6bb2c839cb5580786
│     Summary:            UEFI ESRT device
│     Current version:    65794
│     Minimum Version:    65794
│     Vendor:             DMI:LENOVO
│     Update State:       Success
│     GUIDs:              3fb9a55d-d7f1-4d1b-b216-74e328e28f51
│                         fa397613-68af-5c18-aea0-012f7bd9cc97
│     Device Flags:       • Internal device
│                         • Updatable
│                         • System requires external power source
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│
└─UEFI Device Firmware:
Device ID:          f37fb01122dd62c773f4e84ec89737e059712d59
Summary:            UEFI ESRT device
Current version:    22552
Minimum Version:    1
Vendor:             DMI:LENOVO
Update State:       Success
GUIDs:              6255bb23-b2a8-469a-9161-bb9e1348ca23
8bb113aa-3089-57c1-9539-5c9c1b4470c6
Device Flags:       • Internal device
• Updatable
• System requires external power source
• Needs a reboot after installation
• Device is usable for the duration of the update

Note that when i run get-devices, it shows the following as well:


Devices that were not updated correctly:

• Embedded Controller (0.1.6 → 0.1.08)
• Intel Management Engine (224.45.1389 → 224.48.1605)
• System Firmware (0.1.11 → 0.1.15)

Devices that have been updated successfully:

• System Firmware (0.1.11 → 0.1.17)
• Embedded Controller (0.1.6 → 0.1.08)
• Intel Management Engine (224.45.1389 → 224.48.1605)

System UEFI configuration Please provide the output of the following commands:

efibootmgr -v
BootCurrent: 001B
Timeout: 0 seconds
BootOrder: 0010,0011,0012,0013,0014,0015,0000,001B,0019,001A,001C,001D,001E,001F,0020,0022,0023,0021
Boot0000* Linux-Firmware-Updater        HD(1,GPT,12b1f965-e2b1-4aa5-a5a2-9560bb0e4f9e,0x800,0x200000)/File(\EFI\arch\fwupdx64.efi)
Boot0010  Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu     FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0012  Diagnostic Splash Screen      FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013  Lenovo Diagnostics    FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
Boot0014  Regulatory Information        FvFile(478c92a0-2622-42b7-a65d-5894169e4d24)
Boot0015  ThinkShield secure wipe       FvFile(3593a0d5-bd52-43a0-808e-cbff5ece2477)
Boot0016  Startup Interrupt Menu        FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
Boot0017  Rescue and Recovery   FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
Boot0018  MEBx Hot Key  FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
Boot0019* USB CD        VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot001A* USB FDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot001B* NVMe0 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a400)
Boot001C* NVMe1 VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a401)
Boot001D* ATA HDD0      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot001E* ATA HDD1      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f601)
Boot001F* USB HDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0020* PXE BOOT      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot0021* LENOVO CLOUD  VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,ad38ccbbf7edf04d959cf42aa74d3650)/Uri(https://download.lenovo.com/pccbbs/cdeploy/efi/boot.efi)
Boot0022  Other CD      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35406)
Boot0023  Other HDD     VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f606)
Boot0024* USBR BOOT CDROM       PciRoot(0x0)/Pci(0x14,0x0)/USB(15,1)
Boot0025* USBR BOOT Floppy      PciRoot(0x0)/Pci(0x14,0x0)/USB(15,0)
Boot0026* ATA HDD       VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
Boot0027* ATAPI CD      VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
efivar -l | grep fw
0abba7dc-e516-4167-bbf5-4d9d1c739416-fwupd-5695cc48-4f4f-4677-8ffb-9f496d3ad9d3-0
0abba7dc-e516-4167-bbf5-4d9d1c739416-fwupd-b616d3d6-cca9-40bd-964e-b86ffb62744d-0
tree /boot
/boot
├── EFI
│   ├── arch
│   │   ├── fw
│   │   │   ├── fwupd-5695cc48-4f4f-4677-8ffb-9f496d3ad9d3.cap
│   │   │   └── fwupd-b616d3d6-cca9-40bd-964e-b86ffb62744d.cap
│   │   └── fwupdx64.efi
│   ├── BOOT
│   │   └── BOOTX64.EFI
│   ├── Linux
│   └── systemd
│       └── systemd-bootx64.efi
├── initramfs-linux-lts-fallback.img
├── initramfs-linux-lts.img
├── initramfs-linux-zen-fallback.img
├── initramfs-linux-zen.img
├── intel-ucode.img
├── loader
│   ├── entries
│   │   ├── arch-lts-auto.conf
│   │   ├── arch-lts.conf
│   │   ├── arch-zen-auto.conf
│   │   └── arch-zen.conf
│   ├── loader.conf
│   └── random-seed
├── vmlinuz-linux-lts
└── vmlinuz-linux-zen

Additional questions

  • Operating system and version: arch linux
  • Have you tried rebooting?: yes
  • Is this a regression?: yes, I had installed firmware updates before
  • Are you using an NVMe disk?: yes
  • Is secure boot enabled?: no
  • Is this a Lenovo system with 'Boot Order Lock' turned on in the BIOS?: no, it is turned off

neupsh avatar Aug 12 '21 23:08 neupsh

Just for reference: I had left a detailed comment here before https://github.com/fwupd/firmware-lenovo-thinkpad/issues/80#issuecomment-857063805 and here as well: https://github.com/fwupd/firmware-lenovo-thinkpad/issues/132#issuecomment-889383318

neupsh avatar Aug 12 '21 23:08 neupsh

I have exactly the same problem on ThinkPad P15v Gen 1. Found this issue by searching the "WARNING: No updates to process. Called in error?" message.

I basically have the same setup and OS as @neupsh, only /boot is not a separate partition and efi filesystem is mounted at /efi:

$ tree /efi/
/efi/
└── EFI
    ├── arch
    │   ├── fw
    │   │   └── fwupd-e1678770-bdc9-47f9-8d90-340e28b6f196.cap
    │   └── fwupdx64.efi
    └── GRUB
        └── grubx64.efi

kyak avatar Dec 05 '21 08:12 kyak

I made another attempt to update. This time, I had errors like this: https://github.com/fwupd/firmware-lenovo/issues/140#issuecomment-1122253353

After digging a little bit, I found out that my esp partition was of Linux filesystem type. I've changed it to EFI System like it should be. No idea why I partitioned it like this in the first place...

But anyway, this has helped and update went fine.

I suggest that developers should collect "EspType" in addition to "EspPath" in their update reports and inform users when ESP partition type is not set correctly.

kyak avatar Jul 23 '22 03:07 kyak

@kyak

One should see something like the following, yes?

image

And if one does not see that 'EFI System', can one easily change that?

LinuxOnTheDesktop avatar Jul 29 '22 23:07 LinuxOnTheDesktop

@LinuxOnTheDesktop

Yes, they should see something like that. You could also run fdisk -l /dev/nvme0n1 and verify the correct partition type.

There are many ways to change partition type. I prefer to use fdisk utility (it has t command to change partition type).

kyak avatar Jul 30 '22 05:07 kyak