[Simh] Raspberry Pi 3 with tun/tap causes XQ to fail
Jeremy Begg
jeremy at vsm.com.au
Mon Nov 13 05:03:51 EST 2017
Hi,
I am trying to get SIMH up and running on the ethernet interface of a
Raspberry Pi 3. I have followed the intructions in 0readme_ethernet.txt,
installing the libpcap-dev, bridge-utils and uml-utilities packages before
building SIMH itself. I just ran 'make vax' and let it go, and the build to
completion.
My problem is that I just can't get networking going. To cut to the chase,
if I run the simulator without first setting up the br0 and tap0 interfaces,
and don't attempt to attach the XQ device, it works fine -- albeit without
any networking (as expected).
If I configure SIMH to attach XQ directly to the Pi's eth0 interface
(without configuring br0/tap0) it works on the first run but fails selftest
53 on the next run. If I reboot the Pi and start the br0/tap0 interfaces
and then run the simulator the VAX console fails selftest 53 again.
eric at pieric:~ $ ifconfig
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.46 netmask 255.255.255.0 broadcast 192.168.7.255
inet6 2001:44b8:292:900:1dbb:cc48:da3d:30d8 prefixlen 64 scopeid 0x0<global>
inet6 fe80::b20d:79a2:85e5:61f1 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:72:17:4d txqueuelen 1000 (Ethernet)
RX packets 3635 bytes 232823 (227.3 KiB)
RX errors 0 dropped 32 overruns 0 frame 0
TX packets 2262 bytes 271303 (264.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::bdfc:ffa7:beb4:c0b9 prefixlen 64 scopeid 0x20<link>
inet6 2001:44b8:292:900:50e6:b982:630f:42b9 prefixlen 64 scopeid 0x0<global>
ether b8:27:eb:72:17:4d txqueuelen 1000 (Ethernet)
RX packets 4506 bytes 301104 (294.0 KiB)
RX errors 0 dropped 20 overruns 0 frame 0
TX packets 2663 bytes 351575 (343.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tap0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether ee:c6:c3:52:05:0b txqueuelen 1000 (Ethernet)
RX packets 3 bytes 180 (180.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 376 bytes 34193 (33.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.7.45 netmask 255.255.255.0 broadcast 192.168.7.255
inet6 fe80::2143:5b45:d8f3:70a9 prefixlen 64 scopeid 0x20<link>
inet6 2001:44b8:292:900:58ee:145a:cf3e:90a0 prefixlen 64 scopeid 0x0<global>
ether b8:27:eb:27:42:18 txqueuelen 1000 (Ethernet)
RX packets 277 bytes 59285 (57.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 154 bytes 26383 (25.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eric at pieric:~ $ uname -a
Linux pieric 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l
GNU/Linux
eric at pieric:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.1 (stretch)
Release: 9.1
Codename: stretch
eric at pieric:~ $ simh/vax
MicroVAX 3900 simulator V4.0-0 Beta git commit id: 733ac0d9
sim> set cpu 128m
sim> load -r simh/ka655x.bin
sim> attach NVR simh/ka655.nvr
NVR: buffering file in memory
sim> set LPT disable
sim> set TQ disable
sim> set -l rq0 rauser=4213968
sim> attach rq0 eric_SYSTEM.dsk
RQ0: 'eric_SYSTEM.dsk' Contains ODS2 File system
RQ0: Volume Name: SYSTEM Format: DECFILE11B Sectors In Volume: 4213968
sim> set -l rq1 rauser=8427936
sim> attach rq1 eric_USER.dsk
RQ1: 'eric_USER.dsk' Contains ODS2 File system
RQ1: Volume Name: USER1 Format: DECFILE11B Sectors In Volume: 8427936
sim> set rq2 disable
sim> set rq3 disable
sim> set RL disable
sim> show xq
XQ address=20001920-2000192F, no vector, BR4, MAC=08:00:2B:58:71:6A
type=DELQA-T, mode=DELQA, polling=disabled, sanity=OFF
throttle=disabled, DEQNALock=OFF, leds=(ON,ON,ON)
not attached
sim> set xq MAC=08-00-2B-AA-BB-CC
sim> attach xq tap:tap0
libpcap version 1.8.1
Eth: opened OS device tap0
sim> boot cpu
KA655X-B V5.3, VMB 2.7
Performing normal system tests.
40..39..38..37..36..35..34..33..32..31..
?53 2 0A FF 00 0000
P1=00000002 P2=00000028 P3=00002711 P4=00D40077 P5=00000000
P6=FFFFFFFF P7=00000000 P8=00000000 P9=00000000 P10=20051CE0
r0=00000000 r1=20140110 r2=B32C16C8 r3=00030246 r4=B32C16D2
r5=2004E8F9 r6=00018678 r7=000186C8 r8=0001ADB1 ERF=80000000
30..29..28..27..26..25..
24..23..22..21..20..19..18..17..16..15..14..13..12..11..10..09..
08..07..06..05..04..03..
Normal operation not possible.
>>>show devices
UQSSP Disk Controller 0 (772150)
-DUA0 (RA82)
-DUA1 (RA82)
Ethernet Adapter 0 (774440)
-XQA0 (08-00-2B-AA-BB-CC)
>>>
I have been trying out various ideas in assorted forums and blogs and just
can't make it work. What am I missing?
Alternatively, and preferablly, I would like to set things up so that the
SIMH instance has direct access to the "raw" eth0 device with no
interference from the Linux network stack. But I can't work out how to
prevent Linux from configuring TCP/IP on the ethernet interface.
Thanks,
Jeremy Begg
+---------------------------------------------------------+
| VSM Software Services Pty. Ltd. |
| http://www.vsm.com.au/ |
|---------------------------------------------------------|
| P.O.Box 402, Walkerville, | E-Mail: jeremy at vsm.com.au |
| South Australia 5081 | Phone: +61 8 8221 5188 |
|---------------------------| Mobile: 0414 422 947 |
| A.C.N. 068 409 156 | FAX: +61 8 8221 7199 |
+---------------------------------------------------------+
More information about the Simh
mailing list