Linux modules missing in redpitaya

Applications, development tools, FPGA, C, WEB
Post Reply
shideh
Posts: 5
Joined: Tue Mar 28, 2017 12:11 am

Linux modules missing in redpitaya

Post by shideh » Fri Mar 31, 2017 8:29 pm

Hi,

I've been trying to use the I2C interface with redpitaya. I installed a fresh OS (latest version as of now), upgraded the OS, downloaded i2ctools and when I run it it says Then i ran the following commands:

tar xvzf i2c-tools-3.1.2.tar.gz
cd i2c-tools-3.1.2
make
sudo make install

I got these warnings. http://image.prntscr.com/image/acd4fe3b ... 754c63.png
When I go to my /dev/ I don't see i2c-1 through i2c-6. http://image.prntscr.com/image/0ddc0181 ... ed699c.png
I don't know what's causing this. Not sure what I'm missing. I know for RPi I had to change some configurations in the device tree but I don't recall doing the same for red pitaya.
Here's the result of uname -a http://image.prntscr.com/image/2144d45b ... 9f74ac.png

uros.golob
Posts: 7
Joined: Thu Jan 07, 2016 10:39 am

Re: Linux modules missing in redpitaya

Post by uros.golob » Wed Apr 12, 2017 2:35 pm

Hi!
RedPitaya provides only one i2c bus "/dev/i2c-0", If you want additional busses you can buy i2c mux chip, but that will have to be enabled by editing and recompiling device tree. Try examining https://github.com/RedPitaya/linux-xlnx ... 2c-mux.txt
It is also possible to use device tree overlay similar to the one used in hamlab https://github.com/RedPitaya/RedPitaya/ ... 2cmux.dtso.

Maybe you can try to test your i2c devices with command line tools: i2cdetect, i2cdump, i2cget, i2cset .

For C examples look at example code and then modify it according to your requirements:
https://github.com/RedPitaya/RedPitaya/ ... tion/C/iic

You can also look at some code that uses busses from i2c-mux chip.
https://github.com/RedPitaya/RedPitaya/ ... Test/hamrf

Cheers, Uroš

shideh
Posts: 5
Joined: Tue Mar 28, 2017 12:11 am

Re: Linux modules missing in redpitaya

Post by shideh » Wed Apr 12, 2017 4:51 pm

When I run

Code: Select all

i2cdetect -y 0
I get this:

Code: Select all

can't use smbus quick write command on this bus
.

uros.golob
Posts: 7
Joined: Thu Jan 07, 2016 10:39 am

Re: Linux modules missing in redpitaya

Post by uros.golob » Thu Apr 13, 2017 6:39 am

Try adding -r argument:

Code: Select all

i2cdetect -y -r 0
Cheers,
Uroš

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 6 guests