[Scratchbox-users] different kernels on host and in scratchbox

Rafi Cohen rafic at bezeqint.net
Fri Sep 21 01:28:37 EEST 2007


Yes, that's what I did. I found out this solution after writing to the
list and it works for me.
Thanks, Rafi.

-----Original Message-----
From: scratchbox-users-bounces at lists.scratchbox.org
[mailto:scratchbox-users-bounces at lists.scratchbox.org] On Behalf Of
Daniel Bainton
Sent: Thursday, September 20, 2007 9:45 AM
To: scratchbox-users at lists.scratchbox.org
Subject: Re: [Scratchbox-users] different kernels on host and in
scratchbox


On 9/19/07, Rafi Cohen <rafic at bezeqint.net> wrote: 


Hi, sorry to bother you with yet another question, but ptotably this
list exists just for this matter.
I've successfully compiled kernel 2.6.16 in scratchbox 0.98.
The kernel on the host system (Suse 9.3) is 2.6.11.4-20a-default.
When I log into scratchbox and apply the command "uname -r" I get the
host kernel version.
I would expect to get the scratchbox compiled kernel version (2.6.16).
Is it at all possible and what should I do to get this?
The reason I ask this is that some makefiles that compile some
application use this "uname -r" within paths to kernel to relate to the
appropriate kernel version and within scratchbox I would like it to be
2.6.16. Any help will be most appreciated.
Thanks, Rafi.


Scratchbox isn't an emulator. It has no way to run a kernel.

You can, however, fake it. There's a Scratchbox environmental variable
[1] to do this.

So, run
export SBOX_UNAME_RELEASE=2.6.16

and then uname -r will tell you the right thing.

[1] http://scratchbox.org/wiki/EnvironmentVariables 

--
Daniel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scratchbox.org/pipermail/scratchbox-users/attachments/20070921/8bd9dc9f/attachment.html


More information about the Scratchbox-users mailing list