u-boot移植(五)添加norflash支持
来源:互联网 发布:unity3d培训机构那个好 编辑:程序博客网 时间:2024/06/06 09:24
添加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) */
- u-boot移植(五)添加norflash支持
- 移植u-boot-2015.07-rc3之修改代码支持NorFlash启动并真正支持NorFlash读写(五)
- u-boot移植(三)使支持norflash
- 移植u-boot-2012.04----支持NORFlash启动
- U-boot移植-norflash
- U-boot-2009.03移植之十四:支持norflash启动
- S3C2440 U-Boot移植--Norflash驱动支持- S29AL016
- U-boot-2009.03移植之十四:支持norflash启动
- u-boot-2016.01移植笔记之支持norflash
- 移植u-boot-2015.07-rc3之修改代码支持NorFlash(四)
- [s3c2416x移植u-boot-2015.10]如何在u-boot工程中取消对NorFlash的支持
- u-boot移植(五)使支持DM9000
- u-boot移植(四)添加网络支持
- u-boot移植(六)添加nandflash支持
- 06-S3C2440学习之移植2012u-boot到S3C2440(移植过程三)支持NorFlash
- u-boot-2014.04移植FL2440(norflash启动)
- u-boot-2011.03在TQ2440上的移植(3)--支持norflash启动
- u-boot-2011.03在TQ2440上的移植(3)--支持norflash启动 .
- u-boot移植(三)让u-boot在开发板上跑起来
- AutoJpegTrunk-批量移除jpg文件中的元数据(Metadata)
- u-boot移植(四)添加网络支持
- Logotype Maker-功能强大的免费在线logo设计工具
- WPF 自定义grid spliter的 Style
- u-boot移植(五)添加norflash支持
- static在C语言中得用法(面向过程)
- 基本操作
- NYOJ 401 Coin Game
- Linux常用命令分类,之用户系统级别的命令
- java静态变量与C静态变量的区别
- u-boot移植(六)添加nandflash支持
- 如何在ASP.NET消息框中换行
- 用汇编的眼光看C++(开篇)