public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] 4xx ethernet bringup
@ 2007-12-19 17:56 shami Allam
  2007-12-19 19:21 ` Stefan Roese
  0 siblings, 1 reply; 17+ messages in thread
From: shami Allam @ 2007-12-19 17:56 UTC (permalink / raw)
  To: u-boot

Hi All,

I am working on the 405GP custome board. I am able to bringup the SDRAM,Flash,I2c and serail on the board. But while trying to bringup the ethernet i am getting the following error.
"No Ethernet found". On my board there is "DP83848I" PHY chip. 

what exactely this is doing in lib_ppc/boarc.c 
s = getenv ("ethaddr");
#if defined (CONFIG_MBX) || \
defined (CONFIG_RPXCLASSIC) || \
defined(CONFIG_IAD210) || \
defined(CONFIG_V38B)
if (s == NULL)
board_get_enetaddr (bd->bi_enetaddr);
else
#endif
for (i = 0; i < 6; ++i) {
bd->bi_enetaddr[i] = s ? simple_strtoul (s, &e, 16) : 0;
if (s)
s = (*e) ? e + 1 : e;
}
#ifdef CONFIG_HERMES
if ((gd->board_type >> 16) == 2)
bd->bi_ethspeed = gd->board_type & 0xFFFF;
else
bd->bi_ethspeed = 0xFFFF;
#endif

and in the same file there is one more call...
#if (CONFIG_COMMANDS & CFG_CMD_NET)
#if defined(CONFIG_NET_MULTI)
WATCHDOG_RESET ();
puts ("Net: ");
#endif
eth_initialize (bd);
#endif

In the eth_initialize() function i see the print "No ethernet found". i reqeust you to please throw some out to come out of this problem......**********EXIT ME PLZ*************

Thanks
Shami.


      Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071219/e859a6cf/attachment.htm 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-19 17:56 [U-Boot-Users] 4xx ethernet bringup shami Allam
@ 2007-12-19 19:21 ` Stefan Roese
  2007-12-20 11:52   ` shami Allam
  2007-12-22 10:01   ` shami Allam
  0 siblings, 2 replies; 17+ messages in thread
From: Stefan Roese @ 2007-12-19 19:21 UTC (permalink / raw)
  To: u-boot

On Wednesday 19 December 2007, shami Allam wrote:
> I am working on the 405GP custome board. I am able to bringup the
> SDRAM,Flash,I2c and serail on the board. But while trying to bringup the
> ethernet i am getting the following error. "No Ethernet found". On my board
> there is "DP83848I" PHY chip.

This message gets printed when you don't define the "ethaddr" environement 
address. So set this variable to a valid value and save the environment and 
reset the board. Then you should see one eth-interface.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-19 19:21 ` Stefan Roese
@ 2007-12-20 11:52   ` shami Allam
  2007-12-20 19:57     ` Wolfgang Denk
  2007-12-21  5:44     ` [U-Boot-Users] 4xx ethernet bringup Stefan Roese
  2007-12-22 10:01   ` shami Allam
  1 sibling, 2 replies; 17+ messages in thread
From: shami Allam @ 2007-12-20 11:52 UTC (permalink / raw)
  To: u-boot

Hi Stefan,
   
  I assigned the ethaddr as 192.168.13.246 and after that i run the command "saveenv " and reset the board. I got the following
Net: ppc_4xx_eth0. once i get the shell prompt i assign the ipaddr as 192.168.13.241 and after that i run the command "saveenv" and reset the board. Now i tried to ping my Host PC which has the IP address as 192.168.13.240, i am getting the following error.....I am not able to ping the host IP. Can you please show some way to come of this issue.....
=> ping 192.168.13.240
Trying ppc_4xx_eth0
PHY speed read failed, assuming 10bT
PHY duplex read failed, assuming half duplex
ENET Speed is 10 Mbps - HALF duplex connection
Using ppc_4xx_eth0 device
sending ARP for c0a80df0
ARP broadcast 1
ARP broadcast 2
ping failed; host 192.168.13.240 is not alive
=>
  Regards,
Shami...


Stefan Roese <sr@denx.de> wrote:
  On Wednesday 19 December 2007, shami Allam wrote:
> I am working on the 405GP custome board. I am able to bringup the
> SDRAM,Flash,I2c and serail on the board. But while trying to bringup the
> ethernet i am getting the following error. "No Ethernet found". On my board
> there is "DP83848I" PHY chip.

This message gets printed when you don't define the "ethaddr" environement 
address. So set this variable to a valid value and save the environment and 
reset the board. Then you should see one eth-interface.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================


       
---------------------------------
 Get the freedom to save as many mails as you wish. Click here to know how.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071220/dc27ad89/attachment.htm 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-20 11:52   ` shami Allam
