* [U-Boot-Users] debug u-boot with BDI2000
@ 2005-02-02 17:09 Hinko Kocevar
2005-02-02 17:36 ` Jerry Van Baren
0 siblings, 1 reply; 5+ messages in thread
From: Hinko Kocevar @ 2005-02-02 17:09 UTC (permalink / raw)
To: u-boot
Hi,
After solving early problem with target reset (cable fault) I'm ready to
do some real work!
I order to debug u-boot startup and so on, do I have to enable/provide
some additional options when compiling u-boot for my target?
I've read the Debugging section in dulg manual, but it doesn't mention
anything like that - Just to make sure...
regards,
hk
--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, embedded systems developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
"A? r?n" | [Analects XII:22]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] debug u-boot with BDI2000
2005-02-02 17:09 [U-Boot-Users] debug u-boot with BDI2000 Hinko Kocevar
@ 2005-02-02 17:36 ` Jerry Van Baren
2005-02-02 17:53 ` Dan Malek
2005-02-02 18:46 ` Wolfgang Denk
0 siblings, 2 replies; 5+ messages in thread
From: Jerry Van Baren @ 2005-02-02 17:36 UTC (permalink / raw)
To: u-boot
Hinko Kocevar wrote:
> Hi,
>
> After solving early problem with target reset (cable fault) I'm ready to
> do some real work!
> I order to debug u-boot startup and so on, do I have to enable/provide
> some additional options when compiling u-boot for my target?
>
> I've read the Debugging section in dulg manual, but it doesn't mention
> anything like that - Just to make sure...
>
> regards,
> hk
Just the standard ones for debugging: -g for symbolic support.
You may want to use -O0 to turn off optimization. The linux kernel
won't link when compiled with -O0 because the expected inlining doesn't
happen (symptom: linking gives missing symbols) -- I don't recall if
u-boot has that limitation too.
gvb
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] debug u-boot with BDI2000
2005-02-02 17:36 ` Jerry Van Baren
@ 2005-02-02 17:53 ` Dan Malek
2005-02-02 19:10 ` Hinko Kocevar
2005-02-02 18:46 ` Wolfgang Denk
1 sibling, 1 reply; 5+ messages in thread
From: Dan Malek @ 2005-02-02 17:53 UTC (permalink / raw)
To: u-boot
On Feb 2, 2005, at 12:36 PM, Jerry Van Baren wrote:
> Just the standard ones for debugging: -g for symbolic support.
You also have to be careful of processor initialization code that
initializes debug control registers. Proper processor set up requires
you do this, but of course the BDI2000 is also trying to use these
registers to assist with the debug process. You may have to disable
this debug register initialization in the code, depending upon the
processor, or find some other way of working around this.
-- Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] debug u-boot with BDI2000
2005-02-02 17:36 ` Jerry Van Baren
2005-02-02 17:53 ` Dan Malek
@ 2005-02-02 18:46 ` Wolfgang Denk
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2005-02-02 18:46 UTC (permalink / raw)
To: u-boot
In message <42010F95.4070709@smiths-aerospace.com> you wrote:
>
> Just the standard ones for debugging: -g for symbolic support.
This is default for U-Boot, so no change needed.
> You may want to use -O0 to turn off optimization. The linux kernel
We never do this. You get used to see what the optimizer is doing -
and actually this my be very important to know. We've been hunting a
couple of problems (like missing "volatile" atributes) when switching
from older versions of GCC to GCC-3.3 - turning off -O0 ould have
made this impossible.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Actual war is a very messy business. Very, very messy business.
-- Kirk, "A Taste of Armageddon", stardate 3193.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] debug u-boot with BDI2000
2005-02-02 17:53 ` Dan Malek
@ 2005-02-02 19:10 ` Hinko Kocevar
0 siblings, 0 replies; 5+ messages in thread
From: Hinko Kocevar @ 2005-02-02 19:10 UTC (permalink / raw)
To: u-boot
Dan Malek wrote:
>
> You also have to be careful of processor initialization code that
> initializes debug control registers. Proper processor set up requires
> you do this, but of course the BDI2000 is also trying to use these
> registers to assist with the debug process. You may have to disable
> this debug register initialization in the code, depending upon the
> processor, or find some other way of working around this.
>
Hmm, I'm using intel pxa255 A0 processor here. BDI2000 came with some
setup files for this processor. I'll check out that stuff, thanks for
the tip.
regards,
hk
--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, embedded systems developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
"A? r?n" | [Analects XII:22]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-02 19:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 17:09 [U-Boot-Users] debug u-boot with BDI2000 Hinko Kocevar
2005-02-02 17:36 ` Jerry Van Baren
2005-02-02 17:53 ` Dan Malek
2005-02-02 19:10 ` Hinko Kocevar
2005-02-02 18:46 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox