u-boot移植(五)添加norflash支持
2011-12-25 20:34
260 查看
添加nor flash移植
开发板使用的是spansion的s29al016m芯片,数据手册和amd的AM29LV160芯片相同,所以添加对am28al160的支持
a) include/configs/mini2440.h文件,
修改1:选择AMD_LV160芯片
#define CONFIG_AMD_LV160DB 1 /* uncomment this if you have a LV400 flash */
#if 0
#define CONFIG_AMD_LV400 1 /* uncomment this if you have a LV800 flash */
#define CONFIG_AMD_LV800 1 /* uncomment this if you have a LV800 flash */
#endif
修改2:配置AM_LV160相关参数
#ifdef CONFIG_AMD_LV160DB
#define PHYS_FLASH_SIZE 0x00200000 /* 512KB */
#define CONFIG_SYS_MAX_FLASH_SECT (35) /* max number of sectors on one chip */
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x1F0000) /* addr of environment */
#endif
b) board/Samsung/mini2440/flash.c文件
修改1:
74 #elif defined(CONFIG_AMD_LV160DB)
75 (AMD_MANUFACT & FLASH_VENDMASK) |
76 (AMD_ID_LV160DB & FLASH_TYPEMASK);
修改2:
144 case (AMD_ID_LV160DB & FLASH_TYPEMASK):
145 printf ("1x Amd29LV160DB (16Mbit)\n");
146 break;
c) include/flash.h文件
修改1:213行,修改如下
212 #define AMD_ID_LV160DT 0x22C422C4 /* 29LV160T ID (16 M, top boot sector) */
213 #define AMD_ID_LV160DB 0x22492249 /* 29LV160B ID (16 M, bottom boot sect) */
开发板使用的是spansion的s29al016m芯片,数据手册和amd的AM29LV160芯片相同,所以添加对am28al160的支持
a) include/configs/mini2440.h文件,
修改1:选择AMD_LV160芯片
#define CONFIG_AMD_LV160DB 1 /* uncomment this if you have a LV400 flash */
#if 0
#define CONFIG_AMD_LV400 1 /* uncomment this if you have a LV800 flash */
#define CONFIG_AMD_LV800 1 /* uncomment this if you have a LV800 flash */
#endif
修改2:配置AM_LV160相关参数
#ifdef CONFIG_AMD_LV160DB
#define PHYS_FLASH_SIZE 0x00200000 /* 512KB */
#define CONFIG_SYS_MAX_FLASH_SECT (35) /* max number of sectors on one chip */
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x1F0000) /* addr of environment */
#endif
b) board/Samsung/mini2440/flash.c文件
修改1:
74 #elif defined(CONFIG_AMD_LV160DB)
75 (AMD_MANUFACT & FLASH_VENDMASK) |
76 (AMD_ID_LV160DB & FLASH_TYPEMASK);
修改2:
144 case (AMD_ID_LV160DB & FLASH_TYPEMASK):
145 printf ("1x Amd29LV160DB (16Mbit)\n");
146 break;
c) include/flash.h文件
修改1:213行,修改如下
212 #define AMD_ID_LV160DT 0x22C422C4 /* 29LV160T ID (16 M, top boot sector) */
213 #define AMD_ID_LV160DB 0x22492249 /* 29LV160B ID (16 M, bottom boot sect) */
相关文章推荐
- 06-S3C2440学习之移植2012u-boot到S3C2440(移植过程三)支持NorFlash
- TX2440 ARM开发板Uboot移植(三、添加Nand Flash的有关操作支持)
- S3C2440 U-Boot移植--Norflash驱动支持- S29AL016Jhttp://blog.csdn.net/fengyaqi123/article/details/7854484
- [s3c2416x移植u-boot-2015.10]如何在u-boot工程中取消对NorFlash的支持
- 移植u-boot-2015.07-rc3之修改代码支持NorFlash(四)
- u-boot-2014.10移植第17天----添加DM9000网卡支持(一)
- U-BOOT移植过程详解: 添加一块新板子的支持
- 移植uboot之修改代码支持NorFlash记录
- u-boot-2014.10移植第18天----添加DM9000网卡支持(二)
- U-BOOT 移植过程详解:添加一块新板子的支持
- 移植u-boot-2015.07-rc3之修改代码支持NorFlash启动并真正支持NorFlash读写(五)
- S3C2440 U-Boot移植--Norflash驱动支持- S29AL016
- [置顶] u-boot-2014.10移植第19天----添加nand flash命令支持(一)
- fl2440的U-boot-2010.09移植(四) 添加NOR Flash启动支持
- U-BOOT 移植过程详解:添加一块新板子的支持
- 第一次移植uboot(3)(添加DM9000网卡支持)
- U-boot-2009.03移植之十四:支持norflash启动
- [置顶] u-boot-2014.10移植第20天----添加nand flash命令支持(二)
- u-boot-2011.03在TQ2440上的移植(3)--支持norflash启动 .
- u-boot-2016.01移植笔记之支持norflash