* [U-Boot-Users] Ethernet does not work on at91rm9200
@ 2004-07-05 16:34 Kögler Peter
2004-07-05 17:46 ` Wolfgang Denk
2004-07-05 17:49 ` Steven Scholz
0 siblings, 2 replies; 9+ messages in thread
From: Kögler Peter @ 2004-07-05 16:34 UTC (permalink / raw)
To: u-boot
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 at el-me.de
Web: www.el-me.de
-----Original Message-----
From: Hamid IKDOUMI [mailto:hikdoumi at rfo.atmel.com]
Sent: Friday, July 02, 2004 10:23 AM
To: 'K?gler Peter'; u-boot-users at 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 at lists.sourceforge.net]On Behalf Of K?gler
Peter
Sent: vendredi 2 juillet 2004 09:41
To: 'u-boot-users at 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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
2004-07-05 16:34 [U-Boot-Users] Ethernet does not work on at91rm9200 Kögler Peter
@ 2004-07-05 17:46 ` Wolfgang Denk
2004-07-06 9:54 ` Wolfgang Denk
2004-07-05 17:49 ` Steven Scholz
1 sibling, 1 reply; 9+ messages in thread
From: Wolfgang Denk @ 2004-07-05 17:46 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
I have made mistakes, but have never made the mistake of claiming I
never made one. - James G. Bennet
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
2004-07-05 17:46 ` Wolfgang Denk
@ 2004-07-06 9:54 ` Wolfgang Denk
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2004-07-06 9:54 UTC (permalink / raw)
To: u-boot
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
He had quite a powerful intellect, but it was as powerful like a
locomotive, and ran on rails and was therefore almost impossible to
steer. - Terry Pratchett, _Lords and Ladies_
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
2004-07-05 16:34 [U-Boot-Users] Ethernet does not work on at91rm9200 Kögler Peter
2004-07-05 17:46 ` Wolfgang Denk
@ 2004-07-05 17:49 ` Steven Scholz
1 sibling, 0 replies; 9+ messages in thread
From: Steven Scholz @ 2004-07-05 17:49 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
@ 2004-07-06 9:04 Kögler Peter
2004-07-06 9:41 ` Wolfgang Denk
0 siblings, 1 reply; 9+ messages in thread
From: Kögler Peter @ 2004-07-06 9:04 UTC (permalink / raw)
To: u-boot
There is an interesting thread about initializing the mac adress:
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-April/021126.h
tml
--------------------------------------------------------------
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 at el-me.de
Web: www.el-me.de
-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Monday, July 05, 2004 7:47 PM
To: K?gler Peter
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Ethernet does not work on at91rm9200
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
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
I have made mistakes, but have never made the mistake of claiming I
never made one. - James G. Bennet
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
2004-07-06 9:04 Kögler Peter
@ 2004-07-06 9:41 ` Wolfgang Denk
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2004-07-06 9:41 UTC (permalink / raw)
To: u-boot
In message <367ED8C46538D7119DAC000A0D106744520D57@elmegmbh.elmedmn.com> you wrote:
> There is an interesting thread about initializing the mac adress:
...
And the King (Russell, that is :-) spoke:
That's a buggy driver then - drivers are supposed to reload the ether
address into the chip on open() - if they don't, they're buggy.
and:
Basically, the driver is supposed to read the MAC address at startup.
On ->open, it is supposed to reprogram the MAC address back into the
chip (but not the EEPROM, if any) whether or not it has been changed.
[Mind: this is about the _Linux_ drivers.]
This is what I've been telling you all the time: a Linux driver shall
not make any assumptions about any initialization being done (or not
done) by a boot loader; instead, it is responsible to perform all
required initialization himself. So if you need to set a MAC address
for successful operation of the ethernet interface, then the Linux
ethernet driver MUST set the MAC address. Otherwise it is broken and
needs fixing.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Our OS who art in CPU, UNIX be thy name.
Thy programs run, thy syscalls done,
In kernel as it is in user!
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
@ 2004-07-02 7:40 Kögler Peter
2004-07-02 8:06 ` Wolfgang Denk
2004-07-02 8:22 ` Hamid IKDOUMI
0 siblings, 2 replies; 9+ messages in thread
From: Kögler Peter @ 2004-07-02 7:40 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* [U-Boot-Users] Ethernet does not work on at91rm9200
2004-07-02 7:40 Kögler Peter
@ 2004-07-02 8:06 ` Wolfgang Denk
2004-07-02 8:22 ` Hamid IKDOUMI
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2004-07-02 8:06 UTC (permalink / raw)
To: u-boot
In message <367ED8C46538D7119DAC000A0D106744520D4D@elmegmbh.elmedmn.com> you wrote:
>
> 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.
Maybe you can find out which critical difference causes the problem?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
What about WRITING it first and rationalizing it afterwords? :-)
- Larry Wall in <8162@jpl-devvax.JPL.NASA.GOV>
^ permalink raw reply [flat|nested] 9+ messages in thread* [U-Boot-Users] Ethernet does not work on at91rm9200
2004-07-02 7:40 Kögler Peter
2004-07-02 8:06 ` Wolfgang Denk
@ 2004-07-02 8:22 ` Hamid IKDOUMI
1 sibling, 0 replies; 9+ messages in thread
From: Hamid IKDOUMI @ 2004-07-02 8:22 UTC (permalink / raw)
To: u-boot
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 at lists.sourceforge.net]On Behalf Of K?gler
Peter
Sent: vendredi 2 juillet 2004 09:41
To: 'u-boot-users at 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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-07-06 9:54 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-05 16:34 [U-Boot-Users] Ethernet does not work on at91rm9200 Kögler Peter
2004-07-05 17:46 ` Wolfgang Denk
2004-07-06 9:54 ` Wolfgang Denk
2004-07-05 17:49 ` Steven Scholz
-- strict thread matches above, loose matches on Subject: below --
2004-07-06 9:04 Kögler Peter
2004-07-06 9:41 ` Wolfgang Denk
2004-07-02 7:40 Kögler Peter
2004-07-02 8:06 ` Wolfgang Denk
2004-07-02 8:22 ` Hamid IKDOUMI
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox