From owner-freebsd-mips@FreeBSD.ORG Fri Aug 6 06:36:43 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49FAB106566C for ; Fri, 6 Aug 2010 06:36:43 +0000 (UTC) (envelope-from waynegong83@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id E70F98FC19 for ; Fri, 6 Aug 2010 06:36:42 +0000 (UTC) Received: by vws7 with SMTP id 7so7053021vws.13 for ; Thu, 05 Aug 2010 23:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=wYOGY+xBWm4palACF1LqGz6B7c3XUAhzfoIJNjKA+gE=; b=QQKdMsUtKyfUbPccqRakUJPCtFzg3f7+v9qYUfT/ysOPNsNtdhTdW+FpGse5d8kREH 2mHZOuoYmh5Ntifg753pq0awTsoc3nXq4YMWJUcrA9puI/wcT57NofFgI64T/fFxLwYd FAF0IsuA4AuFASC7teL7hn8GcxZJc3UIf8s9o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=driMdJSFAV7JYmAg2GMpklfXmep8CUP8T6B4ibu7y9UDq3QOL3tTZtM6ZCGF8RwAh4 5CS57y/j1XNoC4gSANZKdc1aZyWBhXOBUEBFvTeGIrVmrhGYs2HF4uq8iknPm2dR7aA6 En+Nf+v2I13EHhEV/pumK+MnHe0j2+l/ZJNAw= MIME-Version: 1.0 Received: by 10.220.62.72 with SMTP id w8mr7975581vch.209.1281076602075; Thu, 05 Aug 2010 23:36:42 -0700 (PDT) Received: by 10.220.186.72 with HTTP; Thu, 5 Aug 2010 23:36:41 -0700 (PDT) In-Reply-To: References: Date: Fri, 6 Aug 2010 12:06:41 +0530 Message-ID: From: waynegong L To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: HEADSUP : n64 changes in HEAD. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 06:36:43 -0000 Jayachandran, Please see my reply inline. On Thu, Aug 5, 2010 at 7:43 PM, Jayachandran C. wrote: > On Thu, Aug 5, 2010 at 6:43 PM, waynegong L 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. > > As i am building for OCTEON board, my config file OCTEON1 has the respective options options ISA_MIPS64 makeoptions LDSCRIPT_NAME=ldscript.mips.octeon1.64 makeoptions ARCH_FLAGS="-march=octeon -mabi=64" makeoptions KERNLOADADDR=0xffffffff80100000 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. > db> show reg at 0xffffffff82410000 sysctl__debug_witness_children+0x26d8 v0 0x12 _DYNAMIC_LINKING+0x11 v1 0x12 _DYNAMIC_LINKING+0x11 a0 0 a1 0xa _DYNAMIC_LINKING+0x9 a2 0xffffffff825d1fe0 a3 0x109 _DYNAMIC_LINKING+0x108 t0 0 t1 0 t2 0 t3 0 t4 0xc000000007987638 t5 0 t6 0 t7 0 s0 0xffffffff80408ab0 s1 0xc000000007926000 s2 0xc00000002589dd30 s3 0xc000000007923000 s4 0x22 _DYNAMIC_LINKING+0x21 s5 0xc000000007926000 s6 0xc000000007927c80 s7 0x1 _DYNAMIC_LINKING t8 0 t9 0x120004da0 k0 0 k1 0xa _DYNAMIC_LINKING+0x9 gp 0xffffffff82405684 _gp sp 0xc00000002589db70 s8 0x1 _DYNAMIC_LINKING ra 0xffffffff801ffd64 kdb_enter+0x74 sr 0x408084e3 lo 0 hi 0x111d _DYNAMIC_LINKING+0x111c bad 0xc0000000079ac600 cs 0x24 _DYNAMIC_LINKING+0x23 pc 0xffffffff801ffd80 kdb_enter+0x90 kdb_enter+0x90: lui at,0x0 Please let me know if u need any more info. Thanks, wayne. > > JC. >