LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2006, 07:39 AM   #1
stewchcken
LQ Newbie
 
Registered: Jun 2005
Posts: 18

Rep: Reputation: 0
make bzImage fails


Dear I have one problem with recompile kernel

i am using RHEL 4
run command make xconfig
after did some changes on Linux Kernels Configuration GUI
and save and quit changes .


I run command

make bzImage
make modules
but two commands failed, below are error message
could anyone give me some hints?


make bzImage
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
/bin/sh: arch/i386/kernel/asm-offsets.s: file or diectory doesnot exist
UPD include/asm-i386/asm_offsets.h
mv: stat‘include/asm-i386/asm_offsets.h.tmp’file or diectory doesnot exist
make: *** [include/asm-i386/asm_offsets.h] error: 1
 
Old 02-11-2006, 11:32 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
In general, here are the steps you want to follow for Redhat or Fedora to build the kernel (this process assumes you are running as root):

1. Download the kernel source RPM.
2. Install the kernel source:

rpm -Uvh kernel-2.6.*.src.rpm

3. Change to the directory with the spec file:

cd /usr/src/redhat/SPECS/

4. Create the build environment (substitute x86_64 for i686 if you are building on an AMD64 or EM64T):

rpmbuild -bp --target=i686 kernel-2.6.spec

5. Change to the directory for the build:

cd /usr/src/redhat/BUILD/kernel-*/linux-*/

6. Copy the appropriate config file from the configs directory:

/bin/cp -v -f configs/kernel-2.6.*-i686.config ./.config

7. Update Makefile kernel id. To do this edit the file "Makefile", and change the "EXTRAVERSION" to reflect the actual update version and add an identifier so you know this is a custom kernel:

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 15
EXTRAVERSION = -1.1831_FC4mm

8. Tell the build process to use the configuration file you copied from the configs directory:

make oldconfig


9. Make sure there are no already built files:

make clean

10. If you need to modify the configuration (remember to save your changes):

make xconfig

11. If you need to apply patches, do that now. For example:

cd drivers/acpi/
patch < /usr/local/src/toshiba_acpi_*.patch
cd ../../

12. Build the installable rpm file:

make rpm

13. Install the freshly built kernel rpm:

rpm -ivh /usr/src/redhat/RPMS/i386/kernel-2.6.*

14. Create the initial ramdisk, update the loader (grub) menu and update the kernel module dependency list:

new-kernel-pkg --install --make-default --mkinitrd --depmod 2.6.x-y.zzzzaa

15. Verify that grub has been properly updated:

cat /boot/grub/grub.conf

16. Reboot to select the new kernel:

shutdown -r now
 
  


Reply



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
difference between make bzImage and make vmlinuz? veritas Linux - Newbie 3 11-23-2011 04:45 AM
Kernel compiling process problem. make bzimage fails. RJARRRPCGP Linux - Newbie 2 08-24-2004 04:14 PM
Make bzImage fails in AS 2.1 daker13 Red Hat 4 02-24-2004 08:00 PM
'make mrproper' - make bzImage options. liguorir Linux - Software 4 06-26-2003 06:48 PM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12: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
Open Source Consulting | Domain Registration