Re: difficulty recompiling RHEL 4.2 kernel
- From: Lenard <lenard@xxxxxxxxx>
- Date: Thu, 01 Jun 2006 18:24:30 GMT
Dushan Mitrovich wrote:
I've installed a version of Red Hat Enterprise Linux 4.2 and now am try-
ing to add filesystem module support for HPFS, so it could read/write
to my OS/2 files. After making the appropriate modyfication to .CONFIG
using MAKE XCONFIG, I issued the commands (using upper case here only
for clarity)
MAKE MRPROPER
MAKE CLEAN
MAKE BZIMAGE
This is where the problem appears, as the last command produces the
message
[/usr/src/kernels/2.6.9-22.0.1.EL-i686]# make bzImage
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
UPD include/asm-i386/asm_offsets.h
/bin/sh: arch/i386/kernel/asm-offsets.s: No such file or directory
mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or
directory make: *** [include/asm-i386/asm_offsets.h] Error 1
and indeed I can't find a file containing 'offsets' anywhere. I'd ap-
preciate suggestions for what my next steps should be.
Also, I've found on the Internet over half a dozen sets of directions
and HOWTOs on recompiling the kernel, and they all have somewhat diffe-
rent instructions. Maybe some are outdated. What would you recommend
as a good, up-to-date, reliable reference book accessible by a lay user?
Thanks for the help.
It sounds like you maybe forgot to "prep" the source before;
After installing the kernel source you need to do;
rpmbuild -bp --target $(uname -m) kernel-2.6.spec
See the "kernel" section in the release-notes;
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/release-notes/es-x86/
This is a bit different then what you might be used to or have read, please
get used to it;
<apply patches here> ;this is beyond those from "prepping" the kernel source
make mrproper
cp /boot/config-<version#> .config ; a starting point to build your kernel
make menuconfig ; this is where you tweak the kernel for your hardware
make ; takes the place of make bzImage and make modules
make modules_install
make install
Yes, as you already know, you can use 'make xconfig' or 'make gconfig'
in-place of the 'make menuconfig' command.
As Tauno Voipio stated, do not change the case of the linux commands as
Linux is case sensitive.
As Nico Kedel-Garcia suggested instead of the 'make modules_install' and
'make install' commands you can use the 'make rpm' command.
--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005
.
- Follow-Ups:
- Re: difficulty recompiling RHEL 4.2 kernel
- From: Dushan Mitrovich
- Re: difficulty recompiling RHEL 4.2 kernel
- From: Nico Kadel-Garcia
- Re: difficulty recompiling RHEL 4.2 kernel
- References:
- difficulty recompiling RHEL 4.2 kernel
- From: Dushan Mitrovich
- difficulty recompiling RHEL 4.2 kernel
- Prev by Date: difficulty recompiling RHEL 4.2 kernel
- Next by Date: Re: optimal partitions during install...
- Previous by thread: Re: difficulty recompiling RHEL 4.2 kernel
- Next by thread: Re: difficulty recompiling RHEL 4.2 kernel
- Index(es):
Relevant Pages
|