|
|
发表于 2006-11-28 23:33:51
|
显示全部楼层
需要对内核源中的r8169.c打补丁, 重新编译得到新的内核:
具体步骤:
01) download
http://mirrors.kernel.org/fedora ... -1.2798.fc6.src.rpm
02) rpm -ivh kernel-2.6.18-1.2798.fc6.src.rpm
03) cd /usr/src/redhat/SOURCES; cp linux-2.6-r8169-update.patch .
04) cd /usr/src/redhat/SPECS
05) cp kernel-spec.patch . ; patch -p0 < kernel-spec.patch
06) rpmbuild -ba kernel-2.6.spec
07) cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18.i386/
08) make
09) make modules_install
10) make install
11) reboot
注:
1) 8169的补丁由此下载
http://www.redhat.com/archives/f ... r/bz2cn5ViWMCwG.bz2, 存盘解开后的文件名改名为linux-2.6-r8169-update.patch
2) kernel-spec.patch 内容如下, 将以下内容copy下来存为kernel-spec.patch
*** kernel-2.6.spec.orig 2006-11-02 01:44:41.000000000 +0100
--- kernel-2.6.spec 2006-11-02 02:03:47.000000000 +0100
*************** Summary: The Linux kernel (the core of t
*** 5,11 ****
%define buildup 1
# Only used on archs without run-time support (ie ppc, sparc64)
! %define buildsmp 0
%define buildpae 0
# Whether to apply the Xen patches, leave this enabled.
%define includexen 1
--- 5,11 ----
%define buildup 1
# Only used on archs without run-time support (ie ppc, sparc64)
! %define buildsmp 1
%define buildpae 0
# Whether to apply the Xen patches, leave this enabled.
%define includexen 1
*************** Patch4: git-agpgart.patch
*** 306,311 ****
--- 306,312 ----
# Patches 10 through 99 are for things that are going upstream really soon.
Patch10: linux-2.6-utrace.patch
+ Patch11: linux-2.6-r8169-update.patch
# enable sysrq-c on all kernels, not only kexec
Patch20: linux-2.6-sysrq-c.patch
*************** cd linux-%{kversion}.%{_target_cpu}
*** 817,822 ****
--- 818,824 ----
# Rolands utrace ptrace replacement.
%patch10 -p1
+ %patch11 -p0
# sysrq works always
%patch20 -p1 |
|