U-Boot2010.06移植(2440)-----移植NorFlash驱动
来源:互联网 发布:java读取xml配置文件 编辑:程序博客网 时间:2024/06/09 22:18
1、修改include/configs/smdk2440.h
(1)注释掉AM29LV400和AM29LV800的定义,并添加AM29LV160的定义#if 0
#define CONFIG_AMD_LV400 1 /* uncomment this if you have a LV400 flash */
#define CONFIG_AMD_LV800 1 /* uncomment this if you have a LV800 flash */
#endif
#define CONFIG_AMD_LV160 1
(2)根据实际NorFlash的信息定义一些宏
#ifdef CONFIG_AMD_LV160
#define PHYS_FLASH_SIZE 0x00200000 /* 容量大小2MB */
#define CONFIG_SYS_MAX_FLASH_SECT (35) /* 最大扇区个数,查看手册*/
#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_ENV_OFFSET) /* 环境变量的地址 */
#endif
(3)定义环境变量宏
#define CONFIG_ENV_OFFSET 0x100000 //16M 环境变量的偏移地址,即Uboot分区中params分区
#define CONFIG_ENV_SIZE 0x20000 /* Total Size of Environment Sector */ //2M params分区大小
2、修改board/samsung/smdk2440/flash.c
(1)在flash_init函数中加入flash_id#elif defined(CONFIG_AMD_LV800)
(AMD_MANUFACT &FLASH_VENDMASK) |
(AMD_ID_LV800B &FLASH_TYPEMASK);
#elif defined(CONFIG_AMD_LV160)
(AMD_MANUFACT & FLASH_VENDMASK) |
(AMD_ID_LV160B & FLASH_TYPEMASK);
#else
(2)flash_print_info函数加入显示flash_info语句
case (AMD_ID_LV800B &FLASH_TYPEMASK):
printf("1x Amd29LV800BB (8Mbit)\n");
break;
case (AMD_ID_LV160B & FLASH_TYPEMASK):
printf ("1x Amd29LV160B (2M)\n");
break;
0 0
- U-Boot2010.06移植(2440)-----移植NorFlash驱动
- U-Boot2010.06移植(2440)-----移植NandFlash驱动
- U-Boot2010.06移植(2440)-----移植网卡DM9000驱动
- u-boot2010.06的移植(4)——支持norflash
- U-Boot2010.06移植(2440)-----基本移植
- U-Boot2010.06移植总结
- U-Boot2010.06移植(2440)-----添加MTD(NAND)分区
- U-Boot2010.06移植(2440)-----添加支持YAFFS2文件系统
- u-boot2010.06的移植(1)——准备移植
- U-boot移植-norflash
- uboot norflash 驱动移植
- S3C2440 U-Boot移植--Norflash驱动支持- S29AL016
- Mini2440 u-boot2010-3的移植
- mini2440 Norflash驱动移植过程
- mini2440 Norflash驱动移植过程
- 移植u-boot2012.04.1 -》2440 (二)norflash 识别
- u-boot-2014.04移植FL2440(norflash启动)
- 移植u-boot-2012.04----支持NORFlash启动
- java se 04
- jQuery 事件
- golang文件读取介绍
- JavaScript实战中会用到的算法
- NoSuchBeanDefinitionException: No qualifying bean of type 错误误区
- U-Boot2010.06移植(2440)-----移植NorFlash驱动
- php的mysql学习(一)
- krpano 全景图在微信里面被屏蔽的解决办法
- 接口返回json串
- Cannot load libphp5.so into server: undefined symbol: __dn_expand
- 构建灵活的 UI -Activity 运行时为 Activity 添加片段
- Spring Boot 性能优化
- 关系型数据库和关系型数据库管理系统
- php视频格式转换---------ffmpeg-php扩展与ffmpeg.exe安装与使用