From owner-freebsd-arm@freebsd.org Thu Nov 5 16:37:55 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 33A90A266B8 for ; Thu, 5 Nov 2015 16:37:55 +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 1B3421010 for ; Thu, 5 Nov 2015 16:37:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id 18453A266B6; Thu, 5 Nov 2015 16:37:55 +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 16E5CA266B4 for ; Thu, 5 Nov 2015 16:37:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 C5C8E100F for ; Thu, 5 Nov 2015 16:37:54 +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 DAAA91FE023; Thu, 5 Nov 2015 17:37:51 +0100 (CET) Subject: Re: [Banana Pi] Fatal kernel mode data abort: 'Alignment Fault' on read To: Lars Engels References: <20151105104859.GQ66179@e-new.0x20.net> <563B372E.20607@selasky.org> <20151105120950.GR66179@e-new.0x20.net> <563B4813.1060403@selasky.org> <20151105153423.GS66179@e-new.0x20.net> Cc: arm@freebsd.org From: Hans Petter Selasky Message-ID: <563B8647.7080201@selasky.org> Date: Thu, 5 Nov 2015 17:39:35 +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: <20151105153423.GS66179@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 16:37:55 -0000 On 11/05/15 16:34, Lars Engels wrote: > On Thu, Nov 05, 2015 at 01:14:11PM +0100, Hans Petter Selasky wrote: >> On 11/05/15 13:09, Lars Engels wrote: >>> On Thu, Nov 05, 2015 at 12:02:06PM +0100, Hans Petter Selasky wrote: >>>> 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? >>> >>> You mean like "objdump ... | grep -C10 tcp_input+0x820"? >>> >>> I started that half an hour ago and it's still not finished. >>> >> >> No, you need to find where tcp_input starts, by less-ing it, then add >> 0x820 to that address and then verify that the assembly instruction >> there matches. > > Ok, I have no idea what I am doing, but here's what I did: > # objdump -Dx --source /boot/kernel/kernel --start-address="0xc04f51c8" --stop-address="0xC04F59E8" > > The result is a 1,3MB text file at: > http://bsd-geek.de/FreeBSD/objdump.txt > > Can you see anything there? > Hi, Can you make the kernel available. It might be faster if I objdump over here? --HPS