Bug 126342 (customkernel)

Summary: Meta bug: custom built kernels
Product: [Fedora] Fedora Reporter: Brian Stein <bstein>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: aleksey, alessandroselli, barryn, bernhard.jantscher, bugzilla, chenxia1, daniel.haenssgen, dberger, eber67, emmanuel.druon, fedora_bugzilla, gallantfox, gangaraju.chowki, grivital, helbermg, iorlov89, john, marcel.elias, mike.miller, mikhail.v.gavrilov, mr-4, nitinics, pproche, prigault, ram5019, satellitgo, sheldon.corey, srikanth.venkataraman, stanl, stevenward666, timarbuckle, tithonus.hf, triage, vinixda, vitti570, wtogami, yaricp
Target Milestone: ---Keywords: Tracking, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://mail.nl.linux.org/kernelnewbies/
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arjan van de Ven 2004-06-19 12:51:32 UTC
The linux kernel source code can be configured in a very fine grained
way, leading to an absolutely enormous amount of different possible
combinations. Due to the sheer amount of possible combinations, it 
is not possible to make sure every combination or kernel option can 
be successfully built from the source code we use for the kernel 
rpms. In addition it is possible to (de)select options that render 
a computer unbootable.

Therefore we cannot provide tailored help about the bug you filed
regarding compiling custom kernels.
                                                                     
          
If you need help with or advice about building kernels, we recommend
subscribing to one of the following mailing lists and ask questions
on these lists (after searching the archives).
                                                                     
          
fedora-list
http://www.redhat.com/mailman/listinfo/fedora-list
                                                                     
          
kernelnewbies.org
http://mail.nl.linux.org/kernelnewbies/

Comment 1 Arjan van de Ven 2004-06-19 12:51:54 UTC
*** Bug 126142 has been marked as a duplicate of this bug. ***

Comment 2 Arjan van de Ven 2004-06-19 12:52:53 UTC
In addition, it may be worth verifying your bug is present in the
latest kernel you can download from www.kernel.org and if so, file a
bug in the http://bugs.kernel.org bugtracker

Comment 3 Dave Jones 2004-06-19 15:14:20 UTC
*** Bug 113192 has been marked as a duplicate of this bug. ***

Comment 4 Dave Jones 2004-06-19 15:15:36 UTC
URL in comment #2 should be http://bugme.osdl.org


Comment 5 Dave Jones 2004-06-19 15:30:27 UTC
*** Bug 113961 has been marked as a duplicate of this bug. ***

Comment 6 Dave Jones 2004-06-19 15:33:13 UTC
*** Bug 114366 has been marked as a duplicate of this bug. ***

Comment 7 Arjan van de Ven 2004-06-21 06:49:37 UTC
*** Bug 126390 has been marked as a duplicate of this bug. ***

Comment 8 Arjan van de Ven 2004-06-21 12:17:58 UTC
*** Bug 126418 has been marked as a duplicate of this bug. ***

Comment 9 Dave Jones 2004-10-29 00:16:54 UTC
*** Bug 137409 has been marked as a duplicate of this bug. ***

Comment 10 Dave Jones 2004-10-29 22:12:38 UTC
*** Bug 105993 has been marked as a duplicate of this bug. ***

Comment 11 Dave Jones 2004-10-29 22:14:30 UTC
*** Bug 18957 has been marked as a duplicate of this bug. ***

Comment 12 Dave Jones 2004-10-30 03:25:12 UTC
*** Bug 120512 has been marked as a duplicate of this bug. ***

Comment 13 Dave Jones 2004-10-30 03:31:58 UTC
*** Bug 107082 has been marked as a duplicate of this bug. ***

Comment 14 Dave Jones 2004-10-30 03:43:53 UTC
*** Bug 58395 has been marked as a duplicate of this bug. ***

Comment 15 Dave Jones 2004-11-03 03:43:51 UTC
*** Bug 124632 has been marked as a duplicate of this bug. ***

Comment 16 Dave Jones 2004-11-19 04:20:11 UTC
*** Bug 132753 has been marked as a duplicate of this bug. ***

Comment 17 Dave Jones 2004-11-20 04:22:54 UTC
*** Bug 125882 has been marked as a duplicate of this bug. ***

Comment 18 Dave Jones 2004-11-20 04:33:38 UTC
*** Bug 111077 has been marked as a duplicate of this bug. ***

