how to access the external modules (SPI and I2C) in linux user space

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to access the external modules (SPI and I2C) in linux user space

2,118 Views
srinivasaraopor
Contributor II

Hi,

We have got Wandboard dual (IMX6DL processor). We have connected two external modules 1. Altimeter (MS5803-14BA) and 2. IMU (MPU-9250) to the external connectors available in wandboard (JP4 (SPI) and JP2(I2C)).

for i2c module, we have installed i2c-tools in Ubuntu. even after issuing the command $i2cdetect -l.  i2c module is not being shown.

How can we access these module in the ubuntu user space (command line). is drivers /library files of those modules to be installed or not???? are there any steps or guidelines/procedure  to be followed.

Tags (2)
0 Kudos
Reply
5 Replies

1,486 Views
igorpadykov
NXP Employee
NXP Employee

Hi Srinivasa

probably you used wrong images, please try from below links, as

at least sgtl5000 should be detected by i2c-tools

http://repo.or.cz/w/wandboard.git

https://eewiki.net/display/linuxonarm/Wandboard

for spi one can look at

https://community.freescale.com/thread/336020

http://www.spinics.net/lists/arm-kernel/msg328796.html

https://eewiki.net/display/linuxonarm/Wandboard_Comments

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,486 Views
srinivasaraopor
Contributor II

Hi,

can you tell us how any external modules be connected to wandboard dual through spi and i2c. Just connecting those modules to JP4(SPI) and JP2 (IC-2) will suffice or anything else has to be done. like re-compiling kernel after changing some kernel source files, dtb etc. is the drivers for those modules are required????

 

We are new to wandboard. we have deployed image file(ubuntu-1404lts-lxde-wandboard-20150511.img) to sd card and board is booting to Ubuntu.

in what files in this Ubuntu, we have to change such that i2c and spi modules will work.

 

 

 

is there any link or documents that show us some torch on how to connect external i2c and SPI modules to wandboard and get their access in linux user space.

Thanks,

Srinivas,

E-Mail: srinivasa@si2microsystems.com

0 Kudos
Reply

1,486 Views
igorpadykov
NXP Employee
NXP Employee

this board is supported by dedicated resource : www.wandboard.org

please post all questions related to this board there.

~igor

0 Kudos
Reply

1,486 Views
srinivasaraopor
Contributor II

Hi,

can you tell us how any external modules be connected to wandboard dual through spi and i2c. Just connecting those modules to JP4(SPI) and JP2 (IC-2) will suffice or anything else has to be done. like re-compiling kernel after changing some kernel source files, dtb etc. is the drivers for those modules are required????

 

We are new to wandboard. we have deployed image file(ubuntu-1404lts-lxde-wandboard-20150511.img) to sd card and board is booting to Ubuntu.

in what files in this Ubuntu, we have to change such that i2c and spi modules will work.

 

 

 

is there any link or documents that show us some torch on how to connect external i2c and SPI modules to wandboard and get their access in linux user space.

Thanks,

Srinivas,

E-Mail: srinivasa@si2microsystems.com

0 Kudos
Reply

1,486 Views
srinivasaraopor
Contributor II

Hi,

can anybody tell us how any external modules be connected to wandboard dual through spi and i2c. Just connecting those modules to JP4(SPI) and JP2 (IC-2) will suffice or anything else has to be done. like re-compiling kernel after changing some kernel source files, dtb etc. is the drivers for those modules are required????

We are new to wandboard. we have deployed image file(ubuntu-1404lts-lxde-wandboard-20150511.img) to sd card and board is booting to Ubuntu.

in what files in this Ubuntu, we have to change such that i2c and spi modules will work.

is there any link or documents that show us some torch on how to connect external i2c and SPI modules to wandboard and get their access in linux user space.

0 Kudos
Reply