If I try to copy from Ram to dataflash, u-boot says "Copy to Flash..."
and the CPU pukes; it's detecting what it thinks is flash.

This simple patch (for old 1.3.0) fixed this problem for me on DataFlash only system.
diff -ur orig/common/cmd_mem.c u-boot/common/cmd_mem.c
--- orig/common/cmd_mem.c	2007-10-22 10:14:10.000000000 +0300
+++ u-boot/common/cmd_mem.c	2007-10-22 11:54:26.000000000 +0300
@@ -387,7 +387,7 @@
 	/* check if we are copying to Flash */
 	if ( (addr2info(dest) != NULL)
 #ifdef CONFIG_HAS_DATAFLASH
-	   && (!addr_dataflash(addr))
+	   && (!addr_dataflash(dest))
 #endif
 	   ) {
 		int rc;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to