On Sunday 19 May 2002 11:06 am, Fedneg wrote:
> "rpm -rebuild -target athlon kernel-2.4.18.6mdk-1-1mdk.src.rpm"
<snip>
> error: Bad exit status from /var/tmp/rpm-tmp.86578 (%build)
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.86578 (%build)"
> I can't figure out what's going wrong here so, please, can someone
> give me any idea.
> P.D.: System is Mandrake 8.2.
Try installing the kernel-source-2.4.18.6mdk rpm, not the src.rpm.
Then
cd /usr/src/linux
make mrproper <--- always needed
cp /boot/config-2.4.18-6mdk .config
edit .config like this
# CONFIG_M586 is not set <--disable i586
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
CONFIG_MK7=y <-- enable athlon
then make dep and so on. That'll get you a 'stock' Mandrake
configured kernel compiled for athlon.
I did it with -6mdk. I'm now usin 2.4.18-13k7 and it appears to
be the last Mandrake kernel built with gcc 2.9.6. Newer ones are
built with gcc3. I suggest you edit Makefile before compiling and
change: EXTRAVERSION = -6mdk to somethin like EXTRAVERSION = -6k7
otherwise you'll depose your current kernel. Also if you uncomment
(enable) this line export INSTALL_PATH=/boot then a last
step of 'make install' will put your new kernel image, initrd,
system map, config, etc. in boot, edit and run lilo for you as an
option to boot to when you reboot. It won't change whatever is your
current default.
make dep && make clean && make bzImage && make modules &&
make modules_install && make install
--
Tom Brinkman Corpus Christi, Texas
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com