UPDATE:
The solution THUS FAR (everything after a "#" is exactly what I typed into the command line, nothing more, nothing less):
----------------------------------------------------------------------------------------------
ORIGINAL POST:
I don't know what the deal is. I know this gets asked all the time (maybe not here but it does on linux forums), but everywhere I find answers or howto's on patching and compiling, they always make references to files that don't exist, or run commands that my machine doesn't recognize or some such nonsense. So here goes:
I have a Fedora Core 4 box, a minimal server install, updated with yum. I've installed the kernel source with:
# yum install kernel-devel
It looks like the source files are located in /usr/src/kernels/2.6.13-1.1532_FC4-i686/. Here is the contents of that directory:
The solution THUS FAR (everything after a "#" is exactly what I typed into the command line, nothing more, nothing less):
This got me a src.rpm and a good rpm for i386 architecture, but I'm still trying to get a kernel optimized for the P4 (i686 architecture). When rebuilding the src.rpm, I get the following error:? # yum install kernel-devel
I'm not sure yet if I need this step or not, at the least I think I need "yum install hardlink"
download Julian's patch to root's home directory
# cd ~
# wget http://www.ssi.bg/~ja/routes-2.6.13-12.diff
download the kernel source (kernel-2.6.13-1.1532_FC4.src.rpm)
# wget http://download.fedora.redhat.com/pub/f...SRPMS/kernel-2.6.13-1.1532_FC4.src.rpm
install with:
# rpm -ivh kernel-2.6.13-1.1532_FC4.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES
# mkdir /usr/src/redhat
# mkdir /usr/src/redhat/SOURCES
# rpm -ivh kernel-2.6.13-1.1532_FC4.src.rpm
# yum install rpm-build gcc redhat-rpm-config
# cd /usr/src/redhat/SPECS/
# rpmbuild -bp --target=i686 kernel-2.6.spec
# cd /usr/src/redhat/BUILD/kernel-2.6.13/linux-2.6.13/
# cp configs/kernel-2.6.13-i686.config .config
have downloaded Julian's kernel patch to root's home directory
# patch -p1 < ~/routes-2.6.13-12.diff
# vi Makefile
changed "EXTRAVERSION = -prep" to "EXTRAVERSION = -DeadGatewayDetection"
# make oldconfig
# time make rpm
the "time" is to tell me how slow my system is![]()
???+ cp /var/tmp/kernel-2.6.13dgd-root/boot/vmlinuz-2.6.13-dgd
cp: missing destination file
Try `cp --help' for more information.
----------------------------------------------------------------------------------------------
ORIGINAL POST:
I don't know what the deal is. I know this gets asked all the time (maybe not here but it does on linux forums), but everywhere I find answers or howto's on patching and compiling, they always make references to files that don't exist, or run commands that my machine doesn't recognize or some such nonsense. So here goes:
I have a Fedora Core 4 box, a minimal server install, updated with yum. I've installed the kernel source with:
# yum install kernel-devel
It looks like the source files are located in /usr/src/kernels/2.6.13-1.1532_FC4-i686/. Here is the contents of that directory:
I want to apply Julian Anastasov's kernel patches for advanced routing (routes-2.6.13-12.diff) to this kernel and then build an rpm of the kernel so I can install it on this machine or any other machine easily. Can somebody tell me what the command is I should run? By the way, I have already downloaded routes-2.6.13-12.diff to /root/.[root@EMMRTR01 2.6.13-1.1532_FC4-i686]# ls -l
total 392
drwxr-xr-x 27 root root 4096 Oct 24 21:49 arch
drwxr-xr-x 4 root root 4096 Oct 24 21:49 crypto
drwxr-xr-x 51 root root 4096 Oct 24 21:49 drivers
drwxr-xr-x 55 root root 4096 Oct 24 21:49 fs
drwxr-xr-x 16 root root 4096 Oct 24 21:49 include
drwxr-xr-x 2 root root 4096 Oct 24 21:49 init
drwxr-xr-x 2 root root 4096 Oct 24 21:49 ipc
drwxr-xr-x 4 root root 4096 Oct 24 21:49 kernel
drwxr-xr-x 5 root root 4096 Oct 24 21:49 lib
-rw-r--r-- 1 root root 44488 Oct 20 00:46 Makefile
drwxr-xr-x 2 root root 4096 Oct 24 21:49 mm
-rw-r--r-- 1 root root 217435 Oct 20 00:47 Module.symvers
drwxr-xr-x 33 root root 4096 Oct 24 21:49 net
drwxr-xr-x 10 root root 4096 Oct 24 21:49 scripts
drwxr-xr-x 4 root root 4096 Oct 24 21:49 security
drwxr-xr-x 16 root root 4096 Oct 24 21:49 sound
drwxr-xr-x 2 root root 4096 Oct 24 21:49 usr
[root@EMMRTR01 2.6.13-1.1532_FC4-i686]#
