Bug 41973
Summary: | Can't recompile supplied RH7.1 kernel - hangs after uncompress of bzImage | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Bryce Nesbitt <bryce> |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED NOTABUG | QA Contact: | Brock Organ <borgan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
URL: | http:;//www.kernel.org | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-06-06 15:03:07 UTC | 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
Bryce Nesbitt
2001-05-23 14:01:59 UTC
What steps did you use to compile your kernel ? And if you want to compile a single driver, there are better ways than recompiling your entire kernel; see http://people.redhat.com/arjanv/xircom_cb/ for an example of an external driver. Steps: 0> make clean make mrproper 1> Copy a config file to .config 2> make oldconfig 3> make dep 4> make (usually) 5> make bzImage 6> make modules (usually) I've tried it now with and without /usr/src/linux softlinked to the current Kernel directory. Which exact .config file does RedHat use? Can I recreate the exact bzImage used by RedHat 7.1 on an Athlon on a RedHat 7.1 Athlon system? I want the comfort of knowing I can recompile the entire kernel & modules, even if my original goal was just one. I'd like to recompile my module in the kernel source tree I'm running. Your kernel was compiled with kernel-2.4.2-i686.config The -athlon.config was provided as a service for people wanting to compile an athlon kernel but due to lack of space on the CD (combined with the late time I added it to the kernel) is not supplied in binary form. We build our kernels with "rpm --rebuild -target=<foo> kernel-2.4.2-2.src.rpm" where <foo> is one of i386, i586, i686 or athlon. However, the kernel-source is the exact same source (except for files which generated by make dep and will be created to be the same we used if you do make dep) as the shipped binary. If the kernel stops after "uncompressing..", that usually means you either have the wrong CPU type, or LILO went wrong. You can close this. It works if I don't select the Athlon CPU type. There are also compile errors with audio & "mmx_blockcopy" if I select Athlon. So, it looks more like a Kernel issue and less like a RedHat issue. If the default install would leave a .config file to match the installed kernel binary, that would be great. It would be comforting to install a new system, recompile the kernel, and get the same result as the supplied binary right out of the box. Athlon _should_ compile, although I must admit it's less tested by us. "If the default install would leave a .config file to match the installed kernel binary, that would be great. It would be comforting to install a new system, recompile the kernel, and get the same result as the supplied binary right out of the box." Thing is, we often install 2 or 3 kernels (on SMP systems you get both the UP and the SMP kernel), and it would be hard to get the proper one there. Having said that, I added a bit of magic to the config scripts recently that if a .config is missing, it does look at the currently running kernel. |