Comment 19 Dave Jones 2004-11-20 05:14:00 UTC
*** Bug 134125 has been marked as a duplicate of this bug. ***

Comment 20 Dave Jones 2004-11-23 01:01:27 UTC
*** Bug 125882 has been marked as a duplicate of this bug. ***

Comment 21 Dave Jones 2004-11-23 05:15:22 UTC
*** Bug 140500 has been marked as a duplicate of this bug. ***

Comment 22 Darin May 2004-11-23 18:58:40 UTC
How then is feedback supposed to get back to module owners?  Why not
just mark them WONTFIX?

Comment 23 Aleksey Nogin 2004-11-24 19:33:19 UTC
What is the policy for the case the bug is introduced by a Red Hat's
patch? (Example - bug 125882).

Comment 24 Dave Jones 2004-11-25 06:39:32 UTC
*** Bug 140500 has been marked as a duplicate of this bug. ***

Comment 25 Dave Jones 2005-03-06 22:08:14 UTC
*** Bug 150445 has been marked as a duplicate of this bug. ***

Comment 26 Robert de Vries 2005-03-07 21:15:32 UTC
<cynic mode on> 
Maybe it would be better if Redhat would stick to the standard Linus 
kernel instead of introducing patches which make things worse. 
<cynic mode off> 
I agree with the text from Arjan van de Ven, but if redhat introduces 
patches which break good working configuration settings of the 
standard kernel, then it is the responsibility of redhat to fix it 
and not group my bug report (bug 150445) under this bug. 

Comment 27 Barry K. Nathan 2005-03-08 02:59:59 UTC
> <cynic mode on> 
> Maybe it would be better if Redhat would stick to the standard Linus 
> kernel instead of introducing patches which make things worse. 
> <cynic mode off> 

Under the 2.6 kernel development model, there *are* going to be some
long-term differences between vendor kernels and the mainline kernel,
and that's the way Linus wants it!!

For example:
http://kerneltrap.org/node/4590

> NOTE! I'd personally hate some of the security things. For
> example, I think the "randomize code addresses" is absolutely
> horrible, just because of the startup overhead it implies
> (specifically no pre-linking). I also immensely dislike
> exec-shield because of the segment games it plays - I think it
> makes sense in the short run but not in the long run, so I
> much prefer that one as a "vendor feature", not as a "core
> feature".
> 
> So when I talk about security, I have this double-standard where
> I end up convinced that many features are things that _I_ should
> not do, but others likely should ;)


In your case, however, it looks like the patch relates to a feature
that could make it into the mainline kernel in the not-too-distant
future, for what that's worth.

> I agree with the text from Arjan van de Ven, but if redhat
> introduces patches which break good working configuration settings
> of the standard kernel, then it is the responsibility of redhat to
> fix it and not group my bug report (bug 150445) under this bug.

No, it's only Red Hat's *responsibility* to fix it if it breaks their
default .configs. It would be nice for them to fix these types of
issues, but it's not a *duty* of theirs, and it's something that
people can patch at the same time that they're modifying the .config.

