* [U-Boot] Beginner
@ 2011-12-02 1:44 bart.deboeck at xenopz.com
2011-12-02 9:58 ` Marek Vasut
0 siblings, 1 reply; 8+ messages in thread
From: bart.deboeck at xenopz.com @ 2011-12-02 1:44 UTC (permalink / raw)
To: u-boot
Dear All,
I'm completely new to U-Boot and trying to develop a standalone
application (developing on a Windows machine with the Code Red IDE).
So far, I managed to start a simple application that toggles GPIOs.
However, when I try to call a function in main() the app immediately
crashes or hangs.
U-Boot reports errors like:
fast interrupt request
pc : [<a1f97bfc>] lr : [<00017e58>]
sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2
r10: acd7a91e r9 : 353a342d r8 : a1f5cf70
r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163
r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b
Flags: nzCv IRQs on FIQs on Mode SVC_32
Resetting CPU ...
In what direction should I start looking to solve this?
Your feedback is appreciated!
Thanks!
Bart
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
2011-12-02 1:44 [U-Boot] Beginner bart.deboeck at xenopz.com
@ 2011-12-02 9:58 ` Marek Vasut
2011-12-02 14:33 ` bart.deboeck at xenopz.com
[not found] ` <505566b13ec16ca5d4256611c97a39cd.squirrel@195.88.32.193>
0 siblings, 2 replies; 8+ messages in thread
From: Marek Vasut @ 2011-12-02 9:58 UTC (permalink / raw)
To: u-boot
> Dear All,
>
> I'm completely new to U-Boot and trying to develop a standalone
> application (developing on a Windows machine with the Code Red IDE).
>
> So far, I managed to start a simple application that toggles GPIOs.
> However, when I try to call a function in main() the app immediately
> crashes or hangs.
>
> U-Boot reports errors like:
>
> fast interrupt request
> pc : [<a1f97bfc>] lr : [<00017e58>]
> sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2
> r10: acd7a91e r9 : 353a342d r8 : a1f5cf70
> r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163
> r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b
> Flags: nzCv IRQs on FIQs on Mode SVC_32
> Resetting CPU ...
>
> In what direction should I start looking to solve this?
>
> Your feedback is appreciated!
>
> Thanks!
> Bart
Uhum ... so my wild guess is you have a PXA based machine ? What compiler do you
use? What version of U-Boot ? please, be more specific.
M
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
2011-12-02 9:58 ` Marek Vasut
@ 2011-12-02 14:33 ` bart.deboeck at xenopz.com
2011-12-02 16:41 ` Wolfgang Denk
[not found] ` <505566b13ec16ca5d4256611c97a39cd.squirrel@195.88.32.193>
1 sibling, 1 reply; 8+ messages in thread
From: bart.deboeck at xenopz.com @ 2011-12-02 14:33 UTC (permalink / raw)
To: u-boot
:-) thanks for asking
machine: embedded artists lpc2478 oem - arm7
compiler: arm-none-eabi-gcc-4.3.3.exe
U-Boot: u-boot-1.1.6 with embedded artists patches
bin file is generated with "arm-none-eabi-objcopy -O binary app.bin"
uClinux boots correctly
Thanks!
Bart
>> Dear All,
>>
>> I'm completely new to U-Boot and trying to develop a standalone
>> application (developing on a Windows machine with the Code Red IDE).
>>
>> So far, I managed to start a simple application that toggles GPIOs.
>> However, when I try to call a function in main() the app immediately
>> crashes or hangs.
>>
>> U-Boot reports errors like:
>>
>> fast interrupt request
>> pc : [<a1f97bfc>] lr : [<00017e58>]
>> sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2
>> r10: acd7a91e r9 : 353a342d r8 : a1f5cf70
>> r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163
>> r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b
>> Flags: nzCv IRQs on FIQs on Mode SVC_32
>> Resetting CPU ...
>>
>> In what direction should I start looking to solve this?
>>
>> Your feedback is appreciated!
>>
>> Thanks!
>> Bart
>
> Uhum ... so my wild guess is you have a PXA based machine ? What compiler
> do you
> use? What version of U-Boot ? please, be more specific.
>
> M
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
2011-12-02 14:33 ` bart.deboeck at xenopz.com
@ 2011-12-02 16:41 ` Wolfgang Denk
2011-12-02 17:18 ` bart.deboeck at xenopz.com
2011-12-03 23:45 ` bart.deboeck at xenopz.com
0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Denk @ 2011-12-02 16:41 UTC (permalink / raw)
To: u-boot
Dear bart.deboeck at xenopz.com,
In message <a679a9686ea722e09825f5e3c362e5e1.squirrel@195.88.32.193> you wrote:
> :-) thanks for asking
>
> machine: embedded artists lpc2478 oem - arm7
> compiler: arm-none-eabi-gcc-4.3.3.exe
> U-Boot: u-boot-1.1.6 with embedded artists patches
Ouch. An out-of-tree port, and a prehistoric one at that.
U-Boot 1.1.6 is more than 5 years old. In terms of software
development that was when saber-toothed tigers lurked behind each
other stack frame. You do not want to use such old code. Do yourself
(and us) a favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber
correctly, it has tons of problems.s lurked behind each other stack
frame. You do not want to use such old code. Do yourself (and us) a
favour and update.
Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber
correctly, it has tons of problems.
But your biggest problem is the out of tree code - we don't know it,
so how should we be able to help?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you're out of tree, you don't exist.
- David Woodhouse in <1304620350.2398.29.camel@i7.infradead.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
[not found] ` <505566b13ec16ca5d4256611c97a39cd.squirrel@195.88.32.193>
@ 2011-12-02 17:12 ` Marek Vasut
2011-12-02 17:20 ` bart.deboeck at xenopz.com
0 siblings, 1 reply; 8+ messages in thread
From: Marek Vasut @ 2011-12-02 17:12 UTC (permalink / raw)
To: u-boot
_ALWAYS_ CC the mailing list!!!
> :-) thanks for asking
>
> machine: embedded artists lpc2478 oem - arm7
> compiler: arm-none-eabi-gcc-4.3.3.exe
EXE? Uhm ...
> U-Boot: u-boot-1.1.6 with embedded artists patches
Please, update to mainline
>
> bin file is generated with "arm-none-eabi-objcopy -O binary app.bin"
>
> uClinux boots correctly
>
> Thanks!
> Bart
>
> >> Dear All,
> >>
> >> I'm completely new to U-Boot and trying to develop a standalone
> >>
> >> application (developing on a Windows machine with the Code Red IDE).
> >>
> >> So far, I managed to start a simple application that toggles GPIOs.
> >>
> >> However, when I try to call a function in main() the app immediately
> >> crashes or hangs.
> >>
> >> U-Boot reports errors like:
> >> fast interrupt request
> >> pc : [<a1f97bfc>] lr : [<00017e58>]
> >> sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2
> >> r10: acd7a91e r9 : 353a342d r8 : a1f5cf70
> >> r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163
> >> r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b
> >> Flags: nzCv IRQs on FIQs on Mode SVC_32
> >> Resetting CPU ...
> >>
> >> In what direction should I start looking to solve this?
> >>
> >> Your feedback is appreciated!
> >>
> >> Thanks!
> >> Bart
> >
> > Uhum ... so my wild guess is you have a PXA based machine ? What compiler
> > do you
> > use? What version of U-Boot ? please, be more specific.
> >
> > M
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
2011-12-02 16:41 ` Wolfgang Denk
@ 2011-12-02 17:18 ` bart.deboeck at xenopz.com
2011-12-03 23:45 ` bart.deboeck at xenopz.com
1 sibling, 0 replies; 8+ messages in thread
From: bart.deboeck at xenopz.com @ 2011-12-02 17:18 UTC (permalink / raw)
To: u-boot
Thanks for the feedback!
Is upgrading gcc to 4.5.1 reasonable?
I'll see what I can do about the u-boot-1.1.6
It might be helpfull if you can point me at documentation/examples that
explain how a standalone application should be developed (I've read the
documentation, but didn't find examples that compile out of the U-Boot
source tree).
Thanks!
Bart
> Dear bart.deboeck at xenopz.com,
>
> In message <a679a9686ea722e09825f5e3c362e5e1.squirrel@195.88.32.193> you
> wrote:
>> :-) thanks for asking
>>
>> machine: embedded artists lpc2478 oem - arm7
>> compiler: arm-none-eabi-gcc-4.3.3.exe
>> U-Boot: u-boot-1.1.6 with embedded artists patches
>
> Ouch. An out-of-tree port, and a prehistoric one at that.
>
> U-Boot 1.1.6 is more than 5 years old. In terms of software
> development that was when saber-toothed tigers lurked behind each
> other stack frame. You do not want to use such old code. Do yourself
> (and us) a favour and update.
>
> Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber
> correctly, it has tons of problems.s lurked behind each other stack
> frame. You do not want to use such old code. Do yourself (and us) a
> favour and update.
>
> Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber
> correctly, it has tons of problems.
>
> But your biggest problem is the out of tree code - we don't know it,
> so how should we be able to help?
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> If you're out of tree, you don't exist.
> - David Woodhouse in <1304620350.2398.29.camel@i7.infradead.org>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
2011-12-02 17:12 ` Marek Vasut
@ 2011-12-02 17:20 ` bart.deboeck at xenopz.com
0 siblings, 0 replies; 8+ messages in thread
From: bart.deboeck at xenopz.com @ 2011-12-02 17:20 UTC (permalink / raw)
To: u-boot
exe, indeed - developing on windows
sorry for the cc mistake
> _ALWAYS_ CC the mailing list!!!
>
>> :-) thanks for asking
>>
>> machine: embedded artists lpc2478 oem - arm7
>> compiler: arm-none-eabi-gcc-4.3.3.exe
>
> EXE? Uhm ...
>
>> U-Boot: u-boot-1.1.6 with embedded artists patches
>
> Please, update to mainline
>>
>> bin file is generated with "arm-none-eabi-objcopy -O binary app.bin"
>>
>> uClinux boots correctly
>>
>> Thanks!
>> Bart
>>
>> >> Dear All,
>> >>
>> >> I'm completely new to U-Boot and trying to develop a standalone
>> >>
>> >> application (developing on a Windows machine with the Code Red IDE).
>> >>
>> >> So far, I managed to start a simple application that toggles GPIOs.
>> >>
>> >> However, when I try to call a function in main() the app immediately
>> >> crashes or hangs.
>> >>
>> >> U-Boot reports errors like:
>> >> fast interrupt request
>> >> pc : [<a1f97bfc>] lr : [<00017e58>]
>> >> sp : a1fffcf0 ip : a1fadf04 fp : 7ff7f1d2
>> >> r10: acd7a91e r9 : 353a342d r8 : a1f5cf70
>> >> r7 : ffffd1d4 r6 : ffffd307 r5 : ffffd197 r4 : ffffd163
>> >> r3 : 20000013 r2 : ffffd14f r1 : fa47fca1 r0 : ffffd01b
>> >> Flags: nzCv IRQs on FIQs on Mode SVC_32
>> >> Resetting CPU ...
>> >>
>> >> In what direction should I start looking to solve this?
>> >>
>> >> Your feedback is appreciated!
>> >>
>> >> Thanks!
>> >> Bart
>> >
>> > Uhum ... so my wild guess is you have a PXA based machine ? What
>> compiler
>> > do you
>> > use? What version of U-Boot ? please, be more specific.
>> >
>> > M
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] Beginner
2011-12-02 16:41 ` Wolfgang Denk
2011-12-02 17:18 ` bart.deboeck at xenopz.com
@ 2011-12-03 23:45 ` bart.deboeck at xenopz.com
1 sibling, 0 replies; 8+ messages in thread
From: bart.deboeck at xenopz.com @ 2011-12-03 23:45 UTC (permalink / raw)
To: u-boot
solved, was a linker issue
gcc 4.3.3 and U-Boot 1.1.6 are ok for now, will upgrade once I understand
how to port U-Boot to a "new" board
thanks for all the feedback, appreciated!
with much regards,
Bart
> Dear bart.deboeck at xenopz.com,
>
> In message <a679a9686ea722e09825f5e3c362e5e1.squirrel@195.88.32.193> you
> wrote:
>> :-) thanks for asking
>>
>> machine: embedded artists lpc2478 oem - arm7
>> compiler: arm-none-eabi-gcc-4.3.3.exe
>> U-Boot: u-boot-1.1.6 with embedded artists patches
>
> Ouch. An out-of-tree port, and a prehistoric one at that.
>
> U-Boot 1.1.6 is more than 5 years old. In terms of software
> development that was when saber-toothed tigers lurked behind each
> other stack frame. You do not want to use such old code. Do yourself
> (and us) a favour and update.
>
> Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber
> correctly, it has tons of problems.s lurked behind each other stack
> frame. You do not want to use such old code. Do yourself (and us) a
> favour and update.
>
> Also, GCC 4.3.x is probably not a clever choice on ARM. If I remeber
> correctly, it has tons of problems.
>
> But your biggest problem is the out of tree code - we don't know it,
> so how should we be able to help?
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> If you're out of tree, you don't exist.
> - David Woodhouse in <1304620350.2398.29.camel@i7.infradead.org>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-12-03 23:45 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-02 1:44 [U-Boot] Beginner bart.deboeck at xenopz.com
2011-12-02 9:58 ` Marek Vasut
2011-12-02 14:33 ` bart.deboeck at xenopz.com
2011-12-02 16:41 ` Wolfgang Denk
2011-12-02 17:18 ` bart.deboeck at xenopz.com
2011-12-03 23:45 ` bart.deboeck at xenopz.com
[not found] ` <505566b13ec16ca5d4256611c97a39cd.squirrel@195.88.32.193>
2011-12-02 17:12 ` Marek Vasut
2011-12-02 17:20 ` bart.deboeck at xenopz.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox