From owner-freebsd-arm@FreeBSD.ORG Thu Feb 5 18:58:25 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 939951065672 for ; Thu, 5 Feb 2009 18:58:25 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 57A4F8FC18 for ; Thu, 5 Feb 2009 18:58:25 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n15IwLDI092156 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Feb 2009 10:58:21 -0800 (PST) (envelope-from sam@freebsd.org) Message-ID: <498B36CD.3010402@freebsd.org> Date: Thu, 05 Feb 2009 10:58:21 -0800 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Alex Vinogradovs References: <498B32B0.1050306@clearpathnet.com> In-Reply-To: <498B32B0.1050306@clearpathnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: freebsd-arm@freebsd.org Subject: Re: cfi causes vm_fault on IXP435 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 18:58:26 -0000 Well I didn't enable it for Cambria because it wasn't right :-) I know that at the very least the flash config on the 2358 is 32M but I only map 16M so if everything else worked you couldn't access all the memory. But otherwise I hit this fault and haven't had time to diagnose it. Not sure when I'll get to it; would love to have some help (once you get it mapped correctly you can add support to the cfi driver to dynamically map 1M blocks so we don't have to map all of flash). BTW since you tried this w/o asking you probably noticed I also just committed support for the SrataFlash protection register. It looks like it might be working and I was just confused about the ability to write the user segment multiple times. The doc is a bit confusing and seems to say this 64-bit segment is OTP (write once). I think I need to move the code that lets you write it under the CFI_AMEDANDDANGEROUS option... Sam Alex Vinogradovs wrote: > Guys, > > I've enabled cfi driver, specifying 0x50000000 as the address in hints > (like for AVILA board), > and that causes vm_fault. > > Here is what redboot reports about flash : > > FLASH: 0x50000000 - 0x50800000, 128 blocks of 0x00010000 bytes each. > > and here are the messages : > > subsystem 3800000 > xdr_sizeof(0)... done. > taskqueue_start_threads(0)... done. > taskqueue_create(0)... done. > taskqueue_create(0)... done. > module_register_init(0xc04a20a8)... done. > module_register_init(0xc04a5b50)... done. > knlist_init(0)... done. > taskqueue_create_fast(0)... done. > xdr_sizeof(0)... ixp0: on motherboard > ixp0: 37fff > ixpclk0: on ixp0 > ixpiic0: on ixp0 > iicbb0: on ixpiic0 > iicbus0: on iicbb0 master-only > iic0: on iicbus0 > iicbus0: at addr 0x5a > ad74180: at addr 0x50 on iicbus0 > ds16720: at addr 0xd0 on iicbus0 > ixpwdog0: on ixp0 > uart0: on ixp0 > uart0: [FILTER] > uart0: console (115200,n,8,1) > ixpqmgr0: on ixp0 > ixpqmgr0: [ITHREAD] > ixpqmgr0: [ITHREAD] > npe0: on ixp0 > npe0: [ITHREAD] > npe0: MAC at 0xc800a000 > npe0: MII at 0xc800a000 > npe0: load fw image IXP425.NPE-C Func 0x5 Rev 2.1 > miibus0: on npe0 > ukphy0: PHY 1 on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > npe0: Ethernet address: 00:03:47:df:32:a8 > > vm_fault(0xc0781000, fd000000, 2, 0) -> 1 > Fatal kernel mode data abort: 'Translation Fault (S)' > trapframe: 0xc00fbc40 > FSR=000000f5, FAR=fd0000aa, spsr=600000d3 > r0 =00000000, r1 =fd000000, r2 =000000aa, r3 =00000098 > r4 =00000010, r5 =c1146600, r6 =c119b280, r7 =c1145580 > r8 =00000001, r9 =c04aa9a4, r10=c119b2bc, r11=c00fbc98 > r12=c04c0c0c, ssp=c00fbc8c, slr=c0221a9c, pc =c03fe5fc > > [thread pid 0 tid 100000 ] > Stopped at generic_armv4_bs_w_2: strh r3, [r1, r2] > db> > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >