Mailing List
Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Installation - Getting started with Red Hat Linux
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 8.0 - Discussion of Red Hat Linux 8.0 (Psyche)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.1 - Discussion of Red Hat Linux 7.1 (Seawolf)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
building a custom kernel rpm

building a custom kernel rpm

2003-12-02       - By Aaron Neerenberg

 Back
Reply:     1     2     3     4     5     6     7     8  

I 'm trying to figure out how to build custom kernel rpm (we wanted to
change the file descriptor limit within the kernel.)

The process I am using, at the moment, is to:
1. cd /usr/src/linux
2. link a config file
3. make menuconfig, and change config options
4. edit Makefile, and change the EXTRAVERSION macro value
5. make rpm

Any help/input would be appreciated.

Thank you,
Aaron Neerenberg

The tail section of my build log follows:

The problem I encounter, however, happens after the kernel compilation
step, as follows:
make[2]: Nothing to be done for `modules_install '.
make[2]: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/arch/i386/mm '
make -C arch/i386/lib modules_install
make[2]: Entering directory
`/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/arch/i386/lib '
make[2]: Nothing to be done for `modules_install '.
make[2]: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/arch/i386/lib '
make -C arch/i386/oprofile modules_install
make[2]: Entering directory
`/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/arch/i386/oprofile '
mkdir -p
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root/lib/modules/2.4.21-4.0.1.EL_csc0_smp/kernel/arch/i386/oprofile/
cp oprofile.o
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root/lib/modules/2.4.21-4.0.1.EL_csc0_smp/kernel/arch/i386/oprofile/
make[2]: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/arch/i386/oprofile '
cd
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root/lib/modules/2.4.21-4.0.1.EL_csc0_smp; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/* ' -name '*.o ' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root -r
2.4.21-4.0.1.EL_csc0_smp; fi
make[1]: Leaving directory
`/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp '
+ cp arch/i386/boot/bzImage
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root/boot/vmlinuz-2.4.21-4.0.1.EL_csc0_smp
+ cp System.map
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root/boot/System.map-2.4.21-4.0.1.EL_csc0_smp
+ cp .config
/var/tmp/kernel-2.4.214.0.1.EL_csc0_smp-root/boot/config-2.4.21-4.0.1.EL_csc0_smp
+ /usr/lib/rpm/brp-compress
Processing files: kernel-2.4.214.0.1.EL_csc0_smp-1
Provides: kernel-2.4.21-4.0.1.EL_csc0_smp kernel-drm
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: kernel-debuginfo-2.4.214.0.1.EL_csc0_smp-1
error: Could not open %files file
/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/debugfiles.list: No
such file or directory


RPM build errors:
Could not open %files file
/usr/src/redhat/BUILD/kernel-2.4.214.0.1.EL_csc0_smp/debugfiles.list: No
such file or directory
make: *** [rpm] Error 1



--