jlass 发表于 2013-6-5 08:56 
没怎么看懂
原因就是UBOOT使用了NAND上之前保存的参数
又出现新的问题了,我删除了nand分区,我反复擦除几次后,再次烧写uboot到芯片,终于可以看到我在include/configs/mini2440.h里面的配置了:
然后我再次将分区添加上,再次编译烧进芯片,似乎找不到分区了,我用mtd命令查看,显示如下:
不明白这是为什么,我查看源码,
在common/cmd_mtdparts.c中找到了这句话:
parts = getenv("mtdparts");
.......
/* do no try to use defaults when mtdparts variable is not defined,
* just check the length */
if (!parts)
printf("mtdparts variable not set, see 'help mtdparts'\n");
难道是找不到这个环境变量,怎么可能呢 ,我没改动其它地方啊,还请指教!
|