Coreboot: Difference between revisions
imported>Milahu build toolchain only for x64 |
Coreboot comes with a nix-shell expression. |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
== Building | == Building as Nix Derivation == | ||
There is a commented example of building Coreboot as Nix derivation at [https://github.com/blitz/nix-coreboot blitz/nix-coreboot] on Github. | |||
== Building in nix-shell == | |||
Coreboot as of 24.02 comes with a Nix shell expression for x86 at <code>util/nixshell//devshell-i386.nix</code>. | |||
</ | |||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
# clone coreboot git repository (latest master) | |||
git clone https://review.coreboot.org/coreboot.git --depth 1 | git clone https://review.coreboot.org/coreboot.git --depth 1 | ||
# or for a specific coreboot version (I.E. version 4.15) | |||
git clone --branch 4.15 https://review.coreboot.org/coreboot.git --depth 1 | |||
# get 3rd party submodules in coreboot repository | |||
cd coreboot | cd coreboot | ||
du -sh . # 200 MByte | du -sh . # ~200 MByte | ||
git submodule update --init --checkout --depth 1 | git submodule update --init --checkout --depth 1 | ||
du -sh . # 700 MByte | du -sh . # ~700 MByte | ||
nix-shell --pure util/nixshell/devshell-i386.nix | |||
# configure | # configure | ||
# set mainboard, | # set mainboard model, chip size, ... | ||
make menuconfig | make menuconfig MENUCONFIG_COLOR=blackbg # blackbg = dark mode | ||
# | |||
# build firmware | # build firmware | ||
make | make CPUS=$(nproc) | ||
# test firmware | # test firmware | ||
Line 78: | Line 52: | ||
* https://wiki.gentoo.org/wiki/Coreboot | * https://wiki.gentoo.org/wiki/Coreboot | ||
* flashing the new bios image | * flashing the new bios image | ||
** https://doc.coreboot.org/ | ** https://doc.coreboot.org/tutorial/flashing_firmware/index.html | ||
** https://libreboot.org/docs/install/spi.html | ** https://libreboot.org/docs/install/spi.html | ||
[[Category:Booting]] |