Problem with INVARIANTS and WITNESS
Ain Tepp
freebsd at luftivennad.com
Tue Jun 22 12:57:29 UTC 2010
Hello!
I have added my working kernel conf following options:
options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options WITNESS_SKIPSPIN
Now i get panic in booting:
RedBoot> exec
Now booting linux kernel:
Base address 0x80050000 Entry 0x80050100
memsize=0x08000000
modetty0=0,n,8,1,hw
board=RouterStation PRO
ethaddr=00.15.6d.c3.30.b4
platform frequency: 720000000
arguments:
a0 = 00000002
a1 = 80050028
a2 = 80050000
a3 = 00000001
Cmd line:
Environment:
memsize = 0x08000000
modetty0 = 0,n,8,1,hw
ethaddr = 00.15.6d.c3.30.b4
board = RouterStation PRO
Cache info:
picache_stride = 4096
picache_loopcount = 16
pdcache_stride = 4096
pdcache_loopcount = 8
cpu0: MIPS Technologies processor v116.147
MMU: Standard TLB, 16 entries
L1 i-cache: 4 ways of 512 sets, 32 bytes per line
L1 d-cache: 4 ways of 256 sets, 32 bytes per line
Config1=0x9ee3519e<PerfCount,WatchRegs,MIPS16,EJTAG>
Config3=0x20
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2010 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 9.0-CURRENT #8: Tue Jun 22 15:35:14 EEST 2010
root at fbsd2.luftivennad.com:/usr/obj/mips/mnt/da1/src/sys/UBI mips
WARNING: WITNESS option enabled, expect reduced performance.
real memory = 134217728 (131072K bytes)
avail memory = 107905024 (102MB)
nexus0: <MIPS32 root nexus>
clock0: <Generic MIPS32 ticker> on nexus0
clock0: [FILTER]
apb0 at irq 4 on nexus0
apb0: [FILTER]
uart0: <16550 or compatible> on apb0
uart0: [FILTER]
uart0: console (115200,n,8,1)
ohci0: <AR71XX integrated OHCI controller> on apb0
ohci0: [ITHREAD]
usbus0 on ohci0
ehci0: <AR71XX Integrated USB 2.0 controller> at mem 0x1b000000-0x1bffffff
irq0
ehci0: [ITHREAD]
usbus1: set host controller mode
usbus1: EHCI version 1.0
usbus1: set host controller mode
usbus1: <AR71XX Integrated USB 2.0 controller> on ehci0
pcib0 at irq 0 on nexus0
pcib0: [FILTER]
pci0: <PCI bus> on pcib0
pci0: <old, non-VGA display device> at device 0.0 (no driver attached)
ath0: <Atheros 9280> irq 0 at device 17.0 on pci0
ath0: [ITHREAD]
ath0: AR9280 mac 128.2 RF5133 phy 13.0
arge0: <Atheros AR71xx built-in ethernet interface> at mem
0x19000000-0x19000f0
miibus0: <MII bus> on arge0
ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
arge0: Ethernet address: 00:15:6d:c3:30:b4
arge0: [FILTER+ITHREAD]
arge1: <Atheros AR71xx built-in ethernet interface> at mem
0x1a000000-0x1a000f0
arge1: Ethernet address: 00:15:6d:c3:30:b5
arge1: [FILTER+ITHREAD]
spi0: <AR71XX SPI> at mem 0x1f000000-0x1f00000f on nexus0
spibus0: <spibus bus> on spi0
mx25l0: <M25Pxx Flash Family> at cs 0 on spibus0
mx25l0: mx25ll128, sector 65536 bytes, 256 sectors
ar71xx_wdog0: <Atheros AR71XX watchdog timer> on nexus0
Timecounter "MIPS32" frequency 360000000 Hz quality 800
Timecounters tick every 1.000 msec
WARNING: WITNESS option enabled, expect reduced performance.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Atheros> at usbus0
uhub0: <Atheros OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Atheros> at usbus1
uhub1: <Atheros EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
panic: wrong offset 16773120 for sectorsize 65536
KDB: enter: panic
[ thread pid 4 tid 100008 ]
Stopped at kdb_enter+0x50: lui at,0x8140
db> bt
Tracing pid 4 tid 100008 td 0xc0c57540
db_trace_thread+30 (?,?,?,?) ra 80055c70 sp c0bd7910 sz 24
80055b54+11c (0,?,ffffffff,?) ra 80055258 sp c0bd7928 sz 32
80054ec4+394 (?,?,?,?) ra 800553e8 sp c0bd7948 sz 168
db_command_loop+78 (?,?,?,?) ra 80057ac8 sp c0bd79f0 sz 24
800579c0+108 (?,?,?,?) ra 80183400 sp c0bd7a08 sz 424
kdb_trap+108 (?,?,?,?) ra 80304d70 sp c0bd7bb0 sz 32
trap+d50 (?,?,?,?) ra 802fc6f0 sp c0bd7bd0 sz 168
MipsKernGenException+134 (0,a,81579fe4,109) ra 80183688 sp c0bd7c78 sz 200
kdb_enter+50 (?,?,?,?) ra 8014d6d4 sp c0bd7d40 sz 24
panic+f8 (?,0,0,fff000) ra 800f7a3c sp c0bd7d58 sz 40
g_io_request+118 (?,?,?,?) ra 800fa0c0 sp c0bd7d80 sz 72
800f9dcc+2f4 (?,?,?,?) ra 800f8274 sp c0bd7dc8 sz 48
g_io_schedule_down+30c (?,?,?,?) ra 800f8d38 sp c0bd7df8 sz 72
800f8cc0+78 (?,?,?,?) ra 80125198 sp c0bd7e40 sz 24
fork_exit+b0 (?,?,?,?) ra 80309670 sp c0bd7e58 sz 40
fork_trampoline+10 (?,?,?,?) ra 0 sp c0bd7e80 sz 0
pid 4
db>
My kernel conf is following:
#
# AR71XX -- Kernel configuration file for FreeBSD/mips for Atheros 71xx
systems
#
# $FreeBSD: src/sys/mips/conf/AR71XX,v 1.7 2010/05/01 16:39:46 imp Exp $
#
ident UBI
cpu CPU_MIPS4KC
options ISA_MIPS32
makeoptions TARGET_BIG_ENDIAN
makeoptions KERNLOADADDR=0x80050000
options HZ=1000
options MD_ROOT
#options MD_ROOT_SIZE=8192
options MD_ROOT_SIZE=16384
files "../atheros/files.ar71xx"
hints "AR71XX.hints"
makeoptions DEBUG=-g #Build kernel with gdb(1) debug
symbols
makeoptions MODULES_OVERRIDE=""
options DDB
options KDB
options SCHED_4BSD #4BSD scheduler
options INET #InterNETworking
#options NFSCLIENT #Network Filesystem Client
#options NFS_ROOT #NFS usable as /, requires
NFSC
LIENT
options PSEUDOFS #Pseudo-filesystem framework
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time
extensions
#options DEADLKRES
options INVARIANTS
options INVARIANT_SUPPORT
options WITNESS
options WITNESS_SKIPSPIN
options FFS #Berkeley Fast Filesystem
options SOFTUPDATES #Enable FFS soft updates support
options UFS_ACL #Support for access control lists
options UFS_DIRHASH #Improve performance on big
directories
device pci
# Wireless NIC cards
options IEEE80211_DEBUG
options IEEE80211_SUPPORT_MESH
options IEEE80211_SUPPORT_TDMA
device wlan # 802.11 support
device wlan_wep # 802.11 WEP support
device wlan_ccmp # 802.11 CCMP support
device wlan_tkip # 802.11 TKIP support
device wlan_xauth # 802.11 hostap support
device ath # Atheros pci/cardbus NIC's
options ATH_DEBUG
device ath_hal
option AH_SUPPORT_AR5416
option AH_RXCFG_SDMAMW_4BYTES # See NOTES for details of this WAR
device ath_rate_sample
device mii
device arge
device usb
options USB_EHCI_BIG_ENDIAN_DESC # handle big-endian byte
order
# options USB_DEBUG
device ohci
device ehci
device spibus
device ar71xx_spi
device mx25l
# RTC - requires hackery in the spibus code to work
device pcf2123_rtc
# GEOM modules
device geom_redboot # to get access to the SPI
flas
h partitions
device geom_uzip # compressed in-memory
filesyst
em hackery!
options GEOM_UZIP
options ROOTDEVNAME=\"ufs:/dev/md0.uzip\"
device ar71xx_wdog
device uart
device loop
device ether
device md
device bpf
device random
device if_bridge
Any suggestions appreciated!
Ain
More information about the freebsd-mips
mailing list