linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Glanzmann <thomas@glanzmann.de>
To: khollan <khollan@daktronics.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Porting Linux to Xilinx ML410
Date: Wed, 27 Jun 2007 23:18:25 +0200	[thread overview]
Message-ID: <20070627211825.GA2003@cip.informatik.uni-erlangen.de> (raw)
In-Reply-To: <11328063.post@talk.nabble.com>

Hello,

> Linux/PPC load: console=ttyUL0,9600 root=/dev/xsysace/disc0/part3 rw
> Uncompressing Linux...done.
> Now booting the kernel

> It always stall on the Now booting the kernel.  Im new to linux
> building and any help or suggestions are greatly appreciated.

I have the same problem on a Avnet Memev Virtex-4 FX12 LC Board. I typed
"stop" in the xmd and got an Instruction pointer. I took this
instruction pointer and called:

(thinkpad) [/scratch/tg/linux-2.6-ppc] powerpc-405-linux-gnu-objdump -dS vmlinux | less
/^c00045ac

c00045a0 <__delay>:
c00045a0:       2c 03 00 00     cmpwi   r3,0
c00045a4:       7c 69 03 a6     mtctr   r3
c00045a8:       4d 82 00 20     beqlr
c00045ac:       42 00 00 00     bdnz-   c00045ac <__delay+0xc> <<<< HERE
c00045b0:       4e 80 00 20     blr

which is called from the calibrating delay loop. The calibrating delay
loop is an endless loop if the jiffies do not get incremented. Which is
the case if there are no timer ticks for whatever reason. Reasons could
be:

        - PIT or FIT don't get initialized
        - Interrupts are disabled
        - No interrupt handler registerd or registered for the wrong iq.

However the calibrating delay loop is before the serial console
initialization code. The "Now booting the kernel" line comes from the in
kernel embedded bootloader just before it initalizes the MMU and jumps
to "start_kernel".

If you do any progress on that, please let me know. I am currently
extremly busy, so I don't have time at the moment to debug that any
further.

        Thomas

  reply	other threads:[~2007-06-27 21:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 16:40 Porting Linux to Xilinx ML410 khollan
2007-06-27 21:18 ` Thomas Glanzmann [this message]
2007-06-28 17:53   ` khollan
2007-07-02 20:58 ` khollan
2007-07-02 22:51   ` Grant Likely
2007-07-05 20:23     ` khollan

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=20070627211825.GA2003@cip.informatik.uni-erlangen.de \
    --to=thomas@glanzmann.de \
    --cc=khollan@daktronics.com \
    --cc=linuxppc-embedded@ozlabs.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).