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 16:27, michael.blatt wrote:
Hi Nick,  how would i pass -x or AB_DEBUG to U-Boot?

No idea for your box.

Add boothowto |= AB_DEBUG to sys/arch/evbarm/marvell/marvell_machdep.c



On 25/10/2018 11:39, Michael Blatt wrote:
> Hi,
>
> I'm trying to boot -current 8.99.25 of NetBSD/earm on my Marvell
> Kirkwood-based NAS.

> [ 8.2999799] Fatal kernel mode data abort: 'Alignment Fault 1'
> [   8.2999799] trapframe: 0xcc7abbc8
> [   8.2999799] FSR=00000001, FAR=cc7abddc, spsr=60000013
> [   8.2999799] r0 =c29bbd00, r1 =cc7abdcc, r2 =00000000, r3 =00000000
> [   8.2999799] r4 =c04f0604, r5 =000220e8, r6 =bfffdfd8, r7 =00000010
> [   8.2999799] r8 =bbb0d180, r9 =bfffe0b0, r10=bbb17b65, r11=cc7abc44
> [   8.2999799] r12=cc7abc48, ssp=cc7abc18, slr=c04f7f40, pc =c04f01d4
>
> Stopped in pid 74.1 (ifconfig) at       c04f01d4: strd    r2, [r1, #0x10]
> db>


Can you use addr2line to get a source line number for 0xc04f01d4, e.g.

    addr2line -e netbsd.ub -f c04f01d4

And a backtrace, please?

Actually, r1 =cc7abdcc and ssp=cc7abc18 suggest it's writing to the stack and it somehow got misaligned. eabi requiires stack to be 8byte aligned so {ldr,str}d work.
The backtrace will help us work out what did this.

Nick


Home | Main Index | Thread Index | Old Index