@ 2007-12-20 19:57     ` Wolfgang Denk
  2007-12-20 20:11       ` [U-Boot-Users] Boot 440EPx from NAND Leonid
  2007-12-21  5:44     ` [U-Boot-Users] 4xx ethernet bringup Stefan Roese
  1 sibling, 1 reply; 17+ messages in thread
From: Wolfgang Denk @ 2007-12-20 19:57 UTC (permalink / raw)
  To: u-boot

In message <169884.69719.qm@web94113.mail.in2.yahoo.com> you wrote:
>
>   I assigned the ethaddr as 192.168.13.246 and after that i run the command "saveenv " and reset the board. I got the following

That looks like an IP address to me.

A MAC address is something different. Please see
http://en.wikipedia.org/wiki/MAC_address

Also make sure to read the FAQ.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There is is no reason for any individual to have a computer in  their
home.      -- Ken Olsen (President of Digital Equipment Corporation),
              Convention of the World Future Society, in Boston, 1977

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

* [U-Boot-Users] Boot 440EPx from NAND
  2007-12-20 19:57     ` Wolfgang Denk
@ 2007-12-20 20:11       ` Leonid
  2007-12-21  5:58         ` Stefan Roese
  0 siblings, 1 reply; 17+ messages in thread
From: Leonid @ 2007-12-20 20:11 UTC (permalink / raw)
  To: u-boot

Hi:

I am trying to boot 440EPx board similar to Seqouia from NAND. NAND
flash is different from Sequoia's though, it has page size 2K, sector
size 128K and it's 1Gb (128MB).

I set following parameters in my <board>.h file:

#define CFG_NAND_U_BOOT_SIZE	(600 << 10)	/* Size of RAM U-Boot
image	*/

/*
 * Now the NAND chip has to be defined (no autodetection used!)
 */
#define CFG_NAND_PAGE_SIZE	(2048)		/* NAND chip page size
*/
#define CFG_NAND_BLOCK_SIZE	(128 << 10)	/* NAND chip block size
*/
#define CFG_NAND_PAGE_COUNT	(64)		/* NAND chip page count
*/
#define CFG_NAND_BAD_BLOCK_POS	(5)		/* Location of bad block
marker	*/
#define CFG_NAND_4_ADDR_CYCLE			/* Fourth addr used
(>32MB)	*/

but it doesn't boot.

Any suggestion? What is CFG_NAND_PAGE_COUNT anyway?

Thanks,

Leonid.

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-20 11:52   ` shami Allam
  2007-12-20 19:57     ` Wolfgang Denk
@ 2007-12-21  5:44     ` Stefan Roese
  2007-12-21 12:11       ` shami Allam
  1 sibling, 1 reply; 17+ messages in thread
From: Stefan Roese @ 2007-12-21  5:44 UTC (permalink / raw)
  To: u-boot

Hi Shami,

On Thursday 20 December 2007, shami Allam wrote:
>   I assigned the ethaddr as 192.168.13.246 and after that i run the command
> "saveenv " and reset the board.

As Wolfgang already mentioned, this is *not* an ethernet address but an IP 
address.

> I got the following Net: ppc_4xx_eth0. once 
> i get the shell prompt i assign the ipaddr as 192.168.13.241 and after that
> i run the command "saveenv" and reset the board. Now i tried to ping my
> Host PC which has the IP address as 192.168.13.240, i am getting the
> following error.....I am not able to ping the host IP. Can you please show
> some way to come of this issue..... => ping 192.168.13.240
> Trying ppc_4xx_eth0
> PHY speed read failed, assuming 10bT
> PHY duplex read failed, assuming half duplex
> ENET Speed is 10 Mbps - HALF duplex connection

Did you configure the PHY address correctly? What does "mii info" show? how 
did you configure the PHY address in your board config file?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] Boot 440EPx from NAND
  2007-12-20 20:11       ` [U-Boot-Users] Boot 440EPx from NAND Leonid
@ 2007-12-21  5:58         ` Stefan Roese
  2007-12-21  6:56           ` Leonid
  0 siblings, 1 reply; 17+ messages in thread
From: Stefan Roese @ 2007-12-21  5:58 UTC (permalink / raw)
  To: u-boot

On Thursday 20 December 2007, Leonid wrote:
> I am trying to boot 440EPx board similar to Seqouia from NAND. NAND
> flash is different from Sequoia's though, it has page size 2K, sector
> size 128K and it's 1Gb (128MB).
>
> I set following parameters in my <board>.h file:
>
> #define CFG_NAND_U_BOOT_SIZE	(600 << 10)	/* Size of RAM U-Boot
> image	*/
>
> /*
>  * Now the NAND chip has to be defined (no autodetection used!)
>  */
> #define CFG_NAND_PAGE_SIZE	(2048)		/* NAND chip page size
> */
> #define CFG_NAND_BLOCK_SIZE	(128 << 10)	/* NAND chip block size
> */
> #define CFG_NAND_PAGE_COUNT	(64)		/* NAND chip page count
> */
> #define CFG_NAND_BAD_BLOCK_POS	(5)		/* Location of bad block
> marker	*/
> #define CFG_NAND_4_ADDR_CYCLE			/* Fourth addr used
> (>32MB)	*/
>
> but it doesn't boot.
>
> Any suggestion?

The current code is tested only for 512byte page size NAND devices. Very 
likely it needs some changes for 2k devices. Especially the ECC stuff will 
need some changes.

> What is CFG_NAND_PAGE_COUNT anyway? 

CFG_NAND_PAGE_SIZE defines the number of pages per block. For example a 
64MByte NAND chips has a page size of 512 bytes and a block size of 16kbytes. 
This makes 16k/512 == 32.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] Boot 440EPx from NAND
  2007-12-21  5:58         ` Stefan Roese
@ 2007-12-21  6:56           ` Leonid
  0 siblings, 0 replies; 17+ messages in thread
From: Leonid @ 2007-12-21  6:56 UTC (permalink / raw)
  To: u-boot

Hi, Stefan:
_____________________________________________________________
On Thursday, December 20, 2007 9:58 PM Stefan Roese wrote:

> > [Leonid] I am trying to boot 440EPx board similar to Seqouia from
NAND. > > NAND flash is different from Sequoia's though, it has page
size 
> > 2K, sector size 128K and it's 1Gb (128MB).
[snip]

> The current code is tested only for 512byte page size NAND devices.
Very 
> likely it needs some changes for 2k devices. Especially the ECC stuff
will 
> need some changes.
[Leonid] You mean 512 bytes block may be hardcoded somewhere instead of
using page size definition from <board>.h file? Any suggestions what
places in the code look into? ECC stuff - where is it?

> > [Leonid] What is CFG_NAND_PAGE_COUNT anyway? 

> CFG_NAND_PAGE_SIZE defines the number of pages per block. For example
a 
> 64MByte NAND chips has a page size of 512 bytes and a block size of 
> 16kbytes. 
> This makes 16k/512 == 32.
[Leonid] OK, that what I thought it is. In my flash with 128K blocks and
2K pages I got page count 128/2=64.

Thanks a lot,
Leonid.

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-21  5:44     ` [U-Boot-Users] 4xx ethernet bringup Stefan Roese
@ 2007-12-21 12:11       ` shami Allam
  2007-12-21 12:26         ` Stefan Roese
  0 siblings, 1 reply; 17+ messages in thread
From: shami Allam @ 2007-12-21 12:11 UTC (permalink / raw)
  To: u-boot

Thanks for the information. But I read some where that for the Lab testing purpose that I can give the IP address!!!!!
  I am able to read the PHY inforamtion by command mii info 0x01<PHY Addr>. Following is the info....
=> mii info 0x01
PHY_PHYIDR2 @ 0x1 = 0x5c90
PHY_PHYIDR[1,2] @ 0x1 = 0x20005c90
PHY_BMCR value is 0x2100
PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 100baseT, FDX
=>
  But my Link LED is not glowing at all. Always my Link status shows "Not Active" can anyone throw some light for me.....
  Regards,
