Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Dec 2014 21:28:16 +0100
From:      "Ronald Klop" <ronald@klop.ws>
To:        freebsd-arm@freebsd.org
Subject:   Alignment Fault 1 on SHEEVAPLUG
Message-ID:  <op.xqma5eereclrs1@82-171-231-144.ip.telfort.nl>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi,

Running portmaster on an nfs mounted /usr/ports I got the panic below.

FreeBSD 11.0-CURRENT #5 r272028M: Mon Oct 20 18:33:43 CEST 2014
     root@sjakie.klop.ws:/usr/obj-arm/arm.arm/usr/src-arm/sys/SHEEVAPLUG arm

I attached the diff of my kernel config/src tree.

It is still in the debugger. If I can send more information please tell me.

Regards,
Ronald.



Fatal kernel mode data abort: 'Alignment Fault 1'
trapframe: 0xdf1ce968
FSR=00000001, FAR=b45251b7, spsr=a0000013
r0 =b4525193, r1 =0013a21e, r2 =df1ce9dc, r3 =00008878
r4 =00000000, r5 =c3ec2500, r6 =c3ebc2b0, r7 =0013a21e
r8 =c3f79878, r9 =c3edd000, r10=df1ce9dc, r11=c3ebc2b0
r12=00000000, ssp=df1ce9b8, slr=c0b62d44, pc =c0b5c52c

