From owner-freebsd-mips@FreeBSD.ORG Tue Jun 29 16:37:55 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 31D7B106567A for ; Tue, 29 Jun 2010 16:37:55 +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 DC0998FC1C for ; Tue, 29 Jun 2010 16:37:54 +0000 (UTC) Received: by vws13 with SMTP id 13so9670120vws.13 for ; Tue, 29 Jun 2010 09:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ms2VpjenQNk9qJ+FgQ5B6LFMXP7czqWkxKBUeprSfBw=; b=Jk0HwxTlx3SFgDFKDPd0J7s/nidLfck02OXNyd0HrQl2kPOtASs5FvGUkirfS2JfGk 2Kn0UGWeHUquBcgTTdjZis+5XdYSRn8BEXte/HLxrt2z4SQrTmO1zHawsncbYlAa1kvh NFMoyrvjh8SzfJmmaUUtasplLEArwSJO9Ngug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JdvRU08SFViUklmAvXB+oXa84dJyrqgNIhhXYfALaNzS7snQCANIYgtIDnOij/otmF SILSCO4cF6AbNBOHRmcJ2ZMwcjB/nOAdTbnnPnkNKDajRJ+X2Lk55UTjoSqZ1fONHsdw kWyPqHns6Fj5OfJPO0RK1zz6Sb6MB6Qq8vsTA= MIME-Version: 1.0 Received: by 10.220.76.200 with SMTP id d8mr3970827vck.261.1277829466842; Tue, 29 Jun 2010 09:37:46 -0700 (PDT) Received: by 10.220.191.2 with HTTP; Tue, 29 Jun 2010 09:37:46 -0700 (PDT) Date: Tue, 29 Jun 2010 22:07:46 +0530 Message-ID: From: waynegong L To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: mouting rootfs fails/devfs_lookup issue 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, 29 Jun 2010 16:37:55 -0000 Hi, I tried to boot the kernel ( N64ABI) on one of my octeon boards, with rootfs on the compact flash. The booting came to halt when mouting the rootfs, off the cf and dropped to mountroot prompt with below error. *ROOT MOUNT ERROR: If you have invalid mount options, reboot, and first try the following from the loader prompt: set vfs.root.mountfrom.options=rw * After some debugging, I found that devfs_lookup( ) was not able to find the entry cf0s1 in the /dev directory and so cameout with ENOENT error. Below is my understanding, Please correct me if i am wrong. The kernel tries to mount devfs as / and then creates a symbolic link betwen /dev and / in the devfs_first( ) Then it tries to mount the rootfs mentioned in config file(my case ROOTDEVNAME=\"ufs:cf0s1\") from the devfs root by going through vfs_donmount() --> vfs_domount() -> name() -> lookup () -> devfs_lookup (). In my case it finally failed at devfs_lookupx() Also devfs_fqpn() was called to create an entry which failed and eventually returned ENOENT error from devfs_lookupx (). -->Bootmsg shows that flash was detected properly *nexus0: Compact flash found in bootbus region 5 (16 bit). cf0: on nexus0 * -->Flash was partition as below. fdisk -vBI /dev/da0 bsdlabel -w /dev/da0s1 bsdlabel da0s1 newfs /dev/da0s1a Please let me know if i am missing some thing during my configuration. Thanks, Wayne.