Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Something amiss with hwclock

Dallas_P_
New Contributor I
746 Views

Running IOTDK Kernel image on Galileo GEN2:

When executing hwclock from inside a c program, I get ye ole: "hwclock: can't open '/dev/misc/rtc': No such file or directory" problem.

However if I execute hwclock from the shell it works fine.  My app runs in an isolated environment with no network assess so it gets it's time reference by dialing up a server over the PSTN.  I set the RTC using /dev/rtc and the accompanying ioctl no problem.  But when I do a "system ("hwclock -s") to sync the kernel with the RTC I get the error.  Any ideas? Could it be some issue with the environment of the shell that gets forked by the system call?  Is that different that the environment of the shell that invoked the app?  I have no idea so any clues would be appreciated.

I did try symlinking /dev/misc/rtc -> /dev/rtc0 but get "Device or resource busy".

 

Thanks,

 

Dallas

 

0 Kudos
1 Reply
Dallas_P_
New Contributor I
746 Views

Bump.  Anybody?

0 Kudos
Reply