LinuxQuestions.org
Visit Jeremy's Blog.
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 04-28-2008, 05: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, 06:20 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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, 04:48 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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, 04: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, 06: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, 07:08 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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, 07: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, 07: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 07:41 AM.
 
  


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

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

All times are GMT -5. The time now is 01:37 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