linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michel Lanners <mlan@cpu.lu>
To: benh@kernel.crashing.org
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: 2.4 not booting on 7600 (was: Re: 2.4.2 USB and "mon>")
Date: Fri, 9 Mar 2001 08:05:40 +0100 (CET)	[thread overview]
Message-ID: <200103090705.IAA00721@piglet.grunz.lu> (raw)
In-Reply-To: <20010307121954.29343@mailhost.mipsys.com>


Hi all,

On   7 Mar, this message from Benjamin Herrenschmidt echoed through cyberspace:
>>I've been unable to boot _any_ 2.3/2.4 kernels on my machine since
>>around 2.3.99 or a bit earlier. Some revisions would boot part of the
>>time, but most of them not at all. Symtom is always the same: hang
>>before initializing the framebuffer, i.e. still on the OF screen.

I should have added that there are some 2.4 kernels that _did_ boot
reliably: benh's 2.5 rsync tree (that's now dead, right?).

>>I get the 'retunring 0x... from prom_init' string, but nothing after
>>that.....
>
> That's weird ? I suppose you tried removing/moving PCI cards ?

No, because I have no reason to suspect a PCI card problem. I never had
those; I had non-functional cards because of the Io port trouble; but
never did any PCI problem lock up the box. Especially not that early in
the boot process....

But than again, I have a Matrox Millenium and a Promise IDE controller
in there; I could try removing the Matrox and see..

Also, this box has a G3 upgrade card, and seems to be weird in some
respect. I seem to be the only ne that couldn't boot from the internal
(MESH) bus with one specific hard disk; slowing the processor through
ICTC solved that problem....

> You can also try to hack printk so that it calls prom_prinf (or xmon_printf),
> that may help figure out where it goes wrong.

I'll get back to debugging. However, from my last tries in
November/December, I remember it hanging somewhere in the early stages
of init/main.c, in one of these files (this is from the patch with my
debuggiong printk's):

arch/ppc/kernel/pmac_pic.c
arch/ppc/kernel/pmac_time.c
arch/ppc/mm/init.c

This is the relevant part in init/main.c:

        lock_kernel();
        printk(linux_banner);
        setup_arch(&command_line);
+if ( ppc_md.progress ) ppc_md.progress("main: setup_arch done", 0x3eab);
        printk("Kernel command line: %s\n", saved_command_line);
+if ( ppc_md.progress ) ppc_md.progress("main: 1", 0x3eab);
        parse_options(command_line);
+if ( ppc_md.progress ) ppc_md.progress("main: 2", 0x3eab);
        trap_init();
+if ( ppc_md.progress ) ppc_md.progress("main: 3", 0x3eab);
        init_IRQ();
+if ( ppc_md.progress ) ppc_md.progress("main: 4", 0x3eab);
        sched_init();
+if ( ppc_md.progress ) ppc_md.progress("main: 5", 0x3eab);
        time_init();
+if ( ppc_md.progress ) ppc_md.progress("main: 6", 0x3eab);
        softirq_init();
+if ( ppc_md.progress ) ppc_md.progress("main: 7", 0x3eab);

Also, I've found that it would lock up at _different_ stages in early
boot, not at one specific step.

This led me to conclude that 2.4 kernels do something different in early
processor, memory or cache setup, which _may_ break something else
somewhere later.

But I'll try again and do some more debugging. Also, I'll try a boot
with the original 604/132 processor, to see whether that makes any
difference.

For the record, tried the latest bk tree yesterday evening: same hang.


Michel

-------------------------------------------------------------------------
Michel Lanners                 |  " Read Philosophy.  Study Art.
23, Rue Paul Henkes            |    Ask Questions.  Make Mistakes.
L-1710 Luxembourg              |
email   mlan@cpu.lu            |
http://www.cpu.lu/~mlan        |                     Learn Always. "


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2001-03-09  7:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-06 14:59 2.4.2 USB and "mon>" (was Re: All 6 cards!!!) Stefan Jeglinski
2001-03-06 16:55 ` Benjamin Herrenschmidt
2001-03-06 22:10   ` Michel Lanners
2001-03-06 23:06     ` Benjamin Herrenschmidt
2001-03-07  6:49       ` Michel Lanners
2001-03-07 12:19         ` Benjamin Herrenschmidt
2001-03-09  7:05           ` Michel Lanners [this message]
2001-03-06 23:08     ` Benjamin Herrenschmidt

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=200103090705.IAA00721@piglet.grunz.lu \
    --to=mlan@cpu.lu \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    /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).