Re: [Kernel-packages] [Bug 1734147] Re: corrupted BIOS due to Intel SPI bug in kernel

2018-10-13 Thread Martin Kucmercik
Official method didn’t work for me either. Try my solution in the comments.
Look back to December or January.

Martin Kucmercik


so 13. 10. 2018 v 20:45 odesílatel Joannes Wyckmans <
1734...@bugs.launchpad.net> napsal:

> Hi, I have a PEAQ PNB S1015 i2N3, and I have issues starting since my
> initial 16.04 ubuntu installation.
> I have completely deleted ubuntu, deleted the efi partition of ubuntu,
> reinstalled windows from disk.
>
> But,
>
> I cannot boot from usb anymore.
> Every start my computer blinks a warning message with "ubuntu boot failed".
> And my bios still thinks ubuntu efi files are present.
> I cannot change certain settings in windows, and cannot use restore
> windows.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1734147
>
> Title:
>   corrupted BIOS due to Intel SPI bug in kernel
>
> Status in Linux:
>   Unknown
> Status in linux package in Ubuntu:
>   Fix Released
> Status in linux-hwe-edge source package in Xenial:
>   Fix Released
> Status in linux-oem source package in Xenial:
>   Fix Released
> Status in linux source package in Artful:
>   Fix Released
>
> Bug description:
>   An update to linux kernel on Ubuntu 17.10 that enabled the Intel SPI
>   drivers results in a serial flash that is read only in Intel Broadwell
>   and Haswell machines with serial flashes with SPI_NOR_HAS_LOCK set.
>
>   Symptoms:
>* BIOS settings cannot be saved
>* USB Boot impossible
>* EFI entries read-only.
>
>   ---
>
>   Fix: The issue was fixed in kernel version 4.13.0-21 by configuring
>   the kernel so it is not compiled with Intel SPI support. But previous
>   affected machines still suffered from a broken BIOS.
>
>   Repair: If you still can boot into Ubuntu, you can recover your BIOS
>   with the following steps:
>
>   1. Boot into Ubuntu
>   2. Download
> http://people.canonical.com/~ypwong/lp1734147/linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+20170103+1_amd64.deb
>   3. Install the downloaded package:
> $ sudo dpkg -i
> linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+20170103+1_amd64.deb
>   4. Make sure the kernel is installed without any error. Once installed,
> reboot.
>   5. At grub, choose the newly installed kernel. You can choose the
> "recovery" mode.
>   6. Reboot and go to BIOS settings to confirm your BIOS has been
> recovered.
>   7. In case your BIOS is not recovered, reboot to the new kernel, then
> reboot *once again* to the new kernel, do not enter BIOS settings before
> the reboot. After the second reboot, check BIOS.
>   8. If your BIOS issue remains, download another kernel from
> http://people.canonical.com/~ypwong/lp1734147/linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+clear+debug_amd64.deb,
> and use dpkg to install it, then repeat steps 4 to 6.
>
>   After your BIOS is fixed, the kernel packages you just installed are
>   no longer needed, you can remove it by running 'sudo dpkg -r linux-
>   image-4.15.0-041500rc6-generic'.
>
>   The patch used to build the linux v4.15 kernel in step 8 can be found
>   at https://goo.gl/xUKJFR.
>
>   ---
>
>   Test Case: Fix has been verified by our HWE team on affected hardware.
>
>   Regression Potential: Minimal, it's unlikely anyone is actually doing
>   anything which requires this driver.
>
>   ---
>
>   Affected Machines:
>
>   Lenovo B40-70
>   Lenovo B50-70
>   Lenovo B50-80
>   Lenovo Flex-3
>   Lenovo Flex-10
>   Lenovo G40-30
>   Lenovo G50-30
>   Lenovo G50-70
>   Lenovo G50-80
>   Lenovo S20-30
>   Lenovo U31-70
>   Lenovo Y50-70
>   Lenovo Y70-70
>   Lenovo Yoga Thinkpad (20C0)
>   Lenovo Yoga 2 11" - 20332
>   Lenovo Yoga 3 11"
>   Lenovo Z50-70
>   Lenovo Z51-70
>   Lenovo ideapad 100-15IBY
>
>   Acer Aspire E5-771G
>   Acer Aspire ES1-111M-C1LE (fixed following your new instruction (thank
> you))
>   Acer TravelMate B113
>   Acer Swift SF314-52 (Fixed by 4.14.9)
>   Toshiba Satellite S55T-B5233
>   Toshiba Satellite L50-B-1R7
>   Toshiba Satellite S50-B-13G
>   Toshiba Satellite L70-A-13M
>   Dell Inspiron 15-3531
>   Mediacom Smartbook 14 Ultra M-SB14UC (fixed with official fix)
>   Acer Aspire E3-111-C0UM
>   HP 14-r012la
>
>   ---
>
>   Affected serial flash devices by manufacturer part number, JEDEC ID
> (SPI_NOR_HAS_LOCK set in drivers/mtd/spi-nor/spi-nor.c)
>   /* ESMT */
>  f25l32pa, 0x8c2016
>  f25l32qa, 0x8c4116
>  f25l64qa, 0x8c4117
>   /* GigaDevice */
>  gd25q16, 0xc84015
>  gd25q32, 0xc84016
>  

