LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 06-25-2013, 03:13 AM   #1
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Rep: Reputation: Disabled
Question 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
 
Old 06-25-2013, 06:39 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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
 
Old 06-25-2013, 10:26 PM   #3
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
nothing shows up when i enter - lsmod | grep i2c How do I load i2c into kernel?
 
Old 06-26-2013, 08:31 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,281
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
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.
 
Old 06-27-2013, 02:11 AM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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
 
Old 06-27-2013, 09:34 PM   #6
Gisela0110
LQ Newbie
 
Registered: Jun 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
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?
 
Old 06-28-2013, 03:32 AM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i2c driver vishal_rockstar Linux - Software 0 06-27-2012 06:50 AM
How to forward IOCTL's from i2c-dev.c to adapter driver (i2c-rt3352.c) elonica.pl Linux - Kernel 2 08-23-2011 02:03 AM
How to use i2c-gpio driver sajnanazeer Linux - Newbie 1 03-03-2011 06:21 PM
Hi i want info on I2c driver avyadavnitw Linux - Hardware 1 05-04-2009 12:41 PM
I2C device driver mylinuxdna Linux - General 0 10-10-2005 02:16 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration