mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-12-22 03:33:05 +00:00
d9561b7507
All the common/importable stuff now lives in the 'm1n1' module. General use tools are in tools/ Reverse engineering experiments are in experiments/ Signed-off-by: Hector Martin <marcan@marcan.st>
21 lines
394 B
Python
21 lines
394 B
Python
# SPDX-License-Identifier: MIT
|
|
import os, struct, sys, time
|
|
|
|
from .hv import HV
|
|
from .proxy import *
|
|
from .proxyutils import *
|
|
from .sysreg import *
|
|
from .tgtypes import *
|
|
from .utils import *
|
|
|
|
iface = UartInterface()
|
|
p = M1N1Proxy(iface, debug=False)
|
|
bootstrap_port(iface, p)
|
|
|
|
u = ProxyUtils(p)
|
|
mon = RegMonitor(u)
|
|
hv = HV(iface, p, u)
|
|
|
|
fb = u.ba.video.base
|
|
|
|
print(f"m1n1 base: 0x{u.base:x}")
|