writing to eeprom in imx6q

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

writing to eeprom in imx6q

814 Views
ajayvk1
Contributor I

I tried to write the zero bytes to the imx6 patt eeprom using the command dd if=/dev/zero of=/sys/bus/nvmem/devices/spi4.40/nvmem in the initramfs using mfg tool the driver CONFIG_EEPROM_AT25 =y enabled and the nvmem file also present in the expected path when i try to write using mfgtool or if i execute directly in iniramfs command line it is throwing the below error :-

sh-3.2# dd if=/dev/zero of=/sys/bus/nvmem/devices/spi4.40/nvmem
at25 spi4.4: write 128 bytes offset 0, timeout after 2004 msecs
dd: writing to '/sys/bus/nvmem/devices/spi4.40/nvmem': Connection timed out
1+0 records in
0+0 records out
0 bytes copied, 2.01249 s, 0.0 kB/s 

not writing throwing the connection timed out error .

Labels (1)
0 Kudos
Reply
2 Replies

796 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @ajayvk1 

 

The procedure seems ok, are you using a custom board, right?

Also you can verify that the driver for the EEPROM is properly initialized.

 

Best regards,

--... ...--

Salas.

0 Kudos
Reply

813 Views
ajayvk1
Contributor I

do i need to enable any configuration to write in initramfs it is working with normal os boot in mfgtool initramfs booting time im not able to write please help me to solve the issue 

0 Kudos
Reply