Skip to content

Instantly share code, notes, and snippets.

@tsutsui
Created August 9, 2024 15:19
Show Gist options
  • Save tsutsui/4d82596ad170c4a3c3dc6a5998e3dd62 to your computer and use it in GitHub Desktop.
Save tsutsui/4d82596ad170c4a3c3dc6a5998e3dd62 to your computer and use it in GitHub Desktop.
Log data on modifying firmware of C24M2020DJP Amazon BASIC monitor by https://github.com/mcDomDom/RTDProgrammer
tsutsui@raspberrypi:~ $ git clone https://github.com/mcDomDom/RTDProgrammer.git
Cloning into 'RTDProgrammer'...
remote: Enumerating objects: 206, done.
remote: Counting objects: 100% (206/206), done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 206 (delta 124), reused 143 (delta 61), pack-reused 0 (from 0)
Receiving objects: 100% (206/206), 149.68 KiB | 2.77 MiB/s, done.
Resolving deltas: 100% (124/124), done.
tsutsui@raspberrypi:~ $ cd RTDProgrammer/
tsutsui@raspberrypi:~/RTDProgrammer $ make
Makefile:91: 警告: ターゲット '.objs/RTD2662ModeTableDump.o' のためのレシピを置き換えます
Makefile:62: 警告: ターゲット '.objs/RTD2662ModeTableDump.o' のための古いレシピは無視されます
Makefile:94: 警告: ターゲット '.objs/crc.o' のためのレシピを置き換えます
Makefile:65: 警告: ターゲット '.objs/crc.o' のための古いレシピは無視されます
Makefile:97: 警告: ターゲット '.objs/gff.o' のためのレシピを置き換えます
Makefile:68: 警告: ターゲット '.objs/gff.o' のための古いレシピは無視されます
Makefile:100: 警告: ターゲット '.objs/i2c.o' のためのレシピを置き換えます
Makefile:71: 警告: ターゲット '.objs/i2c.o' のための古いレシピは無視されます
Makefile:103: 警告: ターゲット '.objs/main.o' のためのレシピを置き換えます
Makefile:74: 警告: ターゲット '.objs/main.o' のための古いレシピは無視されます
test -d .objs || mkdir -p .objs
g++ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -c RTD2662ModeTableDump.cpp -o .objs/RTD2662ModeTableDump.o
g++ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -c crc.cpp -o .objs/crc.o
g++ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -c gff.cpp -o .objs/gff.o
g++ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -c i2c.cpp -o .objs/i2c.o
i2c.cpp: In function ‘bool ReadBytesFromAddr(uint8_t, uint8_t*, uint8_t)’:
i2c.cpp:180:1: warning: no return statement in function returning non-void [-Wreturn-type]
180 | }
| ^
g++ -D_CONSOLE -D_CRT_SECURE_NO_WARNINGS -c main.cpp -o .objs/main.o
g++ -o rtd2660 .objs/RTD2662ModeTableDump.o .objs/crc.o .objs/gff.o .objs/i2c.o .objs/main.o
test -d .objs || mkdir -p .objs
g++ -o rtd2660 .objs/RTD2662ModeTableDump.o .objs/crc.o .objs/gff.o .objs/i2c.o .objs/main.o
tsutsui@raspberrypi:~/RTDProgrammer $ ./rtd2660 -r C24M2020DJP 2
Ready use I2C-2
Working with device 4a
JEDEC ID: 0x514014
Manufacturer GigaDevice
Chip: MD25D80
Size: 1024KB
Flash status register(S7-S0): 0x9c
Flash status register(S15-S8): 0xff
SaveFlash C24M2020DJP size=1024(kbyte)
Reading addr ffc00
done.
Received data CRC e6
Chip CRC e6
Success!
tsutsui@raspberrypi:~/RTDProgrammer $ ./rtd2660 -r C24M2020DJP.bin 2
Ready use I2C-2
Working with device 4a
JEDEC ID: 0x514014
Manufacturer GigaDevice
Chip: MD25D80
Size: 1024KB
Flash status register(S7-S0): 0x9c
Flash status register(S15-S8): 0xff
SaveFlash C24M2020DJP.bin size=1024(kbyte)
Reading addr ffc00
done.
Received data CRC e6
Chip CRC e6
Success!
tsutsui@raspberrypi:~/RTDProgrammer $ ./rtd2660 -modify C24M2020DJP.bin
Amazon C24M2020DJP
Disable acer aspect change check : Done
Modified acer wide mode function original aspect ratio
Disable sync width check buf[000279EE]=1
Disalbe vheight check buf[0002C94F]=C8
*** modify firmware success ***
Modified firmware ./C24M2020DJP_mod.bin writ ok
tsutsui@raspberrypi:~/RTDProgrammer $ ./rtd2660 -w C24M2020DJP_mod.bin 2
Ready use I2C-2
Working with device 4a
JEDEC ID: 0x514014
Manufacturer GigaDevice
Chip: MD25D80
Size: 1024KB
Flash status register(S7-S0): 0x9c
Flash status register(S15-S8): 0xff
Check original firmware C24M2020DJP.bin
Amazon C24M2020DJP
ProgramFlash C24M2020DJP_mod.bin size=1024(kbyte)
Reg:0x1D Value=00
Reg:0x0D Value=01
Erasing...done
Received data CRC ed
Chip CRC e6
Fail CRC unmatched!
tsutsui@raspberrypi:~/RTDProgrammer $ ./rtd2660 -w C24M2020DJP_mod.bin 2
Ready use I2C-2
Working with device 4a
JEDEC ID: 0x514014
Manufacturer GigaDevice
Chip: MD25D80
Size: 1024KB
Flash status register(S7-S0): 0x9e
Flash status register(S15-S8): 0xff
Check original firmware C24M2020DJP.bin
Amazon C24M2020DJP
ProgramFlash C24M2020DJP_mod.bin size=1024(kbyte)
Reg:0x1D Value=00
Reg:0x0D Value=01
Erasing...done
Received data CRC ed
Chip CRC ed
Success!
tsutsui@raspberrypi:~/RTDProgrammer $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment