Locked block in StrataFlash
Hi all,
I experienced a problem with strataflash driver on ARM920T-based custom hardware. The driver has been derived from board/esd/cpcpi440/strataflash.c. When issuing a saveenv command, U-Boot randomly can't erase the block because it is locked (environment is in flash). We verified with JTAG debugger that status register and it confirmed the locked state. To unlock the block we issued manually the necessary commands. The function flash_real_protect is never invoked (I verified with JTAG debugger that it is never executed, too). Anybody experienced similar problems?
Signature · 5 lines
llandre DAVE Electronics System House - R&D Department web: http://www.dave-tech.it email: r&d2 at dave-tech.it
Quoted 8 lines · llandre
I experienced a problem with strataflash driver on ARM920T-based custom hardware. The driver has been derived from
board/esd/cpcpi440/strataflash.c. When issuing a saveenv command, U-Boot randomly can't erase the block because it is locked (environment is in flash). We verified with JTAG debugger that status register and it confirmed the locked state. To unlock the block we issued manually the necessary commands. The functionflash_real_protectis never invoked (I verified with JTAG debugger that it is never executed, too). Anybody experienced similar problems?
I'm using an ARM920T as well (AT91RM9200 to be exact) and an Intel Strata flash, and since it speaks CFI I used drivers/cfi_flash.c with success.
Signature · 2 lines
-=- Daniel Stenberg -=- http://daniel.haxx.se -=- ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol