[Buildroot] Inappropriate ioctl - hwclock
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Fri Jan 14 08:42:45 UTC 2011
On Thu, 13 Jan 2011 09:55:41 +0000
Johnny Beardsmore <jny0 at hotmail.com> wrote:
> I've copied the hwclock and rtc files onto my architecture, but when I call hwclock, I get the following message:
>
> RTC_RD_TIME: Inappropriate ioctl for device
> ioctl() to /dev/misc/rtc to read the time failed.
>
> Any ideas what I've done wrong?
This is not really Buildroot related, but anyway.
Are you sure that /dev/misc/rtc is a really a RTC device ? The
RTC_RD_TIME ioctl() is implemented in the core RTC infrastructure of
the kernel, so it looks like you're not talking to the right device, or
using a really really old version of the kernel that didn't support
this ioctl(). Or that your kernel lacks RTC support completely.
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
More information about the buildroot
mailing list