I tried it without the loadable module, gdb still terminates with
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
I backed out the kernel memory layout changes, gdb still terminates with the SIGTRAP.
In the defconfig I have CONFIG_PPC_ADV_DEBUG_REGS=y
One other observation: it is a P1022 with 2 cores, but currently only
the first core is running. u-boot initialization fails for the second core.
Here is the error message from dmesg.
[ 76.409265] Oops: Exception in kernel mode, sig: 5 [#1]
[ 76.414490] SMP NR_CPUS=2 CTI NED
[ 76.417799] Modules linked in:
[ 76.420852] CPU: 0 PID: 1626 Comm: cp_client Not tainted 3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a #1
[ 76.429629] task: c78fea00 ti: efff8000 task.ti: c7a32000
[ 76.435019] NIP: c000f86c LR: c000f8f4 CTR: c0066bbc
[ 76.439975] REGS: efff9f10 TRAP: 2002 Not tainted (3.12.19-rt30-QorIQ-SDK-V1.6+gc29fe1a)
[ 76.448314] MSR: 00021000 <CE,ME> CR: 22000a22 XER: 00000000
[ 76.454153]
[ 76.454153] GPR00: c000f8f4 c7a33f40 c78fea00 00000000 00000002 00000000 00000000 00000100
[ 76.454153] GPR08: c7a32060 c7a32000 00021202 00021000 0020303c 00000000 00000000 10000000
[ 76.454153] GPR16: 0fff248c 0fff217c fffff000 00000000 0fff0f40 bfe64a78 00000000 0fff20e8
[ 76.454153] GPR24: 0ffdd678 0fff1d38 0fff2190 0fff0c78 0fff0cd8 0fff1820 0fff1810 bfe64a60
[ 76.483895] NIP [c000f86c] recheck+0x10/0x24
[ 76.488159] LR [c000f8f4] do_user_signal+0x74/0xc4
[ 76.492940] Call Trace:
[ 76.495383] [c7a33f40] [c000f8f4] do_user_signal+0x74/0xc4 (unreliable)
[ 76.501993] --- Exception: 0 at 0xffcfd3c
[ 76.501993] LR = 0xffc3b24
[ 76.509034] Instruction dump:
[ 76.511995] 3960ffff 7d704ba6 4e800020 7120000c 41820034 614a8000 7d400124 484e15b1
[ 76.519754] 3d400002 614a1202 7d400124 54290024 <81290060> 7120000c 40a2ffdc 7120600e
[ 76.527690] ---[ end trace 5dbb35dc8293f831 ]---
[ 76.532297]
Default memory layout settings:
CONFIG_LOWMEM_SIZE=0x30000000
CONFIG_LOWMEM_CAM_NUM=3
CONFIG_PAGE_OFFSET=0xc0000000
CONFIG_KERNEL_START=0xc0000000
CONFIG_PHYSICAL_START=0x00000000
CONFIG_PHYSICAL_ALIGN=0x04000000
CONFIG_TASK_SIZE=0xc0000000
Modified kernel memory layout:
CONFIG_ADVANCED_OPTIONS=y
CONFIG_LOWMEM_SIZE_BOOL=y
CONFIG_LOWMEM_SIZE=0x20000000
CONFIG_LOWMEM_CAM_NUM=3
# CONFIG_DYNAMIC_MEMSTART is not set
CONFIG_PAGE_OFFSET_BOOL=y
CONFIG_PAGE_OFFSET=0xB0000000
# CONFIG_KERNEL_START_BOOL is not set
CONFIG_KERNEL_START=0xB0000000
# CONFIG_PHYSICAL_START_BOOL is not set
CONFIG_PHYSICAL_START=0x00000000
CONFIG_PHYSICAL_ALIGN=0x04000000
CONFIG_TASK_SIZE_BOOL=y
CONFIG_TASK_SIZE=0xa0000000
Thanks,
Cary O'Brien