[Buildroot] Inappropriate ioctl - hwclock

Yegor Yefremov yegor_sub1 at visionsystems.de
Fri Jan 14 08:53:45 UTC 2011


Am 14.01.2011 09:42, schrieb Thomas Petazzoni:
> 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.

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


More information about the buildroot mailing list