QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1821|回复: 17

编译2.5.9内核出错..

[复制链接]
发表于 2003-5-13 12:22:11 | 显示全部楼层 |阅读模式
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.5.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
init/main.c:279: redefinition of `setup_per_cpu_areas'
init/main.c:275: `setup_per_cpu_areas' previously defined here
make: *** [init/main.o] Error 1

我用的是make menuconfigp配置的内核。
发表于 2003-5-13 22:00:21 | 显示全部楼层
check the code in main.c and remove one definition, and try again.

static inline void setup_per_cpu_areas(void)

very strange. so why u still try the 2.5.9. why not higher?
回复

使用道具 举报

 楼主| 发表于 2003-5-14 16:36:00 | 显示全部楼层
2.5.9是2.5.x里最高的了吧。
回复

使用道具 举报

发表于 2003-5-14 21:42:55 | 显示全部楼层
no, currently 2.5.69 is the latest. 69 > 9.
回复

使用道具 举报

 楼主| 发表于 2003-5-15 16:48:17 | 显示全部楼层
哦,是这样啊,那我还是用2.5.69吧。
回复

使用道具 举报

发表于 2003-5-15 22:03:31 | 显示全部楼层
good luck
回复

使用道具 举报

 楼主| 发表于 2003-5-16 09:19:23 | 显示全部楼层
键盘鼠标都不能用,这两项应该怎么配置,我的键盘和鼠标都是usb的。
回复

使用道具 举报

 楼主| 发表于 2003-5-16 09:26:30 | 显示全部楼层
什么是HID设备?在2.4.20里有一项input core device好像是跟我的键盘鼠标有关,选中这个,在选中下面的键盘和鼠标选项,在usb设备里选中hid设备,和紧跟在它下面的两项,绝对不选(1)下面跟键盘鼠标的两项。这样,我的键盘和鼠标都就可以用了。如果选中(1),则键盘和鼠标都不能用。在2.5.69里好像跟2.4.20不一样,我怎么配置都不成功,而且我强制关机还把我编译的2.4.20弄坏了,启动不起来了,现象跟用make install安装内核是不修改grub.conf里的root那一项一样。我很郁闷。
回复

使用道具 举报

发表于 2003-5-16 09:27:32 | 显示全部楼层
which kernel version u use? do u include usb support? does u old kernel support it?
回复

使用道具 举报

 楼主| 发表于 2003-5-16 09:33:41 | 显示全部楼层
2.5.69
按照我上面说的配置,在2.4.20下工作很好,两触摸板都能很好的工作。
回复

使用道具 举报

发表于 2003-5-16 09:42:28 | 显示全部楼层
before u shutdown manually, u can try sync command several commands that can reduce the chance u lose data.
i am not sure about usb mouse. i still use ps2 one.
回复

使用道具 举报

发表于 2003-5-17 16:16:34 | 显示全部楼层
为什么我的2.5.69内核编译完成后,没有办法加载模块?一定要编译进内核才可以用的。
回复

使用道具 举报

 楼主| 发表于 2003-5-17 23:01:28 | 显示全部楼层
对,我的好像也是不能加载内核,我好像已经编译了所需要的内核,但是启动的时候好像提示找不到,键盘没法用,我也不能好好看一下,苦恼。
有关于2.5.69的文档吗?
回复

使用道具 举报

发表于 2003-5-18 10:19:08 | 显示全部楼层
do u install the
*  sys-apps/module-init-tools
      Latest version available: 0.9.11-r3
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 313 kB
      Homepage:    http://www.kernel.org/pub/linux/kernel/people/rusty/modules
      Description: Kernel module tools for the development kernel >=2.5.48
回复

使用道具 举报

 楼主| 发表于 2003-5-18 10:44:36 | 显示全部楼层
我应该是装了,我在顶上看到了这个问题,我把他下在下来了,好像是安装了。我再看一下。这个工具是在老的内核上安装就行了吧?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-19 18:51 , Processed in 0.054092 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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