From owner-freebsd-arm@FreeBSD.ORG Wed May 1 14:55:06 2013 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A250DC0E for ; Wed, 1 May 2013 14:55:06 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) by mx1.freebsd.org (Postfix) with ESMTP id 7DBC412C7 for ; Wed, 1 May 2013 14:55:05 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1UXYQt-000FLt-H3; Wed, 01 May 2013 14:54:59 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id r41EstF8008653; Wed, 1 May 2013 08:54:55 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19n/+T3lCPK1znCIWegeA6T Subject: Re: Allwinner A13: Fatal kernel mode data abort: 'Translation Fault (S)' From: Ian Lepore To: Jakob Alvermark In-Reply-To: <63837.85.229.93.125.1367417396.squirrel@alvermark.net> References: <63837.85.229.93.125.1367417396.squirrel@alvermark.net> Content-Type: text/plain; charset="us-ascii" Date: Wed, 01 May 2013 08:54:55 -0600 Message-ID: <1367420095.1180.68.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 May 2013 14:55:06 -0000 On Wed, 2013-05-01 at 16:09 +0200, Jakob Alvermark wrote: > Hi again, > > In my effort to get FreeBSD running on the A13 I got a little further, > however not quite so far as I was hoping for. > > Any clues on this? > > Jakob > > sun5i#go 0x40200100 > ## Starting application at 0x40200100 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2013 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 10.0-CURRENT #0 r250141M: Wed May 1 14:15:44 CEST 2013 > root@test10:/home/jakob/a13-gonzo/obj/arm.armv6/usr/src/sys/A13 arm > FreeBSD clang version 3.3 (trunk 178860) 20130405 > WARNING: WITNESS option enabled, expect reduced performance. > CPU: Cortex A8-r3 rev 2 (Cortex-A core) > Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext > WB disabled EABT branch prediction enabled > LoUU:2 LoC:2 LoUIS:1 > Cache level 1: > 32KB/64B 4-way data cache WT WB Read-Alloc > 32KB/64B 4-way instruction cache Read-Alloc > Cache level 2: > 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc > real memory = 536870912 (512 MB) > avail memory = 511303680 (487 MB) > random device not loaded; using insecure entropy > simplebus0: on fdtbus0 > a13_ccm0: mem 0x1c20000-0x1c203ff on > simplebus0 > a13_timer0: mem 0x1c20c00-0x1c20c8f irq 22 on > simplebus0 > > vm_fault(0xc0716ff8, 0, 1, 0) -> 1 > Fatal kernel mode data abort: 'Translation Fault (S)' > trapframe: 0xc072aad4 > FSR=00000005, FAR=00000008, spsr=a00000d3 > r0 =00000000, r1 =00000004, r2 =00000001, r3 =c2f93b48 > r4 =00000120, r5 =00000040, r6 =c30ac500, r7 =00000000 > r8 =c0716508, r9 =00000000, r10=00000016, r11=c072ab40 > r12=c0716da4, ssp=c072ab20, slr=c04b0c64, pc =c04c013c > > [ thread pid 0 tid 100000 ] > Stopped at arm_unmask_irq+0x24: ldr r2, [r0, #0x008] > db> It looks like the timer driver tried to set up interrupts before the interrupt controller driver had attached. The arm_unmask_irq() routine tried to dereference a NULL pointer, I'm thinking from where it died it was a10_aintc_sc. -- Ian