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
[parent not found: <20040528203540.5383EC109F@atlas.denx.de>]
* 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 --
2004-05-27 13:47 how to use the i2c in mpc5200 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
     [not found] <20040528203540.5383EC109F@atlas.denx.de>
2004-05-31 17:19 ` iida
  -- strict thread matches above, loose matches on Subject: below --
2004-05-31 18:49 Wolfgang Denk

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).