Ask Your Question

How to patch kernel?

asked 2013-01-06 17:31:00 -0500

gene gravatar image

updated 2013-08-20 05:46:18 -0500

FranciscoD_ gravatar image

I have some quad port Sun 501-4366 HME nics that I want to use for a bonded adsl project I am using f17 and have it mostly all setup and working, but then I noticed there is an error when pinging

[gene@gene ~]$ ping PING ( 56(84) bytes of data. 64 bytes from icmp_req=1 ttl=64 time=0.337 ms wrong data byte #54 should be 0x36 but was 0xba

I dont profess to understand why, but apparently this bug only applies to 64 bit kernel with >2g ram I find this bug report on

And this guy has published a very small patch patch:

I havent compiled a kernel since 2004 on some redhat boxes, but I found an up to date howto on here for building a custom kernel

So my questions: How easy is this actually?

Will that howto get me there? Or what problems might I hit?

Any tips or pointers.

This is a very small patch. Do I have to build the whole shebang for that? Is it not just a module?

tia for your time to reply

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2014-01-06 17:18:51 -0500

sergiomb gravatar image
cd ~/rpmbuild
wget ""
rpm -ivh kernel-3.1.2-1.fc16.src.rpm 
cp alps_Documentation.patch alps_drive.patch SOURCES/
cat kernel_spec.patch | patch SPECS/kernel.spec 
rpmbuild -bs SPECS/kernel.spec --define "_sourcedir SOURCES"
mock -r fedora-16-x86_64 --rebuild SRPMS/kernel-3.1.2-1.fc16.src.rpm --target=x86_64 --define="buildid .z590880"
cd /var/lib/mock/fedora-16-x86_64/result/
rpm -ivh kernel-3.1.2-1.z590880.fc16.x86_64.rpm kernel-devel-3.1.2-1.z590880.fc16.x86_64.rpm

you can see a patch example here : kernel_spec.patch

you also need setup mock , see: how_to_use_mock

edit flag offensive delete link more

answered 2013-08-20 04:52:05 -0500

nixfas gravatar image

Fedora 17 is not longer supported. Update to Fedora 19 and try again. For compile a kernel in a old way (i use the old way method) is easy:

1.- Download .tar.xz from and uncompress in /usr/src/ with tar Jxvf 2.- Copy a previous config file from /boot to /usr/src/linux-3.10.7/ for example: cp /boot/config-3.8.9 /usr/src/linux-3.10.7/.config 3.- make menuconfig and edit some thins that if you want 4.- make -jX where X is the number of cores of your CPU +1 5.- make modules_install 6.- make install 7.- Reboot.

For apply any patch: patch -p1 < /patch/to/the/patch into the directory of the uncompressed kernel sources.

edit flag offensive delete link more

answered 2013-08-20 05:45:45 -0500

FranciscoD_ gravatar image

The wiki link that you found works. Just follow the steps. Questions like "how easy is it?" are subjective and should not be asked. Give it a whirl.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-01-06 17:31:00 -0500

Seen: 261 times

Last updated: Jan 06 '14