Accessing to i2c connected devices under Linux 2.4.27-vrs1

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

katolecho
Location: Valence, France
Posts: 22
Joined: Tue Mar 01, 2005 12:54 pm

Accessing to i2c connected devices under Linux 2.4.27-vrs1

Fri Jul 22, 2005 3:59 pm

Hi all

i'm actually trying to access to an eeprom 24lc256 (conneced by i2c
i've actived the TWI and i2c support in the kernel
and now i can see /dev/i2c/0 but if i try to execute

Code: Select all

cat >> /dev/i2c/0
and typing something, i've got the error

Code: Select all

at91_i2c: timeout 3
at91_i2c: timeout 3
at91_i2c: timeout 3
at91_i2c: timeout 3
at91_i2c: timeout 3
...
...
at91_i2c: timeout 3
at91_i2c: timeout 3
at91_i2c: timeout 3
at91_i2c: timeout 3
does anybody know how i can write in this eeprom?

i've seen eeprog but i've not succeed in cross-compilling it...

Code: Select all

[root@localhost eeprog-0.7.6]# CC=/usr/local/arm/2.95.3/bin/arm-linux-gcc make
/usr/local/arm/2.95.3/bin/arm-linux-gcc -g -I. -Wall -O2      -c -o 24cXX.o 24cXX.c
/usr/local/arm/2.95.3/bin/arm-linux-gcc   eeprog.o 24cXX.o   -o eeprog
/usr/local/arm/2.95.3/arm-linux/bin/ld: eeprog.o: Relocations in generic ELF (EM: 3)
eeprog.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [eeprog] Erreur 1

Code: Select all

[root@localhost eeprog-0.7.6]# CC=/usr/local/arm/3.0/bin/arm-linux-gcc make
/usr/local/arm/3.0/bin/arm-linux-gcc -g -I. -Wall -O2      -c -o 24cXX.o 24cXX.c
/usr/local/arm/3.0/bin/arm-linux-gcc   eeprog.o 24cXX.o   -o eeprog
/usr/local/arm/3.0/arm-linux/bin/ld: eeprog.o: Relocations in generic ELF (EM: 3)
eeprog.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [eeprog] Erreur 1
so if anyone have an idea about all this problems...

with regards

Frederic Kwiatkowski

Return to “LINUX”

Who is online

Users browsing this forum: No registered users and 8 guests