home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5233 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  5.9 KB

  1. Xref: sparky comp.unix.bsd:5233 comp.protocols.tcp-ip.ibmpc:5090
  2. Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip.ibmpc
  3. Path: sparky!uunet!cs.utexas.edu!torn!cunews!revcan!latour!mcr
  4. From: mcr@Sandelman.OCUnix.on.ca (Michael Richardson)
  5. Subject: Re: [386bsd] NS8390 ethernet evaluation board 
  6. Message-ID: <1992Sep7.004547.4479@Sandelman.OCUnix.on.ca>
  7. Followup-To: comp.unix.bsd
  8. Summary: first byte isn't transmitted
  9. Keywords: 8390, NE2000, 386bsd
  10. Organization: Sandelman Software Works, Debugging Department, Ottawa, ON
  11. References: <1992Aug31.015413.18294@Sandelman.OCUnix.on.ca>
  12. Date: Mon, 7 Sep 1992 00:45:47 GMT
  13. Lines: 126
  14.  
  15. [  I'm going to followup to my own article with a number more details. 
  16.   I sat and studied my /usr/lib/newsgroups wondering where NS8390
  17. gurus would hangout, and considered cross-posting to sci.electronics,
  18. but since I don't have it here right now, and it has been over a year
  19. since I last read it, I'll refrain. Since the 8390 chip seems to show
  20. up on nearly every ISA ethernet card I've seen recently, I'm hoping
  21. tcp-ip.ibmpc will snag a couple more people who've written drivers for
  22. it. ]
  23.  
  24. In article <1992Aug31.015413.18294@Sandelman.OCUnix.on.ca> mcr@Sandelman.OCUnix.on.ca (Michael Richardson) writes:
  25. >  I have two National Semiconductor (Nominal Semidestructor? cute comment)
  26. >network evaluation boards. These are 8 bit cards with 8k of ram, an 8390 and
  27. >associated logic. I have placed one in my 386 running 386bsd 0.0
  28. >(I will be going to 0.1 when my network starts working) The other is
  29. >sitting in my Amiga 2000 (via GoldenGate).
  30.  
  31. >  The 386bsd's hostname is bud. (as in _Married With Children_)
  32. >  Further data:
  33. >    3/60 (latour): 192.139.46.129, 08:00:20:06:22:c6
  34. >    Jolix (bud):   192.139.46.130, 08:00:17:40:0b:d4
  35.  
  36.   (latour runs SunOS 4.1.0. I have made sure it has the right
  37. broadcast address. I also swapped ethernet cards, and the new one is 
  38. 8:0:17:40:c:ab)
  39.  
  40. >  There are no other machines on the thinnet segment which is all of
  41. >two feet long (although six inches would do the trick)
  42.  
  43.   One person suggested that my segment should be at least 6 feet long,
  44. and that I was setting up standing waves. The ethernet guru at work
  45. suggested that was only true for thicknet, but lent me some more cable
  46. anyway.
  47.  
  48.   I have been monitoring the cable with etherfind on the 3/60. 
  49.   I invoke it as: etherfind -i le0 -x -v -d greater 1
  50.   to get all the packets dumped. 
  51.  
  52.   Invoking `ping latour' on the 386BSD machine. I see:
  53.  
  54. ip arp request from bud.sandelman.ocunix.on.ca(8:0:17:40:c:ab) for latour.sandel
  55. man.ocunix.on.ca
  56.  00 ff ff ff ff ff 08 00 17 40 0c ab 08 06 00 01
  57.  08 00 06 04 00 01 08 00 17 40 0c ab c0 8b 2e 82
  58.  00 00 00 00 00 00 c0 8b 2e 81 00 00 00 00 00 00
  59.  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  60.  00 10 30 20
  61.  
  62.  
  63.   Oops, what is that 0x00 doing at the beginning? I have been dumping
  64. the packets that I am writing into the 8390 memory, and checking that
  65. what I wrote is properly there. It is in fact an 0xff. I am starting
  66. this on a 256 byte page properly. If I start one byte further, I get
  67. the whole packet (offset by a byte, therefore nonsense)
  68.   I can get a different packet transmitted by ping the 386bsd machine
  69. from the 3/60, therefore priming the 386bsd's arp cache with the
  70. 3/60's hardware address.  
  71.  
  72. latour% ping bud
  73. bud% ping latour
  74.  
  75.   and I see:
  76.  
  77.  
  78.  
  79. ip arp request from latour.sandelman.ocunix.on.ca(8:0:20:6:22:c6) for bud.sandel
  80. man.ocunix.on.ca
  81.  ff ff ff ff ff ff 37 20 31 61 20 30 08 06 00 01
  82.  08 00 06 04 00 01 08 00 20 06 22 c6 c0 8b 2e 81
  83.  00 00 00 00 00 00 c0 8b 2e 82 0a 0a 00 00
  84.  
  85. ip arp reply from bud.sandelman.ocunix.on.ca(8:0:17:40:c:ab) for latour.sandelma
  86. n.ocunix.on.ca(8:0:20:6:22:c6)
  87.  00 00 20 06 22 c6 08 00 17 40 0c ab 08 06 00 01
  88.  08 00 06 04 00 02 08 00 17 40 0c ab c0 8b 2e 82
  89.  08 00 20 06 22 c6 c0 8b 2e 81 34 20 30 30 20 30
  90.  32 20 30 38 20 30 30 20 31 37 20 34 00 00 00 00
  91.  61 fc 00 00
  92.  
  93. ICMP from bud.sandelman.ocunix.on.ca to latour.sandelman.ocunix.on.ca echo 64 da
  94. ta bytes
  95.  45 00 20 06 22 c6 08 00 17 40 0c ab 08 00 45 00
  96.  00 54 00 3b 00 00 ff 01 dd 53 c0 8b 2e 82 c0 8b
  97.  2e 81 08 00 ad c7 38 00 05 00 45 24 aa 2a 30 e6
  98.  02 00 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15
  99.  16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25
  100.  26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35
  101.  36 37 33 31 30 30
  102.  
  103.   In otherwords, 
  104.    a) the two machines can both transmit on the wire. 
  105.    b) the 386bsd machine can recieve, recognize its address, and
  106. respond to the arp request.
  107.    c) the 386bsd machine can send onto the wire.
  108.  
  109.   I also assume that that the CRCs are correct, or the packets would
  110. have been dropped, (although I see nothing that says that /dev/nit and
  111. etherfind can't also see dropped packets, I don't see anything that
  112. says they can receive it. In fact the warning to the -d flag suggests
  113. that they can't)
  114.  
  115.   Notice that the first byte is always == the 14 th byte. I did an
  116. experiment. On the 386bsd machine I set the 14th byte to the first
  117. byte. Lo, and behold, the first byte is now correct. I swapped them
  118. outright --- nope. The 14th byte is transmitted anyway.
  119.   I note that the 14th is the first byte of the actual data (as far as
  120. the ethernet is concerned. It is not data for the higher level
  121. protocols unless trailers are on).
  122.  
  123.   i) Do I have a bad (or rather two) 8390? Could these be part of a
  124. bad run? 
  125.   ii) do I perhaps have some kind of debugging or diagnostic mode on?
  126. (Nothing I can find in my 1992 edition of the NS lan data book
  127. suggests anything)
  128.   iii) I don't think that it is bad memory since I can receive things
  129. okay, and having byte #14 bad would sort of mess everything up. I have
  130. tried moving the transmit buffer around in memory (which is from
  131. 0x2000 -> 0x3fff) to no avail.
  132.  
  133.   iv) I going to call my local NS rep on Tuesday and I'll report back
  134. then. 
  135.  
  136. -- 
  137.    :!mcr!:            |  The postmaster never | So much mail, 
  138.    Michael Richardson |    resolves twice.    |  so little time.
  139. HOME: mcr@sandelman.ocunix.on.ca     Bell: (613) 237-5629
  140. SCHOOL: 192228@physics.carleton.ca      
  141.