* [U-Boot-Users] Coldfile 5282 - Hello_world again
@ 2006-01-27 15:34 Jens Scharsig
2006-01-27 17:29 ` Andrew Wozniak
2006-01-30 15:03 ` Jens Scharsig
0 siblings, 2 replies; 4+ messages in thread
From: Jens Scharsig @ 2006-01-27 15:34 UTC (permalink / raw)
To: u-boot
Hello
I am back again on u-boot.
I can't run the have the hello_world example. I get exceptions after
start it. So I diassemble and discover the code.
I think the entry point is fault or the initcode is missed.
...
int hello_world (int argc, char *argv[])
{
20000: 4e56 0000 linkw %fp,#0
int i;
/* Print the ABI version */
app_startup(argv);
20004: 2f2e 000c movel %fp@(12),%sp at -
20008: 206d 000c moveal %a5@(12),%a0
2000c: 4e90 jsr %a0@
...
a0 should load with be contains 00020134
...
00020134 <app_startup>:
extern unsigned long __bss_start, _end;
void app_startup(char **argv)
{
20134: 4e56 0000 linkw %fp,#0
unsigned long * cp = &__bss_start;
...
but moveal %a5@(12),%a0 gets a different address. How or where to
initialize the a5 register.
Any sugestions
Thx Jens
^ permalink raw reply [flat|nested] 4+ messages in thread* [U-Boot-Users] Coldfile 5282 - Hello_world again
2006-01-27 15:34 [U-Boot-Users] Coldfile 5282 - Hello_world again Jens Scharsig
@ 2006-01-27 17:29 ` Andrew Wozniak
2006-01-30 7:12 ` [U-Boot-Users] " Jens Scharsig
2006-01-30 15:03 ` Jens Scharsig
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Wozniak @ 2006-01-27 17:29 UTC (permalink / raw)
To: u-boot
Jens Scharsig wrote:
> Hello
>
> I am back again on u-boot.
> I can't run the have the hello_world example. I get exceptions after
> start it. So I diassemble and discover the code.
> I think the entry point is fault or the initcode is missed.
You did not says what address you specified for the "go" command. But if
you "read" the README file, it will show you how to run it properly.
> ...
> int hello_world (int argc, char *argv[])
> {
> 20000: 4e56 0000 linkw %fp,#0
> int i;
>
> /* Print the ABI version */
> app_startup(argv);
> 20004: 2f2e 000c movel %fp@(12),%sp at -
> 20008: 206d 000c moveal %a5@(12),%a0
> 2000c: 4e90 jsr %a0@
> ...
>
> a0 should load with be contains 00020134
>
> ...
> 00020134 <app_startup>:
>
> extern unsigned long __bss_start, _end;
>
> void app_startup(char **argv)
> {
> 20134: 4e56 0000 linkw %fp,#0
> unsigned long * cp = &__bss_start;
> ...
>
> but moveal %a5@(12),%a0 gets a different address. How or where to
> initialize the a5 register.
>
> Any sugestions
>
> Thx Jens
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
^ permalink raw reply [flat|nested] 4+ messages in thread* [U-Boot-Users] Re: Coldfile 5282 - Hello_world again
2006-01-27 17:29 ` Andrew Wozniak
@ 2006-01-30 7:12 ` Jens Scharsig
0 siblings, 0 replies; 4+ messages in thread
From: Jens Scharsig @ 2006-01-30 7:12 UTC (permalink / raw)
To: u-boot
>
> You did not says what address you specified for the "go" command. But if
> you "read" the README file, it will show you how to run it properly.
>
I will read this, but I don't found spezial informations about m68k
targets in readme.standalone. So i try go 20000 and 20004 to start.
By the way u-boot works well
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] Re: Coldfile 5282 - Hello_world again
2006-01-27 15:34 [U-Boot-Users] Coldfile 5282 - Hello_world again Jens Scharsig
2006-01-27 17:29 ` Andrew Wozniak
@ 2006-01-30 15:03 ` Jens Scharsig
1 sibling, 0 replies; 4+ messages in thread
From: Jens Scharsig @ 2006-01-30 15:03 UTC (permalink / raw)
To: u-boot
Hello again,
> int hello_world (int argc, char *argv[])
> {
> 20000: 4e56 0000 linkw %fp,#0
> int i;
>
> /* Print the ABI version */
> app_startup(argv);
> 20004: 2f2e 000c movel %fp@(12),%sp at -
> 20008: 206d 000c moveal %a5@(12),%a0
> 2000c: 4e90 jsr %a0@
I think, blame it on my problem is the moveal %a5@(12),%a0.
I can't find any initilalize command for a5 in the hole code.
Has anybody a simple example with a working initialize sequence?
Thx Jens
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-01-30 15:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-27 15:34 [U-Boot-Users] Coldfile 5282 - Hello_world again Jens Scharsig
2006-01-27 17:29 ` Andrew Wozniak
2006-01-30 7:12 ` [U-Boot-Users] " Jens Scharsig
2006-01-30 15:03 ` Jens Scharsig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox