All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] [RFC] DEBUG: relocate to fixed address
@ 2012-11-21  5:44 Tetsuyuki Kobayashi
  2012-11-21  5:44 ` [U-Boot] [PATCH 1/2] DEBUG: fix relocation address Tetsuyuki Kobayashi
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Tetsuyuki Kobayashi @ 2012-11-21  5:44 UTC (permalink / raw)
  To: u-boot

Hello,

U-Boot from NOR flash relocates itself to RAM erea. The relocation address is
calaculated at runtime to get maxium contiguous space to load kernel. So it may
vary after code changed. In the early debug phase it would be easier to handle
if the relocation address does not change per build.

My idea is define fixed address as CONFIG_DEBUG_RELOC_FIX_ADDR in config file
and relocate to the address. Then you don't need to execute 'bdinfo' command to
get actual relocated address. It is done by the first patch.

The second patch is for u-boot_r, which is linked for fixed relocation address.
When you want to symbolic debug after relocation, flash 'u-boot.bin' and
load symbol from 'u-boot_r' to debugger.
(CF. When you want to symblic debug before relocation, load symbol from 'u-boot'
 to debugger.)

This patch set is based on v2013.01-rc1. (Tell me if I should rebase.)
This is for ARM, but similar change could apply for other arch.


Tetsuyuki Kobayashi (2):
  DEBUG: fix relocation address
  DEBUG: make u-boot_r which is linked for fixed relocation address

 Makefile                |    7 +++++--
 arch/arm/lib/board.c    |    9 ++++++++-
 config.mk               |    5 +++++
 include/configs/kzm9g.h |    4 ++++
 4 files changed, 22 insertions(+), 3 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-11-28  9:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-21  5:44 [U-Boot] [PATCH 0/2] [RFC] DEBUG: relocate to fixed address Tetsuyuki Kobayashi
2012-11-21  5:44 ` [U-Boot] [PATCH 1/2] DEBUG: fix relocation address Tetsuyuki Kobayashi
2012-11-21  8:24   ` Wolfgang Denk
2012-11-21  5:44 ` [U-Boot] [PATCH 2/2] DEBUG: make u-boot_r which is linked for fixed " Tetsuyuki Kobayashi
2012-11-21  8:22 ` [U-Boot] [PATCH 0/2] [RFC] DEBUG: relocate to fixed address Wolfgang Denk
2012-11-27 22:22   ` Scott Wood
2012-11-27 23:36     ` Henrik Nordström
2012-11-28  9:24       ` Wolfgang Denk
2012-11-28  6:45     ` Wolfgang Denk

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.