Re: difficulty recompiling RHEL 4.2 kernel



Lenard wrote:
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;

Hold: what is in /usr/src/kernels is precisely that "prepped" directory,
with the default config files in an appropriate subdirectory.

As Nico Kedel-Garcia suggested instead of the 'make modules_install'
and 'make install' commands you can use the 'make rpm' command.

Then use "rpm -i" on the resulting kernel RPM to install it *as well as*
your existing kernel, instead of to replace it. Trust me on this part, you
don't want to do an "rpm -U" or "rpm -F" and replace the existing kernel
until you've had a chance to test it.


.



Relevant Pages