2021-05-01 19:04:01 +09:00
|
|
|
import os, struct, sys, time
|
2021-01-17 00:50:13 +09:00
|
|
|
from proxy import *
|
|
|
|
from tgtypes import *
|
2021-05-01 15:11:23 +09:00
|
|
|
from proxyutils import *
|
2021-05-01 15:13:29 +09:00
|
|
|
from utils import *
|
2021-05-03 21:16:55 +09:00
|
|
|
from hv import HV
|
2021-01-17 00:50:13 +09:00
|
|
|
|
2021-04-27 19:48:35 +09:00
|
|
|
iface = UartInterface()
|
2021-01-17 00:50:13 +09:00
|
|
|
p = M1N1Proxy(iface, debug=False)
|
2021-05-01 18:49:21 +09:00
|
|
|
bootstrap_port(iface, p)
|
2021-02-03 04:52:17 +09:00
|
|
|
|
2021-01-17 00:50:13 +09:00
|
|
|
u = ProxyUtils(p)
|
|
|
|
mon = RegMonitor(u)
|
2021-05-03 21:16:55 +09:00
|
|
|
hv = HV(iface, p, u)
|
2021-01-17 00:50:13 +09:00
|
|
|
|
2021-01-23 22:33:12 +09:00
|
|
|
fb = u.ba.video.base
|
|
|
|
|
2021-01-17 00:50:13 +09:00
|
|
|
print("Base at: 0x%x" % u.base)
|
2021-01-23 22:33:12 +09:00
|
|
|
print("FB at: 0x%x" % fb)
|