Python/Linux port of Psychson, a tool to modify firmware of Phison 2251-03 aka 2303 (BadUSB)
- download and decompress psycholin
- download Psychson and copy all source files (*.h and *.c) in
patch/
andfirmware/
and the wholetemplates/
directory - install sdcc, sg3-utils and binutils
- use psychsolin like Psychson
- python 2.7
- sdcc
- sg3-utils (sg_raw)
- binutils (objcopy)
- bash
- all names are lower case (e.g.
psychsolin/drivecom
equalsPsychson/DriveCom
) - python modules are called directly (e.g. to call drivecom you call
python psychsolin/drivecom
instead oftools/DriveCom.exe
) - parameters are passed Linux style (e.g.
python psychsolin/drivecom --action=GetInfo
instead oftools/DriveCom.exe /action=GetInfo
) - tools not included (see Dependencies)
- only 11 sections of the firmware are dumped by
drivecom --action=DumpFirmware
, so if the flashed firmware uses more than 11 of the 16 possible sections the dump is incomplete; it's unknown why Psychson does it that way, but psychsolin does it also that way in case it's to avoid bricking the device - (i)peek and (i)poke in drivecom console mode don't work