linux icon indicating copy to clipboard operation
linux copied to clipboard

multi sector erase and write broken

Open mdmillerii opened this issue 8 years ago • 1 comments

When fw_setenv tries to erase the whole 128kB environment with one ioctl call the erase gails and the flash status register shows programming error status. Breaking the erase command into erase blocks should be handled by the spi-nor layer but is not working as of 4.3.

The busybox flash_cp command always uses one erase block per system call and is ok. The workaround is to copy the environment to ram in init and back if different at shutdown in the initramfs layer.

Note this also unifies /etc/fw_env.cfg at the cost of no redundant env support and lack of update on crash.

mdmillerii avatar Jun 08 '16 03:06 mdmillerii

@mdmillerii is this still an issue that needs to be tracked?

shenki avatar Aug 19 '16 01:08 shenki