RE: [U-Boot-Users] Ethernet does not work on at91rm9200

hi hamid, i added CONFIG_AT91C_USE_RMII to my configuration and now it works.
sorry guys for trouble i caused!
another problem i have is that if i boot via nfs everything works, linux knows the mac-adress.
but if i boot from filesystem (jffs2) than linux doesnt know the mac-adress. if i stop at u-boot prompt, call any network function, and start linux afterwords, then linux knows the mac-adress.
does u-boot only initialize the ethernet interface if it is needed? can i force u-boot to init the ethernet interface or is there another 'standard' way to tell linux the mac-adress?
wbr peter
-------------------------------------------------------------- Peter Kögler EL-ME AG Gewerbering 1 D-84072 Au i. d. Hallertau
Tel.: +49 / 8752 / 864 - 527 Fax.: +49 / 8752 / 864 - 100 mailto.: p.koegler@el-me.de Web: www.el-me.de
-----Original Message----- From: Hamid IKDOUMI [mailto:hikdoumi@rfo.atmel.com] Sent: Friday, July 02, 2004 10:23 AM To: 'Kögler Peter'; u-boot-users@lists.sourceforge.net Subject: RE: [U-Boot-Users] Ethernet does not work on at91rm9200
Hi Peter,
The ethernet works fine on at91rm9200dk board. Can you give more information about this issue? (hardware differences with at91rm9200dk board (PHY MII or RMII).
Best regards,
Hamid
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net]On Behalf Of Kögler Peter Sent: vendredi 2 juillet 2004 09:41 To: 'u-boot-users@lists.sourceforge.net' Subject: [U-Boot-Users] Ethernet does not work on at91rm9200
Hello,
our custom board runs now perfectly with u-boot 1.1.1 except that the ethernet is not working. But the ethernet worked when we used u-boot 0.4.0.
Changing only the driver file at91rm9200_ether.c, now using the u-boot 0.4.0 driver file version in u-boot 1.1.1 helped to fix this problem.
wbr Peter
------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message 367ED8C46538D7119DAC000A0D106744520D54@elmegmbh.elmedmn.com you wrote:
but if i boot from filesystem (jffs2) than linux doesnt know the mac-adress. if i stop at u-boot prompt, call any network function, and start linux afterwords, then linux knows the mac-adress.
This is a problem with your LInux driver which does not perform all the required initialization.
This tends to become a FAQ.
does u-boot only initialize the ethernet interface if it is needed? can i
Yes.
force u-boot to init the ethernet interface or is there another 'standard' way to tell linux the mac-adress?
U-Boot should NOT touch any hardware it does not access itself. If you don't use the ethernet interface in U-Boot it shall NOT be initialized by U-Boot.
The standard way is that the Linux driver is responsible to perform all required initialization. The method to pass information from the boot loader to the Linux kernel is architecture dependent; it may use a bd_info structure (like on PPC), or ATAGs (like on ARM) or command line arguments, or a combination of these.
Best regards,
Wolfgang Denk

In message 20040705174701.BB3DDC109F@atlas.denx.de I wrote:
but if i boot from filesystem (jffs2) than linux doesnt know the mac-adress. if i stop at u-boot prompt, call any network function, and start linux afterwords, then linux knows the mac-adress.
This is a problem with your LInux driver which does not perform all the required initialization.
This tends to become a FAQ.
OK, this _is_ a FAQ now:
http://www.denx.de/twiki/bin/view/DULG/EthernetDoesNotWorkInLinux
Best regards,
Wolfgang Denk

Hi Peter,
i added CONFIG_AT91C_USE_RMII to my configuration and now it works.
Aah. I hope you know why you did it... ;-)
but if i boot from filesystem (jffs2) than linux doesnt know the mac-adress. if i stop at u-boot prompt, call any network function, and start linux afterwords, then linux knows the mac-adress.
does u-boot only initialize the ethernet interface if it is needed?
Yes. That's a declared policy of U-Boot!
can i force u-boot to init the ethernet interface
Of course you force anything you want. You could put
eth_init (gd->bd);
in you board specific board_init(); This way the init code in at91rm9200_ether.c gets called and write the MAC address into the ethernet controller...
or is there another 'standard' way to tell linux the mac-adress?
You could pass "MAC=xx.xx.xx.xx.xx.xx" as bootargs to the linux kernel. Although I am not sure right now if the at91rm9200 linux ethernet driver would actually care. But it should not be too hard to implemtent taht feature...
Good luck,
Steven
participants (3)
-
Kögler Peter
-
Steven Scholz
-
Wolfgang Denk