From owner-freebsd-arm@FreeBSD.ORG Wed Aug 21 06:16:30 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 495B8C7B for ; Wed, 21 Aug 2013 06:16:30 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D5CD4293B for ; Wed, 21 Aug 2013 06:16:29 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id l12so286710wiv.9 for ; Tue, 20 Aug 2013 23:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=VTYvao9mXCKx8VVQrt7fF+JDb/NhGblrJFB6/D9iUC4=; b=BVtVXFioCbSVkMeMT0fhhAyaPZLnkano5MecfI+375ovgkRhfI9gsVB2Sg20dGhBW5 GfyGVLcW0jomu9maL70QDSd2EPZWmcm7GfHD/yq7skemBhy0Cd7KVP7YvLwbUTj5sn4p 6ZrZPbGiI8QF3j5EmRU+i2mbl3MC28/RQ0ay3GpO4CuDw8I7+K5N87HAqb5JBJy4Ua/V xBYjm+IK7v2nNpQ6lps794GiGxlgAFfDma8wR3pCQcxMEGf7ZmFjuOiu5hRpWF0I0xdD uZIMzSwx3tvzcQYgy3DoZDSKyWN7ThayPTBRPMv3vd/7vPkhyZzElkGc2xZEaIc/5u+l pH5w== MIME-Version: 1.0 X-Received: by 10.194.173.163 with SMTP id bl3mr4481122wjc.10.1377065788114; Tue, 20 Aug 2013 23:16:28 -0700 (PDT) Received: by 10.194.57.52 with HTTP; Tue, 20 Aug 2013 23:16:28 -0700 (PDT) In-Reply-To: <5213CD1A.7000506@martinlaabs.de> References: <5213CD1A.7000506@martinlaabs.de> Date: Wed, 21 Aug 2013 10:16:28 +0400 Message-ID: Subject: Re: Debug stalling Raspberry From: Andrey Fesenko To: Martin Laabs Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Aug 2013 06:16:30 -0000 On Wed, Aug 21, 2013 at 12:10 AM, Martin Laabs wrote: > Hi, > > currently I run r254441 on a raspberry pi b and every time I run portsnap > the cpu stopps running. > This happens during the snapshot verify while around 25k files are gunzip= ed > and sha256ed (file after file of cause). I can reproduce this but the Pi > does not hang reproducible at the same file but the last processed file i= s > different from try to try. > > There is, at least at the video console, no kernel panic. The kernel itse= lf > still responds to icmp ping packages and echos the keyboard output. But > everything else does not work. (I know this behavior from disconnected > harddisks containing the kernel/system) > The current consumption also dropps around 100mA. > > It is very interesting that this behavior is not limited to the internal > MMC card but also occurs when the data is stored external on an usb stick= . > > My question is how to debug this bug since I have no idea where to start. > >From my experience with bare metal arm systems I would start connecting = a > jtag debugger but I am afraid getting all the symbols mapped correct to t= he > gdb. And even if this works - what should I monitor and what should I tes= t for? > There might be however a more simple solution. So any suggestion is welco= me. > > If you can reproduce this bug I also would be very happy. > it seems this is still not the solution http://lists.freebsd.org/pipermail/freebsd-arm/2013-August/006209.html "crash/freez random time after ~r253751" Nice test, buildkernel crash stable after -------------------------------------------------------------- >>> stage 3.1: making dependencies -------------------------------------------------------------- cd /usr/obj/usr/src/sys/RPI-B; MAKEOBJDIRPREFIX=3D/usr/obj MACHINE_ARCH=3Darmv6 MACHINE=3Darm CPUTYPE=3D GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac _SHLIBDIRPREFIX=3D/usr/obj/usr/src/tmp _LDSCRIPTROOT=3D VERSION=3D"FreeBS= D 10.0-CURRENT armv6 1000044" INSTALL=3D"sh /usr/src/tools/install.sh" PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr= /bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/legacy/bin:= /usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src= /tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin CC=3D"cc " CXX=3D"c++ " CPP=3D"cpp " AS=3D"as" AR=3D"ar" LD=3D"ld" NM=3Dn= m OBJDUMP=3D RANLIB=3Dranlib STRINGS=3D COMPILER_TYPE=3Dclang make -m /usr/src/share/mk KERNEL=3Dkernel depend -DNO_MODULES_OBJ machine -> /usr/src/sys/arm/include cc -c -O -pipe -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/dev/cxgb -I/usr/src/sys/dev/cxgbe -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -funwind-tables -mllvm -arm-enable-ehabi -ffreestanding /usr/src/sys/arm/arm/genassym.c NM=3D'nm' sh /usr/src/sys/kern/genassym.sh genassym.o > assym.s awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -p awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -q awk -f /usr/src/sys/tools/vnode_if.awk /usr/src/sys/kern/vnode_if.src -h if [ -f /usr/src/sys/boot/fdt/dts/rpi.dts ]; then dtc -O dtb -o rpi.dtb -b 0 -p 1024 /usr/src/sys/boot/fdt/dts/rpi.dts; fi awk -f /usr/src/sys/tools/miidevs2h.awk /usr/src/sys/dev/mii/miidevs awk -f /usr/src/sys/tools/pccarddevs2h.awk /usr/src/sys/dev/pccard/pccardde= vs