OK6410 UBOOT 移植(4)
来源:互联网 发布:x86平板安装ubuntu 编辑:程序博客网 时间:2024/04/30 04:36
修改smdk6410.h
在#ifndef __CONFIG_H
#define __CONFIG_H 之后添加
#definevirt_to_phys(x) virt_to_phy_smdk6410(x)
#defineNAND_DISABLE_CE() (NFCONT_REG |= (1 << 1))
#define NAND_ENABLE_CE() (NFCONT_REG &= ~(1 << 1))
#define NF_TRANSRnB() do { while(!(NFSTAT_REG & (1 << 0))); }while(0)
/*
* Architecture magic and machine type
*/
//#define MACH_TYPE 1270
#define MACH_TYPE 1626 //这里是定义6410的ID与LINUX内核是相配合的
修改内存值
/*
* Size of malloc() pool
*/
//#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 1024 * 1024)
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 512 * 1024)
延迟时间
#defineCONFIG_BOOTDELAY 10
修改SDRAM
//#defineCONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x7e00000) /* 126MBin DRAM */
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x9e00000)/* 126MB in DRAM */
修改系统时间
//#defineCONFIG_SYS_HZ 1000
#define CONFIG_SYS_HZ 1562500
修改堆栈
/*-----------------------------------------------------------------------
* Stack sizes
*
* The stack sizes are set up in start.S using the settings below
*/
//#define CONFIG_STACKSIZE 0x40000 /* regular stack 256KB */
#define CONFIG_STACKSIZE 0x80000 /* regular stack 512KB*/
修改NANDFLASH
//#definePHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB in Bank #1 */
#define PHYS_SDRAM_1_SIZE 0x10000000 /* 256 MB in Bank#1 */
Size of Environment Sector 修改
//#defineCONFIG_ENV_SIZE 0x4000 /* Total Size of Environment Sector */
#define CONFIG_ENV_SIZE 0x80000 /* Total Size of EnvironmentSector */
bootcommand修改
#defineCONFIG_BOOTCOMMAND "nand read 0xc0018000 0x60000 0x1c0000;" \
"bootm 0xc0018000"
#else
#define CONFIG_SYS_MAPPED_RAM_BASE CONFIG_SYS_SDRAM_BASE
//#define CONFIG_BOOTCOMMAND "nand read 0x50018000 0x600000x1c0000;" \
// "bootm 0x50018000"
#define CONFIG_BOOTCOMMAND "nand read 0x50018000 0x1000000x500000;" \
"bootm 0x50018000"
#endif
修改段偏移地址
#defineCONFIG_ENV_OFFSET 0x0080000
页大小
/* NANDchip page size */
//#define CONFIG_SYS_NAND_PAGE_SIZE 2048
#define CONFIG_SYS_NAND_PAGE_SIZE 4096
块大小
/* NANDchip block size */
//#define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024)
#define CONFIG_SYS_NAND_BLOCK_SIZE (512 * 1024)
校验位
/* NANDchip page per block count */
//#define CONFIG_SYS_NAND_PAGE_COUNT 64
#define CONFIG_SYS_NAND_PAGE_COUNT 128
- OK6410 UBOOT 移植(4)
- OK6410 uboot移植(1)
- OK6410 UBOOT移植(2)
- OK6410 UBOOT移植(3)
- OK6410 UBOOT移植(5)
- OK6410 UBOOT移植(6)
- OK6410 UBOOT 移植(7)
- OK6410 UBOOT移植(8)
- ok6410 uboot移植1
- OK6410之uboot移植
- OK6410之uboot移植
- ok6410 uboot移植
- uboot移植OK6410
- OK6410之uboot移植
- ok6410 uboot nandflash移植
- OK6410平台下uboot的移植(第一步)
- OK6410之uboot移植(4)——uboot启动代码植及支持nand flansh启动
- OK6410-A开发板学习-⑦uboot移植(4) uboot起不来问题
- 5 Linux Touch Command Examples (How to Change File Timestamp)
- centos install network as bridge
- poj 3067
- Struts2,Hibernate,Spring自定义配置文件路径
- java读取txt文本中文乱码问题
- OK6410 UBOOT 移植(4)
- 婚外情网站盯上法国
- Object-C 中的Selector 概念
- Ubuntu下编译安装FFmpeg
- 动手写操作系统2_开发环境调整_20121122
- Flex中鼠标框选绘图,及解决绘图被Flex组件遮挡的问题
- return false 正确运用
- (C#)GDI+简单绘图画矩形
- 如何把0指数关键词做到有指数