View previous topic :: View next topic |
Author |
Message |
wmaple n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Jul 2011 Posts: 21
|
Posted: Tue Jul 26, 2011 2:30 pm Post subject: Is there a Gentoo release to support kernel version 2.6.34? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
DONAHUE Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2468228754a8b1493ea37b.gif)
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Veldrin Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_darktempl.gif)
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Tue Jul 26, 2011 2:45 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wmaple n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Jul 2011 Posts: 21
|
Posted: Tue Jul 26, 2011 3:19 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
depontius Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 May 2004 Posts: 3526
|
Posted: Tue Jul 26, 2011 3:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wmaple n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 15 Jul 2011 Posts: 21
|
Posted: Tue Jul 26, 2011 3:41 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
John R. Graham Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1323583785534df64897db0.jpg)
Joined: 08 Mar 2005 Posts: 10733 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jul 26, 2011 3:47 pm Post subject: |
|
|
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 _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
krinn Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/gallery/Blade Runner/movie_blade_runner_howl.gif)
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Jul 26, 2011 6:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
depontius Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 May 2004 Posts: 3526
|
Posted: Tue Jul 26, 2011 7:10 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
rh1 Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/15296152594bc0433c125f1.gif)
Joined: 10 Apr 2010 Posts: 501
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|