Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* HOWTO? Debug the boot sequence...
@ 1999-01-20  5:00 Peter Mott
  1999-01-20  5:00 ` Peter Mott
       [not found] ` <786pan$m8n$1@zruty.comnets.rwth-aachen.de>
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Mott @ 1999-01-20  5:00 UTC (permalink / raw)


What I want to be able to do is build a kernel with a console mode 
debugger, so I can find out where the kernel is really dying.

Can this be done?

++

I have built 2.2.0-pre5 for Jensen. I am having trouble booting it in two 
different ways and I'd like to hear any ideas about what's wrong and how 
to diagnose or fix the problems.

Ultimately the goal is to successfully boot the Jensen with a 2.2.0-preX 
kernel. I'm building pre7 now.

With pre5, the kernel boots up to a report 'Partition Check', lists the 
available partitions and halts. The halt causes a switch to the SRM blue 
screen console mode, which removes all trace of the kernel boot messages, 
so I'm not sure the partition check is the last thing, it's just the last 
thing I've seen.

++ 

The second problem I'm having is using aboot to load the pre5 kernel from 
an ext2 partition. So far I have been able to use swriteboot to get aboot 
to load the kernel as 0/a. I can't get aboot to load the pre5 kernel as 
1/vmtest.gz, which causes the error 'unzip: unknown compression method'. 
Once this error occurs, I must reload aboot from the SRM console before 
it will successfully load anything.

Its possible that aboot is causing both problems, in that it may not 
really be loading the whole kernel as 0/a, so the kernel trips memory it 
expects to be the kernel, but isn't, and executes a bogus halt 
instruction. 

I'd like to make a debuggable version of aboot, to find out what's 
causing the error. The problem I'm having here is it's designed to be a 
standalone program, so I'd need a console mode debugger compiled in, 
which is the same thing I want to do for the kernel.

Anyone done this sort of thing? Is my only choice to sprinkle printf's 
through the aboot code?

Suggestions please!



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HOWTO? Debug the boot sequence...
  1999-01-20  5:00 HOWTO? Debug the boot sequence Peter Mott
@ 1999-01-20  5:00 ` Peter Mott
       [not found] ` <786pan$m8n$1@zruty.comnets.rwth-aachen.de>
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Mott @ 1999-01-20  5:00 UTC (permalink / raw)


So here's something that approaches an answer, found in the SRM Firmware 
Howto, by David Mosberger in srm-3.html

.
. <snip>
.

Boot Flags

A number of bootflags can be specified. The syntax is: 

     -flags "options..."

Where "options..." is any combination the following options (separated by 
blanks). There are many more bootoptions, depending on what drivers your 
kernel has
installed. The options listed below are therefore just examples to 
illustrate the general idea:

.
. <snip>
.

kgdb

     Enable kernel-gdb (works only if CONFIG_KGDB is enabled; a second 
Alpha system needs to be connected over the serial port in order to make 
this work)

.
. <snip>
.

So, since I don't have a second Alpha available (yet), I stuck with 
printfs. If (when) I get a second Alpha to do debugging, what do I do?




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HOWTO? Debug the boot sequence...
       [not found] ` <786pan$m8n$1@zruty.comnets.rwth-aachen.de>
@ 1999-01-21  5:00   ` Peter Mott
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Mott @ 1999-01-21  5:00 UTC (permalink / raw)


[This followup was posted to comp.os.linux.alpha and a copy was sent to 
the cited author.]

After building version of aboot-0.5 with -DDEBUG and adding some printfs 
I found that the error was caused by the text segment living at offset 
10000 hex, which can be seen in the system map. This offset is subtracted 
from blocksize, which in my case is 400 hex, and the negative result 
causes the error.

Any aboot experts out there?

In article <786pan$m8n$1@zruty.comnets.rwth-aachen.de>, 
Martin.Ostermann+034|address^*is*^correct+@comnets.RWTH-Aachen.de says...
> In article <MPG.110fd9bdc543a9d39896a1@professional_news.mathworks.com>,
> 	p.mott@mathworks.com (Peter Mott) writes:
> > The second problem I'm having is using aboot to load the pre5 kernel from 
> > an ext2 partition. So far I have been able to use swriteboot to get aboot 
> > to load the kernel as 0/a. I can't get aboot to load the pre5 kernel as 
> > 1/vmtest.gz, which causes the error 'unzip: unknown compression method'. 
> > Once this error occurs, I must reload aboot from the SRM console before 
> > it will successfully load anything.
> 
> I heard this before, though it never happend to me. Try to gunzip the
> kernel, and try to boot with the resulting 'vmtest' file.
> 
> HTH, Martin
> -- 
> Martin Ostermann                | DEC 2000/300, DECpc-150, Jensen tips: 
> Communication Networks          | http://www.comnets.rwth-aachen.de/~ost
> Aachen University of Technology | Linux/Alpha Hompage with FAQ:
> Germany                         | http://www.alphalinux.org
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-01-21  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-20  5:00 HOWTO? Debug the boot sequence Peter Mott
1999-01-20  5:00 ` Peter Mott
     [not found] ` <786pan$m8n$1@zruty.comnets.rwth-aachen.de>
1999-01-21  5:00   ` Peter Mott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox