* [U-Boot] Set TEXT_BASE via <project>.h file?
@ 2010-01-28 11:31 A. Geisreiter
2010-01-28 11:52 ` Wolfgang Wegner
0 siblings, 1 reply; 5+ messages in thread
From: A. Geisreiter @ 2010-01-28 11:31 UTC (permalink / raw)
To: u-boot
Hi,
I have a question to the TEXT_BASE setting in the config.mk file. Is it
possible to set TEXT_BASE via a setting in the <project>.h file?
Thanks,
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Set TEXT_BASE via <project>.h file?
2010-01-28 11:31 [U-Boot] Set TEXT_BASE via <project>.h file? A. Geisreiter
@ 2010-01-28 11:52 ` Wolfgang Wegner
2010-01-28 12:39 ` A. Geisreiter
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Wegner @ 2010-01-28 11:52 UTC (permalink / raw)
To: u-boot
Hi Andreas,
On Thu, Jan 28, 2010 at 12:31:44PM +0100, A. Geisreiter wrote:
> Hi,
>
> I have a question to the TEXT_BASE setting in the config.mk file. Is it
> possible to set TEXT_BASE via a setting in the <project>.h file?
yes, it is.
In my <project>.h I set:
#define CONFIG_TEXT_BASE 0x40020000
(depending on some CONFIG_MK_... variable)
and in config.mk:
TEXT_BASE=$(CONFIG_TEXT_BASE)
Of course there may be other possibilities, but I found this one to
work after setting TEXT_BASE directly in <project>.h failed.
Regards,
Wolfgang
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Set TEXT_BASE via <project>.h file?
2010-01-28 11:52 ` Wolfgang Wegner
@ 2010-01-28 12:39 ` A. Geisreiter
2010-01-28 12:51 ` Wolfgang Wegner
0 siblings, 1 reply; 5+ messages in thread
From: A. Geisreiter @ 2010-01-28 12:39 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
Thanks for the fast response.
I have tried you're suggestion, but than U-Boot doesn't start. But I don't
get an compiler error. What could be the problem?
I work with an PXA270 CPU and TEXT_BASE defines the base address of the RAM
copy monitor code.
Regards,
Andreas
-----Urspr?ngliche Nachricht-----
Von: Wolfgang Wegner [mailto:wolfgang at leila.ping.de]
Gesendet: Donnerstag, 28. Januar 2010 12:53
An: A. Geisreiter
Cc: u-boot at lists.denx.de
Betreff: Re: [U-Boot] Set TEXT_BASE via <project>.h file?
Hi Andreas,
On Thu, Jan 28, 2010 at 12:31:44PM +0100, A. Geisreiter wrote:
> Hi,
>
> I have a question to the TEXT_BASE setting in the config.mk file. Is it
> possible to set TEXT_BASE via a setting in the <project>.h file?
yes, it is.
In my <project>.h I set:
#define CONFIG_TEXT_BASE 0x40020000
(depending on some CONFIG_MK_... variable)
and in config.mk:
TEXT_BASE=$(CONFIG_TEXT_BASE)
Of course there may be other possibilities, but I found this one to
work after setting TEXT_BASE directly in <project>.h failed.
Regards,
Wolfgang
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Set TEXT_BASE via <project>.h file?
2010-01-28 12:39 ` A. Geisreiter
@ 2010-01-28 12:51 ` Wolfgang Wegner
2010-01-28 13:21 ` A. Geisreiter
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Wegner @ 2010-01-28 12:51 UTC (permalink / raw)
To: u-boot
Hi Andreas,
On Thu, Jan 28, 2010 at 01:39:06PM +0100, A. Geisreiter wrote:
> Hi Wolfgang,
>
> Thanks for the fast response.
> I have tried you're suggestion, but than U-Boot doesn't start. But I don't
> get an compiler error. What could be the problem?
> I work with an PXA270 CPU and TEXT_BASE defines the base address of the RAM
> copy monitor code.
remote diagnosis is always difficult. ;-)
Did you issue a "make mrproper", re-configure and the rebuild?
For Coldfire targets I had some problems that all objects originating
from C sources were correctly rebuilt after changing <project>.h, but
not the objects originating from assembler sources. In the case of
Coldfire, TEXT_BASE is also used in the assembler CPU startup code, so
this would lead to the exact problem you describe...
Currently I have no other ideas.
Regards,
Wolfgang
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] Set TEXT_BASE via <project>.h file?
2010-01-28 12:51 ` Wolfgang Wegner
@ 2010-01-28 13:21 ` A. Geisreiter
0 siblings, 0 replies; 5+ messages in thread
From: A. Geisreiter @ 2010-01-28 13:21 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
>> Thanks for the fast response.
>> I have tried you're suggestion, but then U-Boot doesn't start. But I
don't
>> get an compiler error. What could be the problem?
>> I work with an PXA270 CPU and TEXT_BASE defines the base address of the
RAM
>> copy monitor code.
> remote diagnosis is always difficult. ;-)
> Did you issue a "make mrproper", re-configure and the rebuild?
> For Coldfire targets I had some problems that all objects originating
> from C sources were correctly rebuilt after changing <project>.h, but
> not the objects originating from assembler sources. In the case of
> Coldfire, TEXT_BASE is also used in the assembler CPU startup code, so
> this would lead to the exact problem you describe...
> Currently I have no other ideas.
"make mrproper" sadly also not help. So I must search a little bit, but
thanks for your help.
Regards,
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-28 13:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-28 11:31 [U-Boot] Set TEXT_BASE via <project>.h file? A. Geisreiter
2010-01-28 11:52 ` Wolfgang Wegner
2010-01-28 12:39 ` A. Geisreiter
2010-01-28 12:51 ` Wolfgang Wegner
2010-01-28 13:21 ` A. Geisreiter
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.