Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-02 Thread Scott Wood
] generic board patch of manual reloc and zero gd_t On Tue, 2013-10-01 at 19:05 +0800, FengHua wrote: How about place u-boot.bin at 0x9000 and write a piece of code (elf format) jumping from 0x8000 to 0x9000. That seems even worse than converting the .bin back

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-02 Thread FengHua
-原始邮件- 发件人: Scott Wood scottw...@freescale.com 发送时间: 2013年10月1日 星期二 收件人: FengHua feng...@phytium.com.cn 抄送: Simon Glass s...@chromium.org, trini tr...@ti.com, u-boot u-boot@lists.denx.de 主题: Re: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-01 Thread FengHua
-原始邮件- 发件人: Scott Wood scottw...@freescale.com 发送时间: 2013年10月1日 星期二 收件人: Simon Glass s...@chromium.org 抄送: trini tr...@ti.com, u-boot u-boot@lists.denx.de, FengHua feng...@phytium.com.cn 主题: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-01 Thread Scott Wood
] generic board patch of manual reloc and zero gd_t On Mon, 2013-09-09 at 20:54 -0500, Scott Wood wrote: It seems the problem is that when rela is used, the linker *only* puts the symbol in the rela struct. The value in the data section itself is zero, which means we can't run without

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-10-01 Thread FengHua
-原始邮件- 发件人: Scott Wood scottw...@freescale.com 发送时间: 2013年10月1日 星期二 收件人: FengHua feng...@phytium.com.cn 抄送: Simon Glass s...@chromium.org, trini tr...@ti.com, u-boot u-boot@lists.denx.de 主题: Re: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-09-30 Thread Scott Wood
On Mon, 2013-09-09 at 20:54 -0500, Scott Wood wrote: It seems the problem is that when rela is used, the linker *only* puts the symbol in the rela struct. The value in the data section itself is zero, which means we can't run without relocation even if the address hasn't changed. Unless

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-09-09 Thread Scott Wood
] generic board patch of manual reloc and zero gd_t On Tue, 2013-08-20 at 23:27 -0600, Simon Glass wrote: Hi David, On Tue, Aug 20, 2013 at 4:48 AM, feng...@phytium.com.cn wrote: diff --git a/common/board_r.c b/common/board_r.c index 86ca1cb..1b4bdd2 100644

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-23 Thread Simon Glass
??: FengHua feng...@phytium.com.cn, tr...@ti.com tr...@ti.com, U-Boot Mailing List u-boot@lists.denx.de ??: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t On Tue, 2013-08-20 at 23:27 -0600, Simon Glass wrote: Hi David, On Tue, Aug 20

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-23 Thread Scott Wood
???8???22??? ? ?: Simon Glass s...@chromium.org ??: FengHua feng...@phytium.com.cn, tr...@ti.com tr...@ti.com, U-Boot Mailing List u-boot@lists.denx.de ??: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t On Tue, 2013-08-20

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-23 Thread FengHua
-原始邮件- 发件人: Scott Wood scottw...@freescale.com 发送时间: 2013年8月24日 星期六 收件人: Simon Glass s...@chromium.org 抄送: FengHua feng...@phytium.com.cn, trini tr...@ti.com, u-boot u-boot@lists.denx.de 主题: Re: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-22 Thread Tom Rini
-Boot Mailing List u-boot@lists.denx.de ??: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t On Tue, 2013-08-20 at 23:27 -0600, Simon Glass wrote: Hi David, On Tue, Aug 20, 2013 at 4:48 AM, feng...@phytium.com.cn wrote: diff --git a/common

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-22 Thread FengHua
Mailing List u-boot@lists.denx.de ??: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t On Tue, 2013-08-20 at 23:27 -0600, Simon Glass wrote: Hi David, On Tue, Aug 20, 2013 at 4:48 AM, feng...@phytium.com.cn wrote: diff --git a/common

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-21 Thread FengHua
-原始邮件- 发件人: Simon Glass s...@chromium.org 发送时间: 2013年8月21日 星期三 收件人: FengHua feng...@phytium.com.cn 抄送: U-Boot Mailing List u-boot@lists.denx.de, tr...@ti.com tr...@ti.com 主题: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t Hi David, On Tue

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-21 Thread Scott Wood
On Tue, 2013-08-20 at 23:27 -0600, Simon Glass wrote: Hi David, On Tue, Aug 20, 2013 at 4:48 AM, feng...@phytium.com.cn wrote: diff --git a/common/board_r.c b/common/board_r.c index 86ca1cb..1b4bdd2 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -157,6 +157,13 @@ static int

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-21 Thread FengHua
-原始邮件- 发件人: Scott Wood scottw...@freescale.com 发送时间: 2013年8月22日 星期四 收件人: Simon Glass s...@chromium.org 抄送: FengHua feng...@phytium.com.cn, tr...@ti.com tr...@ti.com, U-Boot Mailing List u-boot@lists.denx.de 主题: Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc

[U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-20 Thread fenghua
From: David Feng feng...@phytium.com.cn 1. function board_init_f in board_f.c should firstly zero gd_t structure before it call initcall_run_list, otherwise the debug print will go run if DEBUG is defined. Because the printf function will use global data to determine whether serial port

Re: [U-Boot] [PATCH v4 3/4] generic board patch of manual reloc and zero gd_t

2013-08-20 Thread Simon Glass
Hi David, On Tue, Aug 20, 2013 at 4:48 AM, feng...@phytium.com.cn wrote: From: David Feng feng...@phytium.com.cn 1. function board_init_f in board_f.c should firstly zero gd_t structure before it call initcall_run_list, otherwise the debug print will go run if DEBUG is defined.