All of lore.kernel.org
 help / color / mirror / Atom feed
From: LiuTao <tliu@ict.ac.cn>
To: "linuxppc-embedded@lists.linuxppc.org"
	<linuxppc-embedded@lists.linuxppc.org>
Subject: the problem of booting kernel
Date: Thu, 06 Jan 2000 17:34:46 +0800	[thread overview]
Message-ID: <387461B6.FDB5DB5C@ict.ac.cn> (raw)


Hi all:

I am porting Linux to a board which has MPC860MH50, 16M RAM and 2M
Flash.
I am using visionPROBE(emulator of EST) to debug my program.
I download the zImage to the board by emulator, then run it.
I can see the following:

loaded at:     00800000 0080B1C8
board data at: 00800158 00800180
relocated to:  007F0100 007F0128
zimage at:     00830263 0088A2B1
avail ram:     0088B000 01000000

Linux/PPC load:
Uncompressing Linux...done.
Now booting the kernel

Now, I find that the program stoped at 0x111C.

So I set a breakpoint at "blr" in head.S at which the program will jump
to the kernel. I ran the program again, it stoped at the breakpoint.
Then I ran it step by step, I found that it jumped to 0x0000000C, I
think
that's the correct address. Then, I ran it continuously, it stopped at
0x111C again.

That's very strange. If I don't set breakpoint at "blr" but set a
breakpoint
at 0x000C, the program can't stop at the breakpoint but stop at 0x111C.
If I
set breakpoint at "blr" and run it step by step, the program can get
0x000C.

Do you have any suggestions?
Thanks!

LiuTao

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

                 reply	other threads:[~2000-01-06  9:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=387461B6.FDB5DB5C@ict.ac.cn \
    --to=tliu@ict.ac.cn \
    --cc=linuxppc-embedded@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.