The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Talk:Building a Kernel from Source
I'm thinking we should include the option of not having a initrd, and just having a bzImage.
I like that idea too.
This guide directly starts with using dracut. I think it's better to rewrite it with generic ideas how to build custom kernel, without initrd, and then with different initramfs creation tools.
- i propose we move this article to Kernel/Manual i propose we sign our discussion statements ala
~~~~
Threesixes (talk) 19:34, 23 September 2014 (UTC)
- i propose we move this article to Kernel/Manual i propose we sign our discussion statements ala
build useflag?
Why, in advanced section, is the "build" useflag set?
When I equery u vanilla-sources
for instance, it is said:
!!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating build images and the first half of bootstrapping [make stage1
listings of sys-kernel as of June 29, 2015
--Danielv (talk) 21:02, June 29, 2015 (UTC)
eix -A sys-kernel/alt-sources
- sys-kernel/alt-sources
Available versions: (3.18.10) (~)3.18.10^m Homepage: http://kernel.sysresccd.org/ Description: Kernel Sources and Patches for the System Rescue CD Alternate Kernel
eix -A sys-kernel/aufs-sources
- sys-kernel/aufs-sources
Available versions: (3.14.41) (~)3.14.41^bs (3.14.42) (~)3.14.42^bs (3.14.43) (~)3.14.43^bs (3.14.44) (~)3.14.44^bs (3.18.12) (~)3.18.12^bs (3.18.13) (~)3.18.13^bs (3.18.14) (~)3.18.14^bs (3.18.16) (~)3.18.16^bs (3.19.8) (~)3.19.8^bs (4.0.4) (~)4.0.4^bs (4.0.5) (~)4.0.5^bs {build deblob experimental module symlink vanilla} Homepage: http://dev.gentoo.org/~mpagano/genpatches http://aufs.sourceforge.net/ Description: Full sources including the Gentoo patchset for the 4.0 kernel tree and aufs4 support
eix -A sys-kernel/better-initramfs-bin
- sys-kernel/better-initramfs-bin
Available versions: 0.9.0.1^m {+gzip} Homepage: https://github.com/piotrkarbowski/better-initramfs
eix -A sys-kernel/bliss-initramfs
- sys-kernel/bliss-initramfs
Available versions: 6.5.0^ms {luks lvm raid +udev zfs} Homepage: https://github.com/fearedbliss/bliss-initramfs Description: Boot your system's rootfs from ZFS, LVM, RAID, or a variet
y of other configs.
eix -A sys-kernel/bliss-kernel
- sys-kernel/bliss-kernel
Available versions: (3.14.43-FC.01) 3.14.43^ms (3.14.44-FC.01) (~)3.14.44^ms Homepage: http://xyinn.org/ Description: Precompiled Vanilla Kernel (Kernel Ready-to-Eat [KRE])
eix -A sys-kernel/centos7plus-sources
- sys-kernel/centos7plus-sources
Available versions: 3.10.0.123.13.2^m 3.10.0.123.20.1^m 3.10.0.229.4.2^m {buil
d symlink}
Homepage: http://www.redhat.com/ Description: Red Hat Enterprise Linux kernel sources
eix -A sys-kernel/ck-sources
- sys-kernel/ck-sources
Available versions: (3.4.107) (~)3.4.107^bs (3.10.77) (~)3.10.77^bs (3.14.42) (~)3.14.42^bs (3.14.43) (~)3.14.43^bs (3.14.44) (~)3.14.44^bs (3.18.13) (~)3.18.13^bs (3.18.14) (~)3.18.14^bs (3.18.16) (~)3.18.16^bs (3.19.8) (~)3.19.8^bs (4.0.4-r1) (~)4.0.4-r1^bs (4.0.5) (~)4.0.5^bs {bfsonly build deblob experimental symlink urwlocks} Homepage: http://www.kernel.org/ http://www.gentoo.org/ http://dev.gentoo.org/~mpagano/genpatches/ http://users.on.net/~ckolivas/kernel/ http://www.fsfla.org/svn/fsfla/software/linux-libre/releases/tags Description: Full Linux 4.0 kernel sources with Con Kolivas' high performance patchset and Gentoo's genpatches
eix -A sys-kernel/cryptodev
- sys-kernel/cryptodev
Available versions: (~)1.7^t {examples KERNEL="linux"} Homepage: http://cryptodev-linux.org/index.html Description: device that allows access to Linux kernel cryptographic drivers
eix -A sys-kernel/debian-sources [I] sys-kernel/debian-sources
Available versions: (3.2.57) **3.2.57^mbs (3.16.2) 3.16.2^mbs (3.16.7) 3.16.7^mbs (3.19.3) 3.19.3^mbs (4.0.4) [M]4.0.4^mbs {binary rt} Installed versions: [...] Homepage: http://www.debian.org Description: Debian Sources (and optional binary kernel)
eix -A sys-kernel/dkms
- sys-kernel/dkms
Available versions: 2.2.0.0 {bash-completion} Homepage: http://linux.dell.com/dkms Description: Dynamic Kernel Module Support
eix -A sys-kernel/dracut
- sys-kernel/dracut
Available versions: (~)038-r2^t (~)040^t (~)041^t {debug selinux systemd} Homepage: http://dracut.wiki.kernel.org Description: Generic initramfs generation tool
eix -A sys-kernel/genkernel [I] sys-kernel/genkernel
Available versions: 3.4.40.7-r6^m {+cryptsetup ibm selinux} Installed versions: [...] Homepage: http://www.gentoo.org Description: Gentoo automatic kernel building scripts
- sys-kernel/genkernel-next
Available versions: 35 55 (~)60 63 {cryptsetup dmraid gpg iscsi mdadm plymouth selinux} Homepage: http://www.gentoo.org Description: Gentoo automatic kernel building scripts, reloaded
eix -A sys-kernel/gentoo-sources [I] sys-kernel/gentoo-sources
Available versions: (3.4.106) (~)3.4.106^bs (3.4.107) (~)3.4.107^bs (3.4.9999) **3.4.9999^bs (3.10.77) 3.10.77^bs (3.10.79) (~)3.10.79^bs (3.10.80) (~)3.10.80^bs (3.10.81) (~)3.10.81^bs (3.12.44) 3.12.44^bs (3.12.9999) **3.12.9999^bs (3.14.41) 3.14.41^bs (3.14.42) (~)3.14.42^bs (3.14.43) (~)3.14.43^bs (3.14.44) (~)3.14.44^bs (3.14.45) (~)3.14.45^bs (3.18.16) 3.18.16^bs (3.19.8) (~)3.19.8^bs (4.0.4) (~)4.0.4^bs (4.0.5) 4.0.5^bs (4.0.6) (~)4.0.6^bs (4.1.0) (~)4.1.0^bs {build deblob experimental symlink} Installed versions: [...] Homepage: http://dev.gentoo.org/~mpagano/genpatches Description: Full sources including the Gentoo patchset for the 4.1 kernel tree
eix -A sys-kernel/git-sources
- sys-kernel/git-sources
Available versions: (4.1_rc1) (~)4.1_rc1^bs (4.1_rc2) (~)4.1_rc2^bs (4.1_rc3) (~)4.1_rc3^bs (4.1_rc4) (~)4.1_rc4^bs (4.1_rc5) (~)4.1_rc5^bs (4.1_rc6) (~)4.1_rc6^bs (4.1_rc7) (~)4.1_rc7^bs (4.1_rc8) (~)4.1_rc8^bs {build symlink} Homepage: http://www.kernel.org Description: The very latest -git version of the Linux kernel
eix -A sys-kernel/hardened-sources
- sys-kernel/hardened-sources
Available versions: (3.2.68) 3.2.68^bs (3.2.69-r4) 3.2.69-r4^bs (3.2.69-r5) (~)3.2.69-r5^bs (3.2.69-r6) (~)3.2.69-r6^bs (3.2.69-r7) (~)3.2.69-r7^bs (3.14.35) 3.14.35^bs (3.14.43-r3) 3.14.43-r3^bs (3.14.43-r4) (~)3.14.43-r4^bs (3.14.44) (~)3.14.44^bs (3.14.45) (~)3.14.45^bs (3.18.9) 3.18.9^bs (4.0.4-r3) (~)4.0.4-r3^bs (4.0.4-r4) (~)4.0.4-r4^bs (4.0.5) (~)4.0.5^bs (4.0.5-r1) (~)4.0.5-r1^bs (4.0.6) (~)4.0.6^bs {build deblob symlink} Homepage: http://www.gentoo.org/proj/en/hardened/ Description: Hardened kernel sources (kernel series 4.0)
eix -A sys-kernel/kccmp
- sys-kernel/kccmp
Available versions: 0.3 Homepage: http://stoopidsimple.com/kccmp/ Description: A simple tool for comparing two linux kernel .config files
eix -A sys-kernel/kergen
- sys-kernel/kergen
Available versions: (~)0.1.1 {PYTHON_TARGETS="python3_3 python3_4"} Homepage: https://github.com/nichoski/kergen Description: Kernel config generator
eix -A sys-kernel/linux-docs
- sys-kernel/linux-docs
Available versions: (~)3.4.104 (~)3.10.58 (~)3.12.30 (~)3.14.22 (~)3.16.6 (~)3
.17.1 {html}
Homepage: http://www.kernel.org/ Description: Developer documentation generated from the Linux kernel
eix -A sys-kernel/linux-firmware
- sys-kernel/linux-firmware
Available versions: 20140603 (~)20140809 20140902 (~)20141009 20150206 (~)20150320 **99999999 {savedconfig} Homepage: http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git Description: Linux firmware files
eix -A sys-kernel/linux-headers [I] sys-kernel/linux-headers
Available versions: 3.17-r1^bs 4.0^bs Installed versions: [...] Homepage: http://www.kernel.org/ http://www.gentoo.org/ Description: Linux system headers
eix -A sys-kernel/mips-sources
- sys-kernel/mips-sources
Available versions: (3.19.6) ~*3.19.6^bs (4.0.1) ~*4.0.1^bs {build cobalt ip27 ip28 ip30 ip32r10k symlink} Homepage: http://www.linux-mips.org/ http://www.gentoo.org/ Description: Linux-Mips GIT sources for MIPS-based machines, dated 20150418
eix -A sys-kernel/openvz-rhel6-stable
- sys-kernel/openvz-rhel6-stable
Available versions: (2.6.32.042.106.4) 2.6.32.042.106.4^mbs (2.6.32.042.108.2) [M]2.6.32.042.108.2^mbs {binary} Homepage: http://www.openvz.org Description: Full Linux kernel sources - RHEL6 kernel with OpenVZ patchset
eix -A sys-kernel/openvz-sources
- sys-kernel/openvz-sources
Available versions: (2.6.32.106.4) 2.6.32.106.4^bs (2.6.32.108.5) 2.6.32.108.5^bs {build symlink} Homepage: http://www.openvz.org Description: Kernel sources with OpenVZ patchset
eix -A sys-kernel/pf-sources
- sys-kernel/pf-sources
Available versions: (2.6.31_p9) (~)2.6.31_p9^bs (2.6.32_p16) (~)2.6.32_p16^bs (2.6.33_p4) (~)2.6.33_p4^bs (2.6.34_p7) (~)2.6.34_p7^bs (2.6.35_p11) (~)2.6.35_p11^bs (2.6.36_p6) (~)2.6.36_p6^bs (2.6.37_p6) (~)2.6.37_p6^bs (2.6.38_p8) (~)2.6.38_p8^bs (2.6.39_p4) (~)2.6.39_p4^bs (3.0.7-r2) (~)3.0.7-r2^bs (3.1.6-r2) (~)3.1.6-r2^bs (3.2.7) (~)3.2.7^bs (3.3.6) (~)3.3.6^bs (3.4.6) (~)3.4.6^bs (3.5.4) (~)3.5.4^bs (3.6.12) (~)3.6.12^bs (3.7.5) (~)3.7.5^bs (3.8.2) (~)3.8.2^bs (3.9.5) (~)3.9.5^bs (3.10.1) (~)3.10.1^bs (3.11.4) (~)3.11.4^bs (3.12.4) (~)3.12.4^bs (3.13.3) (~)3.13.3^bs (3.14_p4) (~)3.14_p4^bs (3.15_p5) (~)3.15_p5^bs (3.16_p4) (~)3.16_p4^bs (3.17_p4) (~)3.17_p4^bs (3.19_p1) (~)3.19_p1^bs (4.0_p6) (~)4.0_p6^bs {build deblob experimental symlink} Homepage: http://pf.natalenko.name/ Description: Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and UKSM
eix -A sys-kernel/raspberrypi-image
- sys-kernel/raspberrypi-image
Available versions: ~*3.18.9_pre-r20150307^mbs ~*3.18.11_pre-r20150415^mbs ~*3.18.13_pre-r20150510^mbs {doc dtb +firmware rpi1 rpi1b rpi1bplus +rpi2} Homepage: https://github.com/raspberrypi/firmware Description: Raspberry PI binary kernel, modules, dtb and firmware
eix -A sys-kernel/raspberrypi-sources
- sys-kernel/raspberrypi-sources
Available versions: (3.10.1_pre-r20130719) ~*3.10.1_pre-r20130719^bs (3.10.9999) **3.10.9999^bs (3.12.9999) **3.12.9999^bs (3.14.9999) **3.14.9999^bs (3.18.9999) **3.18.9999^bs (3.19.9999) **3.19.9999^bs {build symlink} Homepage: https://github.com/raspberrypi/linux Description: Raspberry PI kernel sources
eix -A sys-kernel/rhel7-sources
- sys-kernel/rhel7-sources
Available versions: 3.10.0.123.13.2^m 3.10.0.123.20.1^m 3.10.0.229.1.2^m 3.10.0.229.4.2^m {build symlink} Homepage: http://www.redhat.com/ Description: Red Hat Enterprise Linux kernel sources
eix -A sys-kernel/rsbac-sources
- sys-kernel/rsbac-sources
Available versions: (3.10.7) (~)3.10.7^bs {build symlink} Homepage: http://www.gentoo.org/proj/en/hardened/ Description: RSBAC kernel sources (kernel series 3.10)
eix -A sys-kernel/rt-sources
- sys-kernel/rt-sources
Available versions: (3.14.36_p34) (~)3.14.36_p34^bs (3.18.11_p7) (~)3.18.11_p7^bs {build deblob symlink} Homepage: http://www.kernel.org/ http://www.gentoo.org/ http://www.kernel.org/pub/linux/kernel/projects/rt/ http://www.fsfla.org/svn/fsfla/software/linux-libre/releases/tags Description: Full Linux 3.18 kernel sources with the CONFIG_PREEMPT_RTpatch
eix -A sys-kernel/spl
- sys-kernel/spl
Available versions: (~)0.6.0_rc13-r2^t (~)0.6.0_rc14-r3^t (~)0.6.1-r3^t (~)0.6.2^t (~)0.6.2-r1^t (~)0.6.2-r2^t (~)0.6.2-r3^t (~)0.6.2-r4^t (~)0.6.2-r5^t (~)0.6.3^st (~)0.6.3-r1^st (~)0.6.4^st **9999^st {custom-cflags debug debug-log KERNEL="linux"} Homepage: http://zfsonlinux.org/ Description: The Solaris Porting Layer is a Linux kernel module which provides many of the Solaris kernel APIs
eix -A sys-kernel/std-sources
- sys-kernel/std-sources
Available versions: (3.14.35) (~)3.14.35^m Homepage: http://kernel.sysresccd.org/ Description: Kernel Sources and Patches for the System Rescue CD Standard Kernel
eix -A sys-kernel/tuxonice-sources
- sys-kernel/tuxonice-sources
Available versions: (3.4.107) (~)3.4.107^bs (3.10.79) (~)3.10.79^bs (3.10.80) (~)3.10.80^bs (3.10.81) (~)3.10.81^bs (3.12.43) (~)3.12.43^bs (3.12.44) (~)3.12.44^bs (3.14.43) (~)3.14.43^bs (3.14.44) (~)3.14.44^bs (3.14.45) (~)3.14.45^bs (3.18.14) (~)3.18.14^bs (3.18.16) (~)3.18.16^bs (3.19.8) (~)3.19.8^bs (4.0.4) (~)4.0.4^bs (4.0.5) (~)4.0.5^bs (4.0.6) (~)4.0.6^bs {build experimental symlink} Homepage: http://dev.gentoo.org/~mpagano/genpatches/ http://tuxonice.nigelcunningham.com.au/ https://github.com/NigelCunningham/tuxonice-kernel Description: TuxOnIce + Gentoo patchset sources
eix -A sys-kernel/vanilla-sources
- sys-kernel/vanilla-sources
Available versions: (3.2.69) (~)3.2.69^bs (3.4.108) (~)3.4.108^bs (3.10.81) (~)3.10.81^bs (3.12.44) (~)3.12.44^bs (3.14.45) (~)3.14.45^bs (3.18.16) (~)3.18.16^bs (4.0.6) (~)4.0.6^bs (4.1.0) (~)4.1.0^bs {build deblob symlink} Homepage: http://www.kernel.org Description: Full sources for the Linux kernel
eix -A sys-kernel/vserver-sources
- sys-kernel/vserver-sources
Available versions: (2.3.0.36.32) 2.3.0.36.32^bs (2.3.6.5) (~)2.3.6.5^bs (2.3.6.8) (~)2.3.6.8^bs (2.3.6.11) (~)2.3.6.11^bs (2.3.6.14) (~)2.3.6.14^bs (2.3.7.3) (~)2.3.7.3^bs (2.3.7.4) (~)2.3.7.4^bs {build deblob symlink} Homepage: http://www.gentoo.org/proj/en/vps/ Description: Full sources including Linux-VServer patchsets for the 3.18 kernel tree
eix -A sys-kernel/xbox-sources
- sys-kernel/xbox-sources
Available versions: (2.6.16.26) ~*2.6.16.26^bs {build symlink} Homepage: http://www.kernel.org/ http://www.gentoo.org/ Description: Full sources for the Xbox Linux kernel
eix -A sys-kernel/zen-sources
- sys-kernel/zen-sources
Available versions: (3.8.9999) **3.8.9999^bs (3.9.9999) **3.9.9999^bs (3.10.9999) **3.10.9999^bs (3.11.9999) **3.11.9999^bs (3.12.9999) **3.12.9999^bs (3.13.9999) **3.13.9999^bs {build symlink} Homepage: http://zen-kernel.org Description: The Zen Kernel Live Sources