LinuxQuestions.org
Review your favorite Linux distribution.
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 04-28-2008, 06:47 AM   #1
sathiyamoorthy
Member
 
Registered: Feb 2008
Posts: 32

Rep: Reputation: 15
doubt related to kernel


i have a problem that, my system boots up only in kernel 2.16.22 .,

And i have an application which requires 2.6.18 ....


It is not possible to use the 2.6.18 for my system, but how to make this application to see this 2.6.22 as 2.6.18.... Is it possible ??? ( that application is using this kernel for some internal purpose, how to make this 2.6.22 to show like 2.6.18 )
 
Old 04-28-2008, 07:20 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
what application, pls, it's kind of important to know at least what kind of application it is. Is it a kernel module or have one as a part of it ?
 
Old 04-28-2008, 05:48 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
If your application requires a particular kernel version ... rather unusual but not unheard-of ... then, by gawd, it requires that for some (good) reason, and nothing less will do.
 
Old 04-30-2008, 05:49 AM   #4
sathiyamoorthy
Member
 
Registered: Feb 2008
Posts: 32

Original Poster
Rep: Reputation: 15
kernel changing

yes, as you are saying it requires that kernel for good reason, but the reason which it requires the 2.6.18 is also present in 2.6.22.,

so am asking how to pretend this 2.6.22 as 2.6.18
 
Old 04-30-2008, 07:44 AM   #5
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Quote:
but the reason which it requires the 2.6.18 is also present in 2.6.22
It's not true, interfaces (internal / and or external) often change (that's one of the big linux problem in my point of view). That's why you have to know what is needed by your software or module in this kernel version.
 
Old 04-30-2008, 08:08 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
Yes, I'll chime in -- in the most agreeable fashion -- that the people who stipulated this kernel version must have known what they are talking about. I do not predict that your present line of effort will be fruitful.
 
Old 04-30-2008, 08:31 AM   #7
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
Well if you absolutely Must you could try editing the version string in the kernel binary. Might work, might not. But it's quick n easy, so worth a stab. Here's how:

- Make a copy of /boot/vmlinu* (whetever your kernel is called) to your home directory.
- Look at the copy using a hex editor. Search for the version string. Change it by value but NOT by length. If it was 10 chars before it shoule be 10 chars afterwards.
- Copy the kernel back to /boot/A_DIFFERENT_NAME
- If you use grub, look at the /boot/grub/menu.lst - this is the list of kernels that grub offers you at boot time. Add the new kernel. You should be able to copy one of the paragraphs defining another kernel and change the names.
- Within that same grub file there is a "timeout" which is the number of seconds grub waits before booting the default kernel. Set that to a good long time such as 20 seconds.
- Reboot, cross fingers.

To undo - Just change the grub/menu back to what it was before. Easiest if you make a backup before you start playing. You can also remove the customised Linux binary if you like, although if grub doesn't know about it anymore it's just ignored.

Have fun, have a knoppix boot disk to hand in case it all goes wrong - there are lots of ways this could happen - and have a bottle of champagne in case it goes right!

Regards, One who hasn't tried this before.
 
Old 04-30-2008, 08:40 AM   #8
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
It might be better to take a hex editor to the application. If it dies then it's its own fault for making unreasonable and unjusified demands of the kernel. It is an open surce application, right? So you could change the application code so that it accepts your kernel version, no hex editor needed. That's the freedom we are fighting for, right?

Regards, Milchbein

Last edited by Tischbein; 04-30-2008 at 08:41 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
A date related doubt Sherlock Programming 5 11-08-2007 08:50 AM
doubt regarding atomic_dec_and_lock kernel function rajesh_b Programming 1 11-28-2006 08:39 AM
Doubt on which architecture to choose for kernel compilation???? tuxfood Linux - Software 1 01-03-2006 11:30 AM
basic ncurses doubt .. related to raw() and cbreak() ... tuxfood Programming 2 08-28-2004 12:15 PM
2.4.20 Kernel has a bug..no doubt bruce1271 Linux - Hardware 1 06-13-2003 03:31 PM

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

All times are GMT -5. The time now is 10:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration