LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-30-2018, 03:13 AM   #1
rksyeung
Member
 
Registered: Feb 2018
Posts: 71

Rep: Reputation: Disabled
i2c-tools for EEPROM vs. eeprog


I was trying to use i2c-tools (in particular, i2cget, i2cset, i2cdump etc.) to access a 24C16K EEPROM, and could get it to work. Firstly the device addressing is a little confusing. From schematic, it looks like address is 0xAE. From data sheet (for Atmel), it seems like MSB 4 bits must be 1010b (i.e. 0xA), and following 3 bits are to define one of the 8 pages (256B each page) for a total of 2KB.

I did some googling. Some answers provided seemed to be inconsistent with the i2cset command syntax; some people tried to specify 2 bytes worth of data address while command asks for only 1 byte.

I'd like to know your experience with these i2c-tools (version 3.1.2). Should I give up on it, and try to get the later driver (4.x) with eeprog in it? And other than EEPROM related issue, how is your experience with this tool for other I2C devices in general?
 
Old 03-30-2018, 08:18 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think much more important than the tools package is the board you're working with. If it implements the protocols correctly, the tools should work just fine. But if it's an oddball board then you might have problems. What are you working on exactly? Are you using an EEPROM programmer?

The ideal situation is to have the chip off the board in a socket on a programmer, and just use the programmer software to work with the EEPROM.
 
Old 03-30-2018, 08:28 PM   #3
rksyeung
Member
 
Registered: Feb 2018
Posts: 71

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
I think much more important than the tools package is the board you're working with. If it implements the protocols correctly, the tools should work just fine. But if it's an oddball board then you might have problems. What are you working on exactly? Are you using an EEPROM programmer?

The ideal situation is to have the chip off the board in a socket on a programmer, and just use the programmer software to work with the EEPROM.
The board has an Intel Xeon-D processor. The EEPROM is on-board Atmel 24C16K I2C interface. The device has 2KB's worth of address space. The i2cget/i2cset etc expects an address of only 1 byte (0x0-0xff). So my understanding is this device would occupy 8 addresses (from 0xA0 to 0xAE); this doesn't seem to work. I'm checking the device address(es) with the 3rd party vendor (an eval platform). At the same time, I'm checking here (and google) to see overall usability of these tools.
 
Old 03-30-2018, 08:50 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Like I said before, a lot has to do with how the protocols are implemented. The tools assume the protocols are implemented correctly. If they are, the tools work well. Another thing, 1 bit addressing probably won't work to address a 2kB space. So, I think it might be 2kbit address space.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt-get error message when trying to install i2c-tools Jerry1947 Linux - Newbie 8 03-28-2016 07:21 PM
i2c-dev.h missing i2c read/write functions dbrazeau Programming 1 12-17-2015 10:40 PM
How to forward IOCTL's from i2c-dev.c to adapter driver (i2c-rt3352.c) elonica.pl Linux - Kernel 2 08-23-2011 02:03 AM
problem with eeprom writing using eeprog reshmadivakar Linux - Newbie 0 03-28-2011 05:26 AM
TV card, no sound, eeprom invalid, no eeprom present (err=-121) cncman Linux - Hardware 1 08-05-2006 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration