Date: Thu, 5 Aug 2010 19:43:14 +0530 From: "Jayachandran C." <c.jayachandran@gmail.com> To: waynegong L <waynegong83@gmail.com> Cc: freebsd-mips@freebsd.org Subject: Re: HEADSUP : n64 changes in HEAD. Message-ID: <AANLkTikiTun2GXNnLs%2BwftBBJqjaMr73CXGghbgcLkW5@mail.gmail.com> In-Reply-To: <AANLkTimXKCPUWvmitNADEakCRxDks51Bd3-0MqhR=kwb@mail.gmail.com> References: <AANLkTimykzp%2Bv-x1V_u%2Bp3Q9BUW=vdbv84D0e%2BTwJ1Em@mail.gmail.com> <AANLkTimXKCPUWvmitNADEakCRxDks51Bd3-0MqhR=kwb@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 5, 2010 at 6:43 PM, waynegong L <waynegong83@gmail.com> wrote: > Hi Jayachandran, > > I have been waiting for n64 support and happy to see this mail. > But unfortunately i got a panic with the from HEAD(revision 210854) on my > octeon board. Please find the information below. > I have built rootfs in to the kernel and the rootfs is stripped one with 30M > size. Also SMP support is disabled in the config file. There are few other changes to the config file too, to options ISA_MIPS64 makeoptions LDSCRIPT_NAME=ldscript.mips.64 makeoptions ARCH_FLAGS="-march=mips64 -mabi=64" makeoptions KERNLOADADDR=0xffffffff80100000 ideally, we should get this setup when TARGET_ABI is set, but not yet. > -----------------panic > info------------------------------------------------------------------ > Trying to mount root from ufs:/dev/md0 > warning: no time-of-day clock registered, system time will not be set > accurately > Lookup of /dev for devfs, error: 2 > start_init: trying /sbin/init > panic: userret: Returning with 1 locks held. > KDB: enter: panic > [ thread pid 1 tid 100001 ] > Stopped at kdb_enter+0x90: lui at,0x0 > > > A bit of debugging pointed has taken me to lockmgr. > > db> show alllocks > Process 1 (init) thread 0xc000000007926000 (100001) > exclusive lockmgr devfs (devfs) r = 0 (0xc000000007fb8cf0) locked @ > /freebsd/testmainline/ > head/sys/kern/vfs_subr.c:2101 > > db> show lockedvnods > Locked vnodes > > db> show lock 0xc000000007fb8cf0 > class: lockmgr > name: devfs > state: XLOCK: 0xc000000007926000 (tid 100001, pid 1, "init") > waiters: none > spinners: none > > db> show thread 100001 > Thread 100001 at 0xc000000007926000: > proc (pid 1): 0xc000000007923000 > name: init > stack: 0xc00000002589c000-0xc00000002589dfff > flags: 0x1000004 pflags: 0 > state: RUNNING (CPU 0) > priority: 180 > container lock: sched lock (0xffffffff8240a338) > > > db> ps > pid ppid pgrp uid state wmesg wchan cmd > 15 0 0 0 DL mdwait 0xc0000000080a0800 [md0] > 14 0 0 0 DL - 0xffffffff82404eb4 [schedcpu] > 13 0 0 0 DL sdflush 0xffffffff825b00c8 [softdepflush] > 9 0 0 0 DL syncer 0xffffffff825ac2a0 [syncer] > 8 0 0 0 DL vlruwt 0xc0000000080a9448 [vnlru] > 7 0 0 0 DL psleep 0xffffffff825abe50 [bufdaemon] > 6 0 0 0 RL [pagezero] > 5 0 0 0 DL psleep 0xffffffff825b0e8c [pagedaemon] > 12 0 0 0 DL - 0xffffffff82404eb4 [yarrow] > 4 0 0 0 DL - 0xffffffff82401950 [g_down] > 3 0 0 0 DL - 0xffffffff82401948 [g_up] > 2 0 0 0 DL - 0xffffffff82401938 [g_event] > 11 0 0 0 WL (threaded) [intr] > 100015 I [swi0: uart > uart] > 100014 I [swi5: +] > 100012 I [swi6: task > queue] > 100011 I [swi6: Giant > taskq] > 100005 I [swi3: vm] > 100004 I [swi1: netisr > 0] > 100003 I [swi4: clock] > 10 0 0 0 RL [idle] > 1 0 0 0 RL CPU 0 [init] > 0 0 0 0 DLs (threaded) [kernel] > 100017 D deadlkre 0xffffffff82404eb4 [deadlkres] > 100016 D - 0xc0000000079b4380 [octe taskq] > 100013 D - 0xc000000007972e00 [kqueue taskq] > 100010 D - 0xc000000007955500 [thread taskq] > 100000 D sched 0xffffffff824019c8 [swapper] > > My env is as below. > TARGET=mips > TARGET_ABI=n64 > TARGET_CPUTYPE=mips64 > TARGET_BIG_ENDIAN=y > > My kernel build was successful, Also buildworld/install world was done with > the below components as suggested. > -DWITHOUT_CDDL -DWITHOUT_USB -DWITHOUT_BLUETOOTH > > Please let me know if you need any more info. `show registers' output will be good, but I think the kernel is still not 64 bit, so the 64 bit userspace crashed. JC.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikiTun2GXNnLs%2BwftBBJqjaMr73CXGghbgcLkW5>
