Skip to contentSkip to conversation

Image date output from imls/iminfo when no rtc chip is present

U-Boot-Users Tolunay Orkun 2 participants 3 messages Apr 25, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · In message <[email protected]> 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.

Quoted 2 lines

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.

Quoted 2 lines

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.

Quoted 1 line

To such end, I thought of the following solution:

Don't re-invent the wheel, whit unnecessary complexity.

Quoted 2 lines

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

Signature · 4 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 use of COBOL cripples the mind; its teaching  should,  therefore,
be regarded as a criminal offense.                   - E. W. Dijkstra
#2 lore raw
Quoted 6 lines · Wolfgang Denk
Quoted 3 lines

What do you think? If there is agreement on CONFIG_RTC_NONE, I can submit a patch...

I disagree. Just RTFM...

Quoted 8 lines

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