LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2005, 10:14 AM   #1
newbie2k
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
Question Kernel


Hello!

What features can be distribution spesific to a kernel? I see eg. Debian has their own kernel with Debian patches.

Thanks!
 
Old 09-16-2005, 10:24 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Theoretically a distribution could choose to patch there kernel with anything they want. Gentoo, for example, has many different kernel patch sets depending on which kernel you choose to install. Redhat does some of the most major patching I've found, but that is mostly because they have decided to back port a lot of the 2.6 functionality to there 2.4 kernel for RHEL.

The important thing to note... because of the GPL, any patch a distribution may decide to use has to be availible somewhere for download.
 
Old 09-16-2005, 10:46 AM   #3
newbie2k
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
So what kind of functionallity does the distro-patches offer that is not included in the orginal kernel? Any examples?
 
Old 09-16-2005, 10:51 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
This post is going to be a little long... but here is an example of the Gentoo patches from gentoo-sources-2.6.13-r1. I use gentoo as an example because there readme provides a nice list of all the patches and a short description of what they are for.

Code:
Patch:  1000_1_aacraid-bad-BUG_ON_fix.patch
From:   2.6.13.1
Desc:   aacraid bad BUG_ON fix

Patch:  1001_1_fix-pci-rom-mapping.patch
From:   2.6.13.1
Desc:   Fix PCI ROM mapping

Patch:  1002_1_fix-socket-filter-regression.patch
From:   2.6.13.1
Desc:   [NET] 2.6.13 breaks libpcap (and tcpdump)

Patch:  1003_1_ipsec-oops-fix.patch
From:   2.6.13.1
Desc:   [CRYPTO] Fix boundary check in standard multi-block cipher processors

Patch:  1004_1_ipv4-fragmentation-csum-handling.patch
From:   2.6.13.1
Desc:   [IPV4] Reassembly trim not clearing CHECKSUM_HW

Patch:  1005_1_pci_assign_unassigned_resources-update.patch
From:   2.6.13.1
Desc:   x86: pci_assign_unassigned_resources() update

Patch:  1006_1_saa7134-dvb-must-select-tda1004x.patch
From:   2.6.13.1
Desc:   Kconfig: saa7134-dvb must select tda1004x

Patch:  1007_1_sendmsg-DoS.patch
From:   2.6.13.1
Desc:   raw_sendmsg DoS (CAN-2005-2492)

Patch:  1008_1_sendmsg-stackoverflow.patch
From:   2.6.13.1
Desc:   32bit sendmsg() flaw (CAN-2005-2490)

Patch:  1009_1_sparc-request_irq-in-RTC-fix.patch
From:   2.6.13.1
Desc:   [RTC] Use SA_SHIRQ in sparc specific code.

Patch:  1300_ppc64-multilib.patch
From:   dostrow@gentoo.org
Desc:   PPC64 makefile fix for multilib stuff

Patch:  1305_ppc-rom-mapping.patch
From:   http://bugs.gentoo.org/104336
Desc:   Fix bootup on mac laptops

Patch:  1340_sparc-obp64-naming.patch
From:   http://marc.theaimsgroup.com/?l=linu...4220200915&w=2
Desc:   Fix OBP naming on some sparc systems

Patch:  1360_sparc-kconfig-depends.patch
From:   eradicator@gentoo.org
Desc:   Fix depends statements for some drivers

Patch:  1361_sparc-kconfig-rework.patch
From:   eradicator@gentoo.org
Desc:   SPARC Kconfig reworked to be more similar to x86 layout

Patch:  1362_sparc-kconfig-fb.patch
From:   eradicator@gentoo.org
Desc:   SPARC Kconfig cleanups to the framebuffer Kconfig

Patch:  1399_sparc-U1-hme-lockup.patch
From:   sparc patch tarball
Desc:   Fix hme related lockup on u1s

Patch:  1900_kallsyms-compression.patch
From:   http://bugs.gentoo.org/104393
Desc:   Stop kallsyms requiring an extra pass for some configs

Patch:  2100_forcedeth-force-linkinit.patch
From:   http://bugs.gentoo.org/90069
Desc:   Fix intermittent network drop in forcedeth driver

