computer reboots before "Uncompressing Linux..." with 2.5.19-xfs
Hola...
I'm trying to get kernel 2.5.19-xfs working on one of my boxes... The box is a P200-MMX, currently running 2.5.7-xfs and using grub as the bootloader. Each time I try to boot the kernel, grub tells me...
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernels/19.5.2k-xfs single
[Linux-bzImage, setup=0x1400, size=0x134aff]
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
1) Compile the kernel, optimized for P-MMX, on another box (PII-350 Deschutes) using gcc 2.95.4
2) Recompile bzImage
3) Recompile bzImage
4) Remove framebuffer support. Remove vid mode selection support. Optimize for Pentium-Classic. Recompile with everything else the same
5) Recompile on target box (gcc 2.95.4 also) with options the same as after #4
All of my boxes are running Debian SID (not necessarily up-to-date). I asked a number of times in #kernelnewbies on OPN, to no avail. Any and all help would be greatly appreciated. (Please CC me in replies)
--xsdg
Signature · 6 lines
|---------------------------------------------------| | It's not the fall that kills you, it's the | | landing. | |---------------------------------------------------| | http://xsdg.hypermart.net [email protected] | |---------------------------------------------------|
Quoted 2 lines · xsdg
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
Interesting problem..... Interesting because I'm having the EXACT SAME PROBLEM!!!! ARRRRRGGGGHHH!!!!
(pause)
.... well, almost. Mine doesn't reboot, it just hangs at the exact same point where yours reboots on ANY kernel 2.4.0 and later.
The closest thing I found was a reply to a post from 1999 where a person was having the kernel (or boot loader?) hang right before it uncompresses. The reply was:
Quoted 10 lines
I have a feeling that its the
empty_8042routine inarch/i386/boot/setup.Sthat's causing you problems.... without a keyboard attached, some controllers will hang there, sadly. If you feel brave, take a look insetup.Saround lines 598 (where we enable a20) and 783 (theempty_8042routine itself) and see if you can get rid of those calls toempty_8042or otherwise screw around in there so that it doesn't wait forever to empty the controller's buffers.1) Compile the kernel, optimized for P-MMX, on another box (PII-350 Deschutes) using gcc 2.95.4
Have you tried building for a generic i386 target processor?
Quoted 2 lines
2) Recompile bzImage
3) Recompile bzImage
Well, if it didn't work the first time.... :)
Quoted 3 lines
4) Remove framebuffer support. Remove vid mode selection support. Optimize for Pentium-Classic. Recompile with everything else the same
5) Recompile on target box (gcc 2.95.4 also) with options the same as after #4
I'm inclined to think none of this ha anything to do with it, because the kernel in which all of these items reside is never booting up...
My problem persisted despite my building a buck-naked 2.4.18 kernel. It had no ANYTHING in it (not even module support) and was just 250K. The results were the same.
I'm betting on a problem with the boot loader or bios incompatibility. My machine has a PhoenixBios (4.06 I think-- I'll check tomorrow). What does your machine have?
Regards,
Cengiz
Quoted 6 lines · Cengiz Akinli
Quoted 2 lines · xsdg
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
Interesting problem..... Interesting because I'm having the EXACT SAME PROBLEM!!!! ARRRRRGGGGHHH!!!!
Try http://marc.theaimsgroup.com/?l=linux-kernel&m=101072840225142&w=2
PATCH 1/1 early printk. (was: Re: computer reboots before "Uncompressing Linux..." with 2.5.19-xfs)
Quoted 7 lines · Keith Owens
Quoted 5 lines
Quoted 2 lines
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
Interesting problem..... Interesting because I'm having the EXACT SAME PROBLEM!!!! ARRRRRGGGGHHH!!!!
Try http://marc.theaimsgroup.com/?l=linux-kernel&m=101072840225142&w=2
you might as well try the attached early_printk() patch, it's slightly easier to use than a one-char macro. But the goal is the same.
Ingo
Documentation/Configure.help +7 -0
@@ -18510,6 +18510,13 @@ It is recommended to be used on a NetWinder, but it is not a necessity. +Early printk support +CONFIG_X86_EARLY_PRINTK + Saying Y here enables the early_printk function, which allows output + to the console much earlier in the boot process than printk. This + is useful when debugging fatal problems early in the boot sequence + (e.g. within setup_arch). If unsure, say N. + Debug high memory support CONFIG_DEBUG_HIGHMEM This options enables addition error checking for high memory systems.
arch/i386/config.in +1 -0
@@ -405,6 +405,7 @@ bool ' Magic SysRq key' CONFIG_MAGIC_SYSRQ bool ' Spinlock debugging' CONFIG_DEBUG_SPINLOCK bool ' Verbose BUG() reporting (adds 70K)' CONFIG_DEBUG_BUGVERBOSE + bool ' Early printk support' CONFIG_X86_EARLY_PRINTK fi endmenu
arch/i386/kernel/Makefile +1 -0
@@ -40,5 +40,6 @@ obj-$(CONFIG_X86_LOCAL_APIC) += mpparse.o apic.o nmi.o obj-$(CONFIG_X86_IO_APIC) += io_apic.o obj-$(CONFIG_X86_VISWS_APIC) += visws_apic.o +obj-$(CONFIG_X86_EARLY_PRINTK) += debug.o include $(TOPDIR)/Rules.make
arch/i386/kernel/debug.c +67 -0
67 lines not on this page · raw message
arch/i386/kernel/setup.c +10 -3
@@ -108,10 +108,13 @@#include <asm/dma.h> #include <asm/mpspec.h> #include <asm/mmu_context.h> +#ifdef CONFIG_X86_EARLY_PRINTK +#include <asm/debug.h> +#endif +/* * Machine setup.. */ -char ignore_irq13;/* set if exception 16 works */ struct cpuinfo_x86 boot_cpu_data = {0 ,0 ,0 ,0 ,-1 ,1 ,0 ,0 ,-1 };
@@ -941,7 +944,9 @@*/ reserve_bootmem (PAGE_SIZE ,PAGE_SIZE );#endif - +#ifdef CONFIG_X86_EARLY_PRINTK +early_printk ("Early printk support enabled\n" ); +#endif #ifdef CONFIG_X86_LOCAL_APIC /* * Find and reserve possible boot-time SMP configuration:
@@ -984,7 +989,6 @@init_apic_mappings ();#endif -/* * Request address space for all standard RAM and ROM resources * and also for regions reported as reserved by the e820.
@@ -1033,6 +1037,9 @@ conswitchp = &dummy_con;#endif #endif +#ifdef CONFIG_X86_EARLY_PRINTK + early_printk_disable =1 ; +#endif }#ifndef CONFIG_X86_TSC
include/asm-i386/debug.h +41 -0
41 lines not on this page · raw message
Re: [patch] early printk. (was: Re: computer reboots before "Uncompressing Linux..." with 2.5.19-xfs)
Quoted 5 lines · Ingo Molnar
Quoted 1 line · Keith Owens
Try http://marc.theaimsgroup.com/?l=linux-kernel&m=101072840225142&w=2
you might as well try the attached
early_printk()patch, it's slightly easier to use than a one-char macro. But the goal is the same.
The main difference is that VIDEO_CHAR is easy to do from assembler as well, it is just a movb instruction that does not affect any registers.
Re: [patch] early printk. (was: Re: computer reboots before "Uncompressing Linux..." with 2.5.19-xfs)
In reply to Keith OwensHi!
Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
Interesting problem..... Interesting because I'm having the EXACT SAME PROBLEM!!!! ARRRRRGGGGHHH!!!!
Try http://marc.theaimsgroup.com/?l=linux-kernel&m=101072840225142&w=2
you might as well try the attached
early_printk()patch, it's slightly easier to use than a one-char macro. But the goal is the same.
Could this be arch-independend? x86-64 has it, too, and AFAIR it was taken from ia64.. Plus, it is *very* usefull.
Pavel
Signature · 2 lines
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.
Re: [patch] early printk. (was: Re: computer reboots before "Uncompressing Linux..." with 2.5.19-xfs)
Quoted 6 lines
Quoted 3 lines
you might as well try the attached
early_printk()patch, it's slightly easier to use than a one-char macro. But the goal is the same.Could this be arch-independend? x86-64 has it, too, and AFAIR it was taken from ia64.. Plus, it is *very* usefull.
We already did a generic version and submitted it - look back for posts by Keith Mannthey. If you can't locate it, let me know, and I'll dig it out.
Martin.
Re: [patch] early printk. (was: Re: computer reboots before "Uncompressing Linux..." with 2.5.19-xfs)
In reply to Pavel MachekQuoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
Interesting problem..... Interesting because I'm having the EXACT SAME PROBLEM!!!! ARRRRRGGGGHHH!!!!
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Try http://marc.theaimsgroup.com/?l=linux-kernel&m=101072840225142&w=2
you might as well try the attached
early_printk()patch, it's slightly easier to use than a one-char macro. But the goal is the same.Could this be arch-independend? x86-64 has it, too, and AFAIR it was taken from ia64.. Plus, it is *very* usefull.
Please be patient. The new console code will support earlier printking.
Re: [patch] early printk. (was: Re: computer reboots before "Uncompressing Linux..." with 2.5.19-xfs)
In reply to Keith OwensQuoted 10 lines · Pavel Machek
Hi!
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
Interesting problem..... Interesting because I'm having the EXACT SAME PROBLEM!!!! ARRRRRGGGGHHH!!!!
Try http://marc.theaimsgroup.com/?l=linux-kernel&m=101072840225142&w=2
Quoted 7 lines
Quoted 2 lines
you might as well try the attached
early_printk()patch, it's slightly easier to use than a one-char macro. But the goal is the same.Could this be arch-independend? x86-64 has it, too, and AFAIR it was taken from ia64.. Plus, it is *very* usefull.
From looking at the patch, that looks horribly i386 (and related)
specific.
And FYI PPC has had something similar (CONFIG_BOOTX_TEXT, and in 2.5 CONFIG_SERIAL_TEXT_DEBUG) for a while now.
Signature · 2 lines
Tom Rini (TR1265) http://gate.crashing.org/~trini/
Quoted 1 line · Cengiz Akinli
In message <[email protected]>, xsdg writes:
::snip? SNIP!::
Quoted 9 lines
The reply was:
Quoted 7 lines
I have a feeling that its the
empty_8042routine inarch/i386/boot/setup.Sthat's causing you problems.... without a keyboard attached, some controllers will hang there, sadly. If you feel brave, take a look insetup.Saround lines 598 (where we enable a20) and 783 (theempty_8042routine itself) and see if you can get rid of those calls toempty_8042or otherwise screw around in there so that it doesn't wait forever to empty the controller's buffers.
hrm... the box has a keyboard on it...
Quoted 4 lines
Quoted 2 lines
1) Compile the kernel, optimized for P-MMX, on another box (PII-350 Deschutes) using gcc 2.95.4
Have you tried building for a generic i386 target processor?
Not yet... will try...
Quoted 12 lines
Quoted 2 lines
2) Recompile bzImage
3) Recompile bzImageWell, if it didn't work the first time.... :)
Quoted 3 lines
4) Remove framebuffer support. Remove vid mode selection support. Optimize for Pentium-Classic. Recompile with everything else the same
5) Recompile on target box (gcc 2.95.4 also) with options the same as after #4I'm inclined to think none of this ha anything to do with it, because the kernel in which all of these items reside is never booting up...
Quoted 7 lines
My problem persisted despite my building a buck-naked 2.4.18 kernel. It had no ANYTHING in it (not even module support) and was just 250K. The results were the same.
I'm betting on a problem with the boot loader or bios incompatibility. My machine has a PhoenixBios (4.06 I think-- I'll check tomorrow). What does your machine have?
Award BIOS (don't know the version offhand) I'm using grub 0.91-2...
Quoted 2 lines
Regards,
Cengiz
--xsdg
Signature · 6 lines
|---------------------------------------------------| | It's not the fall that kills you, it's the | | landing. | |---------------------------------------------------| | http://xsdg.hypermart.net [email protected] | |---------------------------------------------------|
I had the exact same problem and few were able to help. However, here's what I found was _my_ problem. I wasn't enabling the x86 options in the kernel (duh!). Make sure that when you compile, you enable "Intel IA32 CPU Microcode Support" and "Model Specific Register Support". What I ended up doing was taking a stock RedHat .config file for i386 and looking at what they did for their options and started to delete things from there that I don't use or need. Eventually, I just learned what was necessary for a basic i386 kernel. Although I was compiling for 2.4.17 kernel. Good luck, hope this was of some help.
J.S.Souza
Quoted 26 lines · xsdg
Hola...
I'm trying to get kernel 2.5.19-xfs working on one of my boxes... The box is a P200-MMX, currently running 2.5.7-xfs and using grub as the bootloader. Each time I try to boot the kernel, grub tells me...root (hd0,0)
Filesystem type is ext2fs, partition type0x83
kernel/boot/kernels/19.5.2k-xfssingle
[Linux-bzImage, setup=0x1400, size=0x134aff]Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
1) Compile the kernel, optimized for P-MMX, on another box (PII-350 Deschutes) using gcc 2.95.4
2) Recompile bzImage
3) Recompile bzImage
4) Remove framebuffer support. Remove vid mode selection support. Optimize for Pentium-Classic. Recompile with everything else the same
5) Recompile on target box (gcc 2.95.4 also) with options the same as after #4All of my boxes are running Debian SID (not necessarily up-to-date). I asked a number of times in #kernelnewbies on OPN, to no avail. Any and all help would be greatly appreciated. (Please CC me in replies)
--xsdg
Quoted 9 lines · J.S.Souza
I had the exact same problem and few were able to help. However, here's what I found was _my_ problem. I wasn't enabling the x86 options in the kernel (duh!). Make sure that when you compile, you enable "Intel IA32 CPU Microcode Support" and "Model Specific Register Support". What I ended up doing was taking a stock RedHat .config file for i386 and looking at what they did for their options and started to delete things from there that I don't use or need. Eventually, I just learned what was necessary for a basic i386 kernel. Although I was compiling for 2.4.17 kernel. Good luck, hope this was of some help.
Interesting, but i can't see how that could have fixed your problem. MSR support is allowing MSR frobbing in user space and microcode stuff is update from userland too. Which also happens much later in boot.
Incorrect CPU perhaps?
Regards,
Zwane
Signature · 1 line
http://function.linuxpower.ca
No, the CPU was correct.
However, now I am uncertain as to WHAT was wrong with my configuration since the CPU was correct. Like I stated before, eventually I just hacked a stock RedHat kernel and in the CPU section of the configuration, I just left their selections alone. Well, if what you say is true, then I don't know WHAT the fixed actually was, but I haven't had a bad reboot on any of my kernel compiles since then (well, I did have 1 - but that's out of about 20 compile's and reboot's i've done since then). If you find out the problem, please put it on the LKML so i'll know what fixed it.
Cheer,
J.S.Souza
Quoted 19 lines · you
Quoted 9 lines · J.S.Souza
I had the exact same problem and few were able to help. However, here's what I found was _my_ problem. I wasn't enabling the x86 options in the kernel (duh!). Make sure that when you compile, you enable "Intel IA32 CPU Microcode Support" and "Model Specific Register Support". What I ended up doing was taking a stock RedHat .config file for i386 and looking at what they did for their options and started to delete things from there that I don't use or need. Eventually, I just learned what was necessary for a basic i386 kernel. Although I was compiling for 2.4.17 kernel. Good luck, hope this was of some help.
Interesting, but i can't see how that could have fixed your problem. MSR support is allowing MSR frobbing in user space and microcode stuff is update from userland too. Which also happens much later in boot.
Incorrect CPU perhaps?
Regards,
Zwane
Quoted 2 lines · On Wed, 12 Jun 2002 00:22:29 +0000 xsdg <[email protected]> escribió:
Then, after a small pause, the box reboots (note: it does _not_ print "Uncompressing Linux..."). I have tried the following:
I have the same situation. But it happens only, and _only_ when I enable "Fast memory write" or similar in the bios (award). W98 doesn't works either. Motherboard is a MSI 5416.