Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using a suse binary kernel on gentoo
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
kunitoki
n00b
n00b


Joined: 05 Dec 2006
Posts: 13
Location: Venice - Italy

PostPosted: Mon Mar 15, 2010 9:38 am    Post subject: Using a suse binary kernel on gentoo Reply with quote

I am reinstalling a HP server for a frend's company, and i'm doing it Gentoo cause i'm familiar with it, and i have a lot of things already prepared to go with a minimal install. The problem is that the HP server has a hardware raid controller from HP (b100i) which has binary drivers only (for RedHat and Suse), i tried insmodding the drivers in a equal Gentoo (or vanilla) kernel version but i'm not able to do this cause it says the module format is not equal, probably due to the compilation flags or some other things i don't know about.

Taking into account i won't use software raid (loosing the hot swap of disks and a general speedup of the I/O), i thought to download a Suse binary kernel (2.6.27.5) for which i have the correct driver of the raid controller from HP.
Do you think i'm running into problems by using that Suse binary kernel in my Gentoo install instead of a cleanly compiled kernel ?

The alternative is to stick with openSUSE CentOS, but i'm unlikely on doing this. I need to find a solution but don't know if my idea can lead to problems.

What do you think ?
_________________
the jucetice pit
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Mon Mar 15, 2010 10:22 am    Post subject: Reply with quote

I have never tried this.

If you have the knowledge to do this, do it.

I have read, theoreticall everything is possible in gentoo, also using another kernel. But I dont know if its just as simple as copying into boot and booting from it. I know there is a /lib/modules/directory and so on. But what do you do, if you need another module for your kernel or what do you do if you need a newer kernel. As you have said, I would also ask, on opensuse / centos forum, they maybe know something and also ask HP!
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Mon Mar 15, 2010 11:39 am    Post subject: Reply with quote

There is no harm done by using a binary kernel of another distribution. The problems are the same as with your self built kernels.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Mon Mar 15, 2010 2:43 pm    Post subject: Reply with quote

try getting also the sources and headers for your kernel, if planning to build extra modules against it (you'll have to install matching gcc version to get this to work properly).

or pull those modules from suse as well.

other than that, i expect little issues. i've used to quickly set up a bootable system from gentoo stage3 with arch linux kernel many times and had no issues.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
kunitoki
n00b
n00b


Joined: 05 Dec 2006
Posts: 13
Location: Venice - Italy

PostPosted: Mon Mar 15, 2010 3:22 pm    Post subject: Reply with quote

great people, thanx for the support, i'll do like this and let you know about any problem.
_________________
the jucetice pit
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 249

PostPosted: Tue Mar 16, 2010 12:31 am    Post subject: Reply with quote

I have done the opposite way one time and works like a charm ;)
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Tue Mar 16, 2010 5:56 pm    Post subject: Reply with quote

The most tricky part should be to generate an initrd image that holds all modules needed for booting off your hardware.

And if you use Gentoo stable, make sure your udev is recent enough for the suse kernel (The minimum required version is stated in Linus' release notes usually)
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
kunitoki
n00b
n00b


Joined: 05 Dec 2006
Posts: 13
Location: Venice - Italy

PostPosted: Tue Mar 16, 2010 6:29 pm    Post subject: Reply with quote

What the fffffff.. I installed centos to try it out on this server and bleargh... I'm just vomiting myself over the keyboard, 8 minutes to boot, a general slugginesh even in the terminals, tried installing some rpms and they wasn't even able to detect their direct dependencies in the same directory, plugged a wireless device to it and the kernel freezed. Plus I installed the official Hp driver and it generated a new kernel + initrd but specifiyng a wrong boot device at startup in grub.

Gentoo + suse kernel could be a better choice ! Even with some drawbacks here. And afterall my raid disks could also be recognized after boot cause I'm using those as storage and the system is on another sata disk.
_________________
the jucetice pit
Back to top
View user's profile Send private message
cheater1034
Veteran
Veteran


Joined: 09 Sep 2004
Posts: 1558

PostPosted: Tue Mar 16, 2010 9:52 pm    Post subject: Reply with quote

I'd run debian stable for a server like that over gentoo.
Anyway, what you need to do is find the compatible kernel version from suse or centos or whatever.
Get the SRPM and just extract + compile it yourself, then you install the binary module as normal.
As long as it's the same kernel version, the module should work fine (as long as all the dependencies are met in the kernel)
_________________
IRC!: #zen-sources on irc.rizon.net
zen-kernel.org
--
Lost in android development land.
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