主题 : u-boot-2010.03-tekkaman nand flash 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10611
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2009-11-10
最后登录: 2010-07-07
楼主  发表于: 2010-06-07 23:57

 u-boot-2010.03-tekkaman nand flash

请问u-boot-2010.03-tekkaman可以使用mini2440 1G版的nand吗??
为啥我在u-boot 打指令 nand erase 0 30000,出现Erasing at 0xxxxxxxxxxxxx -- 0% complete
感觉就是没成功!!还是我的nand坏了??


还有我用openJtag送的u-boot 把u-boot烧到nand 然后重开机还是没出现u-boot   ,mini2440不能重nand开机吗??

THX
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-06-08 09:24
请问u-boot-2010.03-tekkaman可以使用mini2440 1G版的nand吗??

http://github.com/tekkamanninja/u-boot-2010.03-tekkaman/blob/master/board/tekkamanninja/mini2440/nand_read.c里的代码看:
复制代码
  1. } else if (nand_id == 0xecf1 || /* Samsung K9F1G08U0B */
  2. nand_id == 0xecda || /* Samsung K9F2G08U0B */
  3. nand_id == 0xecd3 ) { /* Samsung K9K8G08 */
  4. nand.page_size = 2048;
  5. nand.block_size = 128 * 1024;
  6. nand.bad_block_offset = nand.page_size;

来看,只要你的1G NAND Flash 型号是K9K8G08的,就可以支持,至少可以支持从NAND启动。

为啥我在u-boot 打指令 nand erase 0 30000,出现Erasing at 0xxxxxxxxxxxxx -- 0% complete
感觉就是没成功!!还是我的nand坏了??

不要凭感觉,如果擦除成功了,这个区域的NAND Flash数据应该都是0xFF。1G的NAND Flash的每个block是128K大小,擦除的时候最好按block对齐。

还有我用openJtag送的u-boot 把u-boot烧到nand 然后重开机还是没出现u-boot   ,mini2440不能重nand开机吗??

mini2440肯定可以从NAND启动,问题是openjtag光盘里的uboot支持从1G的NAND Flash启动吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10611
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2009-11-10
最后登录: 2010-07-07
2楼  发表于: 2010-06-10 23:06
哭了 !还是不行~nand原理不是很懂看来要试很久了

有朋友成功1G nand的版本吗??(u-boot-2010.03-tekkaman)

我是用openJtag直接把u-boot下载到0x33f80000去执行u-boot