Initialization of Ethernet Interface
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
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
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