From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] ppc: How to get uboot (relocated) start address in RAM
Date: Thu, 14 Jan 2010 16:46:56 -0500 [thread overview]
Message-ID: <4B4F90D0.90604@RuggedCom.com> (raw)
Hi,
I a world post-ppc-relocation-patch, with gd->reloc_off removed,
I seem to have lost my way of figuring out uboot's address in RAM at run time.
Previously, I am able to use (gd->reloc_off+CONFIG_SYS_MONITOR_BASE) to get the answer.
Knowing the address is very useful for debuggging uboot using gdb.
The only spot that works now is the dest_addr variable in lib_ppc/board.c::board_init_r
debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
But the dest_addr is not saved into a global data variable.
Is it ok if I submit a patch that copies this dest_addr to gd->relocaddr
(currently only used by CONFIG_AMIGAONEG3SE) and print it as part of bdinfo?
Or is there a better method I am missing?
Regards,
- Richard Retanubun
next reply other threads:[~2010-01-14 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-14 21:46 Richard Retanubun [this message]
2010-01-15 9:35 ` [U-Boot] ppc: How to get uboot (relocated) start address in RAM Detlev Zundel
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=4B4F90D0.90604@RuggedCom.com \
--to=richardretanubun@ruggedcom.com \
--cc=u-boot@lists.denx.de \
/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.