home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / bsd / 4884 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  4.7 KB

  1. Xref: sparky comp.unix.bsd:4884 comp.sys.sun.hardware:4147
  2. Newsgroups: comp.unix.bsd,comp.sys.sun.hardware,comp.protocols.tcpip
  3. Path: sparky!uunet!cs.utexas.edu!torn!cunews!revcan!latour!mcr
  4. From: mcr@Sandelman.OCUnix.on.ca (Michael Richardson)
  5. Subject: [386bsd] NS8390 ethernet evaluation board 
  6. Message-ID: <1992Aug31.015413.18294@Sandelman.OCUnix.on.ca>
  7. Followup-To: comp.unix.bsd
  8. Summary: I think it works, maybe my 3/60 doesn't?
  9. Keywords: 8390, NE2000, 386bsd, Sun, 3/60
  10. Organization: Sandelman Software Works, Debugging Department, Ottawa, ON
  11. Date: Mon, 31 Aug 1992 01:54:13 GMT
  12. Lines: 84
  13.  
  14.  
  15.   [please note the followup, and email if the have a better suggestion]
  16.   I have two National Semiconductor (Nominal Semidestructor? cute comment)
  17. network evaluation boards. These are 8 bit cards with 8k of ram, an 8390 and
  18. associated logic. I have placed one in my 386 running 386bsd 0.0
  19. (I will be going to 0.1 when my network starts working) The other is
  20. sitting in my Amiga 2000 (via GoldenGate).
  21.   The 386bsd's hostname is bud. (as in _Married With Children_)
  22.  
  23.   I started with the NE2000 driver and started bashing. At first,
  24. I was amazed at how little code I actually had to modify. (Mostly
  25. just finding all the hardwired assumptions about 32k of ram that the
  26. NE2000 has) My board does not have a reset location, so I needed a bit more 
  27. code to put the NIC in a known state. 
  28.  
  29.   I just saw someone's suggestion [in comp.unix.bsd] about changing the u_short 
  30. to a u_char --- that made instant sense to me, but it didn't solve the
  31. basic problem I have been having: ARP isn't quite working.
  32.   The other machine in my basement is my trusty Sun 3/60 (hostname: latour). 
  33. I can't confirm that it has ever worked on a network of any kind, but I 
  34. suspect that it would have been diskless over two years ago (before it 
  35. was mine)
  36.  
  37.   I have traced things (via printf) into arpinput() and arpwhohas()
  38. [in netinet/if_ether.c]. If I start a ping from the 386, it correctly
  39. starts sending arp packets onto the network. Using rpc.etherd and
  40. traffic (ug! suntools. I have X11R4 not openwindows) I can confirm
  41. that arp packets are making it onto the network. No responses are
  42. received.
  43.  
  44.   If I ping from the 3/60 to the 386bsd, my debugging shows packets
  45. going into arpinput() where it discovers that the request is for the
  46. 386bsd and a response is transmitted. Also, rpc.etherd says things like
  47. "rpc.etherd: bad lnth 42 dest ffffffffffffsrc 0800200622c6"
  48. although sometimes the src is garbled. The above src is the Sun's
  49. ethernet address.
  50.  
  51.   Of note, if I ping in both directions at the same time, then the
  52. 386bsd system realizes that it has an ethernet address for the 3/60's
  53. IP address and just transmits. More debugging shows that it even has
  54. the right ethernet address. Also, traffic then reports seeing icmp
  55. packets.
  56.  
  57.   The 3/60 also transmits period 70 byte and 202 byte packets out
  58. the interface. These should be routing packets from gated (I have
  59. a hardwired slip connection to the Amiga which runs AmigaNOS, and
  60. have had dialup slip connections to friends and work, which is why
  61. I run gated). I believe that these packets are broadcast packets.
  62. I tried bringing up routed to see if it saw anything, but didn't spend
  63. much time on it. 
  64.  
  65.   I'm starting to suspect that the Sun can't ARP properly. 
  66.   I have tried adding the arp address in with arp(8) on the Sun.
  67. 386bsd 0.0 doesn't have arp, so I haven't been able to do the reverse.
  68.  
  69.   Of note is that I am trying to use a subnet --- ocunix has an
  70. autonomous class C address that is partitioned into 16 address chunks.
  71. I am 128-143. I have tried going with no subnets, with no difference.
  72. I have also tried turning on trailers, and have confirmed that arp is
  73. enabled on both machines. ifconfig says: <UP,BROADCAST,RUNNING,PROMISC>
  74. and NOARP is added if I do ifconfig le0 -arp and goes away for ifconfig
  75. le0 arp. PROMISC goes away when I kill rpc.etherd.
  76.   
  77.   Further data:
  78.     3/60 (latour): 192.139.46.129, 08:00:20:06:22:c6
  79.     Jolix (bud):   192.139.46.130, 08:00:17:40:0b:d4
  80.  
  81.   There are no other machines on the thinnet segment which is all of
  82. two feet long (although six inches would do the trick)
  83.  
  84.   I may have a chance to bring my 386 to work this week (but 
  85. work is 25km by bicycle away, so I'd rather not). We have something called 
  86. `EtherVision' that can run on PCs, and I'm familliar with the iptracing
  87. stuff in the RS/6000s machines that I manage. I'm also going to try and find 
  88. a WD8013 card to borrow, but I think they are all committed.
  89.  
  90.   Does anyone have any other suggestions as to a course of action
  91. here?
  92.  
  93. -- 
  94.    :!mcr!:            |  The postmaster never | So much mail, 
  95.    Michael Richardson |    resolves twice.    |  so little time.
  96. HOME: mcr@sandelman.ocunix.on.ca     Bell: (613) 237-5629
  97. SCHOOL: 192228@physics.carleton.ca      
  98.