(一)解决u-boot读取完DRAM后卡死
1、修改common/board_f.c
diff -urN u-boot-2016.11/common/board_f.c u-boot-2016.11_s3c2440/common/board_f.c
@@ -517,8 +517,9 @@
* reserve memory for U-Boot code, data & bss
* round down to next 4 kB limit
*/
- gd->relocaddr -= gd->mon_len;
- gd->relocaddr &= ~(4096 - 1);
+ //gd->relocaddr -= gd->mon_len;
+ //gd->relocaddr &= ~(4096 - 1);
+ gd->relocaddr = (unsigned int)_start;
#ifdef CONFIG_E500
/* round down to next 64 kB limit so that IVPR stays aligned */
gd->relocaddr &= ~(65536 - 1);
2、烧写u-boot.bin到Nor Flash或Nand Flash上
book@ubuntu:~/u-boot-2016.11$ ./auto_run.sh

(二)查看Nor Flash信息
1、分析flash_init的过程