Skip to contentSkip to conversation

/proc/bus/i2c is missing

DISCUSSION Karel Kulhavy 2 participants 2 messages Nov 12, 2004

lore
Share & tools
lore
#0 lore raw

Hello

linux 2.6.8.1

I insmoded i2c-parport and pcf8591 modules and i2c-1 appeared in my /dev (previously, only i2c-0 was there):

	clock@oberon:~$ ls /dev/i2* 
	/dev/i2c-0  /dev/i2c-1
	/dev/i2c:
	0  1

/usr/src/linux/Documentation/i2c says "You can
examine /proc/bus/i2c to see what number corresponds to which adapter." I don't have any /proc/i2c:

	clock@oberon:~$ ls /proc/i2c
	ls: /proc/i2c: No such file or directory

However, I have /proc:

	clock@oberon:~$ ls /proc
	             devices      mtrr
	             diskstats    net
	             dma          partitions
	             driver       pci
	             execdomains  scsi
	             filesystems  self
	             fs           slabinfo
	             ide          stat
	             interrupts   swaps
	  [...]      iomem        sys
	             ioports      sysrq-trigger
	             irq          sysvipc
	             kallsyms     tty
	             kcore        uptime
	             kmsg         version
	             loadavg      vmstat
	             locks
	  buddyinfo  mdstat
	  bus        meminfo
	  cmdline    misc
	  config.gz  modules
	  cpuinfo    mounts

How can I make /proc/i2c appear?

Cl<

#1 lore raw
Quoted 10 lines · Karel Kulhavy

Hello

linux 2.6.8.1

I insmoded i2c-parport and pcf8591 modules and i2c-1 appeared in my /dev (previously, only i2c-0 was there):

	clock@oberon:~$ ls /dev/i2* 
	/dev/i2c-0  /dev/i2c-1
Quoted 6 lines
	/dev/i2c:
	0  1

/usr/src/linux/Documentation/i2c says "You can
examine /proc/bus/i2c to see what number corresponds to which adapter." I don't have any /proc/i2c:

That is outdated, and you should look in /sys/class/i2c-dev/. I'll go change that documentation now.

thanks,

greg k-h