Patch:  2105_skge-1.0.patch
From:   http://bugs.gentoo.org/87182 and others
Desc:   skge tree update

Patch:  4101_deprecate-sk98lin.patch
From:   dsd@gentoo.org
Desc:   Add a note suggesting users try skge

Patch:  4300_via-vt6410.patch
From:   ide-dev-2.6
Desc:   Add support for VIA VT6410 IDE into vt82xx driver

Patch:  4305_dm-bbr.patch
From:   EVMS 2.5.2
Desc:   Bad block relocation support for LiveCD users

Patch:  4320_promise-pdc2037x.patch
From:   Jeff Garzik's libata-dev-2.6 tree
Desc:   Adds support for Promise 2037x SATA controllers which have PATA ports

Patch:  4340_sata-nv-mcp5x.patch
From:   libata-dev tree
Desc:   Support MCP5x nvidia SATA controllers

Patch:  4355_promise-tx4200.patch
From:   dsd@gentoo.org
Desc:   Support promise TX4200 hardware

Patch:  4351_megaraid-compatibility.patch
From:   dsd@gentoo.org
Desc:   Allow both megaraid drivers to be built side-by-side

Patch:  4500_fbsplash-0.9.2-r4.patch
From:   http://dev.gentoo.org/~spock
Desc:   Bootsplash successor by Michal Januszewski

Patch:  4505_vesafb-tng-0.9-rc7-r1.patch
From:   http://dev.gentoo.org/~spock/projects/vesafb-tng/
Desc:   Updated vesafb driver for x86.

Patch:  4705_squashfs-2.2.patch
From:   http://squashfs.sourceforge.net/
Desc:   driver to support squashfs filesystems.

Patch:  4900_speakup-20050825.patch
From:   eradicator@gentoo.org from speakup cvs
Desc:   Provides console speech to visually-impaired users

Patch:  4905_alpha-sysctl-uac.patch
From:
Desc:   enable control of the unaligned access control policy from sysctl
Most of them are small bug fixes program taken from upstream in the kernel development. Others add features like vesa-tng or frame buffer splash images.

Just to make it clear, the patches listed from "2.6.13.1" are the patches that update the 2.6.13 source to 2.6.13.1. The reason Gentoo in particular does it this way is they don't want to make people download the 2.6.13.1 source if they already have the 2.6.13 soruce downloaded since there isn't maybe differences between the two. It is just easier to provide a few small patch files then it is to download a huge kernel source that is largely the same as the last release.

Last edited by jtshaw; 09-16-2005 at 10:55 AM.
 
Old 09-16-2005, 11:00 AM   #5
newbie2k
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
But most of this are fixes that should be applied to the orginal kernels. They are not distro spesific, but you mean feautures like the vesa thing then? That is not subblied in the orginal kernel.
 
Old 09-16-2005, 12:42 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
The majority of the patches you see provided by distributions end up being small bug fixes or re-writes of small pieces of functionality that haven't made it into the vanilla kernel yet. Even the vesa-tng and frame buffer splash screen patches here aren't exactly Gentoo specific. The software is availible for anyone to use or put into there kernel. The kernel is completely GPL'd so realistically any really cool peice of functionality one distribution adds would end up in all of them pretty quickly. Nobody wants to be far behind the others.
 
Old 09-16-2005, 02:26 PM   #7
newbie2k
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks!
 
Old 09-19-2005, 01:43 AM   #8
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 2,534

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
The kernel specific differences within distros is mainly how the distro chooses to use the kernel. There are some module patches available for certain distros. Most of these patches are only for compatibility with how the distro is made, how it is configured, and how the directory tree is arranged. As a linux user, you wouldn't even care about these differences. You should not do something like this:

install a SuSE kernel rpm into Redhat. You would be seriously fouled up.

If you want to be able to easily recompile a kernel, use debian. It is pretty much made for that. Kernel differences are mainly in the configuration. This is found in /boot/config-2.x.y-a.b, and can be saved to the kernel sources directory /usr/src/kernel-sources as .config. You can then use it as starting point for configuring a new kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
kernel memory + slabinfo.. + possible reasons for kernel space allocation failures!! premenjit Linux - Software 1 09-28-2004 04:13 AM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration