README: add missing close angle bracket

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-01-15 13:04:01 +09:00
parent 9a34949cac
commit d2fa0c9db9
2 changed files with 35 additions and 1 deletions

View file

@ -13,7 +13,7 @@ Please see the Git history for authorship information.
Portions of m1n1 are based on mini:
* Copyright (C) 2008-2010 Hector Martin "marcan" <marcan@marcan.st>
* Copyright (C) 2008-2010 Sven Peter <sven@svenpeter.dev
* Copyright (C) 2008-2010 Sven Peter <sven@svenpeter.dev>
* Copyright (C) 2008-2010 Andre Heider <a.heider@gmail.com>
m1n1 embeds libfdt, which is dual [BSD](LICENSE.BSD-2) and

34
proxyclient/addrdump.py Normal file
View file

@ -0,0 +1,34 @@
#!/usr/bin/python
import serial, os
from proxy import *
uartdev = os.environ.get("M1N1DEVICE", "/dev/ttyUSB0")
usbuart = serial.Serial(uartdev, 115200)
iface = UartInterface(usbuart, debug=False)
proxy = M1N1Proxy(iface, debug=False)
SCRATCH = 0x24F00000
blacklist = []
print("Dumping address space...")
of = None
if len(sys.argv) > 1:
of = open(sys.argv[1],"w")
print("Also dumping to file %s")
for i in range(0x0000, 0x10000):
if i in blacklist:
v = "%08x: SKIPPED"%(i<<16)
else:
a = (i<<16) + 0x1000
d = proxy.read32(a)
v = "%08x: %08x"%(a, d)
print(v)
if of:
of.write(v+"\n")
if of:
of.close()