Comments (15)
- pawn seems to dump some more data after 12MB.
First 12MB is the same as from flashrom. (on unlocker x230)
from skulls.
from skulls.
first Test:
pawn
reads 16Mflashrom -p internal -r
reads 12Mdd if=pawn_read.rom of=bios_image_full_12m bs=1M skip=0 count=12
produces what flashrom reads.
Also I tested on an already unlocked flash image.
from skulls.
This is result when I try to read rom on locked T430.
from skulls.
ok. are you sure you try to read "online"? I think we can only use flashrom -p internal
here...
from skulls.
Figured it out and changed screenshot...
from skulls.
pawn on locked T430:
I can not reboot that computer right now so I can not tell if changing kernel params changes anything...
from skulls.
ok. you don't seem to boot with iomem=relaxed
kernel cmdline parameter (for example set in GRUB, if you use that). Without that it cannot work.
from skulls.
I can not reboot that computer right now, it is in use...
from skulls.
It might not be that bad idea to also let people specify different flasher...
I for example do not use RPi...
from skulls.
Right now the script is even called "flashrom_rpi_write", so in that case it should be fine :)
But in case we rename it to "flashrom_write" and add a flasher-option, I'd invent a new option that translates to the actual flashrom parameters. I don't want people to worry about setting "spispeed" for example: -f rpi
would set what we currently have. What do you think? I won't myself directly add a flashrom command I never tesed though:
So you would have to add your hardware-option to the script, so people know who they can ask. (Have you flashed multiple x230 devices successfully?) And you'd have to add a "flashing example" section in README. Don't underestimate that work :)
from skulls.
I'll be able to test internal-reading on a locked flash image next week, hopefully.
If that won't work, we should add a script that reads, pulls coreboot (for ifdtool) and optionally me_cleaner and applies everything and flashes back the result, all-in-one.
For this, we'd need our flashrom wrapper read-only mode too. Maybe I should simply call the script flashrom_wrapper.sh
.
from skulls.
Test on a fresh X230, never flashed before, original Lenovo BIOS and everything:
flashrom -p internal
doesn't read the locked regions- I have seen discussions upstream though on this topic, and the HEADS project seems to have patches... I haven't further tested. Support may or may not come someday. for writing too
pawn
does read the 16M without an issue!- As mentioned above, I simply split out the 4M and 8M with
dd
- I then read the chips seperately, externally (RPi in my case) and compared:
the 8M differ. substantually. pawn clearly reads less. probably also no locked region.
- As mentioned above, I simply split out the 4M and 8M with
For my part, I won't further dig in about why this is, and how, because really it doesn't matter that much as long as we still have to disassemble the device for some reason. Let's keep an eye on flashrom though. It looks like we'll focus on creating 2 scripts:
flashrom_rpi_top_write.sh
we (almost) already have, for the 4M release-image (first-time flashing)flashrom_rpi_bottom_unlock.sh
for the 8M first-time stuff:- we could ship and build ifdtool directly. it's tiny. (document archive extraction too...)
- we could ship me_cleaner.py too (run it optionally)
I'll create an "external" or "util" directory, similar to coreboot, only really tiny, and go from there.
from skulls.
Just to follow-up: "unlocking" is only writing 0xff to 4 bytes:
--- low_locked1.rom
+++ low_locked1.rom.new
@@ -1,14 +1,14 @@
00000000: ffff ffff ffff ffff ffff ffff ffff ffff ................
00000010: 5aa5 f00f 0301 0403 0602 1012 2001 2100 Z........... .!.
00000020: 2500 0000 ffff ffff ffff ffff ffff ffff %...............
00000030: 1c00 9049 0000 0000 0000 0000 ffff ffff ...I............
00000040: 0000 0000 0005 ff0b 0300 ff04 0100 0200 ................
00000050: ff1f 0000 ffff ffff ffff ffff ffff ffff ................
-00000060: 0000 0b0a 0000 0d0c 1801 0808 ffff ffff ................
+00000060: 0000 ffff 0000 ffff 1801 0808 ffff ffff ................
00000070: ffff ffff ffff ffff ffff ffff ffff ffff ................
00000080: ffff ffff ffff ffff ffff ffff ffff ffff ................
00000090: ffff ffff ffff ffff ffff ffff ffff ffff ................
000000a0: ffff ffff ffff ffff ffff ffff ffff ffff ................
and this address is read by pawn. if it would be possible to write only this address, we'd win.
from skulls.
I forgot to close this in one of the commits around today's 0.0.5 release (mainly it's a SeaBIOS update).
Anyways, I tested the new process and flashed a "new" X230 using the included scripts now. I like it a lot. It's really painless now to "bootstrap" a device; almost just "wait til it's done" compared to before :)
And see how small our release files have become :) 500k instead of 12M.
Supporting a different hardware SPI flasher you use and test, is a different issue.
from skulls.
Related Issues (20)
- Problems and concerns after flashing T430
- Request: Support other brands as well HOT 1
- Request: Support for the ThinkPad T430s HOT 2
- "Error: Extra parameter found" when Flashing Bottom Chip T430 HOT 11
- I got error with windows HOT 1
- Error with skulls 1.09 HOT 1
- T430 USB Issues HOT 1
- T530 ACPI_BIOS_ERROR 1.0.9 WIN BOOT HOT 9
- X230 with Quad-Core (Intel Core i7-3612QE) is slow HOT 1
- GRUB settings after new update HOT 2
- Feature ThinkPad W520 Support HOT 1
- Pine64 PineBook Pro (Debian 12 aarch64) Support
- Error update skulls HOT 5
- X230 heat problem HOT 2
- Missing Virtualization and Graphic on T440p HOT 3
- coreboot configuration utility & Skulls splash screen in eternal loop. HOT 3
- Request: ThinkPad E520 support
- W530: Discrete/dual graphics causes black screen or abrupt shutdown
- Support for acer aspire one D255
- Coreboot fucks up X230 payloads with the releases after 20 may
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skulls.