When installing Debian I used [this guide](https://libreboot.org/docs/gnulinux/encrypted_debian.html) in particular, while also encrypting /boot (named boot thus with the resulting full name lvm/matrix-boot, size a couple of hundreds MB). The guide uses LUKS->LVM->Partitions, thus everything is encrypted. You don't need to install GRUB since it is already on the libreboot ROM (if you're using the GRUB payload), however, using a local GRUB makes it possible to [change GRUB config](https://libreboot.org/docs/gnulinux/grub_cbfs.html) without reflashing ROM. But reflashing ROM can be done in the OS.
If you don't encrypt /boot the default GRUB-scripts works better, i e it boots automatically, at least until the scripts are improved upon.
-
-###X200
-####Flashing Externally [WIP]!
- To internally flash your ROM use the kernel parameter "iomem=relaxed". Thus, if you boot manually you would enter e g "linux=vmlinuz.. iomem=relaxed"
- clone libreboot ...
-
+###Building Libreboot
#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
make
#backup current rom
- sudo ./flashrom -p internal -r ~/this_is_my0.rom
- sudo ./flashrom -p internal -r ~/this_is_my1.rom
- sudo ./flashrom -p internal -r ~/this_is_my2.rom
-
+ #sudo ./flashrom -p internal -r ~/this_is_my0.rom
+
#build libreboot, for the ROM
sudo ./oldbuild dependencies trisquel7
#download and build necessary
- ./download grub -y
- ./download coreboot -y
+ ./download grub coreboot crossgcc seabios -y
+ ./oldbuild module crossgcc
./oldbuild module grub
./oldbuild module coreboot
+ ./oldbuild module seabios
#finally build the ROM we want
- ./oldbuild roms withgrub x200_8mb
+ #./oldbuild roms withgrub x200_8mb
- cd bin/grub
- ls
+ #cd bin/grub
+ #ls
#./oldbuild clean all
#sudo ./flash update libreboot.rom
+###X200
+####Flashing Internally [WIP]!
+ To internally flash your ROM use the kernel parameter "iomem=relaxed". Thus, if you boot manually you would enter e g "linux=vmlinuz.. iomem=relaxed"
+ #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
+
+ ./download flashrom
+ cd flashrom
+ sudo apt-get install libusb-1.0-0-dev build-dep linux-image-$(uname -r)
+ make install #needs sudo?
+ make
+
+ #backup current rom
+ sudo ./flashrom -p internal -r ~/this_is_my0.rom
+
+ #remove old GRUB (test) config
+ ./cbfstool libreboot.rom remove -n grubtest.cfg
+ #get the new GRUB (test) config into your ROM
+ ./cbfstool libreboot.rom add -n grubtest.cfg -f grubtest.cfg -t raw
+
###KGPE-D16
####General