[Simh] Raspberry Pi 3 with tun/tap causes XQ to fail

Jeremy Begg jeremy at vsm.com.au
Mon Nov 13 07:38:39 EST 2017


Hi Wilm,

Thank you for the prompt reply.

> On 13 Nov 2017, at 9:43 PM, Wilm Boerhout <wboerhout at gmail.com> wrote:
> 
> Jeremy Begg schreef op 13-11-2017 om 11:03:
>> 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.
>> 
> [snip]
> 
> My TUN/TAP and bridge are set up in /etc/rc.local in Raspbian (jessie & stretch), as follows:

Are you sure this applies to the machine running the “stretch” release?
The ‘ifconfig’ command on that system (well, on mine, anyway!) doesn’t display “inet addr” anywhere in its output, it just has “inet”.
So the various grep commands in your example don’t work.

Thanks

	Jeremy Begg

> 
> <start of rc.local>
> #!/bin/sh -e
> # This script is executed at the end of each multiuser runlevel.
> 
> exec 2> /var/log/rc.local.log   # stderr to logfile
> exec 1>&2                       # stdout as well
> set -x                          # set verify :-)
> 
> # no wireless for the moment
> ifconfig wlan0 0.0.0.0 down
> 
> IFACE="eth0"
> MACADDR="08:00:2B:03:03:03"
> 
> # get current IP params
> HOSTIP=`ifconfig $IFACE | grep "inet addr" | gawk -- '{ print $2 }' | gawk -F : -- '{ print $2 }'`
> HOSTNM=`ifconfig $IFACE | grep "inet addr" | gawk -- '{ print $4 }' | gawk -F : -- '{ print $2 }'`
> HOSTBC=`ifconfig $IFACE | grep "inet addr" | gawk -- '{ print $3 }' | gawk -F : -- '{ print $2 }'`
> HOSTGW=`route -n | grep ^0.0.0.0 | gawk -- '{ print $2 }'`
> 
> # Make tun/tap
> tunctl -t tap0 -u root
> ifconfig tap0 up
> 
> # Make bridge
> brctl addbr br0
> brctl addif br0 $IFACE
> brctl setfd br0 0
> ifconfig $IFACE 0.0.0.0
> 
> # fix bridge MACaddress
> ifconfig br0 hw ether $MACADDR
> 
> # start bridge
> ifconfig br0 $HOSTIP netmask $HOSTNM broadcast $HOSTBC up
> 
> # set the default route to the br0 interface
> route add -net 0.0.0.0/0 gw $HOSTGW
> 
> # bridge in the tap device
> brctl addif br0 tap0
> ifconfig tap0 0.0.0.0
> 
> # load kernel variables from /etc/sysctl.d (https://wiki.debian.org/BridgeNetworkConnections)
> /etc/init.d/procps restart
> <end of rc.local>
> 
> then the
> 
> set xu mac=08:00:2B:19:02:54 type=DELUA
> att xu tap:tap0
> 
> works fine for my VAX-11/780 LAVC-cluster
> 
> /Wilm
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh



More information about the Simh mailing list