[U-Boot] Hello-World Standalone Crash on Exit

Darcy Watkins darcy.watkins at inmotiontechnology.com
Fri Feb 8 18:46:55 CET 2013


Hello,

I test drove the standalone program for hello world and found it causes a crash/reset when you hit the key to exit the program.  The u-boot I am using is actually based on a git d69dba367aed051663d0ee1ece013c8232bfa9f5 snapshot from the u-boot-mpc85xx branch.  It appears like the standalone program attempted to return to NULL for some reason.  I'm running this on a P1022DS (built for the 32bit, not 36bit addressing).

=> tftp 40000 uboot/hello_world.bin
Speed: 1000, full duplex
Using eTSEC1 device
TFTP from server 192.168.12.12; our IP address is 192.168.12.121
Filename 'uboot/hello_world.bin'.
Load address: 0x40000
Loading: #
done
Bytes transferred = 1120 (460 hex)
=> go 40004 Hello World! This is a test.
## Starting application at 0x00040004 ...
Example expects ABI version 6
Actual U-Boot ABI version 6
Hello World
argc = 7
argv[0] = "40004"
argv[1] = "Hello"
argv[2] = "World!"
argv[3] = "This"
argv[4] = "is"
argv[5] = "a"
argv[6] = "test."
argv[7] = "<NULL>"
Hit any key to exit ... 

NIP: 00000000 XER: 20000000 LR: 00000000 REGS: 7f4afcd0 TRAP: 0700 DAR: 00000000
MSR: 00029200 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00

GPR00: 00000000 7F4AFDC0 7F4AFF58 00000000 0000000A 7F4AFC50 FFFFFFFF 00000000 
GPR08: FFFFFFFF 00000020 FFFFFFF8 7F4AFDB8 7FEB906C 77226600 00000000 00000000 
GPR16: 7F4B1988 00000000 00000000 00000000 0000000B 00000001 7FFB0040 7FF18B2C 
GPR24: 00000000 00000000 00000008 7FFB0C6C 00040004 7F4B1954 7FF332F8 00000008 
** Illegal Instruction **
SRR0=0000000a, SRR1=7f4afb68
Call backtrace: 
00000000 
Program Check Exception


U-Boot 2012.07 (Feb 07 2013 - 13:55:55)

CPU0:  P1022E, Version: 1.0, (0x80ee0010)
Core:  E500, Version: 5.0, (0x80211050)



Regards,

Darcy



Darcy Watkins
Senior Software Developer

T 604.523.2371 x 449
F 604.648.9629
darcy.watkins at inmotiontechnology.com
www.inmotiontechnology.com
350-625 Agnes Street - New Westminster, BC - V3M 5Y4



More information about the U-Boot mailing list