[Kernel-packages] [Bug 1734147] Re: corrupted BIOS due to Intel SPI bug in kernel

2018-01-04 Thread Martin Kucmercik
FOR USERS WITH ACTIVE BASH LINE 
Hello after a long loong long struggle and learning and with the above 
patch  

http://people.canonical.com/~ypwong/lp1734147/linux-
image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+clear+debug_amd64.deb

I successfully restored UEFI BIOS on Lenovo B50-80.

The only solution working for me, if I hadn't played with windows efi boot 
manager:
First I installed Ubuntu 16.04 in Oracle Virtual Box on Windows PC on a flash 
drive 
- must be at least 16GB.
I had to forbid creating any virtual disks. 
Assigned live CD from iso and then simply attached Flash drive.
It was better on Windows than Live Linux. 

After successful install on USB Flash drive, I plugged the Flash drive to the 
affected Lenovo. From
minimal Bash-line I found the grub.cfg location on USB. usually - ls 
(hd0,XY)/boot/grub
I used the configfile command - configfile (hd0,msdos1)/boot/grub/grub.cfg   - 
in my case.
Grub 2.02 started without hesitation and allowed me to pick to run Ubuntu 16.04 
on the USB drive.

Booted in the system I did all the necessary updates
sudo apt update
sudo apt upgrade

I also used boot-repair, that allowed me to see grub graphical interface 
straightaway
after reboot. But I think this is not necessary.

I did not use ukuu for a kernel upgrade, I just simply used wget command.
Nice inspiration is here: 
http://sourcedigit.com/22874-update-linux-kernel-4-14-rc7-ubuntu-systems/

UEFI BIOS started to work only after the last upgrade which you can find here 
in this forum,
and allowed me to change anything permanently after exit. 

Then I was able to boot any bootable CD or USB Drive. However I did
Lenovo One key recovery, which magically started to work after UEFI BIOS was 
unlocked.

Good luck for those still struggling.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1734147

Title:
  corrupted BIOS due to Intel SPI bug in kernel

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Confirmed
Status in linux-hwe-edge source package in Xenial:
  Fix Released
Status in linux-oem source package in Xenial:
  Fix Released
Status in linux source package in Artful:
  Fix Released

Bug description:
  An update to linux kernel on Ubuntu 17.10 that enabled the Intel SPI
  drivers results in a serial flash that is read only in Intel Broadwell
  and Haswell machines with serial flashes with SPI_NOR_HAS_LOCK set.

  Symptoms:
   * BIOS settings cannot be saved
   * USB Boot impossible
   * EFI entries read-only.

  ---

  Fix: The issue was fixed in kernel version 4.13.0-21 by configuring
  the kernel so it is not compiled with Intel SPI support. But previous
  affected machines still suffered from a broken BIOS.

  Repair: If you still can boot into Ubuntu, you can recover your BIOS
  with the following steps:

  1. Boot into Ubuntu
  2. Download 
http://people.canonical.com/~ypwong/lp1734147/linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+20170103+1_amd64.deb
  3. Install the downloaded package:
    $ sudo dpkg -i 
linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+20170103+1_amd64.deb
  4. Make sure the kernel is installed without any error. Once installed, 
reboot.
  5. At grub, choose the newly installed kernel. You can choose the "recovery" 
mode.
  6. Reboot and go to BIOS settings to confirm your BIOS has been recovered.
  7. In case your BIOS is not recovered, reboot to the new kernel, then reboot 
*once again* to the new kernel, do not enter BIOS settings before the reboot. 
After the second reboot, check BIOS.
  8. If your BIOS issue remains, download another kernel from 
http://people.canonical.com/~ypwong/lp1734147/linux-image-4.15.0-041500rc6-generic_4.15.0-041500rc6.201712312330+clear+debug_amd64.deb,
 and use dpkg to install it, then repeat steps 4 to 6.

  After your BIOS is fixed, the kernel packages you just installed are
  no longer needed, you can remove it by running 'sudo dpkg -r linux-
  image-4.15.0-041500rc6-generic'.

  ---

  Test Case: Fix has been verified by our HWE team on affected hardware.

  Regression Potential: Minimal, it's unlikely anyone is actually doing
  anything which requires this driver.

  ---

  Affected Machines:

  Lenovo B40-70
  Lenovo B50-70
  Lenovo B50-80
  Lenovo Flex-3
  Lenovo Flex-10
  Lenovo G40-30
  Lenovo G50-30
  Lenovo G50-70
  Lenovo G50-80
  Lenovo S20-30
  Lenovo U31-70
  Lenovo Y50-70
  Lenovo Y70-70
  Lenovo Yoga Thinkpad (20C0)
  Lenovo Yoga 2 11" - 20332
  Lenovo Z50-70
  Lenovo Z51-70
  Lenovo ideapad 100-15IBY

  Acer Aspire E5-771G
  Acer Aspire ES1-111M-C1LE (fixed following your new instruction (thank you))
  Acer TravelMate B113
  Acer Swift SF314-52 (Fixed by 4.14.9)
  Toshiba Satellite S55T-B5233
  Toshiba Satellite L50-B-1R7
  Toshiba Satellite S50-B-13G
  Dell Inspiron 15-3531
  Mediacom Smartbook 14 Ultra M-SB14UC
  Acer Aspire E3-111-C0UM
  HP