Add iPod Nano 2G post-mortem memory dumper by Michael Sparmann

The files are downloaded from https://www.rockbox.org/tracker/task/11701

Change-Id: Ic6415f76207868661c231cb534cb179160eb60e0
This commit is contained in:
Vencislav Atanasov 2025-08-13 19:29:50 +03:00 committed by Solomon Peachy
parent bf2320d23b
commit 0781195c22
2 changed files with 86 additions and 0 deletions

31
utils/rbpms/rbpms.py Normal file
View file

@ -0,0 +1,31 @@
#!/usr/bin/env python
import sys
import librbpms
def usage():
print ""
print "Please provide a command and (if needed) parameters as command line arguments"
print ""
print "Available commands:"
print ""
print " download <address> <size> <file>"
print " Downloads <size> bytes of data from the specified address on the device,"
print " and stores it in the specified file."
print ""
print "All numbers are hexadecimal!"
exit(2)
def parsecommand(dev, argv):
if len(argv) < 2: usage()
elif argv[1] == "download":
if len(argv) != 5: usage()
dev.download(int(argv[2], 16), int(argv[3], 16), argv[4])
else: usage()
dev = librbpms.rbpms()
parsecommand(dev, sys.argv)