Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: buildroot@busybox.net
Subject: [Buildroot] Inappropriate ioctl - hwclock
Date: Fri, 14 Jan 2011 09:53:45 +0100	[thread overview]
Message-ID: <4D300F19.70704@visionsystems.de> (raw)
In-Reply-To: <20110114094245.78bf04ff@surf>

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

      reply	other threads:[~2011-01-14  8:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D300F19.70704@visionsystems.de \
    --to=yegor_sub1@visionsystems.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox