Hallo werte OM's,
habe das folgende Problem und hoffe auf Eure Hilfe.
Von einem RT3S Handfunkgerät möchte ich ein Firmware Backup unter Linux machen.
Z.Z. verwende ich das Tool dfu-utils, bevor ich z.B. OpenGD77 oder openTRX als neue
FW auf das Gerät drauf spiele.
Das Gerät wird am Computer erkannt und dfu-util --list liefert den folgenden Output:
Found, DFU: [0483:df11] ver=0200, devnum=91, cfg=1, intf=0, path="1-3", alt=1, name="@SPI Flash Memory /0x00000000/16*064Kg", serial="00000000010C"
Found DFU: [0483:df11] ver=0200, devnum=91, cfg=1, intf=0, path="1-3", alt=0, name="@Internal Flash /0x0800C000/01*016Kg,01*064Kg,07*128Kg", serial="00000000010C"
Mein Versuch die beiden Speicher SPI und FLASH zu lesen und in eine Datei zu schreiben
sieht eigentlich ok aus, wenn man dem Output von dfu-util glauben darf.
dfu-util --alt=0 --upload-size 999424 --dfuse-address 0x0800C000:999424 --upload ./test0.bin
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
Device ID 0483:df11
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash "
Upload [=========================] 100% 999424 bytes
Upload done.
dfu-util --alt=1 --upload-size 1048576 --dfuse-address 0x00000000:1048576 --upload ./test1.bin
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
Device ID 0483:df11
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #1 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "SPI Flash Memory "
Upload [=========================] 100% 1048576 bytes
Upload done.
ls -l *./test?.bin
-rw-r--r--. 1 root root 999424 21. Mai 14:01 test0.bin
-rw-r--r--. 1 root root 1048576 21. Mai 14:01 test1.bin
Der Inhalt der erzeugten Dateien lässt mich aber daran zweifeln, dass ich wirklich die FW
heruntergeladen habe.
od -c ./test0.bin | head -3 ; od -c ./test0.bin | tail -3
0000000 0 \t \0 005 Q \0 \b ) O \0 \b + O \0 \b
0000020 - O \0 \b / O \0 \b 1 O \0 \b \0 \0 \0 \0
0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 3 O \0 \b
...
3637740 357 341 337 370 T 032 \t x 242 ) 017 321 337 370 < 032
3637760 \t h 002 ) \n 321 002 337 370 @ 032 \b p 337 370
3640000
strings ./test0.bin | head -3 ; strings ./test0.bin | tail -3
x!),
xA)7
x!),
...
xA)7
x!),
xA)7
od -c ./test1.bin | head -3 ; od -c ./test1.bin | tail -3
0000000 0 \t \0 005 Q \0 \b ) O \0 \b + O \0 \b
0000020 - O \0 \b / O \0 \b 1 O \0 \b \0 \0 \0 \0
0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 3 O \0 \b
...
3777740 357 341 337 370 T 032 \t x 242 ) 017 321 337 370 < 032
3777760 \t h 002 ) \n 321 002 337 370 @ 032 \b p 337 370
4000000
strings ./test1.bin | head -3 ; strings ./test1.bin | tail -3
x!),
xA)7
x!),
...
xA)7
x!),
xA)7
Beide Files haben den selben Inhalt, der sich immer wiederholt, weshalb
ich glaube, dass bei meinem FW-Backup noch was schief läuft.
Ich weiß, das Thema ist ziemlich speziell, aber vielleicht weiß ja jemand
von Euch was dazu.
Ich habe leider keine Windows-Rechner zur Hand, um es mit der CPS
Software von Retevis zu bewerkstelligen.
vy73
Markus