* [Buildroot] Inappropriate ioctl - hwclock
@ 2011-01-13 9:55 Johnny Beardsmore
2011-01-14 8:42 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Johnny Beardsmore @ 2011-01-13 9:55 UTC (permalink / raw)
To: buildroot
Hi,
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110113/1943e36c/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Inappropriate ioctl - hwclock
2011-01-13 9:55 [Buildroot] Inappropriate ioctl - hwclock Johnny Beardsmore
@ 2011-01-14 8:42 ` Thomas Petazzoni
2011-01-14 8:53 ` Yegor Yefremov
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2011-01-14 8:42 UTC (permalink / raw)
To: buildroot
On Thu, 13 Jan 2011 09:55:41 +0000
Johnny Beardsmore <jny0@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Inappropriate ioctl - hwclock
2011-01-14 8:42 ` Thomas Petazzoni
@ 2011-01-14 8:53 ` Yegor Yefremov
0 siblings, 0 replies; 3+ messages in thread
From: Yegor Yefremov @ 2011-01-14 8:53 UTC (permalink / raw)
To: buildroot
Am 14.01.2011 09:42, schrieb Thomas Petazzoni:
> On Thu, 13 Jan 2011 09:55:41 +0000
> Johnny Beardsmore <jny0@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.
I agree, /dev/misc/rtc is not a default rtc device. If you look at the kernel RTC configuration ("Device Drivers"->"Real Time Clock"), you'll see the following option:
/dev/rtcN (character devices)
Yegor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-14 8:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-13 9:55 [Buildroot] Inappropriate ioctl - hwclock Johnny Beardsmore
2011-01-14 8:42 ` Thomas Petazzoni
2011-01-14 8:53 ` Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox