coreboot

coreboot™: fast, flexible and reproducible Open Source firmware!

Reproducible Coreboot

Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so that anyone can verify that a given binary derived from the source it was said to be derived. There is more information about reproducible builds on the Debian wiki and on https://reproducible-builds.org. These pages explain in more depth why this is useful, what common issues exist and which workarounds and solutions are known.

Reproducible Coreboot is an effort to apply this to coreboot. Thus each coreboot.rom is build twice (without payloads), with a few variations added and then those two ROMs are compared using diffoscope. Please note that the toolchain is not varied at all as the rebuild happens on exactly the same system. More variations are expected to be seen in the wild.

There is a weekly run jenkins job to test the master branch of coreboot.git. The jenkins job is running reproducible_coreboot.sh in a Debian environment and this script is solely responsible for creating this page. Feel invited to join #reproducible-builds (on irc.oftc.net) to request job runs whenever sensible. Patches and other feedback are very much appreciated - if you want to help, please start by looking at the ToDo list for coreboot, you might find something easy to contribute.
Thanks to IONOS for donating the virtual machines this is running on!

105 (100.0%) out of 105 built coreboot images were reproducible in our test setup ! These tests were last run on 2023-05-15 for version 4.20 using diffoscope 242.

variationfirst buildsecond build
hostname osuosl1-amd64 or osuosl2-amd64the other one
domainname is not yet varied between rebuilds of coreboot.
env CAPTURE_ENVIRONMENTnot setCAPTURE_ENVIRONMENT="I capture the environment"
env TZTZ="/usr/share/zoneinfo/Etc/GMT+12"TZ="/usr/share/zoneinfo/Etc/GMT-14"
env LANGLANG="en_GB.UTF-8"LANG="et_EE.UTF-8"
env LC_ALLnot setLC_ALL="et_EE.UTF-8"
env PATHPATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:"PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path"
env USER is not yet varied between rebuilds of coreboot.
uid is not yet varied between rebuilds of coreboot.
gid is not yet varied between rebuilds of coreboot.
UTS namespace is not yet varied between rebuilds of coreboot.
kernel version, modified using /usr/bin/linux64 --uname-2.6Linux 5.10.0-23-amd64Linux 2.6.70-23-amd64
umask00220002
CPU type AMD Opteron(tm) Processor 4284same for both builds
/bin/sh is not yet varied between rebuilds of coreboot.
year, month, datetoday (2023-05-15)same for both builds (currently, work in progress)
hour, minutehour and minute will probably vary between two builds...the future system actually runs 398 days, 6 hours and 23 minutes ahead...
Filesystemtmpfssame for both builds (currently, this could be varied using disorderfs)
everything else...is likely the same. There will be more variations in the wild.

commit 465fbbe93ee01b4576689a90b7ddbeec23cdace2
Author: Sheng-Liang Pan 
Date:   Wed May 3 17:21:43 2023 +0800

    mb/google/dedede/var/taranza: Copy devicetree and GPIO from var/dibbi
    
    copy from dibbi since taranza base on dibbi,this is only for first
    initial configuration, will update the more setting afterward.
    
    BUG=b:277664211
    BRANCH=dedede
    TEST=build
    
    Signed-off-by: Sheng-Liang Pan 
    Change-Id: Ia319f65897c0fea2f0558c20a5bc36bb6fbaea96
    Reviewed-on: https://review.coreboot.org/c/coreboot/+/74934
    Tested-by: build bot (Jenkins) 
    Reviewed-by: David Wu      

cross toolchain sourcesha256sum
R10_20_22.tar.gz 1aa17eb1779cd171110074ce271a65c06046eacbba7be7ce5ee71df1b31c3b86
binutils-2.40.tar.xz 0f8a4c272d7f17f369ded10a4aca28b8e304828e95526da482b0ccc4dfc9d8e1
gcc-11.3.0.tar.xz b47cf2818691f5b1e21df2bb38c795fac2cfbd640ede2d0a5e1c89e338a3ac39
gmp-6.2.1.tar.xz fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
mpc-1.3.1.tar.gz ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
mpfr-4.2.0.tar.xz 06a378df13501248c1b2db5aa977a2c8126ae849a9d9b7be2546fb4a9c26d993
Debian 11.7 package on amd64installed version
gcc 4:10.2.1-1
g++ 4:10.2.1-1
make 4.3-4.1
cmake 3.18.4-2+deb11u1
flex 2.6.4-8
bison 2:3.7.5+dfsg-1