This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: EEPROM TESTING OF AT24.KO NOT WORKING

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hi

Team

I am working on testing the eeprom driver !

I have taken the driver at24.c and compiled and created a at24.ko and when i try to instantiate i able to do this

But when i write the data and when i try reading the values from eeprom i am not bale to get anything

I have attached the logs that i have done

Kindly need help I assume at24c256 is on board of beagle bone am335x and i want to read and write to eeprom!

Should i connect external eeprom or is it there on board???

ebian@arm:/bin$ cd /home/debian/bin/
debian@arm:~/bin$ ls
at24.ko
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$ sudo insmod at24.ko
sudo: ignoring time stamp from the future
[sudo] password for debian:
[  133.634324] at24: loading out-of-tree module taints kernel.
[  133.645623] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  133.659207] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,00C0,2315BBBK2432'
[  133.676294] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  133.683384] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
[  133.701484] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  133.716342] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  133.734459] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  133.743114] bone_capemgr bone_capemgr: slot #0: No cape found
debian@arm:~/bin$ [  133.785510] bone_capemgr bone_capemgr: slot #1: No cape found
[  133.815210] bone_capemgr bone_capemgr: slot #2: No cape found
[  133.844973] bone_capemgr bone_capemgr: slot #3: No cape found
[  133.855983] bone_capemgr bone_capemgr: initialized OK.

debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$
debian@arm:~/bin$ echo 24c256 0x53 > /sys/bus/i2c/devices/i2c-0/new_device
-bash: /sys/bus/i2c/devices/i2c-0/new_device: Permission denied
debian@arm:~/bin$ sudo su
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
ce t@arm:/home/debian/bin# echo 24c256 0x53 >/sys/bus/i2c/devices/i2c-0/new_devic
[  210.555220] at24 0-0053: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  210.574458] i2c i2c-0: new_device: Instantiated device 24c256 at 0x53
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin# echo "deeeeeeeeeeee" >/sys/bus/i2c/
devices/           drivers_autoprobe  uevent             
drivers/           drivers_probe      
root@arm:/home/debian/bin# echo "deeeeeeeeeeee" >/sys/bus/i2c/devices/0-005
0-0050/ 0-0053/
rom @arm:/home/debian/bin# echo "deeeeeeeeeeee" >/sys/bus/i2c/devices/0-0053/eepr
bash: echo: write error: Connection timed out
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
rom @arm:/home/debian/bin# echo "deeeeeeeeeeee" >/sys/bus/i2c/devices/0-0053/eepr
bash: echo: write error: Connection timed out
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#                         sys/bus/i2c/devices/0-0053/eepr                                                    
bash: /: Is a directoryin# echo "deeeeeeeeeeee" >/sys/bus/i2c/devices/0-0053/eepr
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
ice @arm:/home/debian/bin# echo 24c256 0x53 > /sys/bus/i2c/devices/i2c-2/new_devi
[  425.105222] at24 2-0053: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[  425.124576] i2c i2c-2: new_device: Instantiated device 24c256 at 0x53
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin# echo "ddddddddddddddddddddddddddddd" 0x53 [  440.884255] random: crng init done

root@arm:/home/debian/bin#                          +-----------------------------+
root@arm:/home/debian/bin#                          |                             |
devices/2-0053/eeprom bin# echo "ddddddddddddddddddd|  Cannot open /dev/ttyUSB0!  |
bash: echo: write error: Connection timed out       |                             |
root@arm:/home/debian/bin# CLEARBB                  +-----------------------------+
bash: CLEARBB: command not found
root@arm:/home/debian/bin# Becho "dddddddddddddddddddddddddddddd" > /sys/bus/i2c/d                                                    
root@arm:/home/debian/bin# echo "dddddddddddddddddddddddddddddd" > /sys/bus/i2c/d
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#
root@arm:/home/debian/bin#



KIndly need help how to test this drivers with commands and folder path

Thank you

Deepak R