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

New testing version, testers needed! #37

Closed
digmorepaka opened this issue Mar 23, 2020 · 32 comments
Closed

New testing version, testers needed! #37

digmorepaka opened this issue Mar 23, 2020 · 32 comments

Comments

@digmorepaka
Copy link
Collaborator

digmorepaka commented Mar 23, 2020

New testing version available.

Testing needed specifically for:
-X230/X330 FHD: expected behavior: After booting up the liveusb you see the 1vyrain prompt on the FHD display connected via eDP.
-L430: expected behavior: No WLAN, WWAN, whitelists, advanced menu enabled.
-All models: expected behavior: 1066 memory limiter option missing and replaced with a second Auto

Image: https://xorg-broke-aga.in/1vyrain.iso
md5sum: dd30313a8665e870360920b00cec55c4

Change log:
-booting in blind mode fix
-X230(X330) FHD requiring LVDS display to be plugged in fixed(image now shows on all connected screens)
-L430 support removed for now. Will be added back if someone with a hardware flasher and L430 is willing to test. Rom is still inside the image but it has to be flashed manually
-1066 speed limiter removed to prevent bricks
-TPM fix

References:
#27
#24
https://askubuntu.com/questions/831346/no-suitable-video-mode-detected/857008
https://i.imgur.com/l5VpwXs.png
#21
#41

@dte102
Copy link

dte102 commented Mar 24, 2020

I'm getting a no valid BIOS error on my L430, what's the BIOS version needed to perform this on a L430? I recently change the motherboard on my L430 so I'm on G3ET93WW(2.53) instead of G3ET94WW(2.54). Did the compatibility test again and also got a compatible for this BIOS version as well.

@digmorepaka
Copy link
Collaborator Author

digmorepaka commented Mar 24, 2020

@dte102 I just checked, 2.54 and below is compatible according to the report. This is an error in the script, as we forgot to add the L430. Do the exploit "test", after resuming from suspend exit the script, and run the following commands
dd if=/dev/zero of=/tmp/pad.img bs=1M count=4
cat /tmp/pad.img /root/bios/L430.rom > /tmp/padded.rom
flashrom -p internal:laptop=force_I_want_a_brick --ifd -i bios -N -w /tmp/padded.rom
And report back the results, if there are any errors during flashing, or if the worked.

@digmorepaka
Copy link
Collaborator Author

Image and md5sum updated. Link is the same.

@dte102
Copy link

dte102 commented Mar 24, 2020

@digmorepaka Getting an error when trying to flash for the L430.
Found Winbound flash chip "W25Q64.V" (8192 kb, SPI) mapped at physical address 0x00000000ff800000.
Reading ich descriptor.. done.
Using region: "bios".
Write/erase is not working yet on your programmer in its current configuration.
Aborting.

@digmorepaka
Copy link
Collaborator Author

@dte102 add /root/flashrom/ before the flashrom command to point to the newer binary, Debian's flashrom looks to be ancient

@dte102
Copy link

dte102 commented Mar 25, 2020

@digmorepaka it went through an initial flash and then came upon the same error again except it ended with the line "verified flash" or something and close after aborting when it was flashing something else. Decided to reboot to test out what flashed but unfortunately it seems like the laptop bricked cause it rebooted to a blank screen, no bios or anything for a couple minutes. Once I unplug everything and re-plug it in, it refuses to boot nor do any indicator lights come on. I've got my previous motherboard that still boots, replaced it because I accidentally ripped the touch pad port off of the motherboard. I can place that inside and still test for things out if needed.

@digmorepaka
Copy link
Collaborator Author

digmorepaka commented Mar 25, 2020

@dte102 do you have an SPI flasher(for example ch341a)? We can recover the bricked board.

@dte102
Copy link

dte102 commented Mar 25, 2020

@digmorepaka Not at the moment, was always planning to get one before 1vyrain came out for my T430 but still never got around to it. I do have a raspberry pi that can be used in place of it, but I don't have a test clip nor jumper wires either.

@digmorepaka
Copy link
Collaborator Author

@dte102 damn that sucks, both from the standpoint of you having a bricked board, and the inability to test L430 support properly

@dte102
Copy link

dte102 commented Mar 25, 2020

@digmorepaka I've ordered a SPI kit so we can recover that board whenever it arrives since it was cheap. In the mean time when I have more free time, I'll swap boards and try flashing it again to see what happens on my 2.54 board. I'll take a picture if it comes up with the same error as before.

@digmorepaka
Copy link
Collaborator Author

If you are going to flash, set a custom url and point to the image in the patched-bios repo.

@digmorepaka
Copy link
Collaborator Author

Image updated due to issue pointed out in #39. MD5 of course updated and links stays the same.

@n4ru
Copy link
Owner

n4ru commented May 12, 2020

Will finally be merging this in later this week if there are no further updates.

@digmorepaka
Copy link
Collaborator Author

Updated with a fix for TPMs. You should now be able to use the TPM normally. Tested on T430 so far there it worked, report any bricks or success

@digmorepaka
Copy link
Collaborator Author

Image was broken. Rolled back debian to known working version with proper roms.

@Pentaphon
Copy link

@n4ru If we have Revision 4 already installed, do we just flash Revision 5 over that when it comes out?

@digmorepaka
Copy link
Collaborator Author

digmorepaka commented Jun 30, 2020

@Pentaphon If you need the fixed features, you can update by downgrading with IVprep. And then installing the new revision.

@Rawit-git
Copy link

Rawit-git commented Jul 30, 2020

