LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to install I2C driver (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-install-i2c-driver-4175467280/)

Gisela0110 06-25-2013 03:13 AM

How to install I2C driver
 
Hi currently I'm trying to interface an imu sensor stick - https://www.sparkfun.com/products/10724 to an embeded system(odroid-x) running on ubuntu 12.04 ,3.6.0 kernel .I had read before that I will need to install a I2C driver to allow this interface and wonder how I can do that.Many thanks inadvance :)

GlennsPref 06-25-2013 06:39 PM

Quote:

Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.
:)
check if it's loaded with the kernel
Code:

lsmod | grep i2c

Gisela0110 06-25-2013 10:26 PM

nothing shows up when i enter - lsmod | grep i2c :( How do I load i2c into kernel?

onebuck 06-26-2013 08:31 AM

Moderator Response
 
Moved: This thread is more suitable in <Linux - Embedded & Single-board computer> and has been moved accordingly to help your thread/question get the exposure it deserves.

GlennsPref 06-27-2013 02:11 AM

You may need to install lmsensors

once installed, invoke the install script as root, with
Code:

sensors-detect
and you should have i2c module installed.

Regards Glenn

Gisela0110 06-27-2013 09:34 PM

Hi and had installed the lm sensor but when i tried to sudo sensors-detect , /sys/bus/pci/devices: No such file or directory at /usr/sbin/sensors-detect line 2900 was shown anyone know how I can fix this problem?

GlennsPref 06-28-2013 03:32 AM

OK, to get i2c to load with system start, add the module name to the list in,

/etc/modprobe.preload

Code:

# /etc/modprobe.preload: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules
max6650
#psmouse
snd_usb_audio
snd_seq_oss
it87
rfcomm
gpm-data
evdev



All times are GMT -5. The time now is 07:52 AM.