Port-arm archive

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

Re: Kernel panic on earm



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

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

I have not defined a swap partition (that'll be on another disk) - I
don't think that should be relevant but you never know.
On Thu, 25 Oct 2018 at 17:08, Nick Hudson <nick.hudson%gmx.co.uk@localhost> wrote:
>
>
>
> 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