Shami...
  

Stefan Roese <sr@denx.de> wrote:
  Hi Shami,

On Thursday 20 December 2007, shami Allam wrote:
> I assigned the ethaddr as 192.168.13.246 and after that i run the command
> "saveenv " and reset the board.

As Wolfgang already mentioned, this is *not* an ethernet address but an IP 
address.

> I got the following Net: ppc_4xx_eth0. once 
> i get the shell prompt i assign the ipaddr as 192.168.13.241 and after that
> i run the command "saveenv" and reset the board. Now i tried to ping my
> Host PC which has the IP address as 192.168.13.240, i am getting the
> following error.....I am not able to ping the host IP. Can you please show
> some way to come of this issue..... => ping 192.168.13.240
> Trying ppc_4xx_eth0
> PHY speed read failed, assuming 10bT
> PHY duplex read failed, assuming half duplex
> ENET Speed is 10 Mbps - HALF duplex connection

Did you configure the PHY address correctly? What does "mii info" show? how 
did you configure the PHY address in your board config file?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================


       
---------------------------------
 Now you can chat without downloading messenger. Click here to know how.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071221/b6f89a3e/attachment.htm 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-21 12:11       ` shami Allam
@ 2007-12-21 12:26         ` Stefan Roese
  2007-12-21 12:34           ` raj
  2007-12-21 16:03           ` shami Allam
  0 siblings, 2 replies; 17+ messages in thread
From: Stefan Roese @ 2007-12-21 12:26 UTC (permalink / raw)
  To: u-boot

On Friday 21 December 2007, shami Allam wrote:
> Thanks for the information. But I read some where that for the Lab testing
> purpose that I can give the IP address!!!!!

