emulation: add separate TAP and Linux implementations

Add one script that starts up a TAP connection as well as a second one
that uses a native Linux machine.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-21 10:15:12 +08:00
parent 86c4a6813d
commit b5a858938a
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,13 @@
i @emulation/betrusted.resc
# Create network
emulation CreateSwitch "switch"
emulation CreateTap "renodetap" "tap"
connector Connect host.tap switch
# Connect EC to the switch
mach set "EC"
connector Connect sysbus.wifi.wf200 switch
mach clear
start

View file

@ -0,0 +1,4 @@
i @emulation/betrusted.resc
i @emulation/linux-server.resc
start