您的位置:首页 > 其它

make zImage时没有regs-nand.h以及 nand.h文件解决方法

2012-04-17 14:21 288 查看
drivers/mtd/nand/s3c2410.c:63:32: asm/arch/regs-nand.h:No such file or directory

drivers/mtd/nand/s3c2410.c:64:27: asm/arch/nand.h:No such file or directory

打开drivers/mtd/nand/s3c2410.c, 修改第62行及63行中所包含的头文件如下所示:

#include <asm/io.h>

#if 0 // sean chi 17Aug2010, modified.

#include <asm/arch/regs-nand.h>

#include <asm/arch/nand.h>

#else

#include <asm/plat-s3c/regs-nand.h>

#include <asm/plat-s3c/nand.h>

#endif

#ifdef CONFIG_MTD_NAND_S3C2410_HWECC

static int hardware_ecc = 1;

#else

static int hardware_ecc = 0;

#endif

修改后重新编译通后,运行make zImage生成zImage文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