If you would prefer to run a mainline kernel without the Red Hat
patches, you can actually do that and it should work (but Red Hat
won't support you -- but Fedora's not officially supported anyway so
that's not really an issue here).

Comment 28 Dave Jones 2005-03-08 18:53:06 UTC
*** Bug 150504 has been marked as a duplicate of this bug. ***

Comment 29 Dave Jones 2005-03-10 20:09:58 UTC
*** Bug 150786 has been marked as a duplicate of this bug. ***

Comment 30 raxet 2005-03-19 10:46:44 UTC
Latest dev kernel 2.6.11-1.1185_FC4 on make bzImage barphs:

LD      .tmp_vmlinux1
arch/i386/kernel/built-in.o(.init.text+0x1b21): In function `init_IRQ':
: undefined reference to `irq_ctx_init'
arch/i386/kernel/built-in.o(.init.text+0x1b38): In function `init_IRQ':
: undefined reference to `irq_ctx_init'

Comment 31 Dave Jones 2005-03-27 02:36:51 UTC
*** Bug 152187 has been marked as a duplicate of this bug. ***

Comment 32 Dave Jones 2005-04-15 21:20:56 UTC
*** Bug 155040 has been marked as a duplicate of this bug. ***

Comment 33 Dave Jones 2005-04-16 19:53:05 UTC
*** Bug 155123 has been marked as a duplicate of this bug. ***

Comment 34 Joe Acosta 2005-04-16 21:56:26 UTC
Okay I have hit the same thing as comment # 30, which is but 155123.  I see they
are dups, but the search in bugzilla did not come up with anything for my search
on irq_ctx_init .  I think the difference here, is that what I'm hearing is that
YOU MUST compile your kernel with kernel debugging ON else your kernel wont compile.

Comment 35 Dave Jones 2005-08-26 23:52:15 UTC
*** Bug 166828 has been marked as a duplicate of this bug. ***

Comment 36 Dave Jones 2005-10-25 07:41:45 UTC
*** Bug 171203 has been marked as a duplicate of this bug. ***

Comment 37 Dave Jones 2006-01-24 23:33:32 UTC
*** Bug 178865 has been marked as a duplicate of this bug. ***

Comment 38 John Klingler 2006-01-24 23:44:08 UTC
I used the same source, same config file and same compiler. This should result
in the same kernel, don't you think?

Comment 39 John Klingler 2006-01-25 01:30:31 UTC
Solved

I was able to compile a runnable duplicate of the precompiled kernel by adding a
"make oldconfig" step to the build procedure:

make mrproper
cp /boot/config-2.6.11-1.1369_FC4smp .config
make oldconfig
make
make module_install
make install

make oldconfig only changed the date and kernel name in the .config file but it
obviously changed some things elsewhere because the kernel now boots and runs. 


Comment 40 Dave Jones 2006-01-27 21:20:37 UTC
*** Bug 179067 has been marked as a duplicate of this bug. ***

Comment 41 Dave Jones 2006-06-26 14:37:51 UTC
*** Bug 196563 has been marked as a duplicate of this bug. ***

Comment 42 Dave Jones 2006-08-14 18:11:43 UTC
*** Bug 202291 has been marked as a duplicate of this bug. ***

Comment 43 Dave Jones 2006-09-17 03:08:13 UTC
*** Bug 206580 has been marked as a duplicate of this bug. ***

Comment 44 Bug Zapper 2008-04-03 15:36:31 UTC
Based on the date this bug was created, it appears to have been reported
against rawhide during the development of a Fedora release that is no
longer maintained. In order to refocus our efforts as a project we are
flagging all of the open bugs for releases which are no longer
maintained. If this bug remains in NEEDINFO thirty (30) days from now,
we will automatically close it.

If you can reproduce this bug in a maintained Fedora version (7, 8, or
rawhide), please change this bug to the respective version and change
the status to ASSIGNED. (If you're unable to change the bug's version
or status, add a comment to the bug and someone will change it for you.)

Thanks for your help, and we apologize again that we haven't handled
these issues to this point.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 45 Dave Jones 2008-07-01 03:22:40 UTC
*** Bug 453498 has been marked as a duplicate of this bug. ***

Comment 46 Josh Boyer 2011-09-26 18:07:01 UTC
*** Bug 712593 has been marked as a duplicate of this bug. ***

Comment 47 Josh Boyer 2012-02-29 16:04:09 UTC
*** Bug 798464 has been marked as a duplicate of this bug. ***

Comment 48 Josh Boyer 2012-03-05 15:36:42 UTC
*** Bug 799772 has been marked as a duplicate of this bug. ***

Comment 49 Dan Mashal 2012-03-07 08:07:50 UTC
With default stock install of Fedora 17, still experiencing this issue. Why are we not on RC6 yet?

Comment 50 Dan Mashal 2012-03-07 08:12:13 UTC
*** Bug 799772 has been marked as a duplicate of this bug. ***

Comment 51 Josh Boyer 2012-03-07 15:19:14 UTC
Please don't change the fields in this bug.

Comment 52 Josh Boyer 2012-03-07 21:10:30 UTC
*** Bug 799585 has been marked as a duplicate of this bug. ***

Comment 53 Josh Boyer 2012-03-12 13:48:20 UTC
*** Bug 802117 has been marked as a duplicate of this bug. ***

Comment 54 Josh Boyer 2012-03-12 13:48:25 UTC
*** Bug 802116 has been marked as a duplicate of this bug. ***

Comment 55 Josh Boyer 2012-03-12 13:58:59 UTC
*** Bug 802144 has been marked as a duplicate of this bug. ***

Comment 56 Josh Boyer 2012-04-17 23:48:41 UTC
*** Bug 813580 has been marked as a duplicate of this bug. ***

Comment 57 Josh Boyer 2012-04-23 14:14:09 UTC
*** Bug 815115 has been marked as a duplicate of this bug. ***

Comment 58 Josh Boyer 2012-04-30 23:43:35 UTC
*** Bug 817698 has been marked as a duplicate of this bug. ***

Comment 59 Josh Boyer 2012-09-19 12:54:39 UTC
*** Bug 858592 has been marked as a duplicate of this bug. ***

Comment 60 Josh Boyer 2012-09-26 15:45:41 UTC
*** Bug 860712 has been marked as a duplicate of this bug. ***

Comment 61 Josh Boyer 2012-09-26 16:03:12 UTC
*** Bug 860712 has been marked as a duplicate of this bug. ***

Comment 63 Josh Boyer 2014-01-08 12:32:13 UTC
*** Bug 1049827 has been marked as a duplicate of this bug. ***

Comment 64 Josh Boyer 2014-01-15 01:34:11 UTC
*** Bug 1052770 has been marked as a duplicate of this bug. ***

Comment 65 Michele Baldessari 2014-01-23 08:27:03 UTC
*** Bug 1055785 has been marked as a duplicate of this bug. ***

Comment 66 Josh Boyer 2014-02-20 21:32:17 UTC
*** Bug 1067698 has been marked as a duplicate of this bug. ***

Comment 67 Josh Boyer 2014-09-26 12:28:09 UTC
*** Bug 1146725 has been marked as a duplicate of this bug. ***

Comment 68 Josh Boyer 2014-12-14 19:35:03 UTC
*** Bug 1173902 has been marked as a duplicate of this bug. ***

Comment 69 Josh Boyer 2015-01-04 15:08:48 UTC
*** Bug 1178321 has been marked as a duplicate of this bug. ***

Comment 70 Josh Boyer 2015-01-04 15:08:51 UTC
*** Bug 1178322 has been marked as a duplicate of this bug. ***

Comment 71 Josh Boyer 2015-01-04 15:09:18 UTC
*** Bug 1178324 has been marked as a duplicate of this bug. ***

Comment 72 Josh Boyer 2015-02-11 13:15:04 UTC
*** Bug 1191378 has been marked as a duplicate of this bug. ***

Comment 73 Josh Boyer 2015-03-03 13:14:48 UTC
*** Bug 1197974 has been marked as a duplicate of this bug. ***

Comment 74 Josh Boyer 2015-03-04 14:12:53 UTC
*** Bug 1195402 has been marked as a duplicate of this bug. ***

Comment 75 Josh Boyer 2015-03-30 15:37:26 UTC
*** Bug 1207282 has been marked as a duplicate of this bug. ***

Comment 76 Josh Boyer 2015-04-09 18:18:28 UTC
*** Bug 1210440 has been marked as a duplicate of this bug. ***

Comment 77 Josh Boyer 2015-05-13 12:57:10 UTC
*** Bug 1221029 has been marked as a duplicate of this bug. ***

Comment 78 Fedora Kernel Team 2016-01-27 14:49:41 UTC
*** Bug 1302346 has been marked as a duplicate of this bug. ***

Comment 79 Josh Boyer 2016-05-13 12:20:35 UTC
*** Bug 1335820 has been marked as a duplicate of this bug. ***

Comment 80 Roland 2016-05-13 22:03:42 UTC
Hi,

I want to build a custom kernel.
Previously, i did:
- install kernel src rpm of kernel 4.4.9
- download kernelpatch 4.4.10


i start the build, as non-root, on my fedora 23 pc, with:
rpmbuild -ba kernel.spec [enter]

however, the build stops with:

SPECS]$ rpmbuild -ba kernel.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mrPP7W
+ umask 022
+ cd /home/krusader/rpmbuild/BUILD
+ patch_command='patch -p1 -F1 -s'
++ find /home/krusader/rpmbuild/BUILD -maxdepth 1 -type d -name 'kernel-4.*'
++ grep -x -v /home/krusader/rpmbuild/BUILD/kernel-4.4.fc23
+ sharedirs=
+ :
+ '[' -d kernel-4.4.fc23 ']'
+ cd kernel-4.4.fc23
+ for i in 'linux-*'
+ '[' -d linux-4.4.10-300.fc23.x86_64 ']'
+ rm -rf deleteme.x86_64
+ mv linux-4.4.10-300.fc23.x86_64 deleteme-linux-4.4.10-300.fc23.x86_64
+ cd ..
+ '[' '!' -d kernel-4.4.fc23/vanilla-4.4 ']'
+ cd kernel-4.4.fc23
+ cp -al vanilla-4.4 linux-4.4.10-300.fc23.x86_64
+ rm -rf deleteme-linux-4.4.10-300.fc23.x86_64
+ cd linux-4.4.10-300.fc23.x86_64
+ '[' '!' -d .git ']'
+ git init
Initialized empty Git repository in /home/krusader/rpmbuild/BUILD/kernel-4.4.fc23/linux-4.4.10-300.fc23.x86_64/.git/
+ git config user.email kernel-team
+ git config user.name 'Fedora Kernel Team'
+ git config gc.auto 0
+ git add .
+ git commit -a -q -m baseline
+ xzcat /home/krusader/rpmbuild/SOURCES/patch-4.4.10.xz
+ patch -p1 -F1 -s
Reversed (or previously applied) patch detected!  Assume -R? [n]

