Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlocking bios #3

Closed
barhom opened this issue Sep 11, 2020 · 26 comments
Closed

Unlocking bios #3

barhom opened this issue Sep 11, 2020 · 26 comments
Labels
enhancement New feature or request

Comments

@barhom
Copy link

barhom commented Sep 11, 2020

Looks like some people find a way to unlock the bios.

Would be cool if we can do any of this from Linux without being forced to reinstall windows.

https://www.reddit.com/r/AMDLaptops/comments/ihsoo1/backdoor_unlocked_bios_for_lenovo_slim_7_and/
https://zhuanlan.zhihu.com/p/184982689

Any ideas?

@jrandiny
Copy link
Owner

Hmm interesting, I will try to look into this when I have the time, no promises though

@jrandiny jrandiny added the enhancement New feature or request label Nov 16, 2020
@sssemil
Copy link
Contributor

sssemil commented Nov 20, 2020

Tried this today on my Yoga Slim 7-14ARE05 with AMD Ryzen 7 4800U, worked perfectly! Also enabled S3 in BIOS:

sudo dmesg | grep ACPI:\ \(
[    0.395213] ACPI: (supports S0 S3 S4 S5)

@barhom
Copy link
Author

barhom commented Nov 21, 2020

Tried this today on my Yoga Slim 7-14ARE05 with AMD Ryzen 7 4800U, worked perfectly! Also enabled S3 in BIOS:

sudo dmesg | grep ACPI:\ \(
[    0.395213] ACPI: (supports S0 S3 S4 S5)

If I only could do this from linux.
Maybe i should boot a live windows

@sssemil
Copy link
Contributor

sssemil commented Nov 21, 2020

OP in that thread said that you could if you have/can make a script to operate IO ports on Linux, so, in theory, you can, I guess.

@ko-christ
Copy link
Contributor

I didn't try this yet. I first upgraded Bios to DMCN34WW but then I could not boot in Ubuntu 20.04 so I had to enable downgrading bios version in Bios and then revert to DMCN32WW. Has anyone tried the latest Bios DMCN34WW with Ubuntu?

@sssemil
Copy link
Contributor

sssemil commented Nov 21, 2020

Yep, works fine, but I installed it over new bios. Got secure boot stuff disabled too.

@rjd22
Copy link
Contributor

rjd22 commented Nov 26, 2020

@ko-christ @sssemil I'm sorry for asking but I hope to get my answer here since googling doesn't give me any answers.

What would be the way to flash the bios on ubuntu if you don't have Windows installed anymore? I tried checking if UEFI capsule updates are possible but it seems this is not possible with these bios versions.

@ko-christ
Copy link
Contributor

@rjd22 I really don't know how to do it from Ubuntu. Why don't you burn a freedos image with rufus or similar software and boot from it?

@ko-christ
Copy link
Contributor

@sssemil what kernel are you using?
This folk also didn't manage to upgrade his bios and it is because of the unsigned 5.9 and the non secure boot settings
https://forums.lenovo.com/t5/Lenovo-Yoga-Series-Notebooks/Yoga-Slim-7-BIOS-update-to-DMCN34WW-breaks-option-Secure-Boot-No/m-p/5046311?page=1#5196561

@sssemil
Copy link
Contributor

sssemil commented Dec 1, 2020

I'm using Linux 5.9.8. I flashed BIOS update in windows 10 (always good to keep like 50 GB install around for cases like this).

@rjd22
Copy link
Contributor

rjd22 commented Dec 2, 2020

@ko-christ Is this the way you do it? I coudn't keep the Windows 10 install sadly because of the need of full disk encryption with secure boot. Dual boot doesn't work then >_>.

@sssemil
Copy link
Contributor

sssemil commented Dec 2, 2020

If you have an extra SSD, you could use it to install windows and update :P

@ko-christ
Copy link
Contributor

ko-christ commented Dec 2, 2020

@rjd22 I have windows installed for the bios updates. Also see instruction in the end of this page, they may work for you https://www.lenovodrivers.download/ideapad-slim-7-14are05-bios-update/

@sssemil That's weird because, according to the post I linked and my personal experience with the upgrade to DMCN34WW
'Unfortunately booting in the mode "Secure Boot = No" stopped working with the last BIOS version.'
ans 5.9.8 which is an unsigned kernel requires secure boot off.

@ko-christ
Copy link
Contributor

While I was in DMCN32WW I installed a self-signed 5.9.12 kernel and then I enabled Secure Boot.
With this setup (DMCN32WW + Secure Boot on) I was also able to boot with my self-signed kernel as well as with the 5.4.0 Ubuntu kernel but I was not able to boot with the unsigned 5.9.12 kernel which was kind of expected.

I then crossed my fingers and installed DMCN34WW but unfortunately the system didn't boot with the self-signed 5.9.12 kernel.
The system freezes with a message Loading ramdisk and nothing happens.
The unsigned 5.9.12 kernel was raising another error for the unsigned kernel with a message like please load the kernel..
I was only able to boot with the official 5.4.0 kernel but as you may already know this is useless in Yoga Slim 7 if you need HDMI.
Turning Secure Boot off with DMCN34WW didn't make any difference. The option to disable secure boot is still there btw.
So again, my 2nd attempt to upgrade the BIOS failed and I had to revert to DMCN32WW.

If anyone has a solution to install a 5.9+ kernel with DMCN34WW please post it.

@jrandiny
Copy link
Owner

jrandiny commented Dec 5, 2020

@ko-christ Hmm regarding the updated bios compatibility maybe you can create a new issue?

@ko-christ
Copy link
Contributor

yeap makes sense: #14

@rradar
Copy link

rradar commented Dec 23, 2020

@sssemil wrote:

Tried this today on my Yoga Slim 7-14ARE05 with AMD Ryzen 7 4800U, worked perfectly! Also enabled S3 in BIOS:

sudo dmesg | grep ACPI:\ \(
[    0.395213] ACPI: (supports S0 S3 S4 S5)

This looks like the best available solution to work'a'round this annoying problem. It's also the only one that "survies" linux re-installs, kernel changes and other OS related things (as it is completely OS independed). Not sure however what happens doing a bios upgrade over unlocked/hacked bios?

@sssemil
Copy link
Contributor

sssemil commented Dec 23, 2020

I do not plan on updating bios any time soon, since this backdoor might get removed. But my guess is that it will just get overwritten.

@esno
Copy link

esno commented Jan 7, 2021

@barhom I wrote https://github.com/esno/yoga-bios-unlock to unlock mine today with DMCN32WW. People saying it should work as well with DMCN34WW but I never tried that by myself.

@barhom
Copy link
Author

barhom commented Jan 7, 2021

@esno you are a life saver! I was planning on installing windows and now I do not need to. Best gift ever ;)

@barhom
Copy link
Author

barhom commented Jan 7, 2021

@barhom I wrote https://github.com/esno/yoga-bios-unlock to unlock mine today with DWCN32WW. People saying it should work as well with DWCN34WW but I never tried that by myself.

So apparently I am still on, DMCN27WW.
Ill have to update to DWCN32WW first.

(PS: The BIOS versions are DM not DW)

@esno
Copy link

esno commented Jan 8, 2021

typo - sry ^^ fixed that in my comment. I never had a device running DMCN27WW can't tell if that would work. Only seeing people talking about DMCN32WW and DMCN34WW.

PS FlyGoat is the life saver not me - I only wrote some lines based on his guidance ;)

@jrandiny
Copy link
Owner

jrandiny commented Jan 8, 2021

Tested with DMCN34WW. Thanks, I will put a link to your repo on the readme

@barhom
Copy link
Author

barhom commented Jan 8, 2021

@rjd22
Copy link
Contributor

rjd22 commented Jan 10, 2021

@barhom sadly the bios that Lenovo supplies is not an uefi bios so flashing only works on Windows 10.

What I did was creating a Windows GO USB stick and booted the laptop from the usb. I also did the bios unlock this way.

I did this by getting the iso from Microsoft and making an Windows Go USB with Rufus. (You need a fast usb stick for this)

Btw don't flash your bios to version DMCN34WW but flash it to DMCN32WW. In version 34 a lot of options are hidden again even when unlocking the bios.

@rjd22
Copy link
Contributor

rjd22 commented Jan 21, 2021

@jrandiny Since we now have a tool that allows for unlocking bios in Linux I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants