From owner-freebsd-arm@freebsd.org Thu Nov 5 11:00:26 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6258AA27C62 for ; Thu, 5 Nov 2015 11:00:26 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC9D116E for ; Thu, 5 Nov 2015 11:00:26 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id 498F3A27C61; Thu, 5 Nov 2015 11:00:26 +0000 (UTC) Delivered-To: arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48272A27C60 for ; Thu, 5 Nov 2015 11:00:26 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0C8F8116D for ; Thu, 5 Nov 2015 11:00:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 9EF0F1FE023; Thu, 5 Nov 2015 12:00:22 +0100 (CET) Subject: Re: [Banana Pi] Fatal kernel mode data abort: 'Alignment Fault' on read To: Lars Engels , arm@freebsd.org References: <20151105104859.GQ66179@e-new.0x20.net> From: Hans Petter Selasky Message-ID: <563B372E.20607@selasky.org> Date: Thu, 5 Nov 2015 12:02:06 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151105104859.GQ66179@e-new.0x20.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2015 11:00:26 -0000 On 11/05/15 11:48, Lars Engels wrote: > Using FreeBSD-armv6-11.0-A20-290366.img I can reproducible crash the > kernel by USB-tethering the Banana Pi to a mobile phone and run " > pkg bootstrap". It looks like this: > > root@bananapi:/ # pkg bootstrap > The package management tool is not yet installed on your system. > Do you want to fetch and install it now? [y/N]: y > Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:armv6/latest, please wait... > Fatal kernel mode data abort: 'Alignment Fault' on read > trapframe: 0xea576a90 > FSR=00000001, FAR=c43a1d6e, spsr=60000113 > r0 =00000014, r1 =0000003c, r2 =0000003c, r3 =00000903 > r4 =00000000, r5 =c43a1d6a, r6 =00000028, r7 =c43a1d56 > r8 =00000000, r9 =00000014, r10=00000028, r11=ea576bf8 > r12=00000000, ssp=ea576b20, slr=c061aba4, pc =c04f68e8 > > [ thread pid 13 tid 100024 ] > Stopped at tcp_input+0x820: ldr r0, [r5, #0x004] Hi, Could you "objdump -Dx --source /boot/kernel/kernel" and figure out which code line "tcp_input+0x820" corresponds to? According to if_rndis, the IP-header should be aligned via the ETHER_ALIGN macro, to 32-bits. The issue is possibly outside USB. --HPS