Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there a Gentoo release to support kernel version 2.6.34?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
wmaple
n00b
n00b


Joined: 15 Jul 2011
Posts: 21

PostPosted: Tue Jul 26, 2011 2:30 pm    Post subject: Is there a Gentoo release to support kernel version 2.6.34? Reply with quote

Hi,

I have installed a distro with the latest CD, and the kernel version is 3.6.38. For some reason, I want to install a distro supporting the kernel version 2.6.34. It seems that there is no suitable CD ont the Gentoo's website as well as its morriors. Where can I start? Any clues of websites, CDs and documents will be appreciated.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Tue Jul 26, 2011 2:42 pm    Post subject: Reply with quote

http://www.kernel.org/
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1942
Location: Zurich, Switzerland

PostPosted: Tue Jul 26, 2011 2:45 pm    Post subject: Reply with quote

or even simpler:
Code:
emerge =sys-kernel/vanilla-sources-2.6.34.5


As a side question - why such an old version?

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
wmaple
n00b
n00b


Joined: 15 Jul 2011
Posts: 21

PostPosted: Tue Jul 26, 2011 3:19 pm    Post subject: Reply with quote

DONAHUE wrote:
http://www.kernel.org/


I know it definitely. :-)
I want to install a disto from the stage 3 with the 2.6.34 kernel. After all, downloading and recompiling in the existing system will leave out many trashes produced by the previous kernel. Or, is there any ways to clean these trashes.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2384

PostPosted: Tue Jul 26, 2011 3:37 pm    Post subject: Reply with quote

There's a little "concept problem" here. Gentoo is not like other distros, where you have a whole pile of packages kept in lockstep. Simply do your install, assuming you can come off the ground with 2.6.38, even if it isn't where you want to be. Then move yourself back to 2.6.34. This isn't quite as simple as that, for a few reasons. First of all, 2.6.34 isn't in portage anymore, or at least not in gentoo-sources, though you can get it from vanilla-sources.

Next, and this is probably the tougher part... Your glibc was built against linux-headers, and as of now the stable linux-headers is 2.6.36.1, meaning that it's newer than your desired 2.6.34. So you need to move backward in the right order, and I'll say here that there may be some problems in my instructions, but more about that later.

Assuming you want a vanilla-sources-2.6.34.*...
Step 1 - add >=sys-kernel/linux-headers-2.6.35 to /etc/portage/package.mask.
Step 2 - "emerge -a1v linux-headers glibc"
This will bring in the back-level kernel headers and recompile glibc against those headers.
Step 3 - add >=sys-kernel/vanilla-sources-2.6.35 to /etc/portage/package.mask.
Step 4 - "emerge -C gentoo-sources" and "emerge -atv vanilla sources"
This switches you to vanilla sources, so you can get your desired 2.6.34.x kernel.
Step 4 - Build the new kernel.

The possible fly in the ointment with all of this is that recent kernels have begun removing features, and those features are exposed in linux-headers. In the old days it was pretty safe to have an old linux-headers with a new kernel. I'm not sure how safe that is any more. Maybe it's not a big deal at all - I don't know.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
wmaple
n00b
n00b


Joined: 15 Jul 2011
Posts: 21

PostPosted: Tue Jul 26, 2011 3:41 pm    Post subject: Reply with quote

Veldrin wrote:

or even simpler:
Code:
emerge =sys-kernel/vanilla-sources-2.6.34.5

V.


Installing kernel from the portage tree is more preferable. I have two additional quesitons:
1. How can I look up all kernel versions in the portage tree?
2. From the stage 3, there is a step to install kernel source like this:
Code:

# emerge gentoo-sources

This command will select a latest kernel version. I am more interested in how I can select a kernel version by myself right at this step.

Veldrin wrote:

As a side question - why such an old version?
V.

I am reading the book "Linux Kernel Development, 3rd edition", which adopts the version 2.6.34.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7398
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Jul 26, 2011 3:47 pm    Post subject: Reply with quote

wmaple wrote:
1. How can I look up all kernel versions in the portage tree?
All kernel sources in the tree have "-sources" in the name. You can look for all Portage packages with that in their name like this:
Code:
emerge -s %-sources
Once you decide which one you want to use, you can see all available versions with equery. For instance,
Code:
equery list -p gentoo-sources
wmaple wrote:
I am more interested in how I can select a kernel version by myself right at this step.
Use a versioned package atom, like this:
Code:
emerge =sys-kernel/gentoo-sources-2.6.38-r6
For more details on package atom syntax see the "man 5 ebuild" man page. :)

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3907

PostPosted: Tue Jul 26, 2011 6:10 pm    Post subject: Reply with quote

depontius wrote:
Maybe it's not a big deal at all - I don't know.


It is. udev recent versions refuse to compile with a too old kernel headers.
So user will also need to take care of programs that expect that too, udev is one, but sure more exist with the same case.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 2384

PostPosted: Tue Jul 26, 2011 7:10 pm    Post subject: Reply with quote

krinn wrote:
It is. udev recent versions refuse to compile with a too old kernel headers.
So user will also need to take care of programs that expect that too, udev is one, but sure more exist with the same case.


Hadn't known that, but I'm not surprised at all. Looking through the udev ebuilds, it (fortunately) appears that 2.6.34 is the magic number. Unfortunately, in order to use gentoo-sources instead of vanilla-sources, 2.6.34 has been withdrawn and it's necessary to go back to 2.6.32, meaning also going back to an earlier udev.

So I would suggest: (to the original question)
1 - Mask kernel-headers to the version matching the desired kernel, and install the new back-level kernel-headers.
2 - Run "emerge -ptuvDN world" and see what bad stuff pops up, because of the back-level udev.

Note that absolutely nothing bad happens with this, until you compile another package against the kernel-headers. So you can do this test, then remove the mask and reinstall the current kernel-headers, and nothing bad happens.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Tue Jul 26, 2011 8:49 pm    Post subject: Reply with quote

You could just copy the gentoo-sources 2.6.34 ebuild you want from here to a local overlay:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-kernel/gentoo-sources/?hideattic=0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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