[U-Boot] Regarding MPC8640D second core initialization

Becky Bruce
2009-12-03T17:39:03Z

On Dec 2, 2009, at 10:36 PM, Thirumalai wrote:
>
> Thank you for your reply. But when i boot smp-linux on this
> configuration i got into kernel panic. The log is attached with this
> mail. I
> am using linux-2.6.30 downloaded from kernel.org and my dts entry
> for cpu is
> like this.

<snip>

>
> Calibrating delay loop... 199.68 BogoMIPS (lpj=99840)
> Mount-cache hash table entries: 512
> mpic: requesting IPIs ...
> Processor 1 found.
> clockevent: decrementer mult[1999] shift[16] cpu[1]
> Brought up 2 CPUs
> Unable to handle kernel paging request for data at address 0x00000004
> Faulting instruction address: 0xa0023e10
> Oops: Kernel access of bad area, sig: 11 [#1]
> SMP NR_CPUS=2 DPVPX0689
> Modules linked in:
> NIP: a0023e10 LR: a0023dd0 CTR: 00000000
> REGS: cf841e90 TRAP: 0300 Not tainted (2.6.30-dpvpx0689)
> MSR: 00009032 <EE,ME,IR,DR> CR: 24004028 XER: 20000000
> DAR: 00000004, DSISR: 40000000
> TASK = cf83f930[1] 'swapper' THREAD: cf840000 CPU: 0
> GPR00: 00000000 cf841f40 cf83f930 00000000 00000000 00000000 cf841f50
> 00000000
> GPR08: 00000000 00000000 00000002 a10018f4 22004082 ffffffff 3fee6c00
> 3ff94000
> GPR16: ffffffbf ffbf7bff 00000000 00000000 00000000 cf83a800 a10018e8
> a0491224
> GPR24: a0490000 a04558f8 00000000 cf801f20 a1006070 a10018e8 a10018f8
> 00000000
> NIP [a0023e10] __build_sched_domains+0x354/0x464
> LR [a0023dd0] __build_sched_domains+0x314/0x464
> Call Trace:
> [cf841f40] [a0023b98] __build_sched_domains+0xdc/0x464 (unreliable)
> [cf841f90] [a04326ec] sched_init_smp+0x88/0x1e8
> [cf841fc0] [a0425a40] kernel_init+0x148/0x1f0
> [cf841ff0] [a00131f8] kernel_thread+0x4c/0x68
> Instruction dump:
> 813e0008 2f9c0000 90090004 419e00d4 801e0034 70090100 40820010
> 801c0034
> 70090280 408200bc 83fc0008 83be0008 <807f0004> 801d0004 7c630214
> 907d0004

You took this panic because you tried to access 0x00000004, which is
probably not correct. I would also not generally expect to be seeing
all these 0xaxxxxxxx addresses in your panic. Can you explain exactly
what you've done to this kernel, and send a copy of the entire .dts
and the .config?

FYI, 2.6.30 boots SMP just fine on my 8641HPCN board.

Cheers,
Becky

> ---[ end trace 31fd0ba7d8756001 ]---
> Kernel panic - not syncing: Attempted to kill init!
> Rebooting in 180 seconds..