Subject: Re: -current kernel reboots? (i386)
To: Andrew Gillham <gillham@vaultron.com>
From: Jaromír <jdolecek@netbsd.org>
List: current-users
Date: 09/28/2001 19:08:18
I had similar problem too. Once I cleaned all old objs and recompiled
kernel from scratch, everything has been fine again. 

Andrew Gillham wrote:
> On Mon, Sep 24, 2001 at 11:00:19AM -0500, Peter Seebach wrote:
> > I have a kernel from yesterday which works okay... and a kernel from today
> > (my first built with the new toolchain stuff) which reboots spontaneously
> > right after doing the swirly cursor.
> > 
> > Not sure whether this is i386-specific or not.  If there's a message, I can't
> > see it - I'm not fast enough.
> > 
> > Anyone else having problems like this?
> 
> Ok, I am having this exact problem, but I am booting the kernel via pxegrub.
> I can boot an older kernel, built with egcs, but so far not a new 2.95.3
> built kernel.  
> 
> The working kernel (Sept. 17) looks like this via serial console:
> kernel --type=netbsd /tftpboot/node/netbsd
>    [NetBSD-elf, <0x100000:0x2bfb37:0x0>, <0x3c0b40:0xf07c:0x6cdd0>, shtab=0x43d
>    190, entry=0x100000]
> 
> [then kernel loads on vga, since no multiboot support]
> 
> The broken kernel causes this:
> kernel --type=netbsd /tftpboot/node/netbsd
>    [NetBSD-elf, <0x100000:0x4a6f40:0x0>, <0x5a7f40:0x16908:0x49560>, shtab=0x60
> 8190/
> 
> The machine resets as it is loading and printing the '/' and the end of the
> line.
> 
> The only thing I notice with objdump is the VMA/LMA values for .note and
> .ident look wrong.  (and does that mean anything anyway?)
> 
> >From the non-working kernel:
> Sections:
> Idx Name          Size      VMA       LMA       File off  Algn
>   0 .text         00258614  c0100000  c0100000  00001000  2**2
>                   CONTENTS, ALLOC, LOAD, READONLY, CODE
>   1 .rodata       00074b00  c0358620  c0358620  00259620  2**5
>                   CONTENTS, ALLOC, LOAD, READONLY, DATA
>   2 .data         0000f348  c03ce120  c03ce120  002ce120  2**5
>                   CONTENTS, ALLOC, LOAD, DATA
>   3 .bss          0006dfec  c03dd480  c03dd480  002dd480  2**5
>                   ALLOC
>   4 .note         0000364c  00000000  00000000  002dd480  2**0
>                   CONTENTS, READONLY
>   5 .ident        000001b7  00000000  00000000  002e0acc  2**0
>                   CONTENTS, READONLY
> 
> >From the working kernel:
> Sections:
> Idx Name          Size      VMA       LMA       File off  Algn
>   0 .text         0024b8a4  c0100000  c0100000  00001000  2**2
>                   CONTENTS, ALLOC, LOAD, READONLY, CODE
>   1 .rodata       00074277  c034b8c0  c034b8c0  0024c8c0  2**5
>                   CONTENTS, ALLOC, LOAD, READONLY, DATA
>   2 .data         0000f07c  c03c0b40  c03c0b40  002c0b40  2**5
>                   CONTENTS, ALLOC, LOAD, DATA
>   3 .bss          0006cdcc  c03cfbc0  c03cfbc0  002cfbc0  2**5
>                   ALLOC
>   4 .note         0000364c  c043c98c  c043c98c  002cfbc0  2**0
>                   CONTENTS, READONLY
>   5 .ident        000001b7  c043ffd8  c043ffd8  002d320c  2**0
>                   CONTENTS, READONLY
> 
> -Andrew
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
NetBSD - just plain best OS! -=*=- Got spare MCA cards or docs? Hand me them!