linux-mips
[Top] [All Lists]

Re:

To: xuhaoz <xuhaoz@neonetech.com>
Subject: Re:
From: Fuxin Zhang <fxzhang@ict.ac.cn>
Date: Sat, 04 Sep 2004 05:47:48 +0800
Cc: linux-mips <linux-mips@linux-mips.org>
In-reply-to: <NNT0kkZIhTrBoe2U8QV00000033@nnt.neonetech.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <NNT0kkZIhTrBoe2U8QV00000033@nnt.neonetech.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122
This is probably nothing to do with mips thus not so suitable to appear
here:)

xuhaoz wrote:

>hi:
>
>       does somebody meet a problem like this?
>
>       static void __init init_mount_tree(void)
>       {
>               mnt=do_kern_mount("rootfs",0,"rootfs",NULL);
>               if(IS_ERR(mnt))
>                       panic("can't creat rootfs");
>  
>
>       }
>  
>

And I think you should really do a little more before ask for such questions
(I will attach you a copy of the famous "How To Ask Questions The Smart Way"
,hope that helps:)

You can use ctags or some other code reading tools(e.g. source insight) to
dig in the code, it is not hard to find out where are the possible
failing reasons
then you can insert printks to test your thoughts.

Maybe you can use remote debug to trace the code too.

>       when uclinux run here, it report panic, and i wonder which cause this 
> problem?
>       would you please give a hint? any suggestion will appreciated!! 
>       thank you !!
>
>
>
>
>  
>

<Prev in Thread] Current Thread [Next in Thread>