[ thread pid 33250 tid 100085 ]
Stopped at      process_deferred_inactive+0x25c:        ldr     r3, [r0,
#0x024]

db> bt
Tracing pid 33250 tid 100085 td 0xc41bfc80
db_trace_self() at db_trace_self
          pc = 0xc0bb12c8  lr = 0xc0bb1354 (db_trace_thread+0x50)
          sp = 0xdf1ce640  fp = 0xc3ebc2b0
db_trace_thread() at db_trace_thread+0x50
          pc = 0xc0bb1354  lr = 0xc0936314 (db_command_init+0x5a4)
          sp = 0xdf1ce6a0  fp = 0xc3ebc2b0
db_command_init() at db_command_init+0x5a4
          pc = 0xc0936314  lr = 0xc0935ad0 (db_skip_to_eol+0x484)
          sp = 0xdf1ce6b8  fp = 0xc3ebc2b0
          r4 = 0xc0c8d350  r5 = 0x00000000
db_skip_to_eol() at db_skip_to_eol+0x484
          pc = 0xc0935ad0  lr = 0xc0935c38 (db_command_loop+0x5c)
          sp = 0xdf1ce758  fp = 0xc3ebc2b0
          r4 = 0xdf1ce76c  r5 = 0xc0c8d64c
          r6 = 0xb45251b7  r7 = 0x00000000
          r8 = 0x00000001 r10 = 0x600000d3
db_command_loop() at db_command_loop+0x5c
          pc = 0xc0935c38  lr = 0xc0937f80 (X_db_sym_numargs+0xec)
          sp = 0xdf1ce760  fp = 0xc3ebc2b0
X_db_sym_numargs() at X_db_sym_numargs+0xec
          pc = 0xc0937f80  lr = 0xc0a6f0c0 (kdb_trap+0x94)
          sp = 0xdf1ce878  fp = 0xc3ebc2b0
          r4 = 0xdf1ce968
kdb_trap() at kdb_trap+0x94
          pc = 0xc0a6f0c0  lr = 0xc0bc1d60 (badaddr_read+0x274)
          sp = 0xdf1ce898  fp = 0xc3ebc2b0
          r4 = 0xdf1ce968  r5 = 0x00000001
          r6 = 0xb45251b7  r7 = 0xc41bfc80
          r8 = 0xdf1ce968 r10 = 0xdf1d1eb0
badaddr_read() at badaddr_read+0x274
          pc = 0xc0bc1d60  lr = 0xc0bc1e98 (badaddr_read+0x3ac)
          sp = 0xdf1ce8b0  fp = 0xc3ebc2b0
          r4 = 0xc41bfc80  r5 = 0xdf1ce968
          r6 = 0xc3ebc2b0
badaddr_read() at badaddr_read+0x3ac
          pc = 0xc0bc1e98  lr = 0xc0bc2278 (data_abort_handler+0x10c)
          sp = 0xdf1ce8c8  fp = 0xc3ebc2b0
          r4 = 0xc0cd8af8  r5 = 0xffff1004
data_abort_handler() at data_abort_handler+0x10c
          pc = 0xc0bc2278  lr = 0xc0bb2f40 (exception_exit)
          sp = 0xdf1ce968  fp = 0xc3ebc2b0
          r4 = 0xffffffff  r5 = 0xffff1004
          r6 = 0xc3ebc2b0  r7 = 0x0013a21e
          r8 = 0xc3f79878  r9 = 0xc3edd000
         r10 = 0xdf1ce9dc
exception_exit() at exception_exit
          pc = 0xc0bb2f40  lr = 0xc0b62d44
(softdep_change_directoryentry_offset+0x1ac0)
          sp = 0xdf1ce9b8  fp = 0xc3ebc2b0
          r0 = 0xb4525193  r1 = 0x0013a21e
          r2 = 0xdf1ce9dc  r3 = 0x00008878
          r4 = 0x00000000  r5 = 0xc3ec2500
          r6 = 0xc3ebc2b0  r7 = 0x0013a21e
          r8 = 0xc3f79878  r9 = 0xc3edd000
         r10 = 0xdf1ce9dc r12 = 0x00000000
process_deferred_inactive() at process_deferred_inactive+0x260
          pc = 0xc0b5c530  lr = 0xc0b62d44
(softdep_change_directoryentry_offset+0x1ac0)
          sp = 0xdf1ce9b8  fp = 0xc3ebc2b0
Unwind failure (no registers changed)
[-- Attachment #2 --]
Index: sys/arm/conf/SHEEVAPLUG
===================================================================
--- sys/arm/conf/SHEEVAPLUG	(revision 273634)
+++ sys/arm/conf/SHEEVAPLUG	(working copy)
@@ -10,12 +10,20 @@
 options 	SOC_MV_KIRKWOOD
 makeoptions	MODULES_OVERRIDE=""
 
-#makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
+makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
+#options		INVARIANTS
+#options		INVARIANT_SUPPORT
+#options		WITNESS
+#options		DEBUG_LOCKS
+#options		DEBUG_VFS_LOCKS
+#options		DIAGNOSTIC
 makeoptions	WERROR="-Werror"
+option KSTACK_PAGES=5
+option ARM_DEVICE_MULTIPASS
 
 options 	SCHED_4BSD		# 4BSD scheduler
 options 	INET			# InterNETworking
-options 	INET6			# IPv6 communications protocols
+#options 	INET6			# IPv6 communications protocols
 options 	GEOM_PART_BSD		# BSD partition scheme
 options 	GEOM_PART_MBR		# MBR partition scheme
 options 	TMPFS			# Efficient memory filesystem
@@ -23,14 +31,22 @@
 options 	NANDFS			# NAND Filesystem
 options 	NFSCL			# New Network Filesystem Client
 options 	NFSLOCKD		# Network Lock Manager
-options 	NFS_ROOT		# NFS usable as /, requires NFSCL
-options 	BOOTP
-options 	BOOTP_NFSROOT
-options 	BOOTP_NFSV3
-options 	BOOTP_WIRED_TO=mge0
+#options 	NFS_ROOT		# NFS usable as /, requires NFSCL
+#options 	BOOTP
+#options 	BOOTP_NFSROOT
+#options 	BOOTP_NFSV3
+#options 	BOOTP_WIRED_TO=mge0
+# Added by Ronald
+options 	SOFTUPDATES
+options 	MSDOSFS
+options 	IPFIREWALL
+options 	IPFIREWALL_DEFAULT_TO_ACCEPT
 
 # Root fs on USB device
-#options 	ROOTDEVNAME=\"ufs:/dev/da0a\"
+options 	ROOTDEVNAME=\"ufs:/dev/da0s1a\"
+#options 	ROOTDEVNAME=\"ufs:/dev/da0s2d\"
+#options 	ROOTDEVNAME=\"nandfs:/dev/da0s2d\"
+#options 	ROOTDEVNAME=\"nandfs:/dev/gnand0s.root\"
 
 options 	SYSVSHM			# SYSV-style shared memory
 options 	SYSVMSG			# SYSV-style message queues
@@ -49,6 +65,7 @@
 # Pseudo devices
 device		random
 device		loop
+device		md
 
 # Serial ports
 device		uart
@@ -79,6 +96,10 @@
 # NAND
 device		nand
 
+#device 		mmc
+#device 		mmcsd
+#device 		sdhci
+
 # Flattened Device Tree
 options 	FDT
 options 	FDT_DTB_STATIC
Index: sys/boot/fdt/dts/arm/sheevaplug.dts
===================================================================
--- sys/boot/fdt/dts/arm/sheevaplug.dts	(revision 273634)
+++ sys/boot/fdt/dts/arm/sheevaplug.dts	(working copy)
@@ -95,7 +95,12 @@
 			};
 
 			slice@200000 {
-				reg = <0x200000 0x1fe00000>;
+				reg = <0x200000 0x600000>;
+				label = "fbsd-boot";
+			};
+
+			slice@800000 {
+				reg = <0x800000 0x1f800000>;
 				label = "root";
 			};
 		};

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.xqma5eereclrs1>