I am clueless what to do now?
Thanks,
- Roland

Comment 81 Alessandro Selli 2016-05-14 18:40:01 UTC
(In reply to Roland from comment #80)
> Hi,
> 
> I want to build a custom kernel.
> Previously, i did:
> - install kernel src rpm of kernel 4.4.9
> - download kernelpatch 4.4.10
> 
> 
> i start the build, as non-root, on my fedora 23 pc, with:
> rpmbuild -ba kernel.spec [enter]
> 
> however, the build stops with:
> 
> SPECS]$ rpmbuild -ba kernel.spec
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mrPP7W
> + umask 022
> + cd /home/krusader/rpmbuild/BUILD
> + patch_command='patch -p1 -F1 -s'
> ++ find /home/krusader/rpmbuild/BUILD -maxdepth 1 -type d -name 'kernel-4.*'
> ++ grep -x -v /home/krusader/rpmbuild/BUILD/kernel-4.4.fc23
> + sharedirs=
> + :
> + '[' -d kernel-4.4.fc23 ']'
> + cd kernel-4.4.fc23
> + for i in 'linux-*'
> + '[' -d linux-4.4.10-300.fc23.x86_64 ']'
> + rm -rf deleteme.x86_64
> + mv linux-4.4.10-300.fc23.x86_64 deleteme-linux-4.4.10-300.fc23.x86_64
> + cd ..
> + '[' '!' -d kernel-4.4.fc23/vanilla-4.4 ']'
> + cd kernel-4.4.fc23
> + cp -al vanilla-4.4 linux-4.4.10-300.fc23.x86_64
> + rm -rf deleteme-linux-4.4.10-300.fc23.x86_64
> + cd linux-4.4.10-300.fc23.x86_64
> + '[' '!' -d .git ']'
> + git init
> Initialized empty Git repository in
> /home/krusader/rpmbuild/BUILD/kernel-4.4.fc23/linux-4.4.10-300.fc23.x86_64/.
> git/
> + git config user.email kernel-team
> + git config user.name 'Fedora Kernel Team'
> + git config gc.auto 0
> + git add .
> + git commit -a -q -m baseline
> + xzcat /home/krusader/rpmbuild/SOURCES/patch-4.4.10.xz
> + patch -p1 -F1 -s
> Reversed (or previously applied) patch detected!  Assume -R? [n]
> 
> I am clueless what to do now?
> Thanks,
> - Roland

Did you follow the directions at https://fedoraproject.org/wiki/Building_a_custom_kernel ?

Comment 82 Roland 2016-05-15 06:11:45 UTC
save yourself the energy.
I am migrated to kubuntu.

Comment 83 Josh Boyer 2016-08-20 14:20:52 UTC
*** Bug 1368670 has been marked as a duplicate of this bug. ***

Comment 84 Josh Boyer 2016-11-28 12:40:54 UTC
*** Bug 1398395 has been marked as a duplicate of this bug. ***

Comment 85 Laura Abbott 2018-03-21 19:31:53 UTC
*** Bug 1558217 has been marked as a duplicate of this bug. ***