QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2561|回复: 1

请教:新手移植2.6内核升级出错

[复制链接]
发表于 2006-10-31 21:16:31 | 显示全部楼层 |阅读模式
HHARM9-EDU ARM9 2410教学平台
内核版本:2.6.18.1
由于本人的机器OS是FC5(Linux localhost.localdomain 2.6.16.1 #3 SMP Sun Sep 17 20:38:49 CST 2006 i686 i686 i386 GNU/Linux),所以就没有按照公司建议安装的交叉编译环境来编译(版本低),而是使用了公司提供的/opt/host/armv4l/bin目录下的编译器编译
下载内核文件解压后修改Makefile文件:
ARCH                ?=arm
CROSS_COMPILE        ?=/opt/host/armv4l/bin/armv4l-unknown-linux-
保存,然后make menuconfig,修改选项->保存退出
make zImage出错如下:
[root@localhost linux-2.6.18.1]# make zImage
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-lh7a40x/Kconfig:17:warning: 'select' used by config symbol 'MACH_LPD7A400' refer to undefined symbol 'HAS_TOUCHSCREEN_ADS7843_LH7'
arch/arm/mach-lh7a40x/Kconfig:27:warning: 'select' used by config symbol 'MACH_LPD7A404' refer to undefined symbol 'HAS_TOUCHSCREEN_ADC_LH7'
  CHK     include/linux/version.h
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-s3c2410
make[1]: “include/asm-arm/mach-types.h”是最新的。
  CHK     include/linux/utsrelease.h
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/stddef.h:4,
                 from include/linux/posix_types.h:4,
                 from include/linux/types.h:14,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:44,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/compiler.h:46: #error Sorry, your compiler is too old/not recognized.
In file included from include/linux/slab.h:143,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:70,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/kmalloc_sizes.h:5: warning: `CONFIG_X86_L1_CACHE_SHIFT' is not defined
include/linux/kmalloc_sizes.h:9: warning: `CONFIG_X86_L1_CACHE_SHIFT' is not defined
In file included from include/linux/slab.h:173,
                 from include/linux/percpu.h:4,
                 from include/linux/rcupdate.h:41,
                 from include/linux/pid.h:4,
                 from include/linux/sched.h:70,
                 from arch/arm/kernel/asm-offsets.c:13:
include/linux/kmalloc_sizes.h:5: warning: `CONFIG_X86_L1_CACHE_SHIFT' is not defined
include/linux/kmalloc_sizes.h:9: warning: `CONFIG_X86_L1_CACHE_SHIFT' is not defined
arch/arm/kernel/asm-offsets.c:15: asm/mach/arch.h: ?????????
arch/arm/kernel/asm-offsets.c:17: asm/memory.h: ?????????
arch/arm/kernel/asm-offsets.c:87: warning: `__LINUX_ARM_ARCH__' is not defined
make[1]: *** [arch/arm/kernel/asm-offsets.s] 错误 1
make: *** [prepare0] 错误 2
反复几遍总是说asm-offset.s文件的问题
看其他资料,要修改一下arch/arm/mach-s3c2410/devs.c 文件,加入如下代码:
static struct mtd_partition partition_info[] ={
{
name: "loader",
size: 0x00020000,
offset: 0,
}, {
name: "param",
size: 0x00010000,
offset: 0x00020000,
}, {
name: "kernel",
size: 0x001c0000,
offset: 0x00030000,
}, {
name: "root",
size: 0x00200000,
offset: 0x00200000,
mask_flags: MTD_WRITEABLE,
}, {
name: "user",
size: 0x03af8000,
offset: 0x00400000,
}
};

struct s3c2410_nand_set nandset ={
nr_partitions: 5 ,
partitions: partition_info ,
};

struct s3c2410_platform_nand superlpplatform={
tacls:0,
twrph0:30,
twrph1:0,
sets: &nandset,
nr_sets: 1,
};
加入后make zImage仍然失败~
请教
 楼主| 发表于 2006-11-8 14:21:47 | 显示全部楼层
更换高版本的编译器后编译成功,下载到实验平台无法引导~
解压缩的过程停住了~,求解~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-22 10:17 , Processed in 0.080238 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表