[Bug 1734147] Re: Ubuntu 17.10 corrupting BIOS - many LENOVO laptops models

2017-12-20 Thread i336_
Paul (sabret00the) (#190): All good - stackexchange doesn't make that
detail (the fact that the direct URL only loads for you) obvious. Not
sure why, I presume to combat spam or something.

--

Hmm. Quoting a bit of #193 (uocc4me / uoccdisp-uone):

> After clobbering the bios during the 17.10 install, I erased 17.10 and
installed 16.04. The machine has been running Ubuntu 16.04 just fine for
several weeks now (many reboot cycles), although things like hibernate
and suspend don't work, presumably because the bios is stuck in legacy
mode (can't switch to UEFI).

This (and the rest of the report) seems to disprove the "two full
reboots" theory. :(

I wonder what chip models that Mika Westerberg was dealing with (re #169
and #173) and whether they were Winbond or not. The links from those
comments are only about the Yoga, there's no mention of the actual
vendor type.

If the SPI Flash model is different in Mika's case then maybe there are
different solutions for different Flash chips.

--

>From #193 allen (krell):

> I think we are off on the wrong track. This is fundamentally a CVE
against Insyde Software BIOS and possibly other vendors.

In the same class as the Samsung samsung-laptop bricking in 2013
(https://bugs.launchpad.net/ubuntu-cdimage/+bug/1040557?comments=all)
and the systemd EFI bricking in 2016
(https://github.com/systemd/systemd/issues/2402).

--

>From #192 Miguel Alejandro Roche Villarreal (exploud345):

> I have a Acer Aspire E5-511-C5QS with the same issue with BIOS, i try
solution from TOXIC (toxicpublic) in #185, but says invalid EFI file
path, also i can't try solution from Paul Sladen(#173) because i can't
boot Ubuntu, only Grub Shows and allow me to boot my Windows 10
partition, i hope someone finds a solution for Windows

I may be wrong as I'm still learning the intricacies of EFI, but it's
possible GRUB is simply confused about your partition structure and you
can tell it where to find and boot Linux.

Figuring out where it glitched is beyond the scope of this thread -
you'll want to go hunting online for this info - but here is a
POTENTIALLY DANGEROUS trick that may make the process easier if you just
have the one computer.

You don't have to continually reboot between Windows and GRUB to test
things out, you can simply create a new virtual machine in eg virtualbox
and point the VM at your computer's hard drive.

The only dangerous part is accidentally selecting to boot Windows in the
VM: running two operating systems off of one disk is going to mean
corrupted files, as both OSes compete for raw access to the disk (and
have increasingly different ideas of what data is where).

So if you can carefully make sure you don't boot Windows from GRUB (and
maybe even keep task manager open to kill virtualbox instantly in case
you do), I'm reasonably confident (standard disclaimers apply) that you
may be able to fiddle around and get GRUB booting Linux.

Booting Linux inside the VM should be safe, as it's the only copy of
Linux running off that particular partition. The idea is to figure out
what to do in GRUB to make Linux boot, write the commands down, then
reboot and apply the commands.

The above being said, standard disclaimers do apply, there are many
little unforeseen things that could go wrong with this. I don't know
what EFI information Ubuntu saves between reboots; what happens when the
system is rebooted from a VM onto bare metal may be worth reasoning
through.

I also WOULD NOT recommend getting GRUB to save the EFI information
_from inside the VM_ - both because this will rewrite the boot sector
and EFI partition and this might give Windows indigestion, and also
because virtualbox's EFI setup is going to be different to the real
hardware.

** Bug watch added: github.com/systemd/systemd/issues #2402
   https://github.com/systemd/systemd/issues/2402

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1734147

Title:
  Ubuntu 17.10 corrupting BIOS - many LENOVO laptops models

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs


[Bug 1734147] Re: Ubuntu 17.10 corrupting BIOS - many LENOVO laptops models

2017-12-20 Thread i336_
To Paul (sabret00the), #158: FWIW, if you want everyone to be able to
see your askubuntu post you'll need to post a screenshot of it (just
attach it - not going to hurt anything...). The question was deleted so
it only loads for you. As for the deletion/closure, that sort of thing
happens a _lot_ on stackexchange sites; don't take it personally.

As for everyone else: I've just reread through this entire thread and
thought I'd reiterate some of the highlights:

In comment #141 Anthony Wong explained that the SPI Flash is somehow
being write-protected.

In comments #164, #169 and #173 Paul Sladen (sladen) copied some
potentially interesting thoughts from Mika Westerberg regarding the
Flash chip vendors/models.

It would be very interesting if someone could post how to dig the Flash
chip vendor info out of a running system - perhaps via dmidecode? Those
with "kickstart-able" machines could then provide this info. (Not sure
if this isn't perhaps already happening via email.)

The question at this point is whether the write-protect bit is a fuse
that can't be unset. If it can be unset, and some convoluted process can
be executed to get bricked machines to somehow boot, well, that'll be
very interesting. :)

One last thing for developers/anybody who might need to coach someone
through PXE booting: I found http://brokestream.com/netboot.c some time
ago while looking for a tiny PXE server. This one handles DHCP+TFTP
(make sure you have no DHCP server or relay running!), happily boots
PXELINUX, runs great on Linux and probably other UNIX-likes, and is very
simple to use. Presuming 10.42.x.x isn't in use,

- ifconfig  up 10.42.0.1

- (find broadcast address (not netmask :D) via ifconfig)

- ./netboot  10.42.0.1 10.42.0.2 -

The last dash translates to a fully ambiguous MAC address, ie so you
don't have to specify that too. And 10.42.0.2 is of course the IP the
PXE-ing machine will get.

Installing syslinux will provide a copy of pxelinux.0 (mine was in
/usr/share/syslinux). In any random dir (I used ~), if you create the
directory "pxelinux.cfg" and then create the file "pxelinux.cfg/default"
with the contents "default vmlinuz initrd=initrd.img" and then copy
vmlinuz and initrd.img to the same root dir (~ in my case), everything
should work.

This PXE info may prove to be irrelevant, but I thought I'd include it
just in case it turns out to be useful to have in the thread. It's also
good to know that PXE is not hard to do. (It isn't, but most PXE servers
presume large-scale enterprise scenarios...)

As for where to get a kernel and initrd,
https://help.ubuntu.com/community/Installation/MinimalCD provides an ISO
file you can mount and copy the "linux" and "initrd.gz" files out of.
CTRL+ALT+F2 gives you a console on this ISO. Note that this one contains
_no utilities_ but is a workable start to test with.

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1734147

Title:
  Ubuntu 17.10 corrupting BIOS - many LENOVO laptops models

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147/+subscriptions

-- 
kubuntu-bugs mailing list
kubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs