LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vmware and cko kernel patch don't get along? (https://www.linuxquestions.org/questions/linux-software-2/vmware-and-cko-kernel-patch-dont-get-along-251919/)

cuchumino 11-06-2004 05:21 PM

vmware and cko kernel patch don't get along?
 
im having problems running vmware with the cko patch. Vmware asks me to run vmware-config.pl, and when i do, i get this....

Code:


The kernel defined by this directory of header files does not have the same
address space size as your running kernel.
 
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

When i patched cko in the 2.6.9 source, i did it on a clean 2.6.9 source, and after it patched, i called it linux-2.6.9-cko2 and then compiled, in order to prevent it from screwing up the good 2.6.9 source.

Any help on how to get it running? Cko is a great patch, that imho really makes linux quicker. I wouldn't want to roll back to 2.6.9 just cuz i can't use vmware on it.

Tinkster 11-06-2004 07:09 PM

Maybe you didn't symlink the cko kernel to linux,
and the header vmware finds belongs to the original
version?


Cheers,
Tink

cuchumino 11-06-2004 08:27 PM

yea i did that. linked it to the cko source. it seems as if it doesn't recognizes it....

Tinkster 11-06-2004 10:42 PM

Did you give that cko kernel an extraversion
that shows in uname -a?


Cheers,
Tink

cuchumino 11-06-2004 10:48 PM

prolly not, cuz i dont understand what you mean by that.
:D
what do you mean by that?

Tinkster 11-07-2004 12:02 AM

Well ... when you compile the new (patched) kernel you
copied it to a new directory to maintain the old one untouched.

However, the Makefile defines as who/what the kernel
identifies itself in e.g. the uname command, or where its
modules come to live. Basically you'd use extraversion
to make sure that you're actually using the kernel you
think you are using. :)

Examples:
Code:

cd /usr/src/linux
$ head -n 4 Makefile
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 27
EXTRAVERSION =

Code:

$ uname -r
2.4.27



Cheers,
Tink

cuchumino 11-07-2004 09:57 AM

hmm is this right?

Code:

bash-2.05b# head -n 4 Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 9
EXTRAVERSION =-cko2
bash-2.05b# uname -r
2.6.9


Tinkster 11-07-2004 10:36 AM

The head is fine, the current kernel just isn't the cko :}

/me wonders about the power of imagination ;)



Cheers,
Tink

cuchumino 11-07-2004 12:00 PM

lol, i was currently using the 2.6.9 kernel. Its just that at the moment i need to use vmware. I will post as soon as i don't need to use vmware and can log into the cko kernel.

cuchumino 11-07-2004 04:37 PM

this is what im getting, i am currently running the 2.6.9-cko kernel

Code:

bash-2.05b#  head -n 4 Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 9
EXTRAVERSION =-cko2
bash-2.05b# uname -r
2.6.9-cko2

it seems to be ok. dunno what to do...

Tinkster 11-07-2004 09:46 PM

Hmmmm - did you ask vmware support?


Cheers,
Tink

cuchumino 11-07-2004 11:41 PM

no. :rolleyes: not yet

tho i have looked round some forums as of, havn't found anything

cuchumino 11-09-2004 05:38 PM

found the solution.... i posted it here at 8dimensional.

here is what i posted there

Code:

How do I get Vmware
First install the Vmware RPM (or tarball) and then open up vmware-config.pl and look for the section:

$header_page_offset = direct_command(
shell_string($gHelper{'echo'}) . ' '
. shell_string('#define __KERNEL__' . "\n" . '#include
<
asm/page.h
>
'
. "\n" . $pattern . ' __PAGE_OFFSET') . ' | '
. shell_string($gHelper{'gcc'}) . ' ' . shell_string('-I' . $answer)
. ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
. shell_string($pattern));
chomp($header_page_offset);
$header_page_offset =~ s/^$pattern \(0x([0-9a-fA-F]{8}).*$/$1/;
if ($header_page_offset =~ /[0-9a-fA-F]{8}/) {
# We found a valid page offset
if (not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {
if ($source eq 'user') {
print wrap('The kernel defined by this directory of header files
does ' . 'not have the same address space size as your
running ' . 'kernel.' . "\n\n", 0);
}
return '';
}
}


and comment the final return statement. Once you have that download the any.any update from here and untar it. Go into the directory and run runme.pl and follow instructions.


if there's any problems with me posting a link to another forum, plz let me know.

thanx for your time and patience.

Tinkster 11-09-2004 11:51 PM

No problem ... this is a fair enough thing to do,
assuming that this is not your own site ;)


Problems with links to other sites only arise if
people come here to advertise their own site.
(this statement is cut rather short and incomplete,
look at the spirit it's said in, not the words).



Cheers,
Tink

cuchumino 11-10-2004 04:46 PM

lol yea spammers suck. :)

the thing is that i had put out this post at various forums, such as fedora forums (jsut to name one), but i got no reply there.

Im happy here a lq that i at least got some response. i think im gonna post sommore here.

And really, thanx again for posting and lending a helping hand.


All times are GMT -5. The time now is 07:05 AM.