Recovery
Intro
The following documentation describes the process of recovering hardware from the brick state using an RTE and Dasharo open-source firmware.
External flashing
Prerequisites
- Prepared RTE
- 5x2 1mm pitch female header to 10x 2.54mm female DuPont connector adapter cable
- TPM removed
Connections
To prepare the stand for flashing follow the steps described in the Generic test stand setup.
Then, follow the following steps:
- Connect the adapter cable to the
BIOS_PH1
header on the board - Map out the BIOS pins: Using a multimeter in continuity mode, probe each of the 2.54mm pins against each of the pins on the SOIC-16 BIOS package
- Once you have labeled each of the pins, connect them to the RTE's SPI header
Firmware flashing
To flash firmware follow the steps described below:
- Login to RTE via
ssh
orminicom
. - Turn on the platform by connecting the power supply.
- Wait at least 5 seconds.
- Turn off the platform by using the power button.
- Wait at least 3 seconds.
-
Set the proper state of the SPI by using the following commands on RTE:
# set SPI Vcc to 3.3V echo 1 > /sys/class/gpio/gpio405/value # SPI Vcc on echo 1 > /sys/class/gpio/gpio406/value # SPI lines ON echo 1 > /sys/class/gpio/gpio404/value
Starting with RTE distro v0.8.x the GPIOS are 517, 518, 516.
-
Wait at least 2 seconds.
- Disconnect the power supply from the platform.
- Wait at least 2 seconds.
-
Check if the flash chip is connected properly
flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=16000
-
Flash the platform by using the following command:
flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=16000 \ -w [path_to_binary] --ifd -i bios -N
-
Change back the state of the SPI by using the following commands:
echo 0 > /sys/class/gpio/gpio404/value echo 0 > /sys/class/gpio/gpio405/value echo 0 > /sys/class/gpio/gpio406/value
Starting with RTE distro v0.8.x the GPIOS are 516, 517, 518.
-
Turn on the platform by connecting the power supply.