RE: Making new /dev entries
Thank you I do have my kernel source installed. Others suggested using a script called MAKEDEV. I was unable to find it. Wonder where I can get it. Although rolling my own from scratch will, no drought, prove to be more educational. Walt -Original Message- From: kmself@ix.netcom.com [mailto:[EMAIL PROTECTED] Sent: Friday, 07 July, 2000 9:11 PM To: Debian ListServer (E-mail) Subject: Re: Making new /dev entries On Fri, Jul 07, 2000 at 08:21:01AM -0600, Walter Williams wrote: Good Friday Morning Does anyone know where I can find info on how to make my own /dev entries. I am trying to setup an old 386 as a 4 port print server and would like to create an lp3 device file. If you want to roll your own device files, the file /usr/src/linux/Documentation/devices.txt (provided you've got kernel sources installed) lists out major and minor mode numbers for pretty much everything under the sun. -- Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself Evangelist, Opensales, Inc.http://www.opensales.org What part of Gestalt don't you understand? Debian GNU/Linux rocks! http://gestalt-system.sourceforge.net/K5: http://www.kuro5hin.org GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0
Re: Making new /dev entries
Thank you I do have my kernel source installed. Others suggested using a script called MAKEDEV. I was unable to find it. Wonder where I can get it. Although rolling my own from scratch will, no drought, prove to be more educational. Walt The MAKEDEV script is in /dev. -- ptw miscelaneous endeavors ([EMAIL PROTECTED])
RE: Making new /dev entries
To be honest, I am investigating Debian by following this list server. The system I am referring to is a 33mhz 386 with, ah well SuSE 6.3 on it. It sounds to me like Debian has more tools and capabilities that the RH derivates. I will look into the docs in the kernel source tree. Thanks Walt -Original Message- From: paul [mailto:[EMAIL PROTECTED] Sent: Monday, 10 July, 2000 9:27 AM To: Walter Williams Cc: Debian ListServer (E-mail) Subject: Re: Making new /dev entries Thank you I do have my kernel source installed. Others suggested using a script called MAKEDEV. I was unable to find it. Wonder where I can get it. Although rolling my own from scratch will, no drought, prove to be more educational. Walt The MAKEDEV script is in /dev. -- ptw miscelaneous endeavors ([EMAIL PROTECTED])
Re: Making new /dev entries
On Fri, Jul 07, 2000 at 08:21:01AM -0600, Walter Williams wrote: Good Friday Morning Does anyone know where I can find info on how to make my own /dev entries. I am trying to setup an old 386 as a 4 port print server and would like to create an lp3 device file. I am only asking for someone to direct me to the instructions, this way I will learn more on the subject. man MAKEDEV -- Bob Nielsen, N7XY [EMAIL PROTECTED] Bainbridge Island, WA http://www.oz.net/~nielsen
RE: Making new /dev entries
Just makedev lp3? This is the part that I am a little vague on. Isn't there parameters to include with this? How does it know how which piece of hardware it is intended for? Or am I making this harder (in my head) than it really is? And you said FreeDSB? I'm wanting to do this in Linux. Thanks in advance Walt -Original Message- From: Adrian Thiele [mailto:[EMAIL PROTECTED] Sent: Friday, 07 July, 2000 8:28 AM To: Walter Williams Subject: RE: Making new /dev entries Check out the MAKEDEV command , I use it under FreeBSD, go to the dev directory and try MAKEDEV lp3. First , read the man pages in case I`m wrong in the exec method. Adrian Thiele http://tectpd.com Tec America, Inc. Thermal Printer Division mailto:[EMAIL PROTECTED] phone: (770) 449-3040 ext. 177 fax: (770) 242-9992 -Original Message- From: Walter Williams [mailto:[EMAIL PROTECTED] Sent: Friday, July 07, 2000 10:21 AM To: Debian ListServer (E-mail) Subject: Making new /dev entries Good Friday Morning Does anyone know where I can find info on how to make my own /dev entries. I am trying to setup an old 386 as a 4 port print server and would like to create an lp3 device file. I am only asking for someone to direct me to the instructions, this way I will learn more on the subject. Walt Williams
RE: Making new /dev entries
On 07-Jul-2000 Walter Williams wrote: Just makedev lp3? This is the part that I am a little vague on. Isn't there parameters to include with this? How does it know how which piece of hardware it is intended for? Or am I making this harder (in my head) than it really is? And you said FreeDSB? I'm wanting to do this in Linux. it is MAKEDEV (all caps). The script is in /dev and you have to be in /dev when you run it. MAKEDEV reads some magic files and contains some magic data, so when you say 'MAKEDEV sound' it knows to make /dev/dsp, /dev/audio, and /dev/mixer.
RE: Making new /dev entries
So it sounds like there are files containing pre-defined information for making /dev entries. I would therefore conclude that it knows that lp3 would be a printer port and configures it accordingly. That helps immensely, thank you I would presume that to learn more about this subject I would have to delve into kernel construction. I should count my blessings that it was made this easy. Walt -Original Message- From: Sean 'Shaleh' Perry [mailto:[EMAIL PROTECTED] Sent: Friday, 07 July, 2000 11:45 AM To: Walter Williams Cc: Debian ListServer (E-mail) Subject: RE: Making new /dev entries On 07-Jul-2000 Walter Williams wrote: Just makedev lp3? This is the part that I am a little vague on. Isn't there parameters to include with this? How does it know how which piece of hardware it is intended for? Or am I making this harder (in my head) than it really is? And you said FreeDSB? I'm wanting to do this in Linux. it is MAKEDEV (all caps). The script is in /dev and you have to be in /dev when you run it. MAKEDEV reads some magic files and contains some magic data, so when you say 'MAKEDEV sound' it knows to make /dev/dsp, /dev/audio, and /dev/mixer.
RE: Making new /dev entries
On 07-Jul-2000 Walter Williams wrote: So it sounds like there are files containing pre-defined information for making /dev entries. I would therefore conclude that it knows that lp3 would be a printer port and configures it accordingly. files in /dev are special files. if you ls -l one: crw-rw1 root audio 14, 4 Jun 23 1999 /dev/audio you see the normal permission info, who owns it, date touched, etc. But note the extra data '14, 4'. These are major and minor numbers. These numbers map into a table in the kernel. So 14,4 - sound module. brw-rw1 root disk 8, 16 Mar 3 1999 sdb 8,16 second scsi disk and so on. This file existing only means that you can try to access the device. The kernel must be configured to support a device (having the sound module) and the actual device support must be configured (what sound module? what irq?).
RE: Making new /dev entries
On 07-Jul-2000 Walter Williams wrote: So it sounds like there are files containing pre-defined information for making /dev entries. I would therefore conclude that it knows that lp3 would be a printer port and configures it accordingly. That helps immensely, thank you I would presume that to learn more about this subject I would have to delve into kernel construction. I should count my blessings that it was made this easy. Walt There are no such files, the information is in MAKEDEV, which is a script, so look into it ! Each device has a major and a minor number (just do an ls -l in /dev, these numbers are after the user group names). The only thing MAKEDEV knows is that lp3 is major 6, minor 3; the rest is on the parport driver, who registers itself as handler of major 6 devices. When a process opens lp3, the kernel sends the request to the driver who handles the #6 devices, and passes the minor number to it as an argument. Thus the parport driver will know that he was requested to open the fourth parallel port. HTH Lehel
Re: Making new /dev entries
On Fri, Jul 07, 2000 at 08:21:01AM -0600, Walter Williams wrote: Good Friday Morning Does anyone know where I can find info on how to make my own /dev entries. I am trying to setup an old 386 as a 4 port print server and would like to create an lp3 device file. If you want to roll your own device files, the file /usr/src/linux/Documentation/devices.txt (provided you've got kernel sources installed) lists out major and minor mode numbers for pretty much everything under the sun. -- Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself Evangelist, Opensales, Inc.http://www.opensales.org What part of Gestalt don't you understand? Debian GNU/Linux rocks! http://gestalt-system.sourceforge.net/K5: http://www.kuro5hin.org GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0 pgp651xnya3RZ.pgp Description: PGP signature