mirror of
https://github.com/Qubes-Community/Contents.git
synced 2024-12-22 05:45:03 -05:00
Update x230.md
This commit is contained in:
parent
738dd06ddd
commit
fe4db19f32
@ -243,7 +243,7 @@ read existing BIOS and transfer it to build machine
|
||||
|
||||
1) Read upper bios chip (4MB)
|
||||
```
|
||||
pi@raspberrypi:~ $ flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "MX25L3205D/MX25L3208D" -r x230-bios-top1.bin
|
||||
pi@raspberrypi:~ $ flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "MX25L3206E/MX25L3208E" -r x230-bios-top1.bin
|
||||
flashrom p1.0-69-g3f7e341 on Linux 4.14.30-v7+ (armv7l)
|
||||
flashrom is free software, get the source code at https://flashrom.org
|
||||
|
||||
@ -256,7 +256,7 @@ read existing BIOS and transfer it to build machine
|
||||
|
||||
2) Read lower bios chip (8MB)
|
||||
```
|
||||
pi@raspberrypi:~ $ flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -r x230-bios-bottom1.bin
|
||||
pi@raspberrypi:~ $ flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "MX25L6406E/MX25L6408E" -r x230-bios-bottom1.bin
|
||||
flashrom p1.0-69-g3f7e341 on Linux 4.14.30-v7+ (armv7l)
|
||||
flashrom is free software, get the source code at https://flashrom.org
|
||||
|
||||
@ -432,7 +432,7 @@ I have moved the coreboot-ROM files to a new directory ~/ROM-ready on the raspbe
|
||||
Logon to the pi and flash both chips:
|
||||
```
|
||||
# write top chip (4MB)
|
||||
pi@raspberrypi:~/ROM-ready $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "MX25L3205D/MX25L3208D" -w x230-coreboot-4mb.rom
|
||||
pi@raspberrypi:~/ROM-ready $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "MX25L3206E/MX25L3208E" -w x230-coreboot-4mb.rom
|
||||
flashrom p1.0-69-g3f7e341 on Linux 4.14.30-v7+ (armv7l)
|
||||
flashrom is free software, get the source code at https://flashrom.org
|
||||
|
||||
@ -443,7 +443,7 @@ Erasing and writing flash chip... Erase/write done.
|
||||
Verifying flash... VERIFIED.
|
||||
|
||||
# write bottom chip (8MB)
|
||||
pi@raspberrypi:~/ROM-ready $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -w x230-coreboot-8mb.rom
|
||||
pi@raspberrypi:~/ROM-ready $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000 -c "MX25L6406E/MX25L6408E" -w x230-coreboot-8mb.rom
|
||||
flashrom p1.0-69-g3f7e341 on Linux 4.14.30-v7+ (armv7l)
|
||||
flashrom is free software, get the source code at https://flashrom.org
|
||||
|
||||
@ -459,77 +459,6 @@ now it is time to cross fingers and try if you was able to flash coreboot.
|
||||
Remove the Pomodo-Clip, put your keyboard back, put your battery in and power on.
|
||||
In case you run into any problems, you can always reflash your stock rom.
|
||||
|
||||
|
||||
|
||||
## From my older notes (FIXME!)
|
||||
(this needs to be rewritten/updated to the above procedure)
|
||||
|
||||
--- on your raspberry pi ---
|
||||
|
||||
0) Put External Flash Clip, female jumper cables and Raspberry pi together
|
||||
(kind of a lego thing)
|
||||
|
||||
1) Install Raspberian on Pi using Noobs
|
||||
|
||||
2) Update Pi and install additional packages including 'flashrom'
|
||||
|
||||
3) take keyboard and palmrest of your "coreboot target laptop" (target) off
|
||||
to access the BIOS Chip(s)
|
||||
|
||||
4) Connect the BIOS-Clip to BIOS-chips and read the content from your pi
|
||||
(x230-default-part2-4mb.rom / x230-default-part2-8mb.rom)
|
||||
|
||||
5) merge the two files into one 12 MB ROM file
|
||||
(x230-default-12mb.rom)
|
||||
|
||||
--- on your build laptop ---
|
||||
|
||||
6) Copy all three files to your "build laptop" (laptop)
|
||||
Build Laptop must run Linux, this howto assumes you are using Ubuntu 16.04.3 LTS
|
||||
(could also be installed on an USB thumbdrive or external harddrive)
|
||||
|
||||
7) Download Coreboot from GIT
|
||||
|
||||
7) Install UEFITool on laptop
|
||||
|
||||
8) Extract VGA BLOB from the x230-default-12mb.rom file
|
||||
save the file in the coreboot/blobs directory
|
||||
(./coreboot/3rdparty/blobs/mainboard/lenovo/x230/pci8086,0166.rom)
|
||||
|
||||
9) Build Coreboot Toolchain
|
||||
|
||||
10) Compile ifdtool located in the coreboot/utils directory
|
||||
|
||||
11) Extract BLOBS from x230-default-12mb.rom using ifdtool
|
||||
save the files in the coreboot/blobs directory
|
||||
(./coreboot/3rdparty/blobs/mainboard/lenovo/x230/descriptor.bin)
|
||||
(./coreboot/3rdparty/blobs/mainboard/lenovo/x230/me.bin)
|
||||
(./coreboot/3rdparty/blobs/mainboard/lenovo/x230/gbe.bin)
|
||||
|
||||
11b) [Optionally] Use ME_Cleaner on me.bin file )
|
||||
(also it seems that ME_Cleaner is included in Coreboot:
|
||||
Coreboot nconfig:
|
||||
Chipset > Add Intel descriptor.bin file > Add Intel ME/TXE firmware
|
||||
--> Strip down the Intel ME/TXE firmware )
|
||||
I've choosen to leave the me.bin as is until everything is working.
|
||||
|
||||
12) Configure Coreboot (make nconfig)
|
||||
choose parameters/features and add the 4 binary blobs (step 8 and 11)
|
||||
|
||||
13) build coreboot image
|
||||
(./coreboot/build/coreboot.rom)
|
||||
|
||||
14) Split coreboot.rom into two separate files to flash them to your 2 chips
|
||||
(x230-coreboot-8mb.rom and x230-coreboot-4mb.rom)
|
||||
|
||||
15) copy both files to your Raspberry Pi
|
||||
|
||||
--- on your Raspberry pi ---
|
||||
|
||||
16) flash both files using flashrom again
|
||||
|
||||
17) Reboot target laptop
|
||||
|
||||
18) should boot up with coreboot.
|
||||
|
||||
|
||||
If you have comments or need help, feel free to contact the contributors of this howto:
|
||||
- https://github.com/one7two99
|
||||
- ...
|
||||
|
Loading…
Reference in New Issue
Block a user