* [U-Boot-Users] Any spport for Dallas 1-wire DS2502-E48
@ 2006-07-28 13:44 Edward Jubenville
2006-07-29 6:54 ` Stefan Roese
2006-07-29 12:21 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: Edward Jubenville @ 2006-07-28 13:44 UTC (permalink / raw)
To: u-boot
Has anyone tried to implement a 1-wire driver for Dallas/Maxim 1-Wire
devices, in particular for a DS2502-E48 chip?
We are using a custom board based on the FreeScale Lite5200. We have added
a DS2502-E48 chip to give us a unique MAC address on each board, instead of
having to buy/manage a block of MAC addresses from IEEE.
I'm considering writing a standalone bit-banging application that u-boot can
run to read and display the MAC address. The user could then use the
display for the "setenv ethaddr" command. Would there be any way for the
standalone program to modify the ethaddr environment variable directly?
Thanks,
Ed Jubenville
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Any spport for Dallas 1-wire DS2502-E48
2006-07-28 13:44 [U-Boot-Users] Any spport for Dallas 1-wire DS2502-E48 Edward Jubenville
@ 2006-07-29 6:54 ` Stefan Roese
2006-07-29 12:21 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Roese @ 2006-07-29 6:54 UTC (permalink / raw)
To: u-boot
Hi Ed,
On Friday 28 July 2006 15:44, Edward Jubenville wrote:
> Has anyone tried to implement a 1-wire driver for Dallas/Maxim 1-Wire
> devices, in particular for a DS2502-E48 chip?
Please take a look at the file:
board/esd/cpci405/cpci405.c:
Here you will find an simple implementation to access to an 1-wire device.
Search for ONE_WIRE_CLEAR...
> We are using a custom board based on the FreeScale Lite5200. We have added
> a DS2502-E48 chip to give us a unique MAC address on each board, instead of
> having to buy/manage a block of MAC addresses from IEEE.
>
> I'm considering writing a standalone bit-banging application that u-boot
> can run to read and display the MAC address. The user could then use the
> display for the "setenv ethaddr" command. Would there be any way for the
> standalone program to modify the ethaddr environment variable directly?
Why not automatically set "ethaddr" to the value from the 1-wire device upon
startup? This is done in other implementations already (not from 1-wire
device though). For example:
board/tqm8xx/load_sernum_ethaddr.c
Best regards,
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Any spport for Dallas 1-wire DS2502-E48
2006-07-28 13:44 [U-Boot-Users] Any spport for Dallas 1-wire DS2502-E48 Edward Jubenville
2006-07-29 6:54 ` Stefan Roese
@ 2006-07-29 12:21 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2006-07-29 12:21 UTC (permalink / raw)
To: u-boot
In message <GPECLCIGPLHEOMGPMCPAEEKEDNAA.edjubenville@adelphia.net> you wrote:
> Has anyone tried to implement a 1-wire driver for Dallas/Maxim 1-Wire
> devices, in particular for a DS2502-E48 chip?
None that I know of.
> I'm considering writing a standalone bit-banging application that u-boot can
Why not a regiular driver that fits into the existing environment.
> run to read and display the MAC address. The user could then use the
> display for the "setenv ethaddr" command. Would there be any way for the
> standalone program to modify the ethaddr environment variable directly?
You could export the setenv() function for SA programs, but why
making all this so complicated? Implement a regular driver, and
perform the setting of ethaddr automatically as part of your board
init code.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Many Myths are based on truth
-- Spock, "The Way to Eden", stardate 5832.3
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-29 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-28 13:44 [U-Boot-Users] Any spport for Dallas 1-wire DS2502-E48 Edward Jubenville
2006-07-29 6:54 ` Stefan Roese
2006-07-29 12:21 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.