[U-Boot] The sched standalone app is not working on MPC8308RDB

Peter Pan pppeterpppan at gmail.com
Tue Aug 20 11:00:58 CEST 2013


First of all, the examples/standalone/Makefile is still using architecture
"ppc" instead of "powerpc". The "sched" application is never compiled.

I replace "ppc" with "powerpc" inside this Makefile, the "sched"
application is now compiled.

But the "sched" application is not working correctly. Once one thread is
finished and returned, there will be a program check exception.

Run log attached:

U-Boot 2012.10-00571-g2c624f4 (Aug 13 2013 - 14:02:12)MPC83XX

Reset Status: Software Hard, External/Internal Soft, External/Internal Hard

CPU:   e300c3, MPC8308, Rev: 1.0 at 400 MHz, CSB: 133.333 MHz
Board: Freescale MPC8308RDB Rev 1.0
I2C:   ready
DRAM:  128 MiB (DDR2, 32-bit, ECC off, 266.667 MHz)
Flash: 8 MiB
PCIE0: No link
In:    serial
Out:   serial
Err:   serial
Net:   PHY reset timed out
eTSEC0 [PRIME], eTSEC1
Auto-update from TFTP: failed, env. variable 'updatefile' not found
Hit any key to stop autoboot:  0
=> boot
Speed: 1000, full duplex
Using eTSEC0 device
TFTP from server 192.168.1.1; our IP address is 192.168.0.123; sending
through gateway 192.168.1.1
Filename 'mpc8308rdb/standalone.bin'.
Load address: 0x40000
Loading: #
done
Bytes transferred = 3120 (c30 hex)
## Starting application at 0x00040000 ...
schedtest: Created thread with id 1, name 0
schedtest: Created thread with id 2, name 1
schedtest: Created thread with id 3, name 2
schedtest: Created thread with id 4, name 3
schedtest: Created thread with id 5, name 4
schedtest: Created thread with id 6, name 5
schedtest: Created thread with id 7, name 6
schedtest: Threads created
sched_test: function=0x00040338
schedtest: Setting thread 1 runnable
testthread: Begin executing thread, myname 0, &i=0x00054e30
Thread 00, i=0
schedtest: Setting thread 2 runnable
testthread: Begin executing thread, myname 1, &i=0x00057040
Thread 01, i=0
schedtest: Setting thread 3 runnable
testthread: Begin executing thread, myname 2, &i=0x00059250
Thread 02, i=0
schedtest: Setting thread 4 runnable
testthread: Begin executing thread, myname 3, &i=0x0005b460
Thread 03, i=0
schedtest: Setting thread 5 runnable
testthread: Begin executing thread, myname 4, &i=0x0005d670
Thread 04, i=0
schedtest: Setting thread 6 runnable
testthread: Begin executing thread, myname 5, &i=0x0005f880
Thread 05, i=0
schedtest: Setting thread 7 runnable
testthread: Begin executing thread, myname 6, &i=0x00061a90
Thread 06, i=0
schedtest: Started 7 threads
schedtest: Waiting for threads to complete
testthread: returning 1, i=0xffff
NIP: 07F2FF2C XER: 20000000 LR: 07F2FF2C REGS: 00054d58 TRAP: 0700 DAR:
00000000
MSR: 0008b002 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 00

GPR00: 07F2FF2C 00054E48 07F2FF2C 00000001 0000000A 00000000 00000000
00000010
GPR08: FFFFFFFC 00000020 FFFFFFFA 00054E48 42042044 FA6FABBC 07F306B8
00000000
GPR16: 07F30778 00000000 00000000 00000000 07FF53E8 07FF4EB8 00052E40
00000002
GPR24: 00002210 000409EA 00000001 00040A11 00052E40 00000000 00060000
00050C30
Call backtrace:
07F2FF2C 00000007 A67EB143 FFFFFFFF
Program Check Exception
Resetting the board.


More information about the U-Boot mailing list