patch to make 2.4.32 work on i486 again



Booting the 2.4.32 kernel compiled for a i486 on an i486 box fails,
because "Kernel compiled for Pentium+, requires TSC feature!" (printed
from check_config() include/asm-i386/bugs.h). To reproduce, select 486 in
the kernel configuration and grep CONFIG_X86_TSC .config

Seems strange that no one noticed this, am i the only one still using 486
boxes? :)

Jacek

Simple patch against vanilla 2.4.32:

--- arch/i386/config.in.old 2006-01-30 22:57:21.000000000 +0100
+++ arch/i386/config.in 2006-01-30 23:00:55.000000000 +0100
@@ -65,6 +65,7 @@
define_bool CONFIG_X86_POPAD_OK y
define_bool CONFIG_RWSEM_GENERIC_SPINLOCK n
define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM y
+ define_bool CONFIG_X86_TSC n
fi
if [ "$CONFIG_M486" = "y" ]; then
define_int CONFIG_X86_L1_CACHE_SHIFT 4
@@ -72,6 +73,7 @@
define_bool CONFIG_X86_ALIGNMENT_16 y
define_bool CONFIG_X86_PPRO_FENCE y
define_bool CONFIG_X86_F00F_WORKS_OK n
+ define_bool CONFIG_X86_TSC n
fi
if [ "$CONFIG_M586" = "y" ]; then
define_int CONFIG_X86_L1_CACHE_SHIFT 5
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [solved] Re: usb-stick accessible, but doesnt boot
    ... but the patch has not been committed to current yet. ... I have FreeSBIE reliably up and running with USB2. ... Can you tell me what to do to the kernel configuration? ... USB bus: "device usb". ...
    (freebsd-questions)
  • Re: RFC: ATA to CAM integration patch
    ... Alexander Motin wrote: ... (only one occurrence of that macro, aside from the .h file, anyway). ... I didn't remove atapicam from the kernel configuration, because according to your post with that patch earlier the patch should have fixed that behaviour. ...
    (freebsd-current)
  • Re: [solved] Re: usb-stick accessible, but doesnt boot
    ... but the patch has not been committed to current yet. ... Can you tell me what to do to the kernel configuration? ... I always get these dependency problems. ... although I am not sure if my USB-stick needs it, ...
    (freebsd-questions)
  • Re: [PATCH] Permanently fix kernel configuration include mess (was: Missing #include <config.h>
    ... >> After spending some hours last night and this morning hunting a bug, ... Well, fixing all the ARM related config.h include mess, the patch ... Permanently fix kernel configuration include mess. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [solved] Re: usb-stick accessible, but doesnt boot
    ... Thanks for reporting. ... but the patch has not been committed to current yet. ... Can you tell me what to do to the kernel configuration? ... I always get these dependency problems. ...
    (freebsd-questions)