[U-Boot-Users] Hello_world problem

Hi all,
I am using ppc 405 custom board. I managed to have u-boot running on my board. But for some reason the hello_world couldn't run on my board. Below are the detail:
1) I used TFTP to download hello_world.srec and put it to memory starting from 0x40004. => tftpboot 0x40004 hello_world.srec ENET Speed is 100 Mbps - HALF duplex connection TFTP from server 138.31.3.162; our IP address is 138.31.3.79 Filename 'hello_world.srec'. Load address: 0x40004 Loading: # done Bytes transferred = 1920 (780 hex)
2) Run the application from 0x40004, as written in the manual. But the following error came up: => go 0x40004 Hello world! This is a test ## Starting application at 0x00040004 ... NIP: 00002B94 XER: 00000000 LR: 0000219C REGS: 00006cf5 TRAP: 0700 DAR: 00000000 MSR: 00001000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 00FEA9A8 00006DE5 40000000 00006DF5 00FBBE7C 00000000 00000000 3A0AFB97 GPR08: 00FE6674 F0003964 00000003 00000002 00FF96B4 00000000 01002100 0175D000 GPR16: 00000000 00007CF9 00034286 00000000 00001000 00006DE5 00000000 0000219C GPR24: 00002B94 00000D0A 00000000 00000007 00010000 00FBBF60 0100270C 00FBBE7C ** Illegal Instruction ** Call backtrace: 00000000 00000000 Program Check Exception
I guess I didn't download the application to the right place or I didn't download the right file. So in the memory starting from 40004 has unrecognized instruction. But what should I do if I want to use TFTP to download image and run it?
Thanks,
Frank
_________________________________________________________________ MSN 9 Dial-up Internet Access fights spam and pop-ups now 3 months FREE! http://join.msn.click-url.com/go/onm00200361ave/direct/01/

In message BAY2-F41majv0hYOSJt000529e0@hotmail.com you wrote:
I am using ppc 405 custom board. I managed to have u-boot running on my board. But for some reason the hello_world couldn't run on my board. Below are the detail:
- I used TFTP to download hello_world.srec and put it to memory starting
from 0x40004. => tftpboot 0x40004 hello_world.srec
No, this is wrong.
0x40004 is the entry point, which is at offset 0x0004 in the image; and if you use TFTP, you must download the binary image, not the s-record file - you must use "tftp 40000 hello_world.bin; go 40004"
Best regards,
Wolfgang Denk
participants (2)
-
Frank Young
-
Wolfgang Denk