MAKEDEV question

Stephen Liu satimis at icare.com.hk
Sun Mar 7 20:17:45 PST 2004


> >  FreeBSD 5.2
> >
> >  I am now configuring printer and aware that 'MAKEDEV' has been replaced
> > with 'devfs'
> >
> >  According to handbook I should run
> >
> >  # ./MAKEDEV lpt0 (para port)
> >
> >  whether to be replaced with
> >
> >  # ./devfs -m lpt0
>
> The device should be created automatically if your kernel detects the
> device.

Hi Kris,

Tks for your response.

# grep ppc0 /var/run/dmesg.boot
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/7 bytes threshold
ppbus0: <Parallel port bus> on ppc0

I suppose lpt0 is supported. 

But
# ls -l lpt0
ls: lpt0: No such file or directory

# ls -al /dev/ | grep lpt0
crw-------   1 root     wheel      16,   0 Mar  8 17:38 lpt0
crw-------   1 root     wheel      16, 128 Mar  8 17:38 lpt0.ctl
(Is it necessary turning on the printer before running above command)

OR
Shall I run
# ./devfs -m lpt0

Kindly advise.  TIA

B.R.
Stephen


 



More information about the freebsd-questions mailing list