Re: difficulty recompiling RHEL 4.2 kernel



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
.



Relevant Pages

  • Re: difficulty recompiling RHEL 4.2 kernel
    ... ing to add filesystem module support for HPFS, ... to my OS/2 files. ... do not change the case of the linux commands as ... McCarty's 'Learning Red Hat Linux', which is quite good tho dated and not ...
    (comp.os.linux.setup)
  • difficulty recompiling RHEL 4.2 kernel
    ... ing to add filesystem module support for HPFS, so it could read/write ... to my OS/2 files. ... I issued the commands (using upper case here only ...
    (comp.os.linux.setup)
  • Re: MC Alternative? (File Managers)
    ... >> almost every personal computer in existence and are considered ... >> stripped down file manager for the console. ... > combination of programmable F# keys (through bash) and bash ... > by your shell (there are no built-in commands). ...
    (comp.os.linux.misc)
  • Re: MC Alternative? (File Managers)
    ... >> almost every personal computer in existence and are considered ... >> stripped down file manager for the console. ... > combination of programmable F# keys (through bash) and bash ... > by your shell (there are no built-in commands). ...
    (comp.unix.questions)
  • Re: HDD speed test
    ... and I was wondering if there are any built in commands from Bash or any ... "A personal computer is called a personal computer because it's yours, ...
    (linux.redhat)