mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 16:30:17 +00:00
7bb490eb58
Signed-off-by: Hector Martin <marcan@marcan.st>
30 lines
510 B
Python
30 lines
510 B
Python
import serial, os, struct, sys, time
|
|
from proxy import *
|
|
from tgtypes import *
|
|
from proxyutils import *
|
|
from utils import *
|
|
|
|
iface = UartInterface()
|
|
p = M1N1Proxy(iface, debug=False)
|
|
|
|
try:
|
|
iface.dev.timeout = 0.15
|
|
iface.nop()
|
|
p.set_baud(1500000)
|
|
except UartTimeout:
|
|
iface.dev.baudrate = 1500000
|
|
iface.nop()
|
|
|
|
iface.dev.timeout = 3
|
|
|
|
u = ProxyUtils(p)
|
|
mon = RegMonitor(u)
|
|
|
|
iface.nop()
|
|
|
|
fb = u.ba.video.base
|
|
|
|
EL0_REGION = 0x8000000000
|
|
|
|
print("Base at: 0x%x" % u.base)
|
|
print("FB at: 0x%x" % fb)
|