9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] snapshot fails to boot
Date: Tue, 10 Aug 2010 08:13:36 -0400	[thread overview]
Message-ID: <15fc03341740b55cf6d1bf09cfefbf84@plug.quanstro.net> (raw)
In-Reply-To: <AANLkTimBj4pAwWLG8jFip2Gkjo5Fc92OQoQygPQ5=pGJ@mail.gmail.com>

> It printed PBS1... , then dumped 2-3 pages of messages too quickly for
> me to read.
>
> The message above the one I quoted was the same, except FLAGS=10206 instead.
>
> After this message, it tried to print another in the same format, but
> all numbers were replaced with %u% .
>
> If I can figure out how to build the new bootloader from my 2008
> install, I can have a try at seeing where it fails - any pointers to
> get started / where to try first?

you might try 9atom, which has a slightly different loader.
ftp://ftp.quanstro.net/other/9atom.iso.bz2
you can also just use the loader by itself,
ftp://ftp.quanstro.net/other/9load-e820.mkfs.bz2
(bunzip2 < 9load-e820.mkfs.bz2 | {mkdir 9load-e820 ; mkext -d 9load-e820})

otherwise, i have two tricks for dealing with crashes that
scroll by.

1.  set up a serial console.  force the serial console on
in load.c and hope you get that far.  here's where i put
consinit when i'm doing that sort of debugging:

void
main(void)
{
	Medium *mp;
	int flag, i, mode, tried;
	char def[2*NAMELEN], line[80], *p, *file;
	Type *tp;

	i8042a20();
	memset(m, 0, sizeof(Mach));
//consinit("0", 0);


2. if you don't get as far as consinit() or don't have the equipment
to set up a serial connection, you can take a movie with a digital
camera and then slow-mo through it.  it was a trick that i first used
a few weeks ago when i had a blade machine crashing.  it didn't have
a serial console that i knew how to configure at the time.

the trick seems self-evident now but took a while to think up.  :-)

- erik



  parent reply	other threads:[~2010-08-10 12:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-09  2:29 David Hoskin
2010-08-09  3:49 ` erik quanstrom
2010-08-10  6:12   ` David Hoskin
2010-08-10  6:30     ` David Hoskin
2010-08-10 12:13     ` erik quanstrom [this message]
2010-08-11  6:03       ` David Hoskin
2010-08-11 11:02         ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15fc03341740b55cf6d1bf09cfefbf84@plug.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).