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