[update] I have run openbsd 6.2 with libreboot on thinkpad x200 for about two months now without any errors, still no update on the harddisk crypto
-###Building Libreboot [WIP]
- #Get a newer version of flashrom than in Debian repo
- #In my case the older version did not detect the exact chip on x200
- #This was fixed by cloning and building the most recent version
+###Building Libreboot
+This script worked 2019-04, however we noted that the cryptomount program had less features in the version from Git at that time, compared to the 2016 stable release.
+Unlike Coreboot, this build process is fairly automated and does not present any customization choices by default
#!/bin/bash -e
cd libreboot
cd ./crossgcc/util/cbfstool/
make
cd ../../../
-
+
+ #BUILD COMPLETE, now fix the image
#finally build the ROM we want
./oldbuild roms withgrub x200_8mb
mv x200.rom ../../../
cd ../../../
+ #FINALLY add or change the files in the image for customization
#./cbfstool x200.rom extract -n grub.cfg -f grubtest.cfg
#./crossgcc/util/cbfstool/cbfstool x200_other_mac.rom remove -n grubtest.cfg
#./crossgcc/util/cbfstool/cbfstool x200_other_mac.rom add -n grubtest.cfg -f grubtest.cfg -t raw
- ## LASTLY FLASH TO CHIP
+ ## LASTLY FLASH TO CHIP (here internally)
#sudo ./flashrom/flashrom -p internal -w x200.rom
#backup current rom
sudo ./flashrom -p internal -r libreboot.rom
- #remove old GRUB (test) config
+ #Optional: remove old GRUB (test) config
./cbfstool libreboot.rom remove -n grubtest.cfg
- #get the new GRUB (test) config into your ROM
+ #Optional: get the new GRUB (test) config into your ROM
./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t raw
- #change background in GRUB menu (dest must be called background.png /jpg)
+ #Optional: change background in GRUB menu (dest must be called background.png /jpg)
#./cbfstool yourrom.rom remove background.png -n background.png
#./cbfstool yourrom.rom add -f background.png -n background.png -t raw
Nvidia GTX 660, Nouveau drivers but crashes when playing videos. Probably my fault however.
-For our software configs, see: [[https://github.com/Eliot-Roxbergh/dotFIles/]]
-
-TODO improve GRUB config
+For one example software config, see: [[https://github.com/Eliot-Roxbergh/dotFIles/]]
####Flashing
Buy a couple of flash chips in case of you breaking them, and to test different payloads. Furthermore, one could buy a proprietary chip just to debug the hardware.
./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w ~/libreboot_r20160907_grub_kgpe-d16/kgpe-d16_svenska_txtmode.rom
## NOTE ##
- # In my case (KGPE-D16) it was very difficult - seemingly at random - to achieve a configuration such as read and write had good reliability.
+ # In my case (KGPE-D16) it was somewhat difficult - seemingly at random - to achieve a configuration such as read and write had good reliability.
# Furthermore, writing had good success rate while reading was more error prone.
# Thus, it is possible to write to the ROM and read (e.g.) 10 times and compare the resulting `sha512sum` to that of the ROM downloaded from Libreboot.
# If the sum EXACTLY matches atleast once, it is reasonable to assume that the write indeed succeeded (we believe).