public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Oliver Rutsch <orutsch@sympatec•com>
To: Linuxppc-dev@ozlabs•org
Subject: Re: MPC5200 I2C and 2.6 kernel
Date: Thu, 29 Nov 2007 12:00:16 +0100	[thread overview]
Message-ID: <474E9BC0.5010806@sympatec.com> (raw)
In-Reply-To: <20071128202245.90051247C1@gemini.denx.de>

Hi,

>> hwclock --debug tells me:
> 
>> hwclock: Open of /dev/rtc failed, errno=19: No such device.
> 
> Well... did you check how your /dev/rtc is set up? It used  to  be  a
> misc  device with MAJ=10 MIN=135 in old kernel versions, but now it's
> MAJ=254 MIN=4, i. e. it should look like this:
> 
> crw-r--r-- 1 root root 254,   0 Jun 22 18:30 /dev/rtc
> 

Yes this was not correct in my filesystem. But in your filesystem
it looks like MAJ=254 MIN=0. I set MIN to 0 and applied Jon's
suggestions and now it works! So many thanks to Wolfgang and Jon,
this was really a hard problem for me!
But I should mention that I modified my dts for the M41T00 RTC
in the following way:

	rtc@68 {
		compatible = "stm,m41t00";
		reg = <68>;
	};

In some piece of an older driver I found the I2C Address for this RTC
(0x68), although the data sheet tells me that the slave address is 0xD0.
However, now it's up and running!

Thanks and bye,

-- 
Dipl. Ing. Oliver Rutsch
EMail: orutsch@sympatec•com

      parent reply	other threads:[~2007-11-29 11:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27 10:07 MPC5200 I2C and 2.6 kernel Oliver Rutsch
2007-11-28 20:22 ` Wolfgang Denk
2007-11-28 23:54   ` Jon Smirl
2007-11-29 11:00   ` Oliver Rutsch [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=474E9BC0.5010806@sympatec.com \
    --to=orutsch@sympatec$(echo .)com \
    --cc=Linuxppc-dev@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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