public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [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

* [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
@ 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:16 Lei Sun
@ 2006-11-08 17:39 ` Ben Warren
  2006-11-08 18:59   ` Lei Sun
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Warren @ 2006-11-08 17:39 UTC (permalink / raw)
  To: u-boot

On Wed, 2006-11-08 at 12:16 -0500, Lei Sun wrote:
> 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.
> 
Does it have a valid, unique MAC address?

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

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

Yeah, i suppose so. I connect my host to the board with a hub, give
them static IP, and set the MAC address to be the same as my host's
MAC, except one byte. Then I sniff the packet on my host using
ethereal.
Is the MAC address being compared in CPM's micro code ?

Thanks

On 11/8/06, Ben Warren <bwarren@qstreams.com> wrote:
> On Wed, 2006-11-08 at 12:16 -0500, Lei Sun wrote:
> > 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.
> >
> Does it have a valid, unique MAC address?
>
>

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

* [U-Boot-Users] ethernet on FCC
  2006-11-08 18:59   ` Lei Sun
@ 2006-11-08 19:26     ` Ben Warren
  2006-11-08 21:10       ` Lei Sun
  0 siblings, 1 reply; 11+ messages in thread
From: Ben Warren @ 2006-11-08 19:26 UTC (permalink / raw)
  To: u-boot

On Wed, 2006-11-08 at 13:59 -0500, Lei Sun wrote:
> Yeah, i suppose so. I connect my host to the board with a hub, give
> them static IP, and set the MAC address to be the same as my host's
> MAC, except one byte. Then I sniff the packet on my host using
> ethereal.
Which byte do you change?  Don't touch the left-most one, as its bits
have special meaning.  When you say you 'set the MAC address', how do
you do it?  Does the 'Source Address' field in the ARP packet sent by
your board match the MAC address that you set?

> Is the MAC address being compared in CPM's micro code ?
Unicast addresses are compared to registers in the CPM, which may be
implemented in microcode but that's neither here nor there.

regards,
Ben

^ 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, 0 replies; 11+ messages in thread
From: Wolfgang Denk @ 2006-11-08 20:13 UTC (permalink / raw)
  To: u-boot

In message <f9a7e7a80611080907tb85267cr136d624bcb7daa91@mail.gmail.com> you wrote:
>
> 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

Check your memopry map. You might have loaded the kernel (and/or
U-Boot) to a too low address.

> 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.

No, this is wrong. If you manage to get U-Boot starting from RAM, and
it is working correctly, then  it  can  boot  and  uncompress  kernel
images, too.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The important thing about being a leader is not being right or wrong,
but being *certain*.                    - Terry Pratchett, _Truckers_

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

* [U-Boot-Users] ethernet on FCC
  2006-11-08 19:26     ` Ben Warren
@ 2006-11-08 21:10       ` Lei Sun
  0 siblings, 0 replies; 11+ messages in thread
From: Lei Sun @ 2006-11-08 21:10 UTC (permalink / raw)
  To: u-boot

I changed the last byte (count start from left). I set the MAC via
environment "ethaddr", I've also defined "CONFIG_ETHADDR" so to force
it to fixed value.  My ethereal did show the correct source MAC
address for the broadcast ARP request. The host replied with unicast
ARP reply, that's when my board failed to get it. Haven't tried if my
board could get broadcasted packet yet.

Thanks

On 11/8/06, Ben Warren <bwarren@qstreams.com> wrote:
> On Wed, 2006-11-08 at 13:59 -0500, Lei Sun wrote:
> > Yeah, i suppose so. I connect my host to the board with a hub, give
> > them static IP, and set the MAC address to be the same as my host's
> > MAC, except one byte. Then I sniff the packet on my host using
> > ethereal.
> Which byte do you change?  Don't touch the left-most one, as its bits
> have special meaning.  When you say you 'set the MAC address', how do
> you do it?  Does the 'Source Address' field in the ARP packet sent by
> your board match the MAC address that you set?
>
> > Is the MAC address being compared in CPM's micro code ?
> Unicast addresses are compared to registers in the CPM, which may be
> implemented in microcode but that's neither here nor there.
>
> regards,
> Ben
>
>
>

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

* [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
  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
  0 siblings, 1 reply; 11+ messages in thread
From: Jerry Van Baren @ 2007-02-05 13:10 UTC (permalink / raw)
  To: u-boot

jie han wrote:
> 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

Hi Jie,

I don't have any good insights, but some things to try:
* Are you sure, positive, double checked and had a co-worker check that 
your clock input for FCC2-Rx is configured properly?
   1) Which CLK input is used?
   2) The port/pin configuration initialization in u-boot?
   3) Your hardware (traces) actually connect the right pins?

* Does FCC3 work?

* If you turn off CONFIG_NET_MULTI and only use FCC2, does it work?

* If you turn off CONFIG_NET_MULTI and only use FCC3, does it work?

Good luck,
gvb

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

* [U-Boot-Users] ethernet on FCC
  2007-02-05 13:10 ` Jerry Van Baren
@ 2007-02-09  2:39   ` jie han
  0 siblings, 0 replies; 11+ messages in thread
From: jie han @ 2007-02-09  2:39 UTC (permalink / raw)
  To: u-boot

Thank you for your help.The fcc2 working now,It is my mistake to config fcc2 RX_DV port pin.

Sincerely,

Jie

Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com> wrote: jie han wrote:
> 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

Hi Jie,

I don't have any good insights, but some things to try:
* Are you sure, positive, double checked and had a co-worker check that 
your clock input for FCC2-Rx is configured properly?
   1) Which CLK input is used?
   2) The port/pin configuration initialization in u-boot?
   3) Your hardware (traces) actually connect the right pins?

* Does FCC3 work?

* If you turn off CONFIG_NET_MULTI and only use FCC2, does it work?

* If you turn off CONFIG_NET_MULTI and only use FCC3, does it work?

Good luck,
gvb


 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070208/58e64434/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