Re: 2.6.2-rc2 Hangs on boot (was: [patch] Re: Kernels > 2.6.1-mm3 do not boot. - SOLVED)

Andrew Morton
2004-01-27T00:38:38Z

"John Stoffel" <stoffel@lucent.com> wrote:
>
> ...
> It hangs at the following spot:
>
> Linux version 2.6.2-rc2 (john@jfsnew) (gcc version 3.3.3 20040110
> (prerelease) (Debian)) #2 SMP Mon Jan 26 09:17:00 EST 2004
> BIOS-provided physical RAM map:
> BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
> BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
> BIOS-e820: 0000000000100000 - 000000002fffe000 (usable)
> BIOS-e820: 000000002fffe000 - 0000000030000000 (reserved)
> BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
> BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
> BIOS-e820: 00000000ffe00000 - 0000000100000000 (reserved)
> 767MB LOWMEM available.
> found SMP MP-table at 000fe710
> hm, page 000fe000 reserved twice.
> hm, page 000ff000 reserved twice.
> hm, page 000f0000 reserved twice.
> On node 0 totalpages: 196606
> DMA zone: 4096 pages, LIFO batch:1
> Normal zone: 192510 pages, LIFO batch:16
> HighMem zone: 0 pages, LIFO batch:1
>
>
> Should I start adding in printks, or would it make sense to go back
> through the various 2.6.2-bk# snapshots looking for where the problem
> hit?

Adding printk's is a pretty quick-n-easy way of finding out where it is
getting stuck. Just add

#define AAA() printk("%s:%d\n", __FILE__, __LINE__)

to kernel.h and sprinkle AAA()'s everywhere. It takes a few iterations to
drill right down to the bug.