
Hi All, I have compiled u-boot-nand.bin for the canyonlands board.I flashed this image onto the nand flash and did a boot from NAND.I interrupted the u-boot and tried to do a tftp. But i get this error : No ethernet found. Could someone tell me where to enable ethernet in the u-boot source code?
Regards, Afzal Nadirshah

Dear Afzal Nadirshah,
In message 174230991E95D743B0C91DF471EF44E8434329C609@MTW02MSG02.mindtree.com you wrote:
I have compiled u-boot-nand.bin for the canyonlands board.I flashed this image onto the nand flash and
did a boot from NAND.I interrupted the u-boot and tried to do a tftp. But i get this error : No ethernet found. Could someone tell me where to enable ethernet in the u-boot source code?
You probably forgot to set a MAC address (ethaddr environment variable). Set one, then "saveenv", then "reset", then try again.
Best regards,
Wolfgang Denk

Hi, I tried the same. But it still gives the same error. ________________________________________ From: Wolfgang Denk [wd@denx.de] Sent: Monday, February 16, 2009 12:12 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] tftp not working
Dear Afzal Nadirshah,
In message 174230991E95D743B0C91DF471EF44E8434329C609@MTW02MSG02.mindtree.com you wrote:
I have compiled u-boot-nand.bin for the canyonlands board.I flashed this image onto the nand flash and
did a boot from NAND.I interrupted the u-boot and tried to do a tftp. But i get this error : No ethernet found. Could someone tell me where to enable ethernet in the u-boot source code?
You probably forgot to set a MAC address (ethaddr environment variable). Set one, then "saveenv", then "reset", then try again.
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@denx.de "Data is a lot like humans: It is born. Matures. Gets married to other data, divorced. Gets old. One thing that it doesn't do is die. It has to be killed." - Arthur Miller

On Monday 16 February 2009, Afzal Nadirshah wrote:
I tried the same. But it still gives the same error.
Please send the complete bootlog and the output of "printenv".
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@denx.de =====================================================================

Hi, I did as suggested by you. I also set the serverip as well as ipaddr. Now when i do a tftp 100000 u-boot-nand.bin, i get the following :
=> tftp 100000 u-boot-nand.bin Waiting for PHY auto negotiation to complete...... TIMEOUT ! done ENET Speed is 10 Mbps - HALF duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x100000 Loading: *
It hangs at this point
Regards, Afzal Nadirshah ________________________________________ From: Stefan Roese [sr@denx.de] Sent: Monday, February 16, 2009 2:12 PM To: u-boot@lists.denx.de Cc: Afzal Nadirshah; Wolfgang Denk Subject: Re: [U-Boot] tftp not working
On Monday 16 February 2009, Afzal Nadirshah wrote:
I tried the same. But it still gives the same error.
Please send the complete bootlog and the output of "printenv".
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@denx.de =====================================================================

On Monday 16 February 2009, Afzal Nadirshah wrote:
I did as suggested by you. I also set the serverip as well as ipaddr. Now when i do a tftp 100000 u-boot-nand.bin, i get the following :
=> tftp 100000 u-boot-nand.bin Waiting for PHY auto negotiation to complete...... TIMEOUT !
!!!
done ENET Speed is 10 Mbps - HALF duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x100000 Loading: *
It hangs at this point
Your board doesn't have a correct ethernet link. Is this really the original Canyonlands board? Is the correct ethernet port connected?
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@denx.de =====================================================================

Hi, I connected to the other ethernet port on the board. I got the following : => tftp 100000 u-boot-nand.bin Waiting for PHY auto negotiation to complete.. done ENET Speed is 100 Mbps - FULL duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x100000 Loading: *
This also hangs at the same point.
But when i do a boot from NOR, the u-boot in the NOR flash does not give any problems.I am able to do a tftp file download properly.
________________________________________ From: Stefan Roese [sr@denx.de] Sent: Monday, February 16, 2009 2:45 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de; Wolfgang Denk Subject: Re: [U-Boot] tftp not working
On Monday 16 February 2009, Afzal Nadirshah wrote:
I did as suggested by you. I also set the serverip as well as ipaddr. Now when i do a tftp 100000 u-boot-nand.bin, i get the following :
=> tftp 100000 u-boot-nand.bin Waiting for PHY auto negotiation to complete...... TIMEOUT !
!!!
done ENET Speed is 10 Mbps - HALF duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x100000 Loading: *
It hangs at this point
Your board doesn't have a correct ethernet link. Is this really the original Canyonlands board? Is the correct ethernet port connected?
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@denx.de =====================================================================

Hi All, The issue has been resolved. I built the u-boot-nand.bin image from the u-boot cource code obtained from the AMCC site. With this image tftp is working fine,once i set the ethaddr,serverip and ipaddr. Initially i was working with the latest u-boot source code from the denx site.I found out that there was some differences between these two versions.For example the lates u-boot source code does not contain the file /drivers/net/4xx_enet.c while the one from AMCC site contains the same. Thanks.
Regards, Afzal Nadirshah ________________________________________ From: Stefan Roese [sr@denx.de] Sent: Monday, February 16, 2009 2:45 PM To: Afzal Nadirshah Cc: u-boot@lists.denx.de; Wolfgang Denk Subject: Re: [U-Boot] tftp not working
On Monday 16 February 2009, Afzal Nadirshah wrote:
I did as suggested by you. I also set the serverip as well as ipaddr. Now when i do a tftp 100000 u-boot-nand.bin, i get the following :
=> tftp 100000 u-boot-nand.bin Waiting for PHY auto negotiation to complete...... TIMEOUT !
!!!
done ENET Speed is 10 Mbps - HALF duplex connection (EMAC0) Using ppc_4xx_eth0 device TFTP from server 172.22.68.33; our IP address is 172.22.68.36 Filename 'u-boot-nand.bin'. Load address: 0x100000 Loading: *
It hangs at this point
Your board doesn't have a correct ethernet link. Is this really the original Canyonlands board? Is the correct ethernet port connected?
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@denx.de =====================================================================

On Monday 16 February 2009, Afzal Nadirshah wrote:
I have compiled u-boot-nand.bin for the canyonlands board.I
flashed this image onto the nand flash and did a boot from NAND.I interrupted the u-boot and tried to do a tftp. But i get this error : No ethernet found. Could someone tell me where to enable ethernet in the u-boot source code?
You don't need to enable it in the source. You just have to set one (or more) MAC address(es). Without MAC addresses the 4xx-ethernet driver just doesn't initialize the interfaces. So just set "ethaddr" to a sane value and do a "saveenv" and reboot. This should be all thats needed.
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@denx.de =====================================================================
participants (3)
-
Afzal Nadirshah
-
Stefan Roese
-
Wolfgang Denk