]> Zhao Yanbai Git Server - minix.git/commit
eepromread: support for reading from /dev/eeprom 38/1138/1
authorThomas Cort <tcort@minix3.org>
Sun, 10 Nov 2013 17:06:27 +0000 (12:06 -0500)
committerThomas Cort <tcort@minix3.org>
Mon, 11 Nov 2013 15:14:03 +0000 (10:14 -0500)
commit13054fd168f489c7310018e470dee3c5273a2a8d
tree303e7f2f647f25f8a4790472cf05ba4c632715c1
parent9a006432629dfa66cdcb4a7af6db411d2c2804dd
eepromread: support for reading from /dev/eeprom

eepromread could only read EEPROMs through the /dev/i2c interface.
Once the cat24c256 driver is started and claims/reserves the
device, it can no longer be read through the /dev/i2c interface.

This patch adds support for reading from EEPROMs through the
/dev/eeprom interface. For example, to read the on-board eeprom
on the BBB, one would do `eepromread -f /dev/eepromb1s50 -i`.

Change-Id: If08ce37231e593982eeb109bdd6d5458ad271108
commands/eepromread/board_info.c
commands/eepromread/eepromread.1
commands/eepromread/eepromread.c
commands/eepromread/eepromread.h