We help IT Professionals succeed at work.

Delete a Kernel and build a new Kernel with IPX support

1,449 Views
Last Modified: 2008-02-01
Hi,

Yesterday I updated my kernel. At least I thought so. But Linux added the new kernel instead of replacing the old one with the new one. How can I remove either the new kernel or the old kernel? Since I need only one. The old kernel has my network-card working. For the new kernel I cannot get the network-card to work. I cannot build it again nor an insmod wont work.

Further after this kernel cleanup I need to build a kernel with IPX support. Because Linux messed up the kernel-update I can not savely build a new kernel. I dont know which kernel it will use.

Can someone list how exactly to build a new kernel? And keep the other kernel intact and usuable.
I am using Grub? Which files to copy. Grub needs vmlinux vmlinuz and initrd files. From where to copy.

Please be complete in ur answer..

Thanx,
Alexander.
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
What should i do with bzImage and what with vmlinux? How to copy them to /boot?

[root@alexander-linux build]# find . -name vmlinux -print
./vmlinux
[root@alexander-linux build]# find . -name bzImage -print
./arch/i386/boot/bzImage
[root@alexander-linux build]# pwd
/lib/modules/2.4.20-28.9custom/build

Btw my kernel/drivers/net is empty. so no IPX? and something went wrong during build?

How to remove the build for the network-card so I can rebuild again?


Author

Commented:
I could not get the netword-card working under the new kernel. So I removed the new kernel....

Author

Commented:
Build a new kernel

called module alex
copied bzImage to /boot/vmlinuz-alex
copied vmlinux to /boot/vmlinux-alex

copy&paste grub-boot for other kernel
4lines
only changed description and target vmlinuz

now get kernel panic mount bla bla root=LABEL/ bla bla

however I see IPX loading just before :)

how to prevent this kernel panic?

Commented:
http://www.linuxdocs.org/HOWTOs/Kernel-HOWTO.html
that is a copy of the kernel HOWTO, it's pretty informative.  

Basically, once configuring your kernel with:
cd /usr/src/linux/
make menuconfig (or any other config you prefer)

you would do:
make dep && make clean bzImage modules modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot/new-kernel-name

Commented:
sorry, i posted my previous comment before refreshing and reading the last one you made.

What exactly does the kernel panic say, and can you paste your /etc/grub.conf file in here for me?

Author

Commented:
It tries to mount root ... bla bla VFS bla bla

In /boot there is many file...
System.map-<version>
module-info-<version>
vmlinux-<version>
vmlinuz-<version>

version=4.20.8

how should i copy bzImage to /boot, to make it version 'alex' for example

in this copy-files stuff all kernel-manuals seems to be lacking in help
all steps are well described, except the last final crucial one

Author

Commented:

Author

Commented:
Indeed i have this root=LABEL too... I will change it to /dev/hdc..

So only use bzImage? I guess that is the boot-image... Where is the kernel? Or kernel is loaded from /lib/modules?
But what to do with vmlinux?? What is in this file?

What should reside in /boot
In find there module-info, System.map, vmlinux, vmlinuz, initrd ...

Everything is very confusing...

Author

Commented:
Did some further browsing....

vmlinuz = compressed kernel (to boot from)
vmlinux = uncompressed kernel (can be removed; not necessary)
initrd = for initialisation of some hardware like scsi (not needed for me)
System.map = dont know yet, but should be in sync with vmlinuz
module-info = dont know yet, but should be in sync with vmlinuz/vmlinux from build

I guess I can just copy initrd, System.map from the existing kernel
Copy bzImage to /boot/vmlinuz-alex
Copy module-info to /boot/module-info-alex

Commented:
###/etc/grub.conf####
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Alex's kernel
        root (hd0,1)
        kernel /vmlinuz-alex ro root=/dev/hda3
title Windows XP
        rootnoverify (hd0,0)
        chainloader +1
##end grub file ###

that's what you should need  -- ASSUMING: windows is in fact on /dev/hda1 and linux (/) is installed to /dev/hda3
meanign your fdisk would look something like this;
[root@woo root]# fdisk -l /dev/hda

Disk /dev/hda: 255 heads, 63 sectors, 7294 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1275  10241406    c  Win95 FAT32 (LBA)               #this is my windows C drive
/dev/hda2          1276      1294    152617+  83  Linux                                 #this is my linux /boot
/dev/hda3          1295      3206  15358140   83  Linux                                 #this is my linux /
/dev/hda4          3207      7294  32836860    f  Win95 Ext'd (LBA)               #this is my extended partition, containing the ones below
/dev/hda5          3207      4481  10241406   83  Linux                                 #this is my linux /storage
/dev/hda6          4482      4742   2096451   82  Linux swap                        #this is my linux swap
/dev/hda7          4743      7294  20498908+  83  Linux                              #this is my linux /home

you may not have as many, i have some extra partitions made for different reason (you probably are missing /storage and /home) but the idea is the same.

Commented:
>  It tries to mount root ... bla bla VFS bla bla
This is not exactly what the kernel panic says ;-)  For your future work here at EE, exact error messages (expecially when explicitly requested) are much more helpful.  There are several reasons why a kernel can panic about moutn root blah blah ....  This is the most common, but we could still be barking up the wrong tree.

Also, it's not /dev/hdc you need to add (that's probably yoour CDROM) its /dev/hda3 -- this means /dev/hda (your primary ide, master device -- usually your primary hard drive and the 3 on the end means the 3'rd partition. (Usually where linux / lands on a dual booter like yours and mine.  So /dev/hdc would be your secondary IDE's primary device -> the entire thing.  /dev/hdc1 would be the first partition on it (if it were a disk with partitions))

Author

Commented:
Ok. I will try it when I arrive at home. My assumptions about vmlinuz en vmlinux is correct?

Now I know how to build a kernel and install it... i will incorporate some SCO copyright statements in my private version... ha ha ha

Author

Commented:
Next time I will be more precise in error messages. But I was not able to copy/paste it and after last evening work... (removed the new update kernel 4.20.28-9, which caused some problems to my network card) I was a little fed-up that my new kernel still didn't work. Is there no kernel-management tool available who helps u in selecting installable kernels and make them available in grub (in the correct way..).

Maybe an Expert like you can provide linux-newbies like me with such a tool. Even the whole proces of make xconfig dep clean bzImage modules install_modules can be automated.

Commented:
Redhat does not normally like you compiling your own kernel, so they don't offer many tools to help you do so.  If you are using some other distro's they have some more helpful tools out there (gentoo has something called genkernel that will walk you through it, doing most everything for you)

I understand your frustration -- believe me, I've been there before ;-)

>My assumptions about vmlinuz en vmlinux is correct?
Yup!

Author

Commented:
I think they should offer something during Install procedure.

In my case:
* select IPX protocol
* select NTFS read-only driver

Why not intergrate XConfig into install-procedure...

Commented:
Well most of the time people who compile their own kernels are doing it for learning/special features -> and many of them grew up on the command line and don't like having it all done for them ;-)  Outside of that, if you are compiling your own kernel (unless like in your case it's for a driver) you are often doing something different and you may not have a standard setup -> in your case your redhat system is setup standard so I can tell you where to copy easily, a installer would have to figure that out and there isn't much demand for it so it hasn't been done for redhat.

Like I said, if you were using gentoo (a distrobution that compiles their own stuff normally) they have a utility to walk you through it.

Author

Commented:
Still no success :-(

I got the kernel starting now (root=/dev/hdc3 did the trick)

However now I got a lot of unresolved-symboles errors during startup. XServer cannot startup...
I am now on my XP. So I cannot provide u with a precise error-log.

I will try again to build my kernel...

Commented:
wait a sec! X wont start means your kernel is working at least that far (and probably fine).

Do you have an nvidia card? If that' sthe case you need to recompile your nvidia module (rerun their installer file)

Also possibly your XF86Config file needs fixed depending on how you set it up.

What is your video card/mouse for that computer?

Author

Commented:
I use an ATI Radeon 7500 / 32MB and a general wheel mouse

Did not compile yet..

Anyway. Up2date tells me... i run kernel 2.4.20.8 and I should reboot to test kernel 2.4.20.28-9.
That was the kernel causing my network-card problem. I deleted the source and the kernel from both /lib/modules and /boot
But RH still thinks the kernel is installed. How to properly delete that kernel?

Commented:
rpm -e kernel-2.4.20.8

will remove the rpm for you, since you removed parts yourself it won't go nicely so do

rpm -e --force kernel-2.4.20.8

make sure you remove the right one!

rpm -qa | grep kernel

will list all the kernel rpm's you have installed...

Author

Commented:
kernel deleted...

but when I run make xconfig, it seems that the defaults is not the same as options currently installed in the kernel by the RH-installer
for example VFAT is not selected... while it is in my current kernel... weird...

Author

Commented:
how to get a config-file which represents the installed options in the current kernel... so I can add my stuff...

Commented:
it is not recommended to use the config from an old kernel to generate a new one as options tend to change over time...

In your case however you are taking an existing redhat kernel and just doing a compile with your own options.  In that case you should be fine:

If you go to /usr/src/linux-2.4/configs/
(this will be the kernel source diretory assuming you used traditional redhat symlink for linux-2.4 going to the current source

copy the appropriate *.config file to /usr/src/linux-2.4/.config
(this will give you the redhat defaults)

then run
make menuconfig

this will give you the basis of what redhat used -> you can go from there.

Author

Commented:
which one is the correct one? there are several configs...

Author

Commented:
but how come the .config in /usr/src/linux-2.4 is not the same as how RH is default configured....

for example, I dont have mouse-support according to the errors-messages during kernel-startup, and X-server refuses to start up. this should be in the default .config.

Commented:
if should be the i686.config one for you (NOT the i686 smp one)

kernel-2.4.20-i686.config

the .config in /usr/src/linux-2.4 is the one you generated when you ran the menuconfig last time - it overwrote anything previous

Author

Commented:
oke. i will try at home tonight.... thanx again.

Author

Commented:
hmm my last comment is gone..

i tried to compile but got errors on classlist and devlist. i managed to get them created...

however after that I have problems in make modules.
browsed on internet and seems my problem is very common.
how to circumvent this problem?

Commented:
can you be more specific as to what error you got on classlist and devlist?
When compiling your kernel the first time you get an error you shouldn't try going any farther until you fix that error -> it's almost always a waste of time as the first error will mess up other things...

Author

Commented:
classlist/devlist - do not know how to make ...

i never did a make mrproper. according to the docs i should not need one.

btw. IPX is within the normal distro of RH. So we can limit the question to how to rebuild the kernel.

sofar answered:
* copy configs/<the-correct-config-file> to .config
* the whole make process (make dep clean bzImage modules modules_install)
* copy bzImage to /boot/vmlinuz-<version>
* add kernel to grub. take care with root=...; correct /dev/hd.. can be found via  fdisk -l
* kernel can be delete via rmp -e (--force); list of kernel via rpm -qa

still open:
* make bzImage fails on devlist/classlist; do not know how to make ...
* make modules modules_install; propably coz of problem with make bzImage

Commented:
if that is the exact error you are getting I'm afraid I have never seen/heard of it...

Author

Commented:
{standard input}:1259: Warning: indirect lcall without `*'
{standard input}:1269: Warning: indirect lcall without `*'
{standard input}:1337: Warning: indirect lcall without `*'
{standard input}:1352: Warning: indirect lcall without `*'
{standard input}:1363: Warning: indirect lcall without `*'
{standard input}:1851: Warning: indirect lcall without `*'
{standard input}:1928: Warning: indirect lcall without `*'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=pci_irq  -c -o pci-irq.o pci-irq.c
pci-irq.c: In function `pcibios_enable_irq':
pci-irq.c:786: warning: unused variable `interrupt_line_quirk'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=mtrr  -DEXPORT_SYMTAB -c mtrr.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=apm  -DEXPORT_SYMTAB -c apm.c
{standard input}: Assembler messages:
{standard input}:248: Warning: indirect lcall without `*'
{standard input}:352: Warning: indirect lcall without `*'
rm -f kernel.o
ld -m elf_i386  -r -o kernel.o process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o pci-dma.o i386_ksyms.o i387.o bluesmoke.o dmi_scan.o sysenter.o pci-i386.o pci-pc.o pci-irq.o mtrr.o apm.o
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -traditional -c head.S -o head.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=init_task  -c -o init_task.o init_task.c
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/kernel'
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 " -C  arch/i386/mm
make[1]: Entering directory `/usr/src/linux-2.4.20-8/arch/i386/mm'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.20-8/arch/i386/mm'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=init  -c -o init.o init.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=fault  -c -o fault.o fault.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ioremap  -c -o ioremap.o ioremap.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=extable  -c -o extable.o extable.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=pageattr  -DEXPORT_SYMTAB -c pageattr.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=pgtable  -c -o pgtable.o pgtable.c
rm -f mm.o
ld -m elf_i386  -r -o mm.o init.o fault.o ioremap.o extable.o pageattr.o pgtable.o
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/mm'
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/mm'
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 " -C  arch/i386/lib
make[1]: Entering directory `/usr/src/linux-2.4.20-8/arch/i386/lib'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.20-8/arch/i386/lib'
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -c checksum.S -o checksum.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=old_checksum  -c -o old-checksum.o old-checksum.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=delay  -c -o delay.o delay.c
delay.c:59: warning: type defaults to `int' in declaration of `__cyclone_delay'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=usercopy  -c -o usercopy.o usercopy.c
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -c getuser.S -o getuser.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=memcpy  -c -o memcpy.o memcpy.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686   -nostdinc -iwithprefix include -DKBUILD_BASENAME=strstr  -c -o strstr.o strstr.c
rm -f lib.a
ar  rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o memcpy.o strstr.o
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/lib'
make[1]: Entering directory `/usr/src/linux-2.4.20-8'
kallsyms pass 1
ld -m elf_i386 -T /usr/src/linux-2.4.20-8/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o --start-group arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o  drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/net/appletalk/appletalk.o drivers/net/tokenring/tr.o drivers/net/wan/wan.o drivers/atm/atm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/net/pcmcia/pcmcia_net.o drivers/net/wireless/wireless_net.o drivers/pnp/pnp.o drivers/video/video.o drivers/media/media.o drivers/md/mddev.o drivers/isdn/vmlinux-obj.o drivers/sensors/sensor.o net/network.o crypto/crypto.o /usr/src/linux-2.4.20-8/arch/i386/lib/lib.a /usr/src/linux-2.4.20-8/lib/lib.a /usr/src/linux-2.4.20-8/arch/i386/lib/lib.a --end-group -o .tmp_vmlinux1
kallsyms pass 2
kallsyms pass 3
ld -m elf_i386 -T /usr/src/linux-2.4.20-8/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o --start-group arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o  drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/net/fc/fc.o drivers/net/appletalk/appletalk.o drivers/net/tokenring/tr.o drivers/net/wan/wan.o drivers/atm/atm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/net/pcmcia/pcmcia_net.o drivers/net/wireless/wireless_net.o drivers/pnp/pnp.o drivers/video/video.o drivers/media/media.o drivers/md/mddev.o drivers/isdn/vmlinux-obj.o drivers/sensors/sensor.o net/network.o crypto/crypto.o /usr/src/linux-2.4.20-8/arch/i386/lib/lib.a /usr/src/linux-2.4.20-8/lib/lib.a /usr/src/linux-2.4.20-8/arch/i386/lib/lib.a --end-group .tmp_kallsyms3.o -o vmlinux
nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
make[1]: Leaving directory `/usr/src/linux-2.4.20-8'
make[1]: Entering directory `/usr/src/linux-2.4.20-8/arch/i386/boot'
gcc -E -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA  bootsect.S -o bbootsect.s
as -o bbootsect.o bbootsect.s
bootsect.S: Assembler messages:
bootsect.S:239: Warning: indirect lcall without `*'
ld -m elf_i386 -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
gcc -E -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -D__BIG_KERNEL__ -D__ASSEMBLY__ -traditional -DSVGA_MODE=NORMAL_VGA  setup.S -o bsetup.s
as -o bsetup.o bsetup.s
setup.S: Assembler messages:
setup.S:294: Warning: indirect lcall without `*'
ld -m elf_i386 -Ttext 0x0 -s --oformat binary -e begtext -o bsetup bsetup.o
make[2]: Entering directory `/usr/src/linux-2.4.20-8/arch/i386/boot/compressed'
tmppiggy=_tmp_$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
objcopy -O binary -R .note -R .comment -S /usr/src/linux-2.4.20-8/vmlinux $tmppiggy; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
ld -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T $tmppiggy.lnk; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -traditional -c head.S
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=misc -c misc.c
ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/boot/compressed'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build tools/build.c -I/usr/src/linux-2.4.20-8/include
objcopy -O binary -R .note -R .comment -S compressed/bvmlinux compressed/bvmlinux.out
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (22, 3)
Boot sector 512 bytes.
Setup is 4918 bytes.
System is 1094 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/arch/i386/boot'
[root@alexander-linux linux]# make modules
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-8'
make[1]: Circular /usr/src/linux-2.4.20-8/include/asm/smplock.h <- /usr/src/linux-2.4.20-8/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack.h <- /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ip_conntrack_helper.h dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-8'
make -C  kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-8/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-8/include/linux/modversions.h  -nostdinc -iwithprefix include -DKBUILD_BASENAME=cpufreq  -DEXPORT_SYMTAB -c cpufreq.c
In file included from cpufreq.c:15:
/usr/src/linux-2.4.20-8/include/linux/kernel.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:60: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:60: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:61: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:61: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:62: `panic_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:62: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:68: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:68: `simple_strtoul_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:68: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:69: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:69: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:69: `simple_strtol_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:69: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:70: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:70: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:70: `simple_strtoull_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:70: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:72: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:72: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:73: `sprintf_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:73: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:74: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:74: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:74: `vsprintf_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:74: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:75: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:75: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:76: `snprintf_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:76: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:77: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:77: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:77: `vsnprintf_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:77: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:79: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:79: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:80: `sscanf_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:80: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:81: `vsscanf_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:81: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/linux/kernel.h:83: `get_option_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:83: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/linux/kernel.h:84: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:84: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:84: `get_options_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:84: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:85: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:85: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:85: `memparse_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:85: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:91: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:91: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:92: `printk_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:92: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:108: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:108: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:109: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/linux/kernel.h:114: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:114: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:114: `dump_stack_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:114: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/kernel.h:191: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:191: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/kernel.h:191: `__out_of_line_bug_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/kernel.h:191: warning: function declaration isn't a prototype
In file included from /usr/src/linux-2.4.20-8/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.20-8/include/linux/list.h:6,
                 from /usr/src/linux-2.4.20-8/include/linux/module.h:12,
                 from cpufreq.c:16:
/usr/src/linux-2.4.20-8/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:82: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/asm/processor.h:265: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:265: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/asm/processor.h:265: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/asm/processor.h:269: warning: parameter names (without types) in function declaration
In file included from cpufreq.c:16:
/usr/src/linux-2.4.20-8/include/linux/module.h:183: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/module.h:183: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/module.h:183: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/module.h:183: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/module.h:184: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/module.h:184: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/module.h:184: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/module.h:184: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/module.h:185: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/module.h:185: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/linux/module.h:186: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-8/include/linux/module.h:187: invalid suffix on integer constant
/usr/src/linux-2.4.20-8/include/linux/module.h:187: parse error before numeric constant
/usr/src/linux-2.4.20-8/include/linux/module.h:187: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/module.h:187: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-8/include/linux/module.h:196: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-8/include/linux/module.h:196: warning: parameter names (without types) in function declaration
In file included from /usr/src/linux-2.4.20-8/include/linux/fs.h:19,
                 from /usr/src/linux-2.4.20-8/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.20-8/include/linux/binfmts.h:4,
                 from /usr/src/linux-2.4.20-8/include/linux/sched.h:10,
                 from /usr/src/linux-2.4.20-8/include/linux/mm.h:22,
                 from /usr/src/linux-2.4.20-8/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.20-8/include/linux/proc_fs.h:5,
                 from cpufreq.c:24:
/usr/src/linux-2.4.20-8/include/linux/dcache.h: In function `dget':
/usr/src/linux-2.4.20-8/include/linux/dcache.h:254: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5'
cpufreq.c: In function `cpufreq_parse_policy':
cpufreq.c:111: warning: implicit declaration of function `sscanf_R859204af'
cpufreq.c: In function `cpufreq_proc_read':
cpufreq.c:225: warning: implicit declaration of function `sprintf_R1d26aa98'
cpufreq.c: In function `cpufreq_proc_init':
cpufreq.c:327: warning: implicit declaration of function `printk_R1b7d4074'
cpufreq.c: In function `cpufreq_restore':
cpufreq.c:1109: warning: implicit declaration of function `panic_R01075bf0'
cpufreq.c: At top level:
cpufreq.c:192: warning: `cpufreq_setup' defined but not used
make[1]: *** [cpufreq.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel'
make: *** [_mod_kernel] Error 2
[root@alexander-linux linux]#

Author

Commented:
no problem now on classlist and devlist.

above problem is during make modules

Commented:
have you tried a make mrproper?
it's not needed every time, but when you are going over and over it clears out anythign from before..

Author

Commented:
i really had it with linux compile for now. why redhat distributes a kernel-source package which has difficulties to compile. further it is very strange that there are compile problems by random. linux is doing good.... not....

Commented:
This is not intended to be an excuse, but redhat doesn't expect you to compile your own kernel, they expect you to install theirs via rpm.

(that is no excuse I admit, just a thought)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.