Skip to contentSkip to conversation

Initialization of Ethernet Interface

U-Boot-Users Swapnil Ashok Narkhede 3 participants 3 messages Sep 26, 2005 – Sep 27, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to port U-Boot for Mainstone 2 board, U-boot does not
support Mainstone patches yet. But with the code that i received
I can get the board to boot.
But i cannot get the Ethernet Interface working.
Could anyone please explain me how the initialization/setting up of Ethernet interface happens in U-boot source code. PLease help me understand this concept.
Regards,
Swapnil Narkhede
Mob:- 0432025023
Email:- s3092131 at student.rmit.edu.au
School of Computer Science and Information Technology
RMIT University, Melbourne

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

Could anyone please explain me how the initialization/setting up of Etherne= t interface happens in U-boot source code.
PLease help me understand this concept.

There is no big "concept" behind it. The first network related command will trigger the eth_init code in your device driver.

Best regards,

Wolfgang Denk

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
... The prejudices people feel about each other disappear  when  then
get to know each other.
	-- Kirk, "Elaan of Troyius", stardate 4372.5
#2 lore raw
In reply to Swapnil Ashok Narkhede
Quoted 7 lines · Swapnil Ashok Narkhede <S3092131 <at> student.rmit.edu.au> writes:

Hi,

I am trying to port U-Boot for Mainstone 2 board, U-boot does not support Mainstone patches yet. But with the code that i received I can get the board to boot.
But i cannot get the Ethernet Interface working.

Are you getting any error messages on the console for the ethernet interface? Was the ethernet interface supposed to be working in the code you received?

Quoted 1 line

Could anyone please explain me how the initialization/setting up of Ethernet

interface happens in U-boot

Quoted 1 line

source code.

The Mainstone 2 board should be using the driver code in "drivers/lan91c96.c". One of the first functions called is "smc_enable". You could try to turn on debugging in this file (#define SMC_DEBUG 3) and see if the debug messages help.
Another item to check is the state of the two LED's near the LAN connector.
One is link, the other is activity. Does the link LED come on when you connect a cable to the network? Does the activitly LED blink when connected to the network?

regards,

Frank Agius