[U-Boot-Users] Image date output from imls/iminfo when no rtc chip is present

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

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

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
participants (2)
-
Tolunay Orkun
-
Wolfgang Denk