Debug stalling Raspberry
Andrey Fesenko
f0andrey at gmail.com
Wed Aug 21 06:16:30 UTC 2013
On Wed, Aug 21, 2013 at 12:10 AM, Martin Laabs
<mailinglists at 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 gunziped
> 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 is
> different from try to try.
>
> There is, at least at the video console, no kernel panic. The kernel itself
> 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 the
> gdb. And even if this works - what should I monitor and what should I test for?
> There might be however a more simple solution. So any suggestion is welcome.
>
> 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=/usr/obj
MACHINE_ARCH=armv6 MACHINE=arm CPUTYPE=
GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin
GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac
_SHLIBDIRPREFIX=/usr/obj/usr/src/tmp _LDSCRIPTROOT= VERSION="FreeBSD
10.0-CURRENT armv6 1000044" INSTALL="sh /usr/src/tools/install.sh"
PATH=/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="cc " CXX="c++ " CPP="cpp " AS="as" AR="ar" LD="ld" NM=nm
OBJDUMP= RANLIB=ranlib STRINGS= COMPILER_TYPE=clang make -m
/usr/src/share/mk KERNEL=kernel depend -DNO_MODULES_OBJ
machine -> /usr/src/sys/arm/include
cc -c -O -pipe -std=c99 -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='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/pccarddevs
More information about the freebsd-arm
mailing list