All of lore.kernel.org
 help / color / mirror / Atom feed
From: ben bodley <benb@m2tech.co.nz>
To: xuwentao@cn.ibm.com
Cc: mailing list <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Why eth0 does not work
Date: Tue, 18 Jul 2000 11:06:45 +1200	[thread overview]
Message-ID: <39739185.51ADF2F7@m2tech.co.nz> (raw)
In-Reply-To: 4825691F.002DF1CC.00@d73mta06.au.ibm.com


xuwentao@cn.ibm.com wrote:

>
> the output of the tcpdump -i eth0 host 7.1.1.5 in the NFS server is:
> 13:47:08.224173 B arp who-has 7.1.1.21 tell 7.1.1.5
> 13:47:08.224207 > arp reply 7.1.1.21 (0:20:35:b1:fc:d8) is-at
> 0:20:35:b1:fc:d8 (
> 12:34:56:78:90:ab)
> 13:47:09.335805 B arp who-has 7.1.1.21 tell 7.1.1.5
> 13:47:09.335826 > arp reply 7.1.1.21 (0:20:35:b1:fc:d8) is-at
> 0:20:35:b1:fc:d8 (
> 12:34:56:78:90:ab)
> 13:47:10.447399 B arp who-has 7.1.1.21 tell 7.1.1.5
> 13:47:10.447413 > arp reply 7.1.1.21 (0:20:35:b1:fc:d8) is-at
> 0:20:35:b1:fc:d8 (
> 12:34:56:78:90:ab)
> 13:47:13.604779 B arp who-has 7.1.1.21 tell 7.1.1.5
> 13:47:13.604794 > arp reply 7.1.1.21 (0:20:35:b1:fc:d8) is-at
> 0:20:35:b1:fc:d8 (
> 12:34:56:78:90:ab)
> .......
> I also tried other vlaues for the buffer registers such as
> page start reg: 0
> current page reg: 1
> page stop reg: 32
> boundary poiter: 0
> and also got rx errors. I dont know what to do next.
>
> Wentao
>

okay... well i'm not sure what patches you are using, but as i recall
montavista did not use grant's latest kernel patch with a very major (but very
small :) ethernet fix..

in the drivers/net/oaknet.c file please check the function
oaknet_get_8390_hdr().. at the end of this function make sure you have the
following code segment (the byte swap is the changed line):

---------------
else
    ei_isb(E8390_BASE + E8390_DATA, hdr,
                sizeof(struct e8390_pkt_hdr));

/* byte swap the packet byte count */

hdr->count = le16_to_cpu(hdr->count);

ei_obp(ENISR_RDC, base + EN0_ISR);    /* ACK Remote DMA interrupt */
ei_status.dmaing &= ~0x01;

return;
----------------

let me know if this helps..

cheers,
ben

--
/\\------------------------------------------------------------------
:::::::::::..ben.b..m2technologyltd.nz..64.9.4448307.130..:::::::::::


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2000-07-17 23:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-17  6:21 Why eth0 does not work xuwentao
2000-07-17 23:06 ` ben bodley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-07-13  1:50 xuwentao
2000-07-13  4:12 ` ben bodley
2000-07-12 10:21 Wentao Xu
2000-07-12 22:15 ` Frank Rowand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39739185.51ADF2F7@m2tech.co.nz \
    --to=benb@m2tech.co.nz \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=xuwentao@cn.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.