[Simh] VAX-11/780 DEUNA Ethernet problems with 4.3BSD

roy hills royhills at hotmail.com
Fri Aug 15 16:51:13 EDT 2008


Mark,

I've uploaded a Bzipped tar file containing the 4.2BSD ra81 disk image, SIMH configuration file and boot loader to:
http://www.royhills.com/43bsd-simh-vax780-ra81.tar.bz2
This file is about 30MB in size.

Booting it up should look like this:

C:\simh\bin>vax780.exe vax780_43bsd.ini

VAX780 simulator V3.8-0
Listening on port 4000 (socket 1868)
Modem control activated
Auto disconnect activated
Eth: opened \Device\NPF_{A390A62C-E18B-45FC-A99F-FB039C5B4032}
loading ra(0,0)boot
Boot
: ra(0,0)vmunix
230980+68336+75832 start 0x11e8
4.3 BSD UNIX #0: Sat Aug 14 13:04:16 PDT 2004
    root at myname.my.domain:/usr/src/sys/SIMH
real mem  = 8388608
SYSPTSIZE limits number of buffers to 151
avail mem = 7271424
using 151 buffers containing 524288 bytes of memory
mcr0 at tr1
mcr1 at tr2
uba0 at tr3
uda0 at uba0 csr 172150 vec 774, ipl 15
ra0 at uda0 slave 0
dz0 at uba0 csr 160100 vec 300, ipl 15
de0 at uba0 csr 174510 vec 120, ipl 15
de0: hardware address 08:00:2b:12:34:56
mba0 at tr9
ht0 at mba0 drive 0
tu0 at ht0 slave 0
tu1 at ht0 slave 1
Automatic reboot in progress...

When it boots, login as root (no password) or rsh (no password).

The disk image comes from the CSRG Archive CD, which I believe is freely redistributable.

The system contains full source code.  The network interface driver source code is in /usr/src/sys/vaxif, and the DEUNA driver code is in "if_de.c" and "if_dereg.h":

% pwd
/usr/src/sys/vaxif
% ls -l if_de*
-r--r--r--  1 root        20961 Jun  5  1986 if_de.c
-r--r--r--  1 root         6819 Jun  4  1986 if_dereg.h

I've built the kernel on this system, so I know it all compiles.

The system kernel configuration is called SIMH and is in /sys/conf/SIMH.

To rebuild the kernel:

cd /sys/conf
config SIMH
cd /sys/SIMH
make depend
make
mv vmunix /vmunix

Roy

