안녕하세요?
텔콤코리아 입니다.
RTC 테스트 중 재 부팅 시 시간이 초기화 되는 증상이 있어서 문의 드립니다.
홈페이지의 QnA를 보면 저희랑 같은 증상을 가진 분들이 메일로 파일을 다시 받은 것 같습니다.
저희 증상은
date 설정 및 hwclock -w 실행시 아래와 같이 출력됩니다.
bash-3.2# date -s 201303061500
Wed Mar 6 15:00:00 UTC 2013
bash-3.2# date
Wed Mar 6 15:00:01 UTC 2013
bash-3.2# hwclock -w
s3c2410-rtc s3c2410-rtc: IRQ61 error -16
hwclock: can't open '/dev/misc/rtc': No such file or directory
로 hwclock 명령어가 먹지 않고 있습니다.
비슷한 답변으로 마이크로비젼에서는 메일로 파일을 다시 보내주시는 것 같습니다.
확인 부탁드립니다.
(여기서 부터 다른 분에게 한 답변 내용 참고 입니다.)
당사에서 MVV210-LCD Linux에서 RTC를 확인하였습니다. 아래 방법을 참고하여 보드에 적용을 진행해 보시길 바랍니다.
메일로 첨부한 파일을 커널에 적용하여 아래와 같이 명령어를 입력하여 확인해 보시길 바랍니다.
/ # date -help
date: invalid option -- h
BusyBox v1.16.1 (2010-05-31 18:13:21 KST) multi-call binary.
Usage: date [OPTIONS] [+FMT] [TIME]
Display time (using +FMT), or set time
Options:
[-s,--set] TIME Set time to TIME
-u,--utc Work in UTC (don't convert to local time)
-R,--rfc-2822 Output RFC-2822 compliant date string
-I[SPEC] Output ISO-8601 compliant date string
SPEC='date' (default) for date only,
'hours', 'minutes', or 'seconds' for date and
time to the indicated precision
-r,--reference FILE Display last modification time of FILE
-d,--date TIME Display TIME, not 'now'
-D FMT Use FMT for -d TIME conversion
Recognized TIME formats:
hh:mm[:ss]
[YYYY.]MM.DD-hh:mm[:ss]
YYYY-MM-DD hh:mm[:ss]
[[[[[YY]YY]MM]DD]hh]mm[.ss]
/ # date "2011-06-20 17:57"
Mon Jun 20 17:57:00 UTC 2011
/ # hwclock -w
/ # date
Mon Jun 20 17:57:52 UTC 2011
/ #