I've used revision 5 on my x230 which had its TPM stuck in MFG mode since my flash attempt with the first release of 1vyrain. TPM seems fully functional again (BIOS options are back to normal) with revision 5 and setting up BitLocker went perfect where it before it would get stuck on TPM provisioning and didn't allow encryption.

I did change the SSD (Samsung 860 EVO) in the meantime and did a fresh install of Windows 10 Pro so I do need to verify what actually is being used. The recently addressed flaws in hardware encryption/BitLocker updates makes it a bit non-transparent to the end-user to what combination of encryption and software/hardware is being used.

Revision 4 (the Google Drive link) didn't work for me at all. It gave me an "Error: Image size (0 B) doesn't match the flash chip's size" error, which makes me think it was missing a file.

Edit: Checked with "manage-bde -status C:", TPM is utilized. I enabled hardware encryption on the drive, secure erased it, reset the security chip (TPM) through the BIOS and did a clean install of Windows 10 again. Works perfectly and BitLocker was able to software and hardware encrypt and use the TPM.

@Pentaphon
Copy link

you can update by downgrading with IVprep. And then installing the new revision.

Will I experience any issues if I have a non-whitelisted Wifi card installed?

@digmorepaka
Copy link
Collaborator Author

Will I experience any issues if I have a non-whitelisted Wifi card installed?

Yes, you will need to remove the WLAN card. IVprep flashes an unmodified rom.

@HarMaximus
Copy link

Tested version 5 on T430s. Fixed TPM issue.
Thanks :)

@iXPert12
Copy link

Tested v5 on T430. TPM fixed. All good. Thanks.

@n4ru
Copy link
Owner

n4ru commented Aug 24, 2020

Thank you digmo for staying on top of this while my lazy ass hasn't found time/motivation to push out Rev 5. Will be finally merging the remaining changes and posting the new iso/md5 today (hopefully...).

@digmorepaka
Copy link
Collaborator Author

rev.5 merged

@pgera
Copy link

pgera commented Aug 27, 2020

Is tpm supposed to be entirely fixed in this version, or does it still require provisioning in the stock state ? I just flashed the current version, and I can't provision the tpm.

@iXPert12
Copy link

Hi pgera. Did you use ivprep before flashing the new version? As far as i remember, i cleared the TPM from bios after flashing ivprep, and then used ivyrain to update to latest version.

@pgera
Copy link

pgera commented Aug 27, 2020

I didn't clear or take ownership on the stock bios. That should work. My question was about whether you can clear and take ownership again on the modified one. Are you able to clear/provision the tpm right now on the modified one ?

@digmorepaka
Copy link
Collaborator Author

Personally i have only tested going from when it was in "inactive". There it worked fine. More testing has to be done to know exactly.

@iXPert12
Copy link

Yes, i can clear it on the latest bios now.

@pgera
Copy link

pgera commented Aug 28, 2020

@iXPert12 , after you clear the tpm from tpm.msc, it reboots and you get the confirmation screen, right ? In my case, it reboots, but fails to show the confirmation screen.

@tlaurion
Copy link

tlaurion commented Dec 21, 2023

@iXPert12 @pgera @n4ru :
Testing on W530, trying to only unlock ifd+flash exposed w530 chip under palmrest with 1vyprepped verson backupd, unlocked and flashed back to then flash internally (ctrl+c after 1vyrain Bios lock exploit chain) to flash heads maximized build internally. No problem there.

Steps

  • Use pamona clip not chinese kit alternative, assemble as described under Add in place programmer's flashing "best practices" and refer to ch341a rev 1.6+  linuxboot/heads-wiki#120 (comment)
  • Backup exposed 8mb chip into backup.rom, run ifdtool -u backup.rom, flashrom back backup.rom.new (with unlocked ifd) to 8mb chip.
  • Run 1vyprep from windows on laptop (wish 1vyprep was containing wlan chip whitelist).
  • Run 1vyrain exploint chain to unlock Bios lock, get to prompt to flash, CTRL-C and then get backup of full 12mb combined flash with flashrom -p internal:laptop=force_I_want_a_brick -r w530_1vypreppred_unlocked_ifd_backup.rom
  • Do other experiments below

Problem arises under Heads when attempting to set a TPM Disk Unlock Key, where TPM reset works as expected.
I'm also wondering in which state the TPM should be left in.

Eg:
signal-2023-12-21-111322

Past testings from 1vyprep unlocked ifd reflashed to 8mb spi:

TPM active, clear settings

  • reflash heads maximized build from 1vyrain ( CTRL+C at flashing choice to drop to shell. flashrom -p internal:laptop=force_I_want_a_brick -w heads-w530-maximized.rom required)
  • reset tpm works
  • sealing additional secret fails (Add TPM Disk Unlock Key (DUK) from show boot option and selecting new boot default): NVWrite can't set new nvram range

TPM Active, Windows Security chip settings -> clear

  • redoing 1vyrain, flashing heads from above manual flashrom command
  • From heads, reset tpm works as expected
  • adding TPM DUK still fails

TPM clear settings + TPM set to inactive

  • redoing 1vyrain, flashing heads from above manual flashrom command
  • From heads, reset tpm works as expected
  • Same error as in picture...

TPM clear settings + TPM deactivated
signal-2023-12-21-120346

  • redoing 1vyrain, flashing heads from above manual flashrom command
  • From heads, reset tpm works as expected
  • Same error as in picture...

Looking to prepare a step-by-step instruction guide here. But cannot replicate a successful TPM reset where TPM is properly owned (TPM presence?! all settings in stock BIOS were set to disabled under TPM. ... Confused here!)

@tlaurion
Copy link

Nevermind, it was linuxboot/heads#1565 which is now fixed.

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

No branches or pull requests

9 participants