ts-7000
[Top] [All Lists]

[ts-7000] /dev/i2c-0 and udev problem, TS-7530

To:
Subject: [ts-7000] /dev/i2c-0 and udev problem, TS-7530
From: "sanjuan34" <>
Date: Thu, 11 Feb 2010 23:09:32 -0000
Hi.I'm having trouble getting i2c setup on a TS-7350

Currently i2c_dev and i2c_core are loading at bootup, but udev isn't creating 
/dev/i2c-0. If I create it manually (mknod /dev/i2c-0 c 89 0), it still doesn't 
work. When I try to open it

fd = open( "/dev/i2c-0", O_RDWR );
 I get 

fd = -1 
Error opening /dev/i2c-0 : No such device

/dev/i2c-0 is definitely there

ls -l /dev/i2c-0 
crw-r--r-- 1 root root 89, 0 Feb 11 22:45 /dev/i2c-0


Now, I'm not sure if I'm doing this correctly:
to /etc/modules (at the top) I've added

i2c_core
i2c_dev
lincan hw=tscan io=0x150 irq=33 baudrate=1000

udev is creating /dev/can0 for the lincan driver, so I assume this is the right 
way to add modules you want loaded at boot time?

/etc/modprobe.d/aliases has an entry 
alias char-major-89-* i2c_dev

in /etc/udev:
% grep i2c *
compat-full.rules:KERNEL=="i2c-[0-9]*", SYMLINK+="%k"
compat.rules:#KERNEL=="i2c-[0-9]*",     SYMLINK+="%k"
devfs.rules:KERNEL=="i2c-[0-9]*",               NAME="i2c/%n"


Have I set something up incorrectly?

Thanks
-Jesse




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU