From owner-freebsd-questions@FreeBSD.ORG Thu Dec 2 02:25:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7A5D16A57C for ; Thu, 2 Dec 2004 02:25:08 +0000 (GMT) Received: from fep3.cogeco.net (smtp.cogeco.net [216.221.81.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04E8043D54 for ; Thu, 2 Dec 2004 02:25:05 +0000 (GMT) (envelope-from bbobowski@cogeco.ca) Received: from [24.150.215.98] (d150-215-98.home.cgocable.net [24.150.215.98]) by fep3.cogeco.net (Postfix) with ESMTP id 6319C45C4; Wed, 1 Dec 2004 21:25:04 -0500 (EST) Message-ID: <41AE7C93.2010707@cogeco.ca> Date: Wed, 01 Dec 2004 21:23:15 -0500 From: Brian Bobowski User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040626 Thunderbird/0.7.1 Mnenhy/0.6.0.104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cm c References: <20041202020313.38689.qmail@web15309.mail.cnb.yahoo.com> In-Reply-To: <20041202020313.38689.qmail@web15309.mail.cnb.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Why can't I do "mknod /dev/cdev c 32 0" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 02:25:09 -0000 cm c wrote: >I'm a newbie to freebsd. I'm trying to port a simple driver to freebsd, but something stopped me. I tried to use the /usr/share/examples to have a test, but mknod failed : > mknod /dev/cdev c 32 0 >even the make_dev call will cause system rebooting! > >I don't know why. >Who can help me? >thanks. > > If you are using FreeBSD 5.x, the devfs makes mknod irrelevant; device nodes are created automatically. That's all I know on the subject. The gurus(which I am not) will probably need more information to help you at all; the output of "uname -a" is standard. Information about what you're trying to port will likely be key as well. -BB