From owner-freebsd-arm@FreeBSD.ORG Wed Dec 31 13:59:36 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B5A26CDF for ; Wed, 31 Dec 2014 13:59:36 +0000 (UTC) Received: from courriel.site.uottawa.ca (eecsmail.engineering.uottawa.ca [137.122.24.224]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.site.uottawa.ca", Issuer "PositiveSSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 802EA64D09 for ; Wed, 31 Dec 2014 13:59:35 +0000 (UTC) Received: from [10.0.2.15] (ppp-74-51-56-20.vianet.ca [74.51.56.20]) (authenticated bits=0) by courriel.site.uottawa.ca (8.14.5/8.14.5) with ESMTP id sBVDf2o3040687 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 31 Dec 2014 08:41:04 -0500 (EST) (envelope-from kwhite@site.uottawa.ca) Date: Wed, 31 Dec 2014 08:41:03 -0500 (EST) From: Keith White X-X-Sender: kwhite@localhost.my.domain To: freebsd-arm@freebsd.org Subject: BBB translation fault panic with "kldload" Message-ID: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2014 13:59:36 -0000 I get a kernel panic when trying to use kernel modules with recent BBB kernels. Here's what happens when I try to "kldload nullfs" with a freshly built r276468: ======================= Wed Dec 31 08:29:28 EST 2014 FreeBSD/arm (beaglebone) (ttyu0) login: root Password: Dec 31 08:30:28 beaglebone login: ROOT LOGIN (root) ON ttyu0 FreeBSD 11.0-CURRENT (BEAGLEBONE) #0 r276468M: Wed Dec 31 08:22:23 EST 2014 root@beaglebone:~ # uname -ap FreeBSD beaglebone 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r276468M: Wed Dec 31 08:22:23 EST 2014 kwhite@freebsd11:/usr/obj/arm.armv6hf/tank/RPI/head/sys/BEAGLEBONE arm armv6hf root@beaglebone:~ # kldload nullfs vm_fault(0xc2e52000, 0, 1, 0) -> 1 Fatal kernel mode data abort: 'Translation Fault (P)' trapframe: 0xde5daa50 FSR=00000017, FAR=00000000, spsr=60000113 r0 =00000000, r1 =0000b880, r2 =c2d96970, r3 =00000000 r4 =0000bb40, r5 =c2d9694c, r6 =c2d96978, r7 =00000032 r8 =c06f1084, r9 =c06e6d78, r10=c2aefe00, r11=de5daaa8 r12=00000001, ssp=de5daaa0, slr=c040c174, pc =c2d8c594 [ thread pid 642 tid 100079 ] Stopped at nullfs_init+0x20: ldr r0, [r0] db> show reg spsr 0x60000113 r0 0 r1 0xb880 r2 0xc2d96970 $d+0xa0 r3 0 r4 0xbb40 r5 0xc2d9694c $d+0x7c r6 0xc2d96978 $d+0xa8 r7 0x32 r8 0xc06f1084 vfsconf r9 0xc06e6d78 _MergedGlobals+0xf8 r10 0xc2aefe00 r11 0xde5daaa8 r12 0x1 usr_sp 0xbffff058 usr_lr 0x20198fd8 svc_sp 0xde5daaa0 svc_lr 0xc040c174 vfs_modevent+0x43c pc 0xc2d8c594 nullfs_init+0x20 und_sp 0xc0875000 abt_sp 0xc0874000 irq_sp 0xc0873000 nullfs_init+0x20: ldr r0, [r0] db> ======================= ...keith