打印

u-boot裁减nor flash代码问题

[复制链接]
1532|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
liboyang_bj|  楼主 | 2009-2-1 02:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我的2410开发板没有nor flash,但使用uboot自带的“flinfo”命令仍能得到如下信息:
#################################
  Bank # 1: AMD: 1x Amd29LV400BB (4Mbit)
    Size: 0 MB in 11 Sectors
    Sector Start Addresses:
      00000000 (RO) 00004000 (RO) 00006000 (RO) 00008000 (RO) 00010000 (RO)
      00020000 (RO) 00030000      00040000      00050000      00060000
      00070000 (RO)
#################################

请问如何裁剪掉这部分功能?
是不是要修改smdk2410.h中的这部分定义?
#################################
#define PHYS_FLASH_1        0x00000000 /* Flash Bank #1 */
#define CFG_FLASH_BASE        PHYS_FLASH_1

/*-----------------------------------------------------------------------
 * FLASH and environment organization
 */

#define CONFIG_AMD_LV400    1    /* uncomment this if you have a LV400 flash */
#if 0
#define CONFIG_AMD_LV800    1    /* uncomment this if you have a LV800 flash */
#endif

#define CFG_MAX_FLASH_BANKS    1    /* max number of memory banks */
#ifdef CONFIG_AMD_LV800
#define PHYS_FLASH_SIZE        0x00100000 /* 1MB */
#define CFG_MAX_FLASH_SECT    (19)    /* max number of sectors on one chip */
#define CFG_ENV_ADDR        (CFG_FLASH_BASE + 0x0F0000) /* addr of environment */
#endif
#ifdef CONFIG_AMD_LV400
#define PHYS_FLASH_SIZE        0x00080000 /* 512KB */
#define CFG_MAX_FLASH_SECT    (11)    /* max number of sectors on one chip */
#define CFG_ENV_ADDR        (CFG_FLASH_BASE + 0x070000) /* addr of environment */
#endif
#################################

谢谢!

相关帖子

沙发
liboyang_bj|  楼主 | 2009-2-1 20:44 | 只看该作者

自己顶上去!

使用特权

评论回复
板凳
liboyang_bj|  楼主 | 2009-2-2 08:36 | 只看该作者

有人知道么,是不是这段代码是一定要有的?

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

13

帖子

0

粉丝