Go to advanced search

by hmitman
Wed May 08, 2013 1:41 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banged I²C kernel driver
Replies: 12
Views: 6985

Re: Bit-banged I²C kernel driver

Hi again, this time I did not only run into a problem. ;) Today I measured the clock speed of an added I2C bus and the result was different from what I expected following (500 / udelay). I used an arbitrary "ground" pin and the scl pin, I specified when adding the bus, to measure the frequencies. In...
by hmitman
Fri May 03, 2013 1:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banged I²C kernel driver
Replies: 12
Views: 6985

Re: Bit-banged I²C kernel driver

This works perfectly well! I am really close to finishing this project, just need to use a specific pin for SDA now and I think I know how to do this.

Thanks for your help!
by hmitman
Fri May 03, 2013 7:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banged I²C kernel driver
Replies: 12
Views: 6985

Re: Bit-banged I²C kernel driver

Ok, here is the script. The beginning is the standard comment and a part, where the ip address is printed. This existed from the beginning. Here is what I added: /sbin/insmod /home/pi/kernel_compile/i2c-gpio-param/i2c-gpio-param.ko /bin/echo 7 > /sys/class/i2c-gpio/remove_bus /bin/echo 5 17 25 > /sy...
by hmitman
Thu May 02, 2013 2:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banged I²C kernel driver
Replies: 12
Views: 6985

Re: Bit-banged I²C kernel driver

Thanks again for your help, this got me a lot further. The autoload works partly. The module is loaded at boot and it is possible to remove the default bus 7. (This bus is not needed.) Unfortunately it is not possible to add busses. The line to add a bus simply causes the script to exit, so all line...
by hmitman
Mon Apr 29, 2013 11:47 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit-banged I²C kernel driver
Replies: 12
Views: 6985

Re: Bit-banged I²C kernel driver

Hey there, I am quite new to working with the RPi, with compiling and Linux. Last week I started testing your module and it seems to work so far. Though, adding new busses is only possible for some of the GPIOS and I could not figure out, according to which rules this happens. Do you know anything a...

Go to advanced search