diff --git a/how_to b/how_to index 762895c..f644995 100644 --- a/how_to +++ b/how_to @@ -1215,3 +1215,20 @@ Convert docx to text format in CLI: docx2txt .docx # Can output markdown pandoc .docx -o .md + +Flash BIOS using CH341A and SOP8 clip: + Hardware setup: + /!\ Don't connect USB before everything else is plugged-in correctly + /!\ Remove all source of alimentation from the target board (power jack AND battery) + Connect clip to EEPROM: red wire is pin 1 + Connect clip to CH341A: use the SPI/BIOS side of the programmer + Reading firmware: + sudo pacman -S flashrom + # Flashrom list of supported chips: https://www.flashrom.org/Supported_hardware + # https://wiki.archlinux.org/title/Flashing_BIOS_from_Linux#Flashrom + sudo flashrom --programmer ch341a_spi -r backup1.bin + sudo flashrom --programmer ch341a_spi -r backup2.bin + # Check we got a correct read + cmp backup1.bin backup2.bin + Flashing firmware: + sudo flashrom --programmer ch341a_spi -w