Uses cosmpopolitan.
Extract cosmopolitan release zip one folder up.
run makeTo use it on windows, rename gpu_cfg_gen to gpu_cfg_gen.exe.
When the application is run, pass in the serial, and for the GPU, the PCB serial.
The application will generate a .bin file in the same directory with the EEPROM contents.
./gpu_cfg_gen -a -s FRAKMBCP81331ASSY0 -p FRAGMASP81331PCB00
./gpu_cfg_gen -n -s FRAKMQCP41500ASSY0 -p FRAKHZCP41500PCB00
./gpu_cfg_gen -d -s FRAKMBCP81331ASSY0
By default the generated file is called eeprom.bin, here's how to use a different one:
./gpu_cfg_gen -d -s FRAKMBCP81331ASSY0 -o ssd.bin
To double-check you can read the binary back from EEPROM and analyze it with the tool:
./gpu_cfg_gen -i eeprom.bin
# More verbose output
./gpu_cfg_gen -i eeprom.bin -vWhile the regular build builds a single executable that runs on Linux and Windows, for development purpose you might want to build using native tooling.
# With GCC
make native CC=gcc
# With clang
make native CC=clang