Date: Sat, 27 Dec 1997 17:18:30 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Chris Timmons <skynyrd@opus.cts.cwu.edu> Cc: freebsd-current@FreeBSD.ORG Subject: Re: no boot: config -g and options DDB Message-ID: <Pine.BSF.3.95.971227171527.22759F-100000@current1.whistle.com> In-Reply-To: <Pine.BSF.3.96.971227133758.3334A-100000@opus.cts.cwu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
don't try actually boot that kernel.... it often won't work (e.g. I have that problem) do the following: cp kernel kernel.strip strip -d kernel.strip cp kernel.strip /kernel.new reboot you can use the huge kernel against core-dumps e.g. gdb -k kernel.huge vmcore.0 and if you have remote-gdb enabled and 2 machines, you can use it for that too (run gdb against it) but it often won't actually boot I don't know why. On Sat, 27 Dec 1997, Chris Timmons wrote: > > My world and bootblocks are from 12/17 and my kernel sources are from > yesterday. I always hate bringing these things up because invariably it's > me that is broken, but here goes anyways ?<: > > If I 'config -g GENERIC' and build/install normally I get a happily > booting kernel. Add: > > options DDB > options BREAK_TO_DEBUGGER > > and the kernel no longer boots; instead it starts booting and then the > machine behaves as if the reset button had been pushed and the process > repeats (unless -d is present, then the session ends in catatonia.) > > I trapped some output from the serial console from a build which did the > same thing but was NOT GENERIC, rather my customized kernel: > > - - - - - - - - - - - - - - - (pinwheel graphics removed :) > > >> FreeBSD BOOT @ 0x10000: 637/31744 k of memory, serial/dual console > Boot default: 0:sd(0,a)kernel > > boot:-d -v > > Booting 0:sd(0,a)kernel @ 0x100000 > text=0xdd000 data=0x10000 bss=0x1a9b4 > symbols=[+0x64c+0x4+0x286734+0x4+0x42762e] > > Can't find file kernel.config > total=0x8b5d6a entry point=0x100000 > > [ preserving 0x6add6c bytes of kernel symbol table ] > Debugger("Boot flags requested debugger") > Stopped at _Debugger+0x35 [../../i386/i386/db_interface.c:58]: > movb $0,_in_Debugger.98 > > db> next > After 2 instructions (0 loads, 0 stores), > Stopped at _Debugger+0x3d: ret > > db> next > BIOS basemem (637K) != RTC basemem (640K), setting to BIOS value > > - - - - - - - - - - - - - - - > > At this point the machine is really hung and must be powered off to reset. > > If someone else could repeat I'll send-pr it... > > -Chris > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971227171527.22759F-100000>