Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is possible to use kernel from other distribution?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
rado3105
Apprentice
Apprentice


Joined: 14 Jul 2007
Posts: 293

PostPosted: Fri Jan 30, 2009 10:52 pm    Post subject: Is possible to use kernel from other distribution? Reply with quote

Hi, I have installed ubuntu and wanto check what is set in kernel, to set it proper in kernel during gentoo installation. Or is possible to use kernel from ubuntu?
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Fri Jan 30, 2009 11:37 pm    Post subject: Reply with quote

While booted in Ubuntu, check to see if there exists a file "/proc/config.gz". If so, it contains the configuration of the running kernel. You can save a copy of it using the zcat command like so: "zcat /proc/config.gz > /path/to/where/you/want/to/save/the/file/config" Then you can refer to that config file when configuring your gentoo kernel. However, kernel config files are usually specific to the version of the kernel that is being configured, and even to the patches that may have been applied. A better way to proceed would probably be to just follow the instructions in the gentoo installation handbook for using genkernel to create your kernel for you. It should produce a kernel that will work on most systems.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Sat Jan 31, 2009 12:09 am    Post subject: Reply with quote

Well, the main problem here is not the kernel itself,
but the fact, that quite a few packages check a few things
with kernel sources while they're being built.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14053

PostPosted: Sat Jan 31, 2009 4:17 am    Post subject: Reply with quote

In theory, yes. The Gentoo-preferred kernel is Gentoo patches on top of a www.kernel.org release. Ubuntu has a different set of patches, but since they start from a www.kernel.org release, the basics should be compatible. Why do you want to do this?

[Edit: fixed url tags.]


Last edited by Hu on Sun Feb 01, 2009 1:16 am; edited 1 time in total
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5998
Location: Pomona, California.

PostPosted: Sat Jan 31, 2009 6:30 am    Post subject: Re: Is possible to use kernel from other distribution? Reply with quote

rado3105 wrote:
Hi, I have installed ubuntu and wanto check what is set in kernel, to set it proper in kernel during gentoo installation. Or is possible to use kernel from ubuntu?
As long as you can get the .config and the sources that ubuntu is using. It's still going to exist in /usr/src, so once you find it, you can compress it, copy it to Gentoo and use it, or copy it without compressing.

I, like Hu, wonder why you would want to do this.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sat Jan 31, 2009 12:59 pm    Post subject: Reply with quote

You can use any kernel with any distro. This is much easier if you share the /boot partition amongst all your distros. Of course, then you are the responsible for updating it and maintaining all the stuff, since if you leave the distro's installers do the work they might kill each other's work. But as someone said, in Gentoo you will need the sources as well to install many other packages.

So, the best you can do is just to pick the config of the ubuntu kernel and use it to build your own. You can pick the config of any running kernel from /proc/config.gz if the kernel has been properly configured to put it there (most prebuilt kernels do).
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Hibbelharry
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 88
Location: Bremen, Northern Germany

PostPosted: Sun Feb 01, 2009 4:37 am    Post subject: Reply with quote

The Ubuntu kernel configuration is saved in /boot/config-[kernelversion]. Copy this file into your kenelsources folder named .config and do a make menuconfig to check things. The Ubuntu Kernel is built with nearly everything possible turned on and wherever possible things are builded as modules. So if you copy a Ubuntu Kernel Config be sure to setup a proper initial ramdisk (initrd) or your system will fail to boot.

Greetings
Hibbelharry
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Feb 01, 2009 5:01 am    Post subject: Reply with quote

One of my friends use his Gentoo kernel to boot Ubuntu and OpenSuse actually.

So there is no problem at all, as long as you know what you are doing :P
Back to top
View user's profile Send private message
jane0109
n00b
n00b


Joined: 01 Feb 2009
Posts: 8

PostPosted: Sun Feb 01, 2009 11:44 am    Post subject: Reply with quote

What Ubuntu version will fit into Windows XP?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Feb 01, 2009 5:02 pm    Post subject: Reply with quote

jane0109 wrote:
What Ubuntu version will fit into Windows XP?


If you do mean to install Ubuntu alongside with windows to dual boot then regular ubuntu will work.

If you do mean to run linux stuff inside windows, you probably meant Wubi.

http://wubi-installer.org/

You can also use virtualbox or a similar virtual machine to install ANY linux and use it into a window in windows. Don't expect miracles from it though.

I am moving these posts to unsupported since ubuntu has nothing to do with Gentoo at all.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum