kernel debugger on cubietruck

Gilles DALMAS gdalmas at wanadoo.fr
Sat Sep 20 13:14:08 UTC 2014


the complete sequence :

sun7i#fatload mmc 0 0x40200000 kernel; go 0x40200100
reading kernel
5059739 bytes read in 223 ms (21.6 MiB/s)
## Starting application at 0x40200100 ...
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-CURRENT #0 r271768: Thu Sep 18 16:06:02 CEST 2014
    root at CTBSD:/usr/obj/arm.armv6/usr/home/gilles/FBSD/sys/CUBIEBOARD2 arm
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Cortex A7 rev 4 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB disabled EABT branch prediction enabled
LoUU:2 LoC:2 LoUIS:2 
Cache level 1: 
 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc
 32KB/32B 2-way instruction cache Read-Alloc
Cache level 2: 
 256KB/64B 8-way unified cache WB Read-Alloc Write-Alloc
real memory  = 1073741824 (1024 MB)
avail memory = 1040261120 (992 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
random device not loaded; using insecure entropy
random:  initialized
ofwbus0: 
simplebus0:  on ofwbus0
gic0:  mem 0x1c81000-0x1c81fff,0x1c82000-0x1c820ff on simplebus0
gic0: pn 0x10, arch 0x2, rev 0x1, implementer 0x43b sc->nirqs 160
a10_sramc0:  mem 0x1c00000-0x1c00fff on simplebus0
a20_cpu_cfg0:  mem 0x1c25c00-0x1c25fff on simplebus0
a10_ccm0:  mem 0x1c20000-0x1c203ff on simplebus0
a10_timer0:  mem 0x1c20c00-0x1c20c8f irq 54 on simplebus0
Event timer "a10_timer Eventtimer" frequency 24000000 Hz quality 1000
Timecounter "a10_timer timer0" frequency 24000000 Hz quality 1000
a10wd0:  mem 0x1c20c90-0x1c20c9f on simplebus0
gpio0:  mem 0x1c20800-0x1c20bff irq 60 on simplebus0
gpioc0:  on gpio0
gpiobus0:  on gpio0
ehci0:  mem 0x1c14000-0x1c14fff irq 71 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ehci1:  mem 0x1c1c000-0x1c1cfff irq 72 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci1
uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 33 on simplebus0
uart0: console (115200,n,8,1)
emac0:  mem 0x1c0b000-0x1c0bfff irq 87 on simplebus0
miibus0:  on emac0
rgephy0:  PHY 0 on miibus0

vm_fault(0xc08bab80, 0, 1, 0) -> 1
Fatal kernel mode data abort: 'Translation Fault (S)'
trapframe: 0xc08e5a48
FSR=00000005, FAR=00000000, spsr=a00001d3
r0 =00000000, r1 =c0547c85, r2 =00000072, r3 =00000008
r4 =c3b49f00, r5 =c3b4a080, r6 =c3b4a0b8, r7 =00000000
r8 =c056b038, r9 =c3ae1700, r10=c05d4930, r11=c08e5ab0
r12=00000000, ssp=c08e5a98, slr=c024e0f0, pc =c03d7604

[ thread pid 0 tid 100000 ]
Stopped at      strcmp+0x4:     ldrb    r3, [r0]



> Message du 20/09/14 15:11
> De : "Gilles DALMAS" 
> A : freebsd-arm at freebsd.org
> Copie à : 
> Objet : kernel debugger on cubietruck
> 
> hi,   I would compile freebsd for it run on a cubietruck. For this I used the wiki page: https://wiki.freebsd.org/FreeBSD/arm/Cubieboard using option confifuration "CUBIEBOARD2." everything goes well, but starting on the "truck", I get this message:   vm_fault(0xc08bab80, 0, 1, 0) -> 1 Fatal kernel mode data abort: 'Translation Fault (S)' trapframe: 0xc08e5a48 FSR=00000005, FAR=00000000, spsr=a00001d3 r0 =00000000, r1 =c0547c85, r2 =00000072, r3 =00000008 r4 =c3b49f00, r5 =c3b4a080, r6 =c3b4a0b8, r7 =00000000 r8 =c056b038, r9 =c3ae1700, r10=c05d4930, r11=c08e5ab0 r12=00000000, ssp=c08e5a98, slr=c024e0f0, pc =c03d7604 [ thread pid 0 tid 100000 ] Stopped at      strcmp+0x4:     ldrb    r3, [r0] where is the problem please ? _______________________________________________ freebsd-arm at freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"


More information about the freebsd-arm mailing list