finding i2c chips on linux 2.6

compile the i2c subsystem and the correct bus driver

        <*> I2C support
        <*>   I2C device interface
              I2C Algorithms  --->
                 <*> I2C bit-banging interfaces
              I2C Hardware Bus support  --->
                 <*> Intel 801
                 <*> ISA Bus support
              Hardware Sensors Chip support  ---> 
                 all: <M>

now run this cmd:
for module in `modprobe -l | grep i2c/chips | cut -d / -f 9 | cut -d . -f 1` ; \
do modprobe ${module} ; echo ${module} loaded. if anything here, module succeeded: ; \
ls /sys/bus/i2c/devices/ ; read ; rmmod ${module} ; echo ${module} unloaded ; done
Dette indlæg blev udgivet i Knowledge Base, Linux, Old Base. Bogmærk permalinket.

Skriv et svar