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 .
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.
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