Please don't mix up ethernet address (== MAC address) and IP address. Of 
course you can set ip addresses (and should if you don't use dhcp/bootp). But 
you have to configure valid ethernet addresses too. If you don't have an 
ethernet address pool, you can use the "tools/gen_eth_addr" tool to create a 
random valid eth address for testing.

> I am able to read the PHY 
> inforamtion by command mii info 0x01<PHY Addr>. Following is the info....
> => mii info 0x01
> PHY_PHYIDR2 @ 0x1 = 0x5c90
> PHY_PHYIDR[1,2] @ 0x1 = 0x20005c90
> PHY_BMCR value is 0x2100
> PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 100baseT, FDX

And what does "mii info" show (without parameter)?

What is the value of CONFIG_PHY_ADDR in your board config file?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-21 12:26         ` Stefan Roese
@ 2007-12-21 12:34           ` raj
  2007-12-21 13:04             ` raj
  2007-12-21 16:03           ` shami Allam
  1 sibling, 1 reply; 17+ messages in thread
From: raj @ 2007-12-21 12:34 UTC (permalink / raw)
  To: u-boot


--- Stefan Roese <sr@denx.de> wrote:

> On Friday 21 December 2007, shami Allam wrote:
> > Thanks for the information. But I read some where
> that for the Lab testing
> > purpose that I can give the IP address!!!!!
> 
> Please don't mix up ethernet address (== MAC
> address) and IP address. Of 
> course you can set ip addresses (and should if you
> don't use dhcp/bootp). But 
> you have to configure valid ethernet addresses too.
> If you don't have an 
> ethernet address pool, you can use the
> "tools/gen_eth_addr" tool to create a 
> random valid eth address for testing.
> 
> > I am able to read the PHY 
> > inforamtion by command mii info 0x01<PHY Addr>.
> Following is the info....
> > => mii info 0x01
> > PHY_PHYIDR2 @ 0x1 = 0x5c90
> > PHY_PHYIDR[1,2] @ 0x1 = 0x20005c90
> > PHY_BMCR value is 0x2100
> > PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00,
> 100baseT, FDX
> 
> And what does "mii info" show (without parameter)?

PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY_PHYIDR2 @ 0x17 = 0x5c90
PHY_PHYIDR[1,2] @ 0x17 = 0x20005c90
PHY_BMCR value is 0x2100
PHY 0x17: OUI = 0x80017, Model = 0x09, Rev = 0x00,
100baseT, FDX
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
PHY ID register 2 read failed
=>
> 
> What is the value of CONFIG_PHY_ADDR in your board
> config file?
#define CONFIG_PHY_ADDR		1/* PHY address*/
> 
> Best regards,
Regards,
Shami.

> 
>
=====================================================================
> DENX Software Engineering GmbH,     MD: Wolfgang
> Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194
> Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 
> Email: office at denx.de
>
=====================================================================
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio
> 2005.
>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 



      Download prohibited? No problem. CHAT from any
browser, without download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/


      Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-21 12:34           ` raj
@ 2007-12-21 13:04             ` raj
  0 siblings, 0 replies; 17+ messages in thread
From: raj @ 2007-12-21 13:04 UTC (permalink / raw)
  To: u-boot

Hey Shami,
I help you to see the mail on 4xx, but don't send
mails from my id. No more access my Id. ok

Regards,
Raj.

--- raj <ubootimage@yahoo.co.in> wrote:

> 
> --- Stefan Roese <sr@denx.de> wrote:
> 
> > On Friday 21 December 2007, shami Allam wrote:
> > > Thanks for the information. But I read some
> where
> > that for the Lab testing
> > > purpose that I can give the IP address!!!!!
> > 
> > Please don't mix up ethernet address (== MAC
> > address) and IP address. Of 
> > course you can set ip addresses (and should if you
> > don't use dhcp/bootp). But 
> > you have to configure valid ethernet addresses
> too.
> > If you don't have an 
> > ethernet address pool, you can use the
> > "tools/gen_eth_addr" tool to create a 
> > random valid eth address for testing.
> > 
> > > I am able to read the PHY 
> > > inforamtion by command mii info 0x01<PHY Addr>.
> > Following is the info....
> > > => mii info 0x01
> > > PHY_PHYIDR2 @ 0x1 = 0x5c90
> > > PHY_PHYIDR[1,2] @ 0x1 = 0x20005c90
> > > PHY_BMCR value is 0x2100
> > > PHY 0x01: OUI = 0x80017, Model = 0x09, Rev =
> 0x00,
> > 100baseT, FDX
> > 
> > And what does "mii info" show (without parameter)?
> 
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY_PHYIDR2 @ 0x17 = 0x5c90
> PHY_PHYIDR[1,2] @ 0x17 = 0x20005c90
> PHY_BMCR value is 0x2100
> PHY 0x17: OUI = 0x80017, Model = 0x09, Rev = 0x00,
> 100baseT, FDX
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> PHY ID register 2 read failed
> =>
> > 
> > What is the value of CONFIG_PHY_ADDR in your board
> > config file?
> #define CONFIG_PHY_ADDR		1/* PHY address*/
> > 
> > Best regards,
> Regards,
> Shami.
> 
> > 
> >
>
=====================================================================
> > DENX Software Engineering GmbH,     MD: Wolfgang
> > Denk & Detlev Zundel
> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194
> > Groebenzell, Germany
> > Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 
> > Email: office at denx.de
> >
>
=====================================================================
> > 
> >
>
-------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio
> > 2005.
> >
>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> >
>
https://lists.sourceforge.net/lists/listinfo/u-boot-users
> > 
> 
> 
> 
>       Download prohibited? No problem. CHAT from any
> browser, without download. Go to
> http://in.messenger.yahoo.com/webmessengerpromo.php/
> 
> 
>       Save all your chat conversations. Find them
> online at
> http://in.messenger.yahoo.com/webmessengerpromo.php
> 
> 
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio
> 2005.
>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 



      Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-21 12:26         ` Stefan Roese
  2007-12-21 12:34           ` raj
@ 2007-12-21 16:03           ` shami Allam
  1 sibling, 0 replies; 17+ messages in thread
From: shami Allam @ 2007-12-21 16:03 UTC (permalink / raw)
  To: u-boot

Sorry Raj....
I am sending from my id....

Stefan Roese <sr@denx.de> wrote: On Friday 21 December 2007, shami Allam wrote:
> Thanks for the information. But I read some where that for the Lab testing
> purpose that I can give the IP address!!!!!

Please don't mix up ethernet address (== MAC address) and IP address. Of 
course you can set ip addresses (and should if you don't use dhcp/bootp). But 
you have to configure valid ethernet addresses too. If you don't have an 
ethernet address pool, you can use the "tools/gen_eth_addr" tool to create a 
random valid eth address for testing.

> I am able to read the PHY 
> inforamtion by command mii info 0x01
.. Following is the info....
> => mii info 0x01
> PHY_PHYIDR2 @ 0x1 = 0x5c90
> PHY_PHYIDR[1,2] @ 0x1 = 0x20005c90
> PHY_BMCR value is 0x2100
> PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 100baseT, FDX

And what does "mii info" show (without parameter)?


 => mii info
 PHY ID register 2 read failed
 PHY_PHYIDR2 @ 0x1 = 0x5c90
 PHY_PHYIDR[1,2] @ 0x1 = 0x20005c90
 PHY_BMCR value is 0x2100
 PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 100baseT,
 PHY ID register 2 read failed
 PHY ID register 2 read failed
 PHY ID register 2 read failed
 PHY ID register 2 read failed
 PHY ID register 2 read failed
like this many....


What is the value of CONFIG_PHY_ADDR in your board config file?

follwing i defined in the board config file.....

#define CONFIG_PHY_ADDR  1 

Regards,
Shami....
Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================



       
---------------------------------
 Why delete messages? Unlimited storage is just a click away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071221/bc466d57/attachment.htm 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-19 19:21 ` Stefan Roese
  2007-12-20 11:52   ` shami Allam
@ 2007-12-22 10:01   ` shami Allam
  2007-12-22 11:27     ` Stefan Roese
  1 sibling, 1 reply; 17+ messages in thread
From: shami Allam @ 2007-12-22 10:01 UTC (permalink / raw)
  To: u-boot

Hi Stefan,

After booting my target i get the following message..
 
 I2C:ready
 DRAM:16MB
 FLASH:2MB
 In: serial
 Out:serial
 Err:serial
 Net: ppc_4xx_eth0
 =>
 and after that if i say
 => mii info
 PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 10baseT, HDX
 => setenv ipaddr 192.168.13.248
 => ping 192.168.13.248
 After this if i ping it's not pinging self and also the host ip(192.168.13.240). Can you help me out what could be the problem.....
 => mii read 0x01<PHY Addr> 0x01<register val>
 when i read the PHY 0x01 register following is the value 0x7849. This value show that "No Link". why so. PHY chip i am using DP83848I

 Regards,
 Shami.
 

Stefan Roese <sr@denx.de> wrote: On Wednesday 19 December 2007, shami Allam wrote:
> I am working on the 405GP custome board. I am able to bringup the
> SDRAM,Flash,I2c and serail on the board. But while trying to bringup the
> ethernet i am getting the following error. "No Ethernet found". On my board
> there is "DP83848I" PHY chip.

This message gets printed when you don't define the "ethaddr" environement 
address. So set this variable to a valid value and save the environment and 
reset the board. Then you should see one eth-interface.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


       
---------------------------------
 Now you can chat without downloading messenger. Click here to know how.
       
---------------------------------
 Save all your chat conversations. Find them online.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071222/c2464e95/attachment.htm 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-22 10:01   ` shami Allam
@ 2007-12-22 11:27     ` Stefan Roese
  2007-12-22 12:33       ` shami Allam
  0 siblings, 1 reply; 17+ messages in thread
From: Stefan Roese @ 2007-12-22 11:27 UTC (permalink / raw)
  To: u-boot

On Saturday 22 December 2007, shami Allam wrote:
> After booting my target i get the following message..
>
>  I2C:ready
>  DRAM:16MB
>  FLASH:2MB
>  In: serial
>  Out:serial
>  Err:serial
>  Net: ppc_4xx_eth0
>  =>
>  and after that if i say
>  => mii info
>  PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 10baseT, HDX

And is this correct? Do you have a 10MBit connection?

>  => setenv ipaddr 192.168.13.248
>  => ping 192.168.13.248

So you try to ping to yourself here. This does not work. You have to ping to a 
different target (PC).

>  After this if i ping it's not pinging self and also the host
> ip(192.168.13.240). Can you help me out what could be the problem..... =>
> mii read 0x01<PHY Addr> 0x01<register val>
>  when i read the PHY 0x01 register following is the value 0x7849. This
> value show that "No Link". why so. PHY chip i am using DP83848I

Possibly a PHY configuartion problem. Did you check if you soldered the 
correct resistors and condensators? Is the power-supply ok?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-22 11:27     ` Stefan Roese
@ 2007-12-22 12:33       ` shami Allam
  2007-12-27 15:38         ` Stefan Roese
  0 siblings, 1 reply; 17+ messages in thread
From: shami Allam @ 2007-12-22 12:33 UTC (permalink / raw)
  To: u-boot

  On Saturday 22 December 2007, shami Allam wrote:
> After booting my target i get the following message..
>
> I2C:ready
> DRAM:16MB
> FLASH:2MB
> In: serial
> Out:serial
> Err:serial
> Net: ppc_4xx_eth0
> =>
> and after that if i say
> => mii info
> PHY 0x01: OUI = 0x80017, Model = 0x09, Rev = 0x00, 10baseT, HDX

And is this correct? Do you have a 10MBit connection?
   
  it support both 100baseT and 10baseT.

> => setenv ipaddr 192.168.13.248
> => ping 192.168.13.248

So you try to ping to yourself here. This does not work. You have to ping to a 
different target (PC).
   
  Yes i tried to ping the Host PC (i.e) 192.168.13.240. But still i am not getting reply.....

> After this if i ping it's not pinging self and also the host
> ip(192.168.13.240). Can you help me out what could be the problem..... =>
> mii read 0x01
 0x01
> when i read the PHY 0x01 register following is the value 0x7849. This
> value show that "No Link". why so. PHY chip i am using DP83848I

Possibly a PHY configuartion problem. Did you check if you soldered the 
correct resistors and condensators? Is the power-supply ok?
   
  if I do the PHY loopback by enabling the bit 14bit in the BMCR. i am getting the reply. Still you suspect PHY configuration problem.....or do i need to do anything at MAC side......
   
  Regards,
  Shami.

       
---------------------------------
 Download prohibited? No problem. CHAT from any browser, without download.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071222/a797ec2d/attachment.htm 

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

* [U-Boot-Users] 4xx ethernet bringup
  2007-12-22 12:33       ` shami Allam
@ 2007-12-27 15:38         ` Stefan Roese
  0 siblings, 0 replies; 17+ messages in thread
From: Stefan Roese @ 2007-12-27 15:38 UTC (permalink / raw)
  To: u-boot

On Saturday 22 December 2007, shami Allam wrote:
> > After this if i ping it's not pinging self and also the host
> > ip(192.168.13.240). Can you help me out what could be the problem..... =>
> > mii read 0x01
>
>  0x01
>
> > when i read the PHY 0x01 register following is the value 0x7849. This
> > value show that "No Link". why so. PHY chip i am using DP83848I
>
> Possibly a PHY configuartion problem. Did you check if you soldered the
> correct resistors and condensators? Is the power-supply ok?
>
>   if I do the PHY loopback by enabling the bit 14bit in the BMCR. i am
> getting the reply. Still you suspect PHY configuration problem.....or do i
> need to do anything at MAC side......

Yes, I still suspect PHY hardware problems. Check (again) all R's and C's, 
clocks and power supplies.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

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

end of thread, other threads:[~2007-12-27 15:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 17:56 [U-Boot-Users] 4xx ethernet bringup shami Allam
2007-12-19 19:21 ` Stefan Roese
2007-12-20 11:52   ` shami Allam
2007-12-20 19:57     ` Wolfgang Denk
2007-12-20 20:11       ` [U-Boot-Users] Boot 440EPx from NAND Leonid
2007-12-21  5:58         ` Stefan Roese
2007-12-21  6:56           ` Leonid
2007-12-21  5:44     ` [U-Boot-Users] 4xx ethernet bringup Stefan Roese
2007-12-21 12:11       ` shami Allam
2007-12-21 12:26         ` Stefan Roese
2007-12-21 12:34           ` raj
2007-12-21 13:04             ` raj
2007-12-21 16:03           ` shami Allam
2007-12-22 10:01   ` shami Allam
2007-12-22 11:27     ` Stefan Roese
2007-12-22 12:33       ` shami Allam
2007-12-27 15:38         ` Stefan Roese

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