In order to build coreboot, we use docker container. So in order to setup environment, ensure that:
-
You have docker installed as described on docker site for your Linux distro.
-
When you have the docker installed pull the container:
docker pull coreboot/coreboot-sdk:65718760fa
In order to start from a common point, flash the original OpenPOWER firmware for Talos II.
-
Log into the BMC via SSH:
ssh root@<IP>The password is
wfv978h4JSG -
Download the stock firmware image:
wget https://cloud.3mdeb.com/index.php/s/canxPx5d4X8c2wk/download \ -O /tmp/flash.pnor -
Flash the firmware:
pflash -E -p /tmp/flash.pnorYou will see warning like
About to erase chip !andWARNING ! This will modify your HOST flash chip content !. When theEnter "yes" to confirm:prompt appears, typeyesand press enter.At the end of the process (it may take several minutes) you should have something like this:
About to program "/tmp/flash.pnor" at 0x00000000..0x04000000 ! Programming & Verifying... [==================================================] 100% ETA:0s -
Log into the BMC GUI at https:///. Enter the Server power operations (https:///#/server-control/power-operations) and invoke warm reboot. Then move to Serial over LAN remote console (https:///#/server-control/remote-console) to observe whether the platform is booting. It should boot up to Debian.
In order to build coreboot image, follow the steps below:
-
Clone the coreboot repository:
git clone git@github.com:InsurgoTech/coreboot.git -b power_bootblock # or HTTPS alternatively git clone https://github.com/InsurgoTech/coreboot.git -b power_bootblock -
Get the submodules:
cd coreboot git submodule update --init --checkout -
Start docker container (assuming you are already in coreboot root directory):
docker run --rm -it -v $PWD:/home/coreboot/coreboot \ -w /home/coreboot/coreboot coreboot/coreboot-sdk:65718760fa /bin/bash -
When inside of the container, configure the build for Talos II:
make menuconfigNavigate to the Mainboard submenu and select the:
Raptor Computign Systems -> Talos II. Then save the configuration and exit. -
Start the build process of coreboot inside the container:
make
-
At the end of build process you should see
Built raptor-cs/talos-2 (Talos II). Copy the result binary from<coreboot_dir>/build/coreboot.romto the BMC (assuming in the coreboot root directory):scp build/coreboot.rom root@<IP>:/tmp -
Backup the HBB partition (for faster later recovery) by invoking this command on BMC:
pflash -P HBB -r /tmp/hbb.bin -
Flash the binary by replacing HBB partition (execute from BMC):
pflash -e -P HBB -p /tmp/coreboot.romAnswer yes to the prompt and wait for the process to finish.
-
Log into the BMC GUI again at https:///. Enter the Server power operations (https:///#/server-control/power-operations) and invoke warm reboot. Then move to Serial over LAN remote console (https:///#/server-control/remote-console)
Wait for a while until coreboot shows up:
-
Enjoy coreboot bootblock running on Talos II.
OPTIONAL: in order to recovery the platform quickly to healthy state, flash the HBB partition back with:
pflash -e -P HBB -p /tmp/hbb.bin

