LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1064|回复: 8

gcc4.0 编译安装2.6.13.2一次过关,比意想中的顺利多了。

[复制链接]
发表于 2005-9-24 12:35:05 | 显示全部楼层 |阅读模式
nvidia, nforce 下了新驱动,也没问题。
倒是以前自已写的几个驱动要小改一下。
发表于 2005-9-25 14:25:53 | 显示全部楼层
2.6.13以前有问题,后来新的都没问题了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-25 15:35:08 | 显示全部楼层
新内核定义了EXPORT_SYMBOL_GPL,比较头痛................
回复 支持 反对

使用道具 举报

发表于 2005-9-25 20:11:23 | 显示全部楼层
楼主可不可以说说编译内核的过程
偶也想学学
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-25 21:36:35 | 显示全部楼层
以前编译过。所以很简单,
kernel.org下载source 解压。
apt-get gcc4 and kernel-package
cd source directory
make oldconfig
make menuconfig 细调一下,2.6.13 比2.6.8多的选项对我影响比较大的是时钟hz的选择
make-kpkg buildpackage
cd ..
dpkg -i kernel-image.......
回复 支持 反对

使用道具 举报

发表于 2005-9-26 07:09:15 | 显示全部楼层
loveDebian:/usr/src/linux-2.6.13.2# make-kpkg buildpackage
/usr/bin/make -f /usr/share/kernel-package/rules real_stamp_clean
make[1]: Entering directory `/usr/src/linux-2.6.13.2'
test ! -f .config || cp -pf .config config.precious
test -f Makefile && \
            /usr/bin/make    ARCH=i386 distclean
make[2]: Entering directory `/usr/src/linux-2.6.13.2'
  CLEAN   scripts/basic         
..............................................
..............................................
..............................................
make[1]: Entering directory `/usr/src/linux-2.6.13.2'
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  SYMLINK include/asm -> include/asm-i386
/bin/sh: -c: line 0: unexpected EOF while looking for matching `"'
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [include/linux/version.h] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13.2'
make: *** [stamp-kernel-configure] Error 2
loveDebian:/usr/src/linux-2.6.13.2#            


so what should I do next ?
回复 支持 反对

使用道具 举报

发表于 2005-9-26 13:09:48 | 显示全部楼层
TOO STRANGE !!

After rm and re-load and re-tar , I'm using the new kernel now !
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-26 14:31:13 | 显示全部楼层
congratulation!!!
回复 支持 反对

使用道具 举报

发表于 2005-9-29 23:04:27 | 显示全部楼层
谢谢!贺!
回复 支持 反对

使用道具 举报

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

本版积分规则

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