On Mar 8, 2016 2:47 AM, "akhiezer" <[email protected]> wrote:
>
> > Date: Mon, 7 Mar 2016 17:15:49 -0700
> > From: Roger Koehler <[email protected]>
> > Subject: Re: [lfs-dev] hwclock
> >
> > On Mar 7, 2016 5:07 PM, "Roger Koehler" <[email protected]>
wrote:
> > >
> > > > On Mar 7, 2016 4:50 PM, "Ken Moffat" <[email protected]>
wrote:
> > > > >
> > > > > On Mon, Mar 07, 2016 at 04:22:22PM -0700, Roger Koehler wrote:
> > > > > > > You need to include the driver required for your rtc in the
> > kernel config.
> > > > > > > Clearly that is missing.
> > > > > > >
> > > > > > > Find out which driver your old kernel is using for the rtc
> > driver. Clearly
> > > > > > > a newer kernel version wouldn't mess up the rtc layout so much
> > that a make
> > > > > > > oldconfig wouldn't work from the previous kernel config.
> > > > > >
> > > > > > cat /sys/class/rtc/rtc0/dev
> > > > > > 254:0
> > > > > >
> > > > > > cat /sys/class/rtc/rtc0/name
> > > > > > rtc_cmos
> > > > > >
> > > > > > Same for both. I really believe they changed the rtc driver
code.
> > > > >
> > > > > I can vaguely remember that something changed in the rtc area in
the
> > > > > last couple of years, but there is nothing in my notes - I guess
> > > > > that I just fixed up my .config, probably after noticing a change
on
> > > > > an -rc kernel.
> > > > >
>         .
>         .
> > >
> > > Also, within chroot:
> > >
> > > # hwclock -r
> > > Mon 07 Mar 2016 05:01:55 PM MST  .077352 seconds
> > >
> > > But, after booting with the new kernel:
> > >
> > > # hwclock -r
> > > hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed:
Invalid
> > argument
> >
> > p.s. I am using LFS 7.6 with Linux 3.16.7 as host. Same kernel config as
> > starting point. I just rebuilt it to be sure.
>
>
> Test if a symlnk works ok (ignore the major-number, just now at least):
> --
> crw-r--r--  1 root     root    246,   0 Feb  3  2015 rtc0
> lrwxrwxrwx  1 root     root           4 Feb  3  2015 rtc -> rtc0
> --
> ?

Yes. I tried that. I downloaded a bunch of kernels. I am going to build LFS
with each one until I find the one that breaks it and then look through the
release notes.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to