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.
How to make kernel binary rpm with devfs enabled from src.rpm in RH9 ?

How to make kernel binary rpm with devfs enabled from src.rpm in RH9 ?

2003-04-20       - By Steven Shiau

 Back
Reply:     1     2     3     4  

Hi!
I am trying to make a kernel i586 and i386 binary rpm with devfs enabled from src rpm.
First for i586,
I tried to make a kernel-2.4.20-8.i586 with devfs enabled from
kernel-2.4.20-8.src.rpm. This is my procedure:
1. fetch the kernel source rpm kernel-2.4.20-8.src.rpm.
2. mkdir src; cd src; rpm2cpio ../kernel-2.4.20-8.src.rpm |cpio -idmv
3. edit the kernel-2.4.20-i586.config, set
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
4. copy all the files to /usr/src/redhat/SOURCES
5. run "rpmbuild -ba --target i586 --without BOOT --without smp --sign \
kernel-2.4.spec "

But it failed in:
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
...
+ make -s include/linux/version.h
+ echo BUILDING THE NORMAL KERNEL for i586...
BUILDING THE NORMAL KERNEL for i586...
+ make -s -j 1 CFLAGS_KERNEL=-Wno-unused bzImage
make[1]: Circular /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/asm/smplock.h <- /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /usr/src/redhat/BUILD/kernel-2.4.20/linux-2.4.20/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.
init/do_mounts.c: In function `rd_load_image ':
init/do_mounts.c:620: warning: int format, long unsigned int arg (arg 3)
init/do_mounts.c:647: warning: int format, long unsigned int arg (arg 3)
init/do_mounts.c:650: warning: int format, long unsigned int arg (arg 2)
init/do_mounts.c:662: warning: int format, long unsigned int arg (arg 2)
kmod.c: In function `exec_usermodehelper ':
kmod.c:123: warning: implicit declaration of function `set_user '
ide-proc.c: In function `proc_ide_read_identify ':
ide-proc.c:484: warning: assignment from incompatible pointer type
base.c: In function `is_devfsd_or_child ':
base.c:1417: structure has no member named `p_opptr '
base.c:1417: structure has no member named `p_opptr '
make[3]: *** [base.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [_subdir_devfs] Error 2
make: *** [_dir_fs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.14899 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.14899 (%build)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
Any idea ?

Second, about i386 rpm, is that possible to make kernel-2.4.20-8.i386.rpm instaed of kernel-BOOT-2.4.20-8.i386.rpm ?
I tried to use
"rpmbuild -ba --target i386 --without BOOT --without smp --sign kernel-2.4.spec "
but what I got are:
kernel-2.4.20-8.src.rpm
kernel-BOOT-2.4.20-8.i386.rpm
kernel-doc-2.4.20-8.i386.rpm
kernel-source-2.4.20-8.i386.rpm

Why there is no kernel-2.4.20-8.i386.rpm ?

Thanks in advance.
--
Steven Shiau [Chinese Big5]�����a
No. 7, R&D. Rd. VI, Science Based Industrial Park, Hsinchu, 30077, Taiwan.
[Chinese Big5] �x�W�s�˥�30077��Ƕ�Ϭ�o����C��
TEL:886-3-5776085 Ext:335, FAX:886-3-5773538
E-mail: jhs@(protected); steven@(protected)
http://www2.nchc.gov.tw/~c00jhs00

--
Steven Shiau [Chinese Big5]�����a
No. 7, R&D. Rd. VI, Science Based Industrial Park, Hsinchu, 30077, Taiwan.
[Chinese Big5] �x�W�s�˥�30077��Ƕ�Ϭ�o����C��
TEL:886-3-5776085 Ext:335, FAX:886-3-5773538
E-mail: jhs@(protected); steven@(protected)
http://www2.nchc.gov.tw/~c00jhs00