Recovery
Intro
The following documentation describes the process of recovering hardware from the brick state with RTE and Dasharo open-source firmware.
Prerequisites
- Prepared RTE
- SOIC-8 Pomona clip
- 6x female-female wire cables
Connections
To prepare the stand for flashing follow the steps described below:
-
Connect the wire cables to the Pomona clip.
-
Connect the Pomona clip to the SPI header on RTE.
SPI header Pomona clip Vcc pin 5 (Vcc) GND pin 4 (GND) CS pin 1 (CS) SCLK pin 7 (CLK) MISO pin 2 (MISO) MOSI pin 8 (MOSI) -
Completely remove the motherboard from the platform cover.
If there is little thermal paste on the CPU, apply it before reassembling the motherboard to the platform cover.
-
Match pin 1(CS) on the Pomona clip with the first pin of the one of flash chip, marked with a small dot engraved on the chip.
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 1.8V echo 0 > /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
-
Wait at least 2 seconds.
- Disconnect the power supply from the platform.
- Wait at least 2 seconds.
-
Flash the platform by using the following command:
flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=16000 -c "MX25U6435E/F" -w [path_to_binary]
Flashing with flashrom takes about 1 minute.
-
Change back the state of the SPI by using the following commands:
echo 0 > /sys/class/gpio/gpio404/value echo 0 > /sys/class/gpio/gpio406/value
-
Reset CMOS, this can be done by two methods:
- Disconnect the CMOS battery, wait at least 10 seconds and connect again.
-
Short the two pins from the CMOS header for at least 10 seconds.
-
Turn on the platform by connecting the power supply.
The first boot of the platform after proceeding with the above procedure can take much longer than standard.