Fix for configuration has both dataflash and parallel flash
PATCH 1/1 Fix for configuration has both dataflash and parallel flash
Hi,
When the board has both dataflash and parallel flash, using 'cp' command will write to parallel flash and then fail.
The patch below fixes the problem. BTW, I think "addr" is typo of "dest" in the dataflash test, so the patch may be as simple as s/addr/dest/ in dataflash test. I am in a hurry, so let suitable person to decide.
common/cmd_mem.c +1 -0
@@ -423,6 +423,7 @@ int do_mem_cp ( cmd_tbl_t *cmdtp, int fl/* check if we are copying to Flash */ if ( (addr2info (dest) !=NULL ) #ifdef CONFIG_HAS_DATAFLASH + && (!addr_dataflash (dest)) && (!addr_dataflash (addr)) #endif ) {
Signature · 1 line
lark