* [U-Boot-Users] Image date output from imls/iminfo when no rtc chip is present
@ 2006-04-25 20:26 Tolunay Orkun
2006-04-25 21:50 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Tolunay Orkun @ 2006-04-25 20:26 UTC (permalink / raw)
To: u-boot
Creation date of the U-Boot Image is suppressed from output of
imls/iminfo commands if CFG_CMD_DATE is not included in CONFIG_COMMANDS.
However, CFG_CMD_DATE cannot be included unless you have an RTC chip on
board.
I think the date of U-Boot image is useful information that we would
like to see even if CFG_CMD_DATE is not defined.
To such end, I thought of the following solution:
Define CONFIG_RTC_NONE so that CFG_CMD_DATE could be defined. Obviously,
date/time commands will display error message when user attempts to use
these commands with CONFIG_RTC_NONE. I might even exclude the definition
of date/time commands altogether keeping only supporting date
functionality needed for imls/iminfo.
What do you think? If there is agreement on CONFIG_RTC_NONE, I can
submit a patch...
Best regards,
Tolunay
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] Image date output from imls/iminfo when no rtc chip is present
2006-04-25 20:26 [U-Boot-Users] Image date output from imls/iminfo when no rtc chip is present Tolunay Orkun
@ 2006-04-25 21:50 ` Wolfgang Denk
2006-04-25 23:06 ` Tolunay Orkun
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2006-04-25 21:50 UTC (permalink / raw)
To: u-boot
In message <444E85DF.2040204@orkun.us> you wrote:
> Creation date of the U-Boot Image is suppressed from output of
> imls/iminfo commands if CFG_CMD_DATE is not included in CONFIG_COMMANDS.
No. That's only half of the story.
> However, CFG_CMD_DATE cannot be included unless you have an RTC chip on
> board.
Which seems logical to me, as "date" is the command to read and set
the RTC.
> I think the date of U-Boot image is useful information that we would
> like to see even if CFG_CMD_DATE is not defined.
Indeed.
> To such end, I thought of the following solution:
Don't re-invent the wheel, whit unnecessary complexity.
> What do you think? If there is agreement on CONFIG_RTC_NONE, I can
> submit a patch...
I disagree. Just RTFM...
Quoting the README:
- Timestamp Support:
When CONFIG_TIMESTAMP is selected, the timestamp
(date and time) of an image is printed by image
commands like bootm or iminfo. This option is
automatically enabled when you select CFG_CMD_DATE .
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
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offense. - E. W. Dijkstra
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot-Users] Image date output from imls/iminfo when no rtc chip is present
2006-04-25 21:50 ` Wolfgang Denk
@ 2006-04-25 23:06 ` Tolunay Orkun
0 siblings, 0 replies; 3+ messages in thread
From: Tolunay Orkun @ 2006-04-25 23:06 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
>> What do you think? If there is agreement on CONFIG_RTC_NONE, I can
>> submit a patch...
>>
>
> I disagree. Just RTFM...
>
> Quoting the README:
>
> - Timestamp Support:
>
> When CONFIG_TIMESTAMP is selected, the timestamp
> (date and time) of an image is printed by image
> commands like bootm or iminfo. This option is
> automatically enabled when you select CFG_CMD_DATE .
When I read this I kind of got the impression CFG_CMD_DATE was needed. Sorry for the noise on this issue.
Tolunay
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-25 23:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-25 20:26 [U-Boot-Users] Image date output from imls/iminfo when no rtc chip is present Tolunay Orkun
2006-04-25 21:50 ` Wolfgang Denk
2006-04-25 23:06 ` Tolunay Orkun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox