public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] ethernet on FCC
@ 2007-02-05  6:15 jie han
  2007-02-05 13:10 ` Jerry Van Baren
  0 siblings, 1 reply; 11+ messages in thread
From: jie han @ 2007-02-05  6:15 UTC (permalink / raw)
  To: u-boot

Hi,
My mpc8270 board use three ehternet ports at FCC1,FCC2,FCC3.it is 
work well at FCC1.When I use port FCC2, I found out the 
  u-boot is not receiving packets (It's sending correct packet when i
  use ethereal for sniffing). When trying "ping", it generated an ARP
  packet first, the other host replied with , but the board never seems
  to receive it(set printf at function fec_recv()  /cpu/mpc8260/ether_fcc.c ).all three ethernet fcc ports initiailze is same.Do I miss something?thank you for your suggestion,my config file config FCC port parameter as follow:

#undef    CONFIG_ETHER_ON_SCC        /* define if ether on SCC   */
#define CONFIG_ETHER_ON_FCC        /* define if ether on FCC   */
#undef    CONFIG_ETHER_NONE          /* define if ether on something else */
#define    CONFIG_NET_MULTI
#define CONFIG_ETHER_ON_FCC1
#define CONFIG_ETHER_ON_FCC2
#define CONFIG_ETHER_ON_FCC3

#define CFG_CMXFCR_VALUE1    (CMXFCR_RF1CS_CLK11 | CMXFCR_TF1CS_CLK12)
#define CFG_CMXFCR_MASK1    (CMXFCR_FC1 | CMXFCR_RF1CS_MSK | CMXFCR_TF1CS_MSK)

#define CFG_CMXFCR_VALUE3    (CMXFCR_RF3CS_CLK13 | CMXFCR_TF3CS_CLK14)
#define CFG_CMXFCR_MASK3    (CMXFCR_FC3 | CMXFCR_RF3CS_MSK | CMXFCR_TF3CS_MSK)

#define CFG_CMXFCR_VALUE2    (CMXFCR_RF2CS_CLK15 | CMXFCR_TF2CS_CLK16)
#define CFG_CMXFCR_MASK2    (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)

#define CFG_RX_ETH_BUFFER       128     
#define CONFIG_IPADDR           192.168.10.17
#define CONFIG_SERVERIP         192.168.10.101
#define CONFIG_HOSTNAME         OceanSCC
#define CONFIG_LOADADDR         1000    /* default location for tftp and bootm */
#define CONFIG_BOOTFILE              u-boot.bin

#define CONFIG_ETHADDR          00:13:09:11:22:33
#define CONFIG_HAS_ETH1
#define CONFIG_ETH1ADDR                    00:13:09:04:05:36
#define CONFIG_HAS_ETH2
#define CONFIG_ETH2ADDR                    00:13:09:07:08:39

#define    CONFIG_EXTRA_ENV_SETTINGS    "ethprime=FCC1 ETHERNET"

#define CFG_CPMFCR_RAMTYPE    0        /* BDs and buffers on 60x bus */
#define CFG_FCC_PSMR        (FCC_PSMR_FDE | FCC_PSMR_LPB)  /* Full duplex */

#define CONFIG_MII            /* MII PHY management        */
#define CONFIG_BITBANGMII        /* bit-bang MII PHY management    */

Sincerely,

Jie


 
---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070204/c5032971/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] ethernet on FCC
@ 2006-11-08 17:16 Lei Sun
  2006-11-08 17:39 ` Ben Warren
  0 siblings, 1 reply; 11+ messages in thread
From: Lei Sun @ 2006-11-08 17:16 UTC (permalink / raw)
  To: u-boot

Hi;
  Please ignore my first question regarding proff_enet, I wasn't too
careful, it was inialized when defining the array.
  But still, can't explain why its not receiving any packets though.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] ethernet on FCC
@ 2006-11-08 17:07 Lei Sun
  2006-11-08 20:13 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Lei Sun @ 2006-11-08 17:07 UTC (permalink / raw)
  To: u-boot

Hi:
  While tring to bring up my mpc8270 based board, I found out the
u-boot is not receiving packets (It's sending correct packet when i
use ethereal for sniffing). When trying "ping", it generated an ARP
packet first, the other host replied with , but the board never seems
to receive it.
  When digging into the code, in cpu/mpc8260/ether_fcc.c file, it
tries to initialize the parameter ram by :

pram_ptr = (fcc_enet_t *)&(immr->im_dprambase[info->proff_enet]);

However, I can't seems to find where the info->proff_enet got
initialized. I am using u-boot-1.1.4, but the 1.1.6 code does the same
thing.
  The ether_scc.c file seems doing the right thing, because it defined
PROFF_ENET as a macro.

A bug ?

Another thing, I loaded the uImage into memory using JTAG, but the
"bootm" command failed when it tries to uncompressing the kernel,
error message is "inflate() returned -3". I am running u-boot in ram
directly , not from the flash, I have found some posts which saids if
u-boot is running from RAM, it can't uncompressing the kernel, but
without any explaination on why.

Thanks
lei

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [U-Boot-Users] Ethernet On FCC
@ 2004-11-03  9:16 Vikrant_Basotra
  0 siblings, 0 replies; 11+ messages in thread
From: Vikrant_Basotra @ 2004-11-03  9:16 UTC (permalink / raw)
  To: u-boot

Hi all,

We are designing an MPC8260 Board which had an LXT971 Ethernet chip on it.

The ethernet chip is connected to FCC2 port.

1.According to me the Ethernet initialization for FCC is done in the
function "fec_init" in Ether_fcc.c.

  The function "fec_init" is being called in Eth.c/eth_init()

  The function "eth_init" is being called in Net.c/NetLoop().

  The function "NetLoop" is being called in cmd_net.c/netboot_common.

 

  The function "fec_initialize" is being called in eth.c 

  The function "eth_initialize" is being called in board.c

 

I am not able to make out from where fec_init is being called initially?

 

2.Also there is another function "reset_phy" in board.c. Is this the
starting point for Ethernet intialization?

 

Thanks and Regards,

Vikrant.

 

************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20041103/cb9ac65a/attachment.htm 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-02-09  2:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-05  6:15 [U-Boot-Users] ethernet on FCC jie han
2007-02-05 13:10 ` Jerry Van Baren
2007-02-09  2:39   ` jie han
  -- strict thread matches above, loose matches on Subject: below --
2006-11-08 17:16 Lei Sun
2006-11-08 17:39 ` Ben Warren
2006-11-08 18:59   ` Lei Sun
2006-11-08 19:26     ` Ben Warren
2006-11-08 21:10       ` Lei Sun
2006-11-08 17:07 Lei Sun
2006-11-08 20:13 ` Wolfgang Denk
2004-11-03  9:16 [U-Boot-Users] Ethernet On FCC Vikrant_Basotra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox