Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Kernel panic on earm





On 25/10/2018 17:49, Michael Blatt wrote:
OK, so...
I inserted boothowto |= AB_DEBUG to
sys/arch/evbarm/marvell/marvell_machdep.c under initarm() as that made
sense, is this correct?

the panic is
Starting network.
[  32.7799960] Fatal kernel mode data abort: 'Alignment Fault 1'
[  32.7799960] trapframe: 0xcc7d1bc8
[  32.7799960] FSR=00000001, FAR=cc7d1ddc, spsr=60000013
[  32.7799960] r0 =c29b33c0, r1 =cc7d1dcc, r2 =00000000, r3 =00000000
[  32.7799960] r4 =c04f060c, r5 =00022078, r6 =bfffdfd0, r7 =00000010
[  32.7799960] r8 =bbc0d180, r9 =bfffe0a8, r10=bbc17b65, r11=cc7d1c44
[  32.7799960] r12=cc7d1c48, ssp=cc7d1c18, slr=c04f7f48, pc =c04f01dc

Stopped in pid 95.1 (ifconfig) at       c04f01dc:       strd    r2, [r1, #0x10]
db>

db> bt
0xcc7d1c44: c04efc94
0xcc7d1c74: c04f7f48
0xcc7d1d74: c04f0b00
0xcc7d1da4: c045be3c
0xcc7d1e84: c044c4f8
0xcc7d1eac: c001a568
0xcc7d1edc: c001a650
0xcc7d1f8c: c001ab98
0xcc7d1fac: c001a874

Left hand number is stack (or frame pointer, I forget which) and right is the PC values that need to run through addr2line

Doesn't look like stack is ever aligned :S


On another NetBSD machine (armv6) I looked at the kernel used:
addr2line -e netbsd -f 0xc04f01dc

You need to use a netbsd.gdb

./build.sh -m evbearmv5-el -O ../obj.evbearmv5-el tools

on your fastest unix-like machine will give you a cross addr2line

Nick


Home | Main Index | Thread Index | Old Index