Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Two nodes under /dev/EEPROM/ for one EEPROM
- 10-28-2006
- benjamin.stadin
October 28, 2006, 11:54 am

I have an 24c64 EEPROM wired via i2c on an embedded device. I want to
"partition" the EEPROM so that I have one node /dev/EEPROM/0 for system
and environment stuff, and another entry /dev/EEPROM/1 for custom data
for the application.
I thought to write a driver for the second device and limit the usage
of the first one. But I guess that would be bad practice when
concurrent access to the EEPROM happens.
What would be a good way to achieve this? Do you think it's possible at
all?
Ben
"partition" the EEPROM so that I have one node /dev/EEPROM/0 for system
and environment stuff, and another entry /dev/EEPROM/1 for custom data
for the application.
I thought to write a driver for the second device and limit the usage
of the first one. But I guess that would be bad practice when
concurrent access to the EEPROM happens.
What would be a good way to achieve this? Do you think it's possible at
all?
Ben

Re: Two nodes under /dev/EEPROM/ for one EEPROM

If you use MTD devices, you can have /dev/mtd/0 as the whole EEPROM,
/dev/mtd/1 as the first partition, /dev/mtd/2 as the second partition and so
on.
Take a look at it: Memory Technology Devices
They are eg. used in the D-Box2, where the complete system sits on an 8M
flash chip; there are different partitions (booloader, / (ro-fs), /var
(rw-fs) and so on.
Regards
Site Timeline
- » Reverse Engineering a printer's USB Protocol
- — Next thread in » Embedded Linux
-
- » html display engine?
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Corona Death Star comic strip
- — The site's Newest Thread. Posted in » Electronics Design
-
- » COVID Inured
- — The site's Last Updated Thread. Posted in » Electronics Design
-