Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 23:57:16 -0500
From:      "Jonathan T. Sage" <sagejona@theatre.msu.edu>
To:        toxa <postfix@sendmail.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: making devices in freebsd5 PART2
Message-ID:  <3FDD3F2C.4000305@theatre.msu.edu>
In-Reply-To: <001801c3c2bc$8e99cc30$0202a8c0@karputer>
References:  <000701c3c2bb$34d43060$0202a8c0@karputer> <001801c3c2bc$8e99cc30$0202a8c0@karputer>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigAA561871BB51DF336D906039
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

toxa wrote:
> ----- Original Message ----- 
> From: "toxa" <postfix@sendmail.ru>
> To: <freebsd-current@freebsd.org>
> Sent: Monday, December 15, 2003 6:26 AM
> Subject: making devices in freebsd5
> 
> 
> 
>>I don't know if freebsd-current maillist sutable for my question but let
> 
> me
> 
>>explain it.
>>When I use freebsd-4, I can include any device in kernel or load it as
>>module, and if there is no appropriate device in /dev I can use MAKEDEV
>>script to create it. The common example is 'watch' utility which requires
>>not only  'device snp' in kernel or 'kldload snp' but /dev/snp0 (snp1,
> 
> etc)
> 
>>also for working, so I go to /dev and type ./MAKEDEV snp0.
>>But FreeBSD5 is using devfs, and there is no MAKEDEV in it. I kldload snp
>>but cat't see /dev/snp? created, and I don't know how to create it by
> 
> hand.
> 
>>I was looking through snp, kldload, and watch manpages and freebsd
> 
> maillist
> 
>>archive but cannot see anything about this.
>>So how can I create appropriate device (snp0 actually) or which program
>>should do this for me?
>>
>>Thanks
>>
> 
> 
> Uhh, I should have to see devfs manpage first, not going to write a stupid
> letter to you all, sorry me for that.
> i guess it will be like 'devfs rule add path snp mode 666' but this one not
> working:
> 
> [(6:34):/usr/src/sys/i386/conf ] kldstat|grep snp
> <40>
>  7    1 0xc5926000 3000     snp.ko
> [(6:34):/usr/src/sys/i386/conf ] devfs rule add path snp mode 666
> <41>
> devfs rule: ioctl DEVFSIO_RADD: Input/output error
> 
> Any ideas?
> 
> Thanks.

not sure what you may be using snp for, but the only use i have found is 
  the watch utility which worked great for me "out of the box".  my 
assumption is that it took care of the dev entries itself.

note sure this will be any help, but, thought i'd try
~j

-- 
Jonathan T. Sage
Lighting & Scenic Design
Professional Web Design
[HTTP://www.theatre.msu.edu]
[sagejona@msu.edu]
[PGP: 182C CF3F 93A9 1DAA 2EBE  D4D5 A159 96D9 452E A7F1]

--------------enigAA561871BB51DF336D906039
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/3T8zoVmW2UUup/ERAkcBAJ9Umbne7nQ8FxqKXLlHofwdi3wp5wCgomGC
3sKpLBXJOOCEA7/d5XM0+w0=
=0wD8
-----END PGP SIGNATURE-----

--------------enigAA561871BB51DF336D906039--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FDD3F2C.4000305>