summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Widen <andreas@harmonicflow.org>2019-08-08 18:35:36 +0200
committerAndreas Widen <andreas@harmonicflow.org>2019-08-08 18:35:36 +0200
commitf30fc835edf79f699a519cdea753ea214cd70415 (patch)
tree262f451f11b6ee722d7cc148dd7cb077843cc78f
parent1b8ef0923bda8a812ff57b4efc9e2ba787a87e02 (diff)
downloadHarmonicFlowOrgWeb-f30fc835edf79f699a519cdea753ea214cd70415.tar.xz
HarmonicFlowOrgWeb-f30fc835edf79f699a519cdea753ea214cd70415.zip
Updated coreboot tutorials for v4.10.
Signed-off-by: Andreas Widen <andreas@harmonicflow.org>
-rw-r--r--blog/data/2019-04-02-17:57:53-flashing-coreboot-on-a-lenovo-thinkpad-x220-with-a-ch341a-usb-programmer-tutorial.txt34
-rw-r--r--blog/data/2019-04-03-16:59:50-flashing-coreboot-on-gigabyte-ga-g41m-es2l-with-a-ch341a-usb-programmer-tutorial.txt18
-rw-r--r--media/gigabyte-ga-g41m-es2l/grub.cfg6
-rw-r--r--media/x220/grub.cfg6
4 files changed, 28 insertions, 36 deletions
diff --git a/blog/data/2019-04-02-17:57:53-flashing-coreboot-on-a-lenovo-thinkpad-x220-with-a-ch341a-usb-programmer-tutorial.txt b/blog/data/2019-04-02-17:57:53-flashing-coreboot-on-a-lenovo-thinkpad-x220-with-a-ch341a-usb-programmer-tutorial.txt
index 13da22b..b7b65b2 100644
--- a/blog/data/2019-04-02-17:57:53-flashing-coreboot-on-a-lenovo-thinkpad-x220-with-a-ch341a-usb-programmer-tutorial.txt
+++ b/blog/data/2019-04-02-17:57:53-flashing-coreboot-on-a-lenovo-thinkpad-x220-with-a-ch341a-usb-programmer-tutorial.txt
@@ -80,8 +80,7 @@ Compile GRUB:
<pre>
cd grub
-git checkout grub-2.02
-./autogen.sh
+./bootstrap
./configure --with-platform=coreboot
make -j4
</pre>
@@ -194,21 +193,21 @@ sha512sum *.rom
Download coreboot:
<pre>
-wget https://coreboot.org/releases/coreboot-4.9.tar.xz
-wget https://coreboot.org/releases/coreboot-blobs-4.9.tar.xz
+wget https://coreboot.org/releases/coreboot-4.10.tar.xz
+wget https://coreboot.org/releases/coreboot-blobs-4.10.tar.xz
</pre>
Extract coreboot and blobs needed:
<pre>
-tar xvf coreboot-4.9.tar.xz
-tar xvf coreboot-blobs-4.9.tar.xz --strip-components=1 -C coreboot-4.9
+tar xvf coreboot-4.10.tar.xz
+tar xvf coreboot-blobs-4.10.tar.xz --strip-components=1 -C coreboot-4.10
</pre>
Create folder to hold '**descriptor/gbe/me.bin**' files:
<pre>
-mkdir -pv coreboot-4.9/3rdparty/blobs/mainboard/lenovo/x220/
+mkdir -pv coreboot-4.10/3rdparty/blobs/mainboard/lenovo/x220/
</pre>
Extract blob files from Factory BIOS (see '**flashrom/util/ich_descriptors_tool**' folder:
@@ -221,9 +220,9 @@ cd ~/misc-src/flashrom/util/ich_descriptors_tool
Copy blob files to coreboot folder:
<pre>
-cp factory_bios.rom.Descriptor.bin coreboot-4.9/3rdparty/blobs/mainboard/lenovo/x220/descriptor.bin
-cp factory_bios.rom.GbE.bin coreboot-4.9/3rdparty/blobs/mainboard/lenovo/x220/gbe.bin
-cp factory_bios.rom.ME.bin coreboot-4.9/3rdparty/blobs/mainboard/lenovo/x220/me.bin
+cp factory_bios.rom.Descriptor.bin coreboot-4.10/3rdparty/blobs/mainboard/lenovo/x220/descriptor.bin
+cp factory_bios.rom.GbE.bin coreboot-4.10/3rdparty/blobs/mainboard/lenovo/x220/gbe.bin
+cp factory_bios.rom.ME.bin coreboot-4.10/3rdparty/blobs/mainboard/lenovo/x220/me.bin
</pre>
## Setup and compile coreboot
@@ -231,13 +230,13 @@ cp factory_bios.rom.ME.bin coreboot-4.9/3rdparty/blobs/mainboard/lenovo/x220/me.
Enter coreboot folder:
<pre>
-cd coreboot-4.9
+cd coreboot-4.10
</pre>
Build toolchain needed first (this will take a long time, be patient):
<pre>
-make crossgcc CPUS=4
+make crossgcc-i386 CPUS=4
</pre>
coreboot settings menu:
@@ -270,7 +269,7 @@ chipset ---|
|-[*] Add gigabit ethernet firmware (leave default path as is)
|-(3rdparty/blobs/mainboard/$(MAINBOARDDIR)/gbe.bin) Path to gigabit ethernet firmware
Devices ---|
- |-Graphics initialization (Use native graphics init)
+ |-Graphics initialization (Use libgfxinit)
|-Display
|- Framebuffer mode (Linear "high-resolution" framebuffer)
payload ---|
@@ -303,7 +302,7 @@ Add '**grub.cfg**' and '**background.jpg**' to coreboot.rom. See
Make sure '**cbfstool**' is built:
<pre>
-cd coreboot-4.9/util/cbfstool
+cd coreboot-4.10/util/cbfstool
make -j4
</pre>
@@ -336,7 +335,7 @@ Check so that '**background.jpg**' exists in coreboot.rom:
Make sure '**nvramtool**' is built:
<pre>
-cd coreboot-4.9/util/nvramtool
+cd coreboot-4.10/util/nvramtool
make -j4
</pre>
@@ -394,10 +393,7 @@ See '**Connect ch341a USB programmer to flash chip**' for details on
where the Wifi card is located.
Congratulations! We're done. Now you can install a libre distro such as
-[Debian GNU/Linux](https://www.debian.org/). I recommend setting up
-[full disc encryption (including
-/boot)](https://libreboot.org/docs/gnulinux/encrypted_debian.html) ! The
-'**grub.cfg**' supports and defaults to this option.
+[Debian GNU/Linux](https://www.debian.org/).
## Recommended reading
diff --git a/blog/data/2019-04-03-16:59:50-flashing-coreboot-on-gigabyte-ga-g41m-es2l-with-a-ch341a-usb-programmer-tutorial.txt b/blog/data/2019-04-03-16:59:50-flashing-coreboot-on-gigabyte-ga-g41m-es2l-with-a-ch341a-usb-programmer-tutorial.txt
index 223ca1c..084e679 100644
--- a/blog/data/2019-04-03-16:59:50-flashing-coreboot-on-gigabyte-ga-g41m-es2l-with-a-ch341a-usb-programmer-tutorial.txt
+++ b/blog/data/2019-04-03-16:59:50-flashing-coreboot-on-gigabyte-ga-g41m-es2l-with-a-ch341a-usb-programmer-tutorial.txt
@@ -67,8 +67,7 @@ Compile GRUB:
<pre>
cd grub
-git checkout grub-2.02
-./autogen.sh
+./bootstrap
./configure --with-platform=coreboot
make -j4
</pre>
@@ -171,13 +170,13 @@ sha512sum *.rom
Download coreboot:
<pre>
-wget https://coreboot.org/releases/coreboot-4.9.tar.xz
+wget https://coreboot.org/releases/coreboot-4.10.tar.xz
</pre>
Extract coreboot:
<pre>
-tar xvf coreboot-4.9.tar.xz
+tar xvf coreboot-4.10.tar.xz
</pre>
## Setup and compile coreboot
@@ -185,13 +184,13 @@ tar xvf coreboot-4.9.tar.xz
Enter coreboot folder:
<pre>
-cd coreboot-4.9
+cd coreboot-4.10
</pre>
Build toolchain needed first (this will take a long time, be patient):
<pre>
-make crossgcc CPUS=4
+make crossgcc-i386 CPUS=4
</pre>
coreboot settings menu:
@@ -251,7 +250,7 @@ the file needed.
Make sure '**cbfstool**' is built:
<pre>
-cd coreboot-4.9/util/cbfstool
+cd coreboot-4.10/util/cbfstool
make -j4
</pre>
@@ -318,10 +317,7 @@ The onboard network card might not work by default, and if so, just get
a PCI or PCI Express network card.
Congratulations! We're done. Now you can install a libre distro such as
-[Debian GNU/Linux](https://www.debian.org/). I recommend setting up
-[full disc encryption (including
-/boot)](https://libreboot.org/docs/gnulinux/encrypted_debian.html) ! The
-'**grub.cfg**' supports and defaults to this option.
+[Debian GNU/Linux](https://www.debian.org/).
## Recommended reading
diff --git a/media/gigabyte-ga-g41m-es2l/grub.cfg b/media/gigabyte-ga-g41m-es2l/grub.cfg
index c63b34c..d808a86 100644
--- a/media/gigabyte-ga-g41m-es2l/grub.cfg
+++ b/media/gigabyte-ga-g41m-es2l/grub.cfg
@@ -94,6 +94,9 @@ function search_isolinux {
done
done
}
+menuentry '[g] Search GRUB2 Configuration (AHCI)' --hotkey='g' {
+ search_grub ahci
+}
menuentry '[o] Load OS Encrypted /boot.. (default settings)' --hotkey='o' {
cryptomount -a
set root='lvm/matrix-rootvol'
@@ -106,9 +109,6 @@ menuentry '[i] Load OS Encrypted /boot.. (with iomem=relaxed) ' --hotkey='i' {
linux /vmlinuz root=/dev/mapper/matrix-rootvol cryptdevice=/dev/mapper/matrix-rootvol:root iomem=relaxed
initrd /initrd.img
}
-menuentry '[g] Search GRUB2 Configuration (AHCI)' --hotkey='g' {
- search_grub ahci
-}
menuentry '[s] Search GRUB2 Configuration (USB)' --hotkey='s' {
search_grub usb
}
diff --git a/media/x220/grub.cfg b/media/x220/grub.cfg
index 2547ab4..94f75f2 100644
--- a/media/x220/grub.cfg
+++ b/media/x220/grub.cfg
@@ -94,6 +94,9 @@ function search_isolinux {
done
done
}
+menuentry '[g] Search GRUB2 Configuration (AHCI)' --hotkey='g' {
+ search_grub ahci
+}
menuentry '[o] Load OS Encrypted /boot.. (default settings)' --hotkey='o' {
cryptomount -a
set root='lvm/matrix-rootvol'
@@ -106,9 +109,6 @@ menuentry '[i] Load OS Encrypted /boot.. (with iomem=relaxed) ' --hotkey='i' {
linux /vmlinuz root=/dev/mapper/matrix-rootvol cryptdevice=/dev/mapper/matrix-rootvol:root iomem=relaxed
initrd /initrd.img
}
-menuentry '[g] Search GRUB2 Configuration (AHCI)' --hotkey='g' {
- search_grub ahci
-}
menuentry '[s] Search GRUB2 Configuration (USB)' --hotkey='s' {
search_grub usb
}