[U-Boot] standalone hello_world example crashes on PowerPC

Has anyone tried recently to run the "hello world" example standalone program on PowerPC, specifically an e500 system? When I try it, I get this:
=> tftp 40000 timur/hello_world.bin Using FM1@DTSEC1 device TFTP from server 192.168.1.1; our IP address is 192.168.1.145 Filename 'timur/hello_world.bin'. Load address: 0x40000 Loading: ##### done Bytes transferred = 66486 (103b6 hex) => go 40004 This is another test. ## Starting application at 0x00040004 ... Bad trap at PC: 0, SR: 29200, vector=800 NIP: 00000000 XER: 20000000 LR: 00040040 REGS: 7fe2dcc8 TRAP: 0800 DAR: 00000000 MSR: 00029200 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00
GPR00: 00040030 7FE2DDB8 7FE2DF40 00040304 00000006 7FE38804 00040004 00000010 GPR08: 00000000 00000003 00000030 00000000 48224082 00000000 7FF9FA00 00000000 GPR16: 00000000 7FF94000 7FFB1228 7FF9C424 00000000 00000000 00000000 7FE386F8 GPR24: 00000000 00000000 00000000 00000000 7FE38804 00000005 0005838E 00000000 Call backtrace: 00040030 00000000 Exception in kernel pc 0 signal 0 ### ERROR ### Please RESET the board ###
I just want to make sure I'm not doing anything dumb before I start debugging it.

Dear Timur Tabi,
In message AANLkTilu1VfVkh1jz1s_aKIn1AmJOthAf3n4D81b99So@mail.gmail.com you wrote:
Has anyone tried recently to run the "hello world" example standalone program on PowerPC, specifically an e500 system? When I try it, I get this:
Did you verify the entry point address as described in the FAQ?
Best regards,
Wolfgang Denk

Wolfgang Denk wrote:
Did you verify the entry point address as described in the FAQ?
Thanks, that was the problem. The entry point moved:
00040000 T hello_world
I suggest that you update the U-Boot Manual (specifically http://www.denx.de/wiki/DULG/UBootStandalone) to tell people to always use the nm command to find the entry point. That web page implies that compiling hello_world.c unmodified will always put the entry point at 40004. The statement, "It's configured to run at address 0x00040004" is false.

Dear Timur Tabi,
In message 4BED4C83.10600@freescale.com you wrote:
Wolfgang Denk wrote:
Did you verify the entry point address as described in the FAQ?
Thanks, that was the problem. The entry point moved:
00040000 T hello_world
I suggest that you update the U-Boot Manual (specifically http://www.denx.de/wiki/DULG/UBootStandalone) to tell people to always use the nm command to find the entry point. That web page implies that compiling hello_world.c unmodified will always put t he entry point at 40004. The statement, "It's configured to run at address 0x00040004" is false.
Why don't you do this yourself? It's a wiki!
Best regards,
Wolfgang Denk
participants (2)
-
Timur Tabi
-
Wolfgang Denk