From owner-freebsd-mips@FreeBSD.ORG Tue Aug 10 14:27:00 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 0315F106566C for ; Tue, 10 Aug 2010 14:27:00 +0000 (UTC) (envelope-from waynegong83@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id C63878FC1F for ; Tue, 10 Aug 2010 14:26:59 +0000 (UTC) Received: by pvg4 with SMTP id 4so1324527pvg.13 for ; Tue, 10 Aug 2010 07:26:59 -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=lNbzYJqJfenJ6lTxPW+ZrpdtsI+NmJUHhh3oIExlH+w=; b=aiTlDVUG40D6IeJWN1dTEzlkkAp83OE6E/3F8NOU5hsQ1a3rnDbW0O1j8lQvLm4AoP NFETsyTwvihpMan1URTALNaT7EFXrV2uj7XwJRhdCssGMfgj0yBYwkoIHq72wrelOyft VvCDOIr3JJHLtuEPHtbfQj8y2t2DPraexHGpE= 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=WXZApj7L/XZ9zgb2ZAlSJLoQbjRqn/qJqFyRkMPFmQYzkI+VFPd48nxhuekwJm2CHb PR+kLiLUcUa/cmosIXy3b/iEj7H8cRd/siWSse6fI0+CyKo3hh6KYSZ5r8XK+3ArCmd4 IEebQl/ju2IAmZv9CoFVrQG9ee+se3Bv8VNUw= MIME-Version: 1.0 Received: by 10.114.47.4 with SMTP id u4mr20192741wau.128.1281450418613; Tue, 10 Aug 2010 07:26:58 -0700 (PDT) Received: by 10.220.186.72 with HTTP; Tue, 10 Aug 2010 07:26:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 10 Aug 2010 19:56:58 +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: Tue, 10 Aug 2010 14:27:00 -0000 > > Hi Jayachandran, > On N64 userspace&kernel, During booting ENOENT error is reported from devfs_fixup(), as below. This error was not seen with previous revisions atleast on my Octeon board. Trying to mount root from ufs:/dev/md0 *Lookup of /dev for devfs, error: 2* start_init: trying /sbin/init panic: userret: Returning with 1 locks held. In devfs_fixup, NDINIT is invoked to intialize namei components and, subsequently namei() is invoked to look for /dev directory. But this lookup operation failed in my case. Are any locks acquired in this function not being released and is that causing the issue? Other day, i tried building the sources for n32 ABI, but the kernel build failed with below error. My config file was OCTEON1-32 * Assembler messages: linking kernel.debug hack.So: could not read symbols: Invalid operation* My env. TARGET=mips TARGET_BIG_ENDIAN=y TARGET_CPUTYPE=mips64 TARGET_ARCH=mips TARGET_ABI=n32 Thanks, Wayne. > > Looks like the kernel and userspace are 64bit, and it crashed on > getting into userspace the first time. I am really not sure what > could have caused that lock to be held... > > Have you checked if the exact same source comes up on 32 bit > compilation? This may be worth checking first. After that, may be > enabling debug in trap.c may be a good way to see if the exceptions > generated while jumping to userspace are handled correctly. > > JC. >