> Date: Fri, 15 Aug 2008 11:31:37 -0700
> From: mark at infocomm.com
> Subject: Re: [Simh] VAX-11/780 DEUNA Ethernet problems with 4.3BSD
> To: royhills at hotmail.com
> CC: mark at infocomm.com
> 
> Hi Roy,
> 
> Looks like a real problem.  I'll take a crack at fixing this if you can point me to an image of the the virtual RA81 disk you are using.  It might also be useful to have access to the source code for the DEUNA device driver used on this system.
> 
> - Mark
> 
> --- On Fri, 8/15/08, roy hills <royhills at hotmail.com> wrote:
> 
> > From: roy hills <royhills at hotmail.com>
> > Subject: [Simh] VAX-11/780 DEUNA Ethernet problems with 4.3BSD
> > To: simh at trailing-edge.com
> > Date: Friday, August 15, 2008, 11:08 AM
> > I'm running 4.3BSD on the SIMH VAX-11/780 emulator, and
> > I'm having some issues with the emulated DEUNA Ethernet
> > adapter.  I'm using SIMH version 3.8 on Windows XP.
> > 
> > I've got two issues:
> > 
> > 1.  The Ethernet adapter does not appear to respond to
> > broadcasts (i.e. destination address ff:ff:ff:ff:ff:ff), so
> > the system does not answer ARP requests.
> > 
> > Here's an example tcpdump output.  The client is at IP
> > address 192.168.1.57, and the 4.3BSD machine is at
> > 192.168.1.70:
> > 
> > 18:27:03.623364 00:0c:29:01:67:5a > ff:ff:ff:ff:ff:ff,
> > ethertype ARP (0x0806), length 42: arp who-has 192.168.1.70
> > tell 192.168.1.57
> > 18:27:03.725393 00:0c:29:01:67:5a > ff:ff:ff:ff:ff:ff,
> > ethertype ARP (0x0806), length 42: arp who-has 192.168.1.70
> > tell 192.168.1.57
> > 
> > 2.  The Ethernet adapter responds to packets sent to its
> > own address, but replies from seemingly random source
> > addresses.
> > 
> > Here's an example of an ARP request sent to the SIMH
> > system's MAC address of 08:00:2b:12:34:56.  We see that
> > it replies with the correct MAC address in the ARP packet,
> > but the source address in the Ethernet frame is
> > aa:fd:00:00:00:00
> > 
> > 18:29:48.059696 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > ethertype ARP (0x0806), length 42: arp who-has 192.168.1.70
> > tell 192.168.1.57
> > 18:29:48.060160 aa:fd:00:00:00:00 > 00:0c:29:01:67:5a,
> > ethertype ARP (0x0806), length 60: arp reply 192.168.1.70
> > is-at 08:00:2b:12:34:56
> > 
> > Sending another directed ARP request gets a reply with a
> > different source MAC address:
> > 
> > 18:32:05.439533 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > ethertype ARP (0x0806), length 42: arp who-has 192.168.1.70
> > tell 192.168.1.57
> > 18:32:05.445380 ab:b1:00:00:00:00 > 00:0c:29:01:67:5a,
> > ethertype ARP (0x0806), length 60: arp reply 192.168.1.70
> > is-at 08:00:2b:12:34:56
> > 
> > If I put a static ARP mapping on the client, I can telnet
> > to the SIMH system and login.  The telnet session also uses
> > random source addresses in the ethernet header, but
> > surprisingly still works OK:
> > 
> > 18:38:19.567264 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 74: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 0
> > 18:38:19.574243 33:00:00:00:07:00 > 00:0c:29:01:67:5a,
> > IPv4, length 60: 192.168.1.70.23 > 192.168.1.57.4658: tcp
> > 0
> > 18:38:19.574287 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 54: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 0
> > 18:38:19.576378 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 78: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 24
> > 18:38:19.589707 00:00:00:00:00:00 > 00:0c:29:01:67:5a,
> > IPv4, length 60: 192.168.1.70.23 > 192.168.1.57.4658: tcp
> > 3
> > 18:38:19.589795 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 54: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 0
> > 18:38:19.598110 27:ff:fd:05:07:00 > 00:0c:29:01:67:5a,
> > IPv4, length 81: 192.168.1.70.23 > 192.168.1.57.4658: tcp
> > 27
> > 18:38:19.598160 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 54: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 0
> > 18:38:19.599593 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 65: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 11
> > 18:38:19.609339 1e:01:00:00:c0:a8 > 00:0c:29:01:67:5a,
> > IPv4, length 107: 192.168.1.70.23 > 192.168.1.57.4658:
> > tcp 53
> > 18:38:19.609920 00:0c:29:01:67:5a > 08:00:2b:12:34:56,
> > IPv4, length 60: 192.168.1.57.4658 > 192.168.1.70.23: tcp
> > 6
> > 18:38:19.616475 1e:01:00:00:c0:a8 > 00:0c:29:01:67:5a,
> > IPv4, length 61: 192.168.1.70.23 > 192.168.1.57.4658: tcp
> > 7
> > 
> > The DEUNA configuration in the SIMH config file is:
> > 
> > set xu enabled
> > set xu mac=08-00-2B-12-34-56
> > attach xu
> > \Device\NPF_{A390A62C-E18B-45FC-A99F-FB039C5B4032}
> > 
> > The SIMH system sees the DEUNA at boot, and gets the
> > correct MAC address:
> > 
> > de0 at uba0 csr 174510 vec 120, ipl 15
> > de0: hardware address 08:00:2b:12:34:56
> > 
> > And ifconfig shows the device OK:
> > 
> > de0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING>
> >         inet 192.168.1.70 netmask ffffff00 broadcast
> > 192.168.1.255
> > 
> > I'm running the original 1986 vintage 4.3BSD from the
> > CSRG Archive CDROM installed on a virtual RA81 disk.  Apart
> > from the DEUNA issue, it's working fine.
> > 
> > Any ideas?
> > 
> > Roy
> > 
> > 
> > _________________________________________________________________
> > Get Hotmail on your mobile from Vodafone 
> > http://clk.atdmt.com/UKM/go/107571435/direct/01/_______________________________________________
> > Simh mailing list
> > Simh at trailing-edge.com
> > http://mailman.trailing-edge.com/mailman/listinfo/simh

_________________________________________________________________
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20080815/b86aed29/attachment-0003.html>


More information about the Simh mailing list