[U-Boot-Users] built examples but need help running them.

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

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

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

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.
participants (4)
-
Andrew Wozniak
-
Jerry Van Baren
-
John Davis
-
Wolfgang Denk