linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* how to use the i2c in mpc5200
@ 2004-05-27 13:47 iida
       [not found] ` <Pine.LNX.4.60.0405270900480.32475@xmission.xmission.com>
  2004-05-27 23:56 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: iida @ 2004-05-27 13:47 UTC (permalink / raw)
  To: linuxppc


i am using the linuxppc-2.4.25-denx and loaded
this modules

Module                  Size  Used by    Not tainted
i2c-icecube             1680   0 (unused)
i2c-algo-mpc5xxx        4048   0 [i2c-icecube]
i2c-core               18768   0 [i2c-algo-mpc5xxx]
when i loaded the i2c-icecube i recived the message

i2c-algo-5xxx.o: scanning bus Icecube I2C module #2 interface...
................................................................................(0x50)..............................................(0x7f)
i2c-icecube.o: I2C module #2 installed

i created the i2c with
mknod /dev/i2c c 89 1


i am used the i2c-demo from bsp of the metrowerks
but i recived the message


*** Pass the write-string optionally as argument ***
/dev/i2c open: No such device
eeprom_read: Illegal seek
/dev/i2c open: No such device
/dev/i2c open: No such device
eeprom_read: Illegal seek



what am i doing wrong ?

Thanks

Renato


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to use the i2c in mpc5200
       [not found] ` <Pine.LNX.4.60.0405270900480.32475@xmission.xmission.com>
@ 2004-05-27 19:32   ` iida
  0 siblings, 0 replies; 6+ messages in thread
From: iida @ 2004-05-27 19:32 UTC (permalink / raw)
  To: linuxppc


i2s is anoter i/o , but i read the source of i2c and
i think that the minor number is correct
Thanks for help

linuxppc-embedded@2nerds.com wrote:

> On Thu, 27 May 2004, iida wrote:
>
>> i created the i2c with
>> mknod /dev/i2c c 89 1
>
>
> This is just a hunch, but is that the proper minor device number?  In my
> copy of the kernel sources, in the file arch/ppc/5xxx_io/i2s.c, I see
> this
> definition:
>
> #define I2S_MINOR 242
>
> ...which makes me wonder if "mknod /dev/i2c c 89 242" would work any
> better.  Does your source tree include that same definition?  Is that
> "minor number" the one you need to use with mknod?
>
> I'm a novice at this Linux-on-embedded-PPC stuff, so please forgive me if
> this is useless advice--and please let me know how you resolved the
> problem when you find the "right" answer. :-)
>
> Chris


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to use the i2c in mpc5200
  2004-05-27 13:47 iida
       [not found] ` <Pine.LNX.4.60.0405270900480.32475@xmission.xmission.com>
@ 2004-05-27 23:56 ` Wolfgang Denk
  2004-05-28 11:48   ` iida
  1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2004-05-27 23:56 UTC (permalink / raw)
  To: iida; +Cc: linuxppc


In message <40B5F176.2020805@ztec.com.br> you wrote:
>
> i am using the linuxppc-2.4.25-denx and loaded
> this modules

Which sort of hardware are you using? Is this by any chance an  early
IceCube board? I2C didn't work on some of these boards.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Heavier than air flying machines are impossible.
                    -- Lord Kelvin, President, Royal Society, c. 1895

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to use the i2c in mpc5200
  2004-05-27 23:56 ` Wolfgang Denk
@ 2004-05-28 11:48   ` iida
  0 siblings, 0 replies; 6+ messages in thread
From: iida @ 2004-05-28 11:48 UTC (permalink / raw)
  To: linuxppc


i dont think it is the case . I am using a lite5200 version 2.0 with 16
mg of flash
And i think the uboot uses the i2c for store some information.

Wolfgang Denk wrote:

>In message <40B5F176.2020805@ztec.com.br> you wrote:
>
>
>>i am using the linuxppc-2.4.25-denx and loaded
>>this modules
>>
>>
>
>Which sort of hardware are you using? Is this by any chance an  early
>IceCube board? I2C didn't work on some of these boards.
>
>Best regards,
>
>Wolfgang Denk
>
>--
>Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
>Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
>Heavier than air flying machines are impossible.
>                    -- Lord Kelvin, President, Royal Society, c. 1895
>
>
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to use the i2c in mpc5200
       [not found] <20040528203540.5383EC109F@atlas.denx.de>
@ 2004-05-31 17:19 ` iida
  0 siblings, 0 replies; 6+ messages in thread
From: iida @ 2004-05-31 17:19 UTC (permalink / raw)
  To: linuxppc


Wolfgang Denk wrote:

>Just for the record: on my system I2C is working fine:
>
>...
>
>
Can you send me your screen of modprobe and how you create the /dev/i2c ?
Did you chaged the code of i2c-demo from bsp ?
Thanks
Renato


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: how to use the i2c in mpc5200
@ 2004-05-31 18:49 Wolfgang Denk
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2004-05-31 18:49 UTC (permalink / raw)
  To: iida; +Cc: linuxppc

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

In message <40BB6925.4090706@ztec.com.br> you wrote:
>
> >Just for the record: on my system I2C is working fine:
...
> Can you send me your screen of modprobe and how you create the /dev/i2c ?

I just used statically linked I2C drivers. See .config file below.

-> ls -l /opt/eldk/ppc_82xx/dev/i2c*
crw-r--r--    1 root     root      89,   0 May 24 12:04 /opt/eldk/ppc_82xx/dev/i2c


> Did you chaged the code of i2c-demo from bsp ?

I don't know what Metrowerks includes with their BSP; please see  our
test code (mpc52xx-eeprom.c) below.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
"The question of whether a computer can think is no more  interesting
than the question of whether a submarine can swim"
                                                - Edsgar W.  Dijkstra


[-- Attachment #2: kernel.config.bz2 --]
[-- Type: application/x-bzip2 , Size: 3459 bytes --]

[-- Attachment #3: mpc52xx-eeprom.c.bz2 --]
[-- Type: application/x-bzip2 , Size: 1080 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-31 18:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040528203540.5383EC109F@atlas.denx.de>
2004-05-31 17:19 ` how to use the i2c in mpc5200 iida
2004-05-31 18:49 Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-05-27 13:47 iida
     [not found] ` <Pine.LNX.4.60.0405270900480.32475@xmission.xmission.com>
2004-05-27 19:32   ` iida
2004-05-27 23:56 ` Wolfgang Denk
2004-05-28 11:48   ` iida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).