* [U-Boot-Users] built examples but need help running them.
@ 2005-11-16 11:39 John Davis
2005-11-16 11:50 ` Wolfgang Denk
2005-11-16 12:22 ` Jerry Van Baren
0 siblings, 2 replies; 4+ messages in thread
From: John Davis @ 2005-11-16 11:39 UTC (permalink / raw)
To: u-boot
Hello
I rebuilt the firmware and even the examples directory using the ELDK.
Everthing went smooth. I have uploaded the firmware and am running it.
I am having trouble with the execution of the examples/hello_world app
though. The readme mentions "CU" is used to upload s-rec files. I am unsure
how to use that. I am not sure if it is a new executable or part of the
kermit. Anyway, I deviated from using the loads procedure with kermit to
using loadb with kermit. This is how I did it:
=> loadb
## Ready for binary (kermit) download to 0x00100000 at 57600 bps...
type ctrl-\
(/home/davis/cvs/tools/bringup/scripts/) C-Kermit>send
/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples/hello_world
the send completes
type c
## Total Size = 0x00013acc = 80588 Bytes
## Start Addr = 0x00100000
=> go 100000
## Starting application at 0x00100000 ...
NIP: 00100000 XER: 00000000 LR: 065C81D4 REGS: 06576c50 TRAP: 0700 DAR:
065C2728
MSR: 00029000 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 065C81C4 06576D40 0000051B 00000001 0659737C 00000016 00000016
004E4C34
GPR08: 065C272C 00000020 04FA1BE0 00FED260 00000030 00000000 065EFC00
06637000
GPR16: 00000000 00000000 00000000 0000000B 00000000 00000000 00000001
00000000
GPR24: 00000000 00000000 00000000 00000001 00100000 06576F40 065F0370
0659737C
** Illegal Instruction **
Call backtrace:
Program Check Exception
My flash starts at 0xfc000000
I have tried to loadb at that offset and then go from there. The result is
the same. I did a md to see if the file was uploaded correctly. I could see
the "elf" magic number in ascii so it looks like it is ok.
Any help is appreciated,
JD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20051116/64a7700e/attachment.htm
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] built examples but need help running them.
2005-11-16 11:39 [U-Boot-Users] built examples but need help running them John Davis
@ 2005-11-16 11:50 ` Wolfgang Denk
2005-11-16 14:48 ` Andrew Wozniak
2005-11-16 12:22 ` Jerry Van Baren
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2005-11-16 11:50 UTC (permalink / raw)
To: u-boot
In message <6a7ac2300511160339u39673189o90e9b909fd5075e5@mail.gmail.com> you wrote:
>
> I rebuilt the firmware and even the examples directory using the ELDK.
> Everthing went smooth. I have uploaded the firmware and am running it.
Good.
> I am having trouble with the execution of the examples/hello_world app
> though. The readme mentions "CU" is used to upload s-rec files. I am unsure
This is one of the ioptions. Of course you can also use kermit binary
protocol, TFTP or NFS to download the code.
> how to use that. I am not sure if it is a new executable or part of the
> kermit. Anyway, I deviated from using the loads procedure with kermit to
> using loadb with kermit. This is how I did it:
...
> ## Start Addr = 0x00100000
>
> => go 100000
...
> ** Illegal Instruction **
That was to be expected. What makes you think that 100000 could be a
correct download or start address?
> Any help is appreciated,
Please help yourself (and us) and finally start reading the documentation.
See especially http://www.denx.de/wiki/view/DULG/UBootStandalone
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
Unix is supported by IBM, like a hanging man is supported by rope.
- Don Libes & Sandy Ressler: _Life With Unix_
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] built examples but need help running them.
2005-11-16 11:39 [U-Boot-Users] built examples but need help running them John Davis
2005-11-16 11:50 ` Wolfgang Denk
@ 2005-11-16 12:22 ` Jerry Van Baren
1 sibling, 0 replies; 4+ messages in thread
From: Jerry Van Baren @ 2005-11-16 12:22 UTC (permalink / raw)
To: u-boot
John Davis wrote:
> Hello
[snip]
> My flash starts at 0xfc000000
> I have tried to loadb at that offset and then go from there. The result
> is the same. I did a md to see if the file was uploaded correctly. I
> could see the "elf" magic number in ascii so it looks like it is ok.
>
> Any help is appreciated,
>
> JD
You are trying to execute "ELF" (literally the characters "ELF",
obviously not a valid instruction - 0x44 is "sc", 0x45 is bogus). You
need to load an image as binary in order to use "go" to run it.
gvb
Morning coffee and a trivia fix, the day is looking good.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] built examples but need help running them.
2005-11-16 11:50 ` Wolfgang Denk
@ 2005-11-16 14:48 ` Andrew Wozniak
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Wozniak @ 2005-11-16 14:48 UTC (permalink / raw)
To: u-boot
Wolfgang Denk wrote:
> In message <6a7ac2300511160339u39673189o90e9b909fd5075e5@mail.gmail.com> you wrote:
>> I rebuilt the firmware and even the examples directory using the ELDK.
>> Everthing went smooth. I have uploaded the firmware and am running it.
>
> Good.
>
>> I am having trouble with the execution of the examples/hello_world app
>> though. The readme mentions "CU" is used to upload s-rec files. I am unsure
>
> This is one of the ioptions. Of course you can also use kermit binary
> protocol, TFTP or NFS to download the code.
>
>> how to use that. I am not sure if it is a new executable or part of the
>> kermit. Anyway, I deviated from using the loads procedure with kermit to
>> using loadb with kermit. This is how I did it:
> ...
>> ## Start Addr = 0x00100000
>>
>> => go 100000
> ...
>> ** Illegal Instruction **
>
> That was to be expected. What makes you think that 100000 could be a
> correct download or start address?
Hint: "read" the u-boot/README file for running examples.
Also take a look at the link phase of hello_world - does it really show
a load address of 0x00100000?
>> Any help is appreciated,
>
> Please help yourself (and us) and finally start reading the documentation.
> See especially http://www.denx.de/wiki/view/DULG/UBootStandalone
>
> Best regards,
>
> Wolfgang Denk
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-16 14:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-16 11:39 [U-Boot-Users] built examples but need help running them John Davis
2005-11-16 11:50 ` Wolfgang Denk
2005-11-16 14:48 ` Andrew Wozniak
2005-11-16 12:22 ` Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox