[Avila] GW2348-4: I2C and EEPROM

ksc me_ksc at yahoo.com
Fri Jul 4 03:04:22 EDT 2008


--- Tamas Selmeci <tselmeci at dension.com> wrote:

> Hello!
> 
> I'd like to access the Atmel 24C08 EEPROM on my
> GW2348-4 devboard using 
> I2C. Since I've never done I2C in a high-level
> environment like Linux, I 
> keep on failing communicating with the EEPROM
> (linux-2.6.25.6).
> 
> Is there any sample code available showing how the
> EEPROM through I2C is 
> accessible? The only information I've found about
> this is that write 
> address is 0xA0 and read address is 0xA1.
> 
> I've made something based on the sample in the
> kernel documentation, but 
> refuses to work.
> 
> Any help appreciated, primarily sample codes or
> tutorial links!
> 
> Thanks,
> 
> Regards,
> -- 
> Tamas Selmeci
> 
> 
> _______________________________________________
> Avila mailing list
> Avila at lists.gateworks.com
>
http://lists.gateworks.com/cgi-bin/mailman/listinfo/avila
> 

Hi I'm having a similar issue with one of the GW2345
that we purchased. 

The eeprom
(/sys/class/i2c-adapter/i2c-0/0-0051/eeprom) that
contains the board type was empty. Is there any way to
use i2cset to input this value? 

This is the value from other working GW2345:
00000000  00 d0 12 03 61 50 00 d0  12 13 61 50 ff ff
ff ff  |....aP....aP....|
00000010  47 57 00 00 09 05 20 07  80 80 80 80 80 02
00 02  |GW.... .........|
00000020  47 57 32 33 34 35 00 00  00 00 00 00 00 00
00 00  |GW2345..........|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00
14 b3  |................|
00000040  ff ff ff ff ff ff ff ff  ff ff ff ff 

And this is from the one without the board info:
00000000  00 d0 12 03 55 29 00 d0  12 13 55 29 ff ff
ff ff  |....U)....U)....|
00000010  47 57 11 00 08 22 20 07  80 80 80 80 80 02
00 02  |GW..." .........|
00000020  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff
ff ff  |................|
*

Regards,
ksc



      



More information about the Avila mailing list