Skip to content

Commit 0cc81fe

Browse files
committed
fmc: document fru eeprom programming via ch341a
add programming instructions to fmc_basic_peripheral and fmc_sdram readme covering wiring, write/verify commands, and the 238-byte file vs 256-byte padded image quirk. Signed-off-by: Huang Rui <vowstar@gmail.com>
1 parent 9224fec commit 0cc81fe

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

fmc_basic_peripheral/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ If you need to generate complete production data,
4040
```bash
4141
cmake --build build --target production
4242
```
43+
44+
## Program the FRU EEPROM
45+
46+
Use a CH341A USB-to-I2C adapter (PID `1a86:5512`, EPP/MEM/I2C mode) with
47+
[ch341eeprom](https://github.com/commandtab/ch341eeprom). Wire `SDA`, `SCL`,
48+
`VCC` (3.3V) and `GND` to the on-board M24C02, and pull `WP` to GND.
49+
50+
```bash
51+
ch341eeprom -v -s 24c02 -w build/fmc_fru_eeprom.bin
52+
ch341eeprom -v -s 24c02 -V build/fmc_fru_eeprom.bin
53+
```
54+
55+
The verifier reports a mismatch at offset 238 because the FRU image is 238
56+
bytes while the EEPROM is padded to 256 — the FRU data itself is correct.

fmc_sdram/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,17 @@ If you need to generate complete production data,
4141
```bash
4242
cmake --build build --target production
4343
```
44+
45+
## Program the FRU EEPROM
46+
47+
Use a CH341A USB-to-I2C adapter (PID `1a86:5512`, EPP/MEM/I2C mode) with
48+
[ch341eeprom](https://github.com/commandtab/ch341eeprom). Wire `SDA`, `SCL`,
49+
`VCC` (3.3V) and `GND` to the on-board M24C02, and pull `WP` to GND.
50+
51+
```bash
52+
ch341eeprom -v -s 24c02 -w build/fmc_fru_eeprom.bin
53+
ch341eeprom -v -s 24c02 -V build/fmc_fru_eeprom.bin
54+
```
55+
56+
The verifier reports a mismatch at offset 238 because the FRU image is 238
57+
bytes while the EEPROM is padded to 256 — the FRU data itself is correct.

0 commit comments

Comments
 (0)