From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15208 invoked by alias); 31 Jul 2007 20:50:25 -0000 Received: (qmail 15199 invoked by uid 22791); 31 Jul 2007 20:50:24 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 31 Jul 2007 20:50:20 +0000 Received: by ug-out-1314.google.com with SMTP id m2so137277ugc for ; Tue, 31 Jul 2007 13:50:18 -0700 (PDT) Received: by 10.67.40.12 with SMTP id s12mr822274ugj.1185915017848; Tue, 31 Jul 2007 13:50:17 -0700 (PDT) Received: by 10.66.248.3 with HTTP; Tue, 31 Jul 2007 13:50:17 -0700 (PDT) Message-ID: <2308fb0f0707311350q1a32d649m894e98473b0f16f3@mail.gmail.com> Date: Tue, 31 Jul 2007 20:50:00 -0000 From: "Tales Toledo" To: "Gary Thomas" Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <46AB49B7.1070105@mlbassoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2308fb0f0707270807w38e1718x35e84165fd8ced0f@mail.gmail.com> <2308fb0f0707271259q2546801ave8c0adceba654069@mail.gmail.com> <46AB49B7.1070105@mlbassoc.com> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: PowerPC FEC doesn't ping X-SW-Source: 2007-07/txt/msg00237.txt.bz2 On 7/28/07, Gary Thomas wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Tales Toledo wrote: > > On 7/27/07, Tales Toledo wrote: > >> Hi, > >> > >> is there some additional special cdl_option for FEC? > >> > >> I can get ** FEC Info: PHY LINK already UP \n message from redboot > >> boot, configure ip_addresses, but I can get a reply from host or even > >> reply its requests because FEC can't send packages (I have checked > >> with wireshark). > > > > I also check TXD0 close to phy with an oscilloscope and seems that > > PowerPC FEC (hw is fine because it works with another sw) doesn't > > transmit any package. > > > > I can see the debug messages at redboot console > > > > RedBoot> ping -h 192.168.1.100 > > Ethernet send: > > 0000545C: FF FF FF FF FF FF 7C 71 43 A6 7C 92 08 06 |......|qC.|... | > > Ethernet send: > > 0000545C: FF FF FF FF FF FF 7C 71 43 A6 7C 92 08 06 |......|qC.|... | > > Ethernet send: > > 0000545C: FF FF FF FF FF FF 7C 71 43 A6 7C 92 08 06 |......|qC.|... | > > > > Is there some low level debug for FEC driver to address this issue? > > Check your I/O port configuration - this is different > for every processor (852 vs 87x vs ...). If it's not > right, the FEC will not be connected to the outside > world! You're right. I'm using MPC880 and FEC pins are spread over all ports. At this moment I can't contribute with a patch because I'm working in a proprietary hardware. I will try to get Adder885 board and ask them if we can add their eCos port to cvs and I can also add any changes I made. Anyway, just for close this subject and register here in other to help others, here is a brief description of changes: @ppc8xx.h Add description for port E /* Port E */ volatile unsigned long pio_pedir; /* port e data direction reg */ volatile unsigned long pio_pepar; /* port e pin assignment reg */ volatile unsigned long pio_peso; /* port e special options reg */ volatile unsigned long pio_peodr; /* port e open drain reg */ volatile unsigned long pio_pedat; /* port e data reg */ /* CP Timing Register */ volatile unsigned long cp_cptr; /* RMII timing register */ @ if_fec.h Add port configuration #if defined (CYGHWR_HAL_POWERPC_MPC8XX_880) // MII1: TXD0, TXER, TXD1, RXER, RXDV, RXD0, RXD1 eppc->pio_papar |= 0xF830; eppc->pio_padir &= ~0xF000; eppc->pio_padir |= 0x0830; // MII1: TXCLK, RXD3 eppc->pip_pbpar |= 0x00001001; eppc->pip_pbdir &= ~0x00001001; // MII1: TXD3, TXD2 eppc->pio_pcpar |= 0x000C; eppc->pio_pcdir &= ~0x000C; // MII1: MDC eppc->pio_pdpar |= 0x0080; eppc->pio_pddir &= ~0x0080; // MII1: RXCLK, RXD2 eppc->pio_pepar |= 0x00000003; eppc->pio_pedir |= 0x00000003; eppc->pio_peso &= ~0x00000003; #else eppc->pio_pdpar = 0x1FFF; CYGARC_MFSPR( CYGARC_REG_PVR, proc_rev ); #define PROC_REVB 0x0020 if ((proc_rev & 0x0000FFFF) == PROC_REVB) { eppc->pio_pddir = 0x1C58; } else { eppc->pio_pddir = 0x1FFF; } #endif // CYGHWR_HAL_POWERPC_MPC8XX_880 Thx, TT. > > - -- > - ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > - ------------------------------------------------------------ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFGq0m3maKbSsQGV8ARAvT4AJ903J0ueUeWPDgcrbF9EOaT+tUCRQCggLww > yREAzE8vPtpGPpgcNskl2zY= > =nP25 > -----END PGP SIGNATURE----- > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss