Fwd: [rtc-linux] RTC_SET_TIME: Inappropriate ioctl for device
From: Wan ZongShun
Date: Tue Jun 08 2010 - 10:40:38 EST
CC to LKML to do further discussion.
---------- Forwarded message ----------
From: Wan ZongShun <mcuos.com@xxxxxxxxx>
Date: 2010/6/8
Subject: Re: [rtc-linux] RTC_SET_TIME: Inappropriate ioctl for device
To: rtc-linux@xxxxxxxxxxxxxxxx, jeffjway@xxxxxxxxx
Hi Jeff,
2010/6/8 JJeff <jeffjway@xxxxxxxxx>:
> 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@xxxxxxxxxxxxxxxxxxx
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
* linux-arm-NUC900 mailing list
mail addr:NUC900@xxxxxxxxxxxxxxxx
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@xxxxxxxxx
--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
* linux-arm-NUC900 mailing list
mail addr:NUC900@xxxxxxxxxxxxxxxx
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/