LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2004, 07:44 AM   #1
ashutoshsharma
LQ Newbie
 
Registered: Mar 2004
Location: Ahemdabad
Distribution: Red Hat
Posts: 6

Rep: Reputation: 0
Cool Query about kernel patches


Hi folks...
I have applied a patch of kernel 2.2.18 to my existing kernel 2.4.4(red hat). What does means? Is it that the new kernel will behave entirely like the version 2.2.18 or have features of both versions 2.4.4 and 2.2.18.
Since the some of the files like "linux/pci.h" still shows data structures like "struct pci_driver" but when i use them ,they are not recognised and give a compilation error.

Please reply my query as soon as possible.
Thanx in advance,

Ashutosh
 
Old 03-13-2004, 08:53 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Quote:
Is it that the new kernel will behave entirely like the version 2.2.18 or have features of both versions 2.4.4 and 2.2.18.
I think that it will have broken features of 2.4.4 and 2.2.18 kernels. The aim of a patch is to upgrade kernel or modify some kernel features, but not to downgrade.
Moreover, each patch is done for a specific kernel version, as it is based on diff utility. For example if you download kernel-2.4.25patch to upgrade your kernel, you must have 2.4.24 kernel on your system, else the patch won't be correctly applied and may mess up your system
So I think that you make a terrible mistake by applying this pacth... Don't be surprised if your kernel have strange behaviors or if you can't successfully compile it anymore.
 
Old 03-14-2004, 10:28 PM   #3
ashutoshsharma
LQ Newbie
 
Registered: Mar 2004
Location: Ahemdabad
Distribution: Red Hat
Posts: 6

Original Poster
Rep: Reputation: 0
Question What to do now?

Hello Oliv'

First of all thanks for the reply.

Now actually I have a problem that I am using redhat7.1 kernel version-2.4.2. But as I had to install RTLinux 3.0 so i needed patch of kernel -2.2.18. Because only compatible kernel with this RTLinux version is 2.2.18. And moreover there are other RTLinux versions which are not stable and may lead to system instability or crash.
So can you suggest me any way to do this so that I can have my existing kernel features also and the new kernel (i..e. older version of kernel).

Thanks in advance,
Regards,
Ashutosh Sharma
 
Old 03-15-2004, 12:26 PM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello ,

So it seems that you want a real time kernel If you don't really to run hard real-time applications (I mean really critical)... you can patch your current kernel with low-latency or preempt-kernel patch. It will give you very good performances for multimedia or graphical applications (soft real-time).
Now if you really need hard real-time... I suggest you to download 2.2.18 sources from kernel.org and install RT-Linux with them. Then at boot time, choose between RT-Linux kernel or your Red-Hat7 kernel...
Cause I can tell you to try to download 2.2.18 sources and install RT-Linux with them and then patch your kernel until 2.4.X version but this patch steps may break some RT-Linux features
Regards,

Oliv'
 
Old 09-14-2004, 09:43 AM   #5
parinita
LQ Newbie
 
Registered: Sep 2004
Location: india
Distribution: mandrake, redhat
Posts: 3

Rep: Reputation: 0
RTLinux


i am trying to install rtlinux...i've gone through most guides
available online..
i tried patching it with linux kernel 2.2.18....however i got some errors while trying to create the bzImage.
i was told that u cannot repatch a kernel again,so i deletedthe old kernel(rm -rf linux...) and tried to untar a new kernel from ftp.kernel.org ....however doing so gave me an "unexpected end of file" error
i really need to install rtlinux .....any suggestions
 
Old 09-15-2004, 07:14 AM   #6
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

Quote:
"unexpected end of file"
Have you checked the signature of the archive you've downloaded ?
Even if you know it, I repost the link of the RTLinux Howto
Now to really help you we need more precisions about errors you get

Oliv'
 
Old 09-15-2004, 09:55 AM   #7
parinita
LQ Newbie
 
Registered: Sep 2004
Location: india
Distribution: mandrake, redhat
Posts: 3

Rep: Reputation: 0
installing rtlinux

thanks for the reply.
in the link that u sent me there was no mention of creating a link from usr/src/rtlinux to usr/src/linux ...and then patching it(i.e. rtlinux kernel patch).
we do need to do that don't we ??
also how do u check the signature??

when i say i am a newbie...it is not an understatement.
 
Old 09-15-2004, 10:29 AM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
To check the signature: download the .sign associated to your archive and do:
Code:
gpg --verify linux-2.2.18.tar.gz.sign linux-2.2.18.tar.gz
for more info: http://www.kernel.org/signature.html
About installation the following link seems to be more complete
http://www.brivers.net/rtlinux-install-howto.html

Oliv'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
Kernel patches eqxro SUSE / openSUSE 4 07-15-2005 08:18 AM
kernel patches? cuchumino Linux - Newbie 1 11-10-2004 05:28 PM
kernel patches dominant Slackware 7 08-26-2004 09:22 AM
Kernel and patches. sourceman Linux - General 3 03-14-2002 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration