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/
|