From owner-freebsd-arm@FreeBSD.ORG Thu Feb 5 18:39:45 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 DC198106568C for ; Thu, 5 Feb 2009 18:39:45 +0000 (UTC) (envelope-from avinogradovs@clearpathnet.com) Received: from smtp.clearpathnet.com (smtp.clearpathnet.com [74.217.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id C7E818FC19 for ; Thu, 5 Feb 2009 18:39:45 +0000 (UTC) (envelope-from avinogradovs@clearpathnet.com) Received: from [10.1.16.109] (la-209-182-100-49 [209.182.100.49] (may be forged)) by smtp.clearpathnet.com (8.13.1/8.13.1) with ESMTP id n15Idhna000490 for ; Thu, 5 Feb 2009 10:39:45 -0800 Message-ID: <498B32B0.1050306@clearpathnet.com> Date: Thu, 05 Feb 2009 10:40:48 -0800 From: Alex Vinogradovs User-Agent: Thunderbird 2.0.0.16 (X11/20080915) MIME-Version: 1.0 To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:39:46 -0000 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>