Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: at91sam9x5ek RTC problem
PostPosted: Fri Apr 13, 2012 10:11 am 
Offline

Joined: Fri Apr 13, 2012 9:09 am
Posts: 5
Hi,
I run linux-2.6.39 kernel image,which is downloaded from www.at91.com on at91sam9x5ek.When I input hwclock cmd on the terminal,it can't show the date.

It shows root@at91sam9x5ek:/# hwclock
hwclock: can't open '/dev/misc/rtc': No such file or directory

Who can tell me why and how can I solve this problem?
Thanks!!!!!!! :D


Top
 Profile  
 
 Post subject: Re: at91sam9x5ek RTC problem
PostPosted: Tue Apr 24, 2012 4:33 pm 
Offline

Joined: Fri Oct 28, 2011 7:25 pm
Posts: 57
At the command line do:
Code:
find /dev -name *rtc*

to find where the rtc device really is on your system. For me it's located at /dev/rtc. If that's the location for you also, then try executing:
Code:
hwclock -f /dev/rtc

I'm not sure where hwclock determines the default device location. My guess it's one of the files in /etc/defaults or /etc/init.d.

-Bryan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: