I want to use my spi eeprom (at25) under debian (Beaglebone Black). I have edited the device tree, so now i can read and write to eeprom.
There is already a spi-at25-driver in Linux.
Reading from eeprom
cat /sys/class/spi_master/spi1/spi1.o/eeprom
writing to eeprom
echo hello > /sys/class/spi_master/spi1/spi1.o/eeprom
But i want to write and read from specific address of the eeprom. Is there any way to do this within a C-Program?
thx