А trouble with 2.4.25 linux kernel
Hello !
I want to get linux 2.4.25 running on my server, whitch currently uses 2.2.20. I've read /linux-2.4.25/Documentation/Changes and it seems
that everything required is ok.
But.
My server has Pentium MMX in it. So when I compile the 2.4.25 kernel with all defaults (i use menuconfig), it fails on startup. Just reboots the PC, and I can't see anything. I've googled through linux-kernel archives and got the idea that I've not configured the Processor type correctly. Ok, I choose Pentium MMX from menu (as my old 2.2.20 reports in /proc/cpuinfo) and try to compile the kernel. All the other kernel settings are default.
It fails ! Here's the log. I've tested that on my workstation with some new cool fast processor and it says the same:
In file included from /root/linux-2.4.25/include/linux/modversions.h:69,
from/root/linux-2.4.25/include/linux/module.h:21,
from
ksyms.c:14: /root/linux-2.4.25/include/linux/modules/dec_and_lock.ver:2: warning: `atomic_dec_and_lock' redefined /root/linux-2.4.25/include/linux/spinlock.h:67: warning: this is the location of
the previous definition In file included from /root/linux-2.4.25/include/linux/modversions.h:135,
from/root/linux-2.4.25/include/linux/module.h:21,
from
ksyms.c:14: /root/linux-2.4.25/include/linux/modules/i386_ksyms.ver:84: warning: `cpu_data'
redefined
.... and so on.....
I can send the whole stderr output if that's not enough.
It seems to me that one can easily reproduce all this error and warning messages that I've got. Just set Pentinum MMX processor and leave all the other settings default.
So, how should I understand this ? Have I done something wrong ? Is that a bug in kernel ? Can I run 2.4.25 on Pentium MMX?
Please, advice me something, hope you can easily reproduce the bug.
Thanx in advance !
Stepan Yakovenko
Quoted 6 lines · Stepan Yakovenko
In file included from
/root/linux-2.4.25/include/linux/modversions.h:69,/root/linux-2.4.25/include/linux/module.h:21,
ksyms.c:14:/root/linux-2.4.25/include/linux/modules/dec_and_lock.ver:2: warning:
`atomic_dec_and_lock' redefined
You must 'make dep' after changing processor type in 2.4 kernels. To be absolutely safe, move your .config to another directory, make mrproper, move .config back then make oldconfig dep.