云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 移植Linux内核到norflash

移植Linux内核到norflash

  • 62 次阅读
  • 3 次下载
  • 2026/1/10 23:57:46

与前面不同的是,它打印了芯片的信息,如厂商ID、芯片ID等等。 这是我想不通的地方,也是我采用新内核的原因。

不过,在这片nor flash上使用jffs2文件系统却不成功,出现了大量的警告信息,提示说制作根文件系统时的erase block有问题。 s3c2440-flash.c源代码: /*

* $Id: s3c2410.c,v 1.00 2006/12/05 10:18:14 gleixner Exp $ *

* Handle mapping of the NOR flash on Cogent S3C2410 boards *

* Copyright 2002 SYSGO Real-Time Solutions GmbH * *

This program is free software; you can redistribute it and/or modify *

it under the terms of the GNU General Public License version 2 as

* published by the Free Software Foundation. */ /*

* Late Lee

*

This file is modified and the file name has changed to ‘s3c2440-flash.c’. *

The SMDK2440 board has only one flash bank which is a 64Mbit(4Mx16) SST SST39VF6401B; * 128 x 64 KiB blocks. *

* This code is GPLed. */

#include #include #include #include #include #include #include #include #ifdef CONFIG_MTD_PARTITIONS #include #endif

#define WINDOW_ADDR 0x01000000 /* physical properties of flash */

#define WINDOW_SIZE 0x800000 /* 8MB */ #define BUSWIDTH 2 /* 2*8 = 16 */

#define FLASH_BLOCKSIZE_MAIN 0x10000 /* 64KB(0x10000) 128 blocks */

#define FLASH_NUMBLOCKS_MAIN 128

/* can be “cfi_probe”, “jedec_probe”, “map_rom”, NULL }; */ #define PROBETYPES { “cfi_probe”, “jedec_probe”, “map_rom”, NULL }

#define MSG_PREFIX “S3C2440-NOR:” /* prefix for our printk()’s */

#define MTDID “s3c2440-nor” /* for mtdparts= partitioning */

#define DEBUG_FLASH #ifdef DEBUG_FLASH

#define flash_debug(fmt, args…) printk(KERN_NOTICE “## LL debug “ MSG_PREFIX fmt, ##args) #else

#define flash_debug(fmt, args…) #endif

static struct mtd_info *mymtd;

struct map_info s3c2440nor_map = {

.name = “NOR Flash(SST39VF6401B) on S3C2440″, .size = WINDOW_SIZE, .bankwidth = BUSWIDTH, .phys = WINDOW_ADDR, };

#ifdef CONFIG_MTD_PARTITIONS /*

* MTD partitioning stuff */

static struct mtd_partition static_partitions[] = { /*0: U-Boot: 0-0x30000 0x30000=192KB*/ {

.name = “U-Boot”, .size = 0x030000, .offset = 0x0, },

/*1: Kernel: 0x30000-0x240000 0x210000=2112KB=2.0625MB*/ {

.name = “Kernel”, .size = 0x210000, .offset = 0x30000,

搜索更多关于: 移植Linux内核到norflash 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

与前面不同的是,它打印了芯片的信息,如厂商ID、芯片ID等等。 这是我想不通的地方,也是我采用新内核的原因。 不过,在这片nor flash上使用jffs2文件系统却不成功,出现了大量的警告信息,提示说制作根文件系统时的erase block有问题。 s3c2440-flash.c源代码: /* * $Id: s3c2410.c,v 1.00 2006/12/05 10:18:14 gleixner Exp $ * * Handle mapping of the NOR flash on Cogent S3C2410 boards * * Copyright 2002 SYSGO Real-Time Solutions GmbH * * This program is free software; you can

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com