Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2013 10:16:28 +0400
From:      Andrey Fesenko <f0andrey@gmail.com>
To:        Martin Laabs <mailinglists@martinlaabs.de>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Debug stalling Raspberry
Message-ID:  <CA%2BK5SrPr3rZNzHxLass8MJvPtApt83u6oi6uY2uXM%2Bj2uWLSdw@mail.gmail.com>
In-Reply-To: <5213CD1A.7000506@martinlaabs.de>
References:  <5213CD1A.7000506@martinlaabs.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 21, 2013 at 12:10 AM, Martin Laabs
<mailinglists@martinlaabs.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BK5SrPr3rZNzHxLass8MJvPtApt83u6oi6uY2uXM%2Bj2uWLSdw>