mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
62db38ae91
Signed-off-by: Witold Baryluk <witold.baryluk@gmail.com>
20 lines
325 B
Python
Executable file
20 lines
325 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
from setup import *
|
|
|
|
p = 0x800000000
|
|
limit = u.base
|
|
block = 0x40000
|
|
|
|
while p < limit:
|
|
f = "mem/0x%x.bin" % p
|
|
if os.path.exists(f):
|
|
p += block
|
|
continue
|
|
|
|
print("dumping 0x%x..." % p)
|
|
|
|
data = iface.readmem(p, block)
|
|
open(f, "wb").write(data)
|
|
p += block
|