lkml.org 
[lkml]   [2010]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectFwd: [rtc-linux] RTC_SET_TIME: Inappropriate ioctl for device
From
CC to LKML to do further discussion.

---------- Forwarded message ----------
From: Wan ZongShun <mcuos.com@gmail.com>
Date: 2010/6/8
Subject: Re: [rtc-linux] RTC_SET_TIME: Inappropriate ioctl for device
To: rtc-linux@googlegroups.com, jeffjway@gmail.com


Hi Jeff,

2010/6/8 JJeff <jeffjway@gmail.com>:
> Whenever I try to run 'hwclock', I get the error:
> "RTC_RD_TIME: Inappropriate ioctl for device:"
> or
> " RTC_SET_TIME: Inappropriate ioctl for device"
> if I run it with the -w option
>

Both of errors indicate your user layer or kernel driver is using a
wrong IOCTL command,
maybe your RTC_RD_TIME of user layer doesnot match the  RTC_RD_TIME of
kernel layer.
so driver return a '--ENOTTY' error no.

The better thing is you can write a rtc test application to identify
your driver works well.

Maybe you can change other version hwclock for testing.

> Is the hwclock too old a version or something?  The option --version
> is not recognised.
>
>
> I'm trying to use the hwclock command to sync the time each bootup, so
> any other ideas as to how to do it would be good too.
>
> Thanks
>
> Jeff
>
> --
> You received this message because you are subscribed to "rtc-linux".
> Membership options at http://groups.google.com/group/rtc-linux .
> Please read http://groups.google.com/group/rtc-linux/web/checklist
> before submitting a driver.



--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel@lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:NUC900@googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@gmail.com



--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel@lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

* linux-arm-NUC900 mailing list
mail addr:NUC900@googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@gmail.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-06-08 16:43    [W:0.033 / U:6.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site