Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
parallel port not detected (no /dev/lp0) [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Stefan Pantiru
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2004
Posts: 80
Location: Iasi, Romania

PostPosted: Fri Aug 06, 2004 4:52 pm    Post subject: parallel port not detected (no /dev/lp0) [solved] Reply with quote

There is a simillar thread somewhere but in that case the parport, parport_pc and lp modules were at least loading... while I can't get them to work...

I do have this:
Code:
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_PC_CML1=m
CONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
CONFIG_PARPORT_PC_SUPERIO=y
# CONFIG_PARPORT_PC_PCMCIA is not set
# CONFIG_PARPORT_OTHER is not set
CONFIG_PARPORT_1284=y


but parport does NOT autoload, although I'm using a genkernel generated kernel :D
I tried loading them manually adding in modules.autoload, and adding this to modules.conf:
Code:
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=7

red somewhere it could help. But of course, there still is not /dev/lp0 or /dev/parport or something...
lp is a module too? 'cause when I modprobe lp i get "FATAL: Module lp not found."
I checked in Bios. I have:
Parallel port at 378, irq7, dma3.
Thanks a lot!
_________________
Viata-i grea, dar trece...


Last edited by Stefan Pantiru on Sat Aug 07, 2004 8:51 am; edited 1 time in total
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Aug 06, 2004 6:13 pm    Post subject: Reply with quote

Does compiling those statically into the kernel rather than as modules help fix it?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Stefan Pantiru
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2004
Posts: 80
Location: Iasi, Romania

PostPosted: Fri Aug 06, 2004 7:44 pm    Post subject: Reply with quote

Thank you for your promptitude!
Yes, that did some good indeed. Now, my dmesg contains:
Code:

parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE,EPP]
parport0: irq 7 detected
parport0: Printer, Canon BJC-2000

I still have no lp0 or parport in /dev but the printer manager does now recognize this:
parallel:/dev/unknown-parallel0.
I have no idea where this "unknown-parallel0 device is, 'cause there is NOT in /dev/
So, my problem is at least partially solved...
Still, i'll wait for sugestions on how to create that /dev/lp0 before I'll add [solved] to the thread. :)
Thanks, once again...
_________________
Viata-i grea, dar trece...
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Aug 06, 2004 7:55 pm    Post subject: Reply with quote

Are you using udev or devfs?

Also, can you please post the output of
Code:
 ls -al /dev
?
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Stefan Pantiru
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2004
Posts: 80
Location: Iasi, Romania

PostPosted: Fri Aug 06, 2004 8:40 pm    Post subject: Reply with quote

Code:
CONFIG_DEVFS_FS=y
# CONFIG_DEVFS_MOUNT is not set
# CONFIG_DEVFS_DEBUG is not set

I'd rather use ls /dev than ls -la /dev. It's too large as is.
Code:
MAKEDEV   mem        ptyce  ptyqa  ptyu6  ptyy2   tty1   tty7   ttyd1  ttyqd  ttyu9  ttyy5
adsp      misc       ptycf  ptyqb  ptyu7  ptyy3   tty10  tty8   ttyd2  ttyqe  ttyua  ttyy6
adsp1     mixer      ptyd0  ptyqc  ptyu8  ptyy4   tty11  tty9   ttyd3  ttyqf  ttyub  ttyy7
agpgart   mixer1     ptyd1  ptyqd  ptyu9  ptyy5   tty12  ttyS0  ttyd4  ttyr0  ttyuc  ttyy8
audio     mouse      ptyd2  ptyqe  ptyua  ptyy6   tty13  ttyS1  ttyd5  ttyr1  ttyud  ttyy9
audio1    null       ptyd3  ptyqf  ptyub  ptyy7   tty14  ttyS2  ttyd6  ttyr2  ttyue  ttyya
cdrom     nvidia0    ptyd4  ptyr0  ptyuc  ptyy8   tty15  ttyS3  ttyd7  ttyr3  ttyuf  ttyyb
cdroms    nvidiactl  ptyd5  ptyr1  ptyud  ptyy9   tty16  ttyS4  ttyd8  ttyr4  ttyv0  ttyyc
console   nvram      ptyd6  ptyr2  ptyue  ptyya   tty17  ttyS5  ttyd9  ttyr5  ttyv1  ttyyd
discs     port       ptyd7  ptyr3  ptyuf  ptyyb   tty18  ttyS6  ttyda  ttyr6  ttyv2  ttyye
dsp       psaux      ptyd8  ptyr4  ptyv0  ptyyc   tty19  ttyS7  ttydb  ttyr7  ttyv3  ttyyf
dsp1      ptmx       ptyd9  ptyr5  ptyv1  ptyyd   tty2   ttya0  ttydc  ttyr8  ttyv4  ttyz0
fb        pts        ptyda  ptyr6  ptyv2  ptyye   tty20  ttya1  ttydd  ttyr9  ttyv5  ttyz1
fb0       pty        ptydb  ptyr7  ptyv3  ptyyf   tty21  ttya2  ttyde  ttyra  ttyv6  ttyz2
fd        ptya0      ptydc  ptyr8  ptyv4  ptyz0   tty22  ttya3  ttydf  ttyrb  ttyv7  ttyz3
fd0       ptya1      ptydd  ptyr9  ptyv5  ptyz1   tty23  ttya4  ttye0  ttyrc  ttyv8  ttyz4
fd0u1040  ptya2      ptyde  ptyra  ptyv6  ptyz2   tty24  ttya5  ttye1  ttyrd  ttyv9  ttyz5
fd0u1120  ptya3      ptydf  ptyrb  ptyv7  ptyz3   tty25  ttya6  ttye2  ttyre  ttyva  ttyz6
fd0u1440  ptya4      ptye0  ptyrc  ptyv8  ptyz4   tty26  ttya7  ttye3  ttyrf  ttyvb  ttyz7
fd0u1600  ptya5      ptye1  ptyrd  ptyv9  ptyz5   tty27  ttya8  ttye4  ttys0  ttyvc  ttyz8
fd0u1680  ptya6      ptye2  ptyre  ptyva  ptyz6   tty28  ttya9  ttye5  ttys1  ttyvd  ttyz9
fd0u1722  ptya7      ptye3  ptyrf  ptyvb  ptyz7   tty29  ttyaa  ttye6  ttys2  ttyve  ttyza
fd0u1743  ptya8      ptye4  ptys0  ptyvc  ptyz8   tty3   ttyab  ttye7  ttys3  ttyvf  ttyzb
fd0u1760  ptya9      ptye5  ptys1  ptyvd  ptyz9   tty30  ttyac  ttye8  ttys4  ttyw0  ttyzc
fd0u1840  ptyaa      ptye6  ptys2  ptyve  ptyza   tty31  ttyad  ttye9  ttys5  ttyw1  ttyzd
fd0u1920  ptyab      ptye7  ptys3  ptyvf  ptyzb   tty32  ttyae  ttyea  ttys6  ttyw2  ttyze
fd0u360   ptyac      ptye8  ptys4  ptyw0  ptyzc   tty33  ttyaf  ttyeb  ttys7  ttyw3  ttyzf
fd0u720   ptyad      ptye9  ptys5  ptyw1  ptyzd   tty34  ttyb0  ttyec  ttys8  ttyw4  urandom
fd0u800   ptyae      ptyea  ptys6  ptyw2  ptyze   tty35  ttyb1  ttyed  ttys9  ttyw5  usb
fd0u820   ptyaf      ptyeb  ptys7  ptyw3  ptyzf   tty36  ttyb2  ttyee  ttysa  ttyw6  usbmouse
fd0u830   ptyb0      ptyec  ptys8  ptyw4  radio0  tty37  ttyb3  ttyef  ttysb  ttyw7  v4l
floppy    ptyb1      ptyed  ptys9  ptyw5  ram0    tty38  ttyb4  ttyp0  ttysc  ttyw8  vbi0
full      ptyb2      ptyee  ptysa  ptyw6  ram1    tty39  ttyb5  ttyp1  ttysd  ttyw9  vc
hda       ptyb3      ptyef  ptysb  ptyw7  ram10   tty4   ttyb6  ttyp2  ttyse  ttywa  vcc
hda1      ptyb4      ptyp0  ptysc  ptyw8  ram11   tty40  ttyb7  ttyp3  ttysf  ttywb  vcs
hda3      ptyb5      ptyp1  ptysd  ptyw9  ram12   tty41  ttyb8  ttyp4  ttyt0  ttywc  vcs1
hda5      ptyb6      ptyp2  ptyse  ptywa  ram13   tty42  ttyb9  ttyp5  ttyt1  ttywd  vcs12
hda6      ptyb7      ptyp3  ptysf  ptywb  ram14   tty43  ttyba  ttyp6  ttyt2  ttywe  vcs2
hda7      ptyb8      ptyp4  ptyt0  ptywc  ram15   tty44  ttybb  ttyp7  ttyt3  ttywf  vcs3
hda8      ptyb9      ptyp5  ptyt1  ptywd  ram2    tty45  ttybc  ttyp8  ttyt4  ttyx0  vcs4
hda9      ptyba      ptyp6  ptyt2  ptywe  ram3    tty46  ttybd  ttyp9  ttyt5  ttyx1  vcs5
hdc       ptybb      ptyp7  ptyt3  ptywf  ram4    tty47  ttybe  ttypa  ttyt6  ttyx2  vcs6
i2c       ptybc      ptyp8  ptyt4  ptyx0  ram5    tty48  ttybf  ttypb  ttyt7  ttyx3  vcs7
i2c-0     ptybd      ptyp9  ptyt5  ptyx1  ram6    tty49  ttyc0  ttypc  ttyt8  ttyx4  vcsa0
ide       ptybe      ptypa  ptyt6  ptyx2  ram7    tty5   ttyc1  ttypd  ttyt9  ttyx5  vcsa1
initctl   ptybf      ptypb  ptyt7  ptyx3  ram8    tty50  ttyc2  ttype  ttyta  ttyx6  vcsa12
input     ptyc0      ptypc  ptyt8  ptyx4  ram9    tty51  ttyc3  ttypf  ttytb  ttyx7  vcsa2
kmem      ptyc1      ptypd  ptyt9  ptyx5  random  tty52  ttyc4  ttyq0  ttytc  ttyx8  vcsa3
kmsg      ptyc2      ptype  ptyta  ptyx6  rd      tty53  ttyc5  ttyq1  ttytd  ttyx9  vcsa4
lircd     ptyc3      ptypf  ptytb  ptyx7  root    tty54  ttyc6  ttyq2  ttyte  ttyxa  vcsa5
log       ptyc4      ptyq0  ptytc  ptyx8  rtc     tty55  ttyc7  ttyq3  ttytf  ttyxb  vcsa6
loop      ptyc5      ptyq1  ptytd  ptyx9  shm     tty56  ttyc8  ttyq4  ttyu0  ttyxc  vcsa7
loop0     ptyc6      ptyq2  ptyte  ptyxa  snd     tty57  ttyc9  ttyq5  ttyu1  ttyxd  video0
loop1     ptyc7      ptyq3  ptytf  ptyxb  sound   tty58  ttyca  ttyq6  ttyu2  ttyxe  zero
loop2     ptyc8      ptyq4  ptyu0  ptyxc  stderr  tty59  ttycb  ttyq7  ttyu3  ttyxf
loop3     ptyc9      ptyq5  ptyu1  ptyxd  stdin   tty6   ttycc  ttyq8  ttyu4  ttyy0
loop4     ptyca      ptyq6  ptyu2  ptyxe  stdout  tty60  ttycd  ttyq9  ttyu5  ttyy1
loop5     ptycb      ptyq7  ptyu3  ptyxf  tts     tty61  ttyce  ttyqa  ttyu6  ttyy2
loop6     ptycc      ptyq8  ptyu4  ptyy0  tty     tty62  ttycf  ttyqb  ttyu7  ttyy3
loop7     ptycd      ptyq9  ptyu5  ptyy1  tty0    tty63  ttyd0  ttyqc  ttyu8  ttyy4

_________________
Viata-i grea, dar trece...
Back to top
View user's profile Send private message
Stefan Pantiru
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2004
Posts: 80
Location: Iasi, Romania

PostPosted: Sat Aug 07, 2004 8:46 am    Post subject: Reply with quote

I found the solution posted by tredman2:
I had to enable
Code:
Device Drivers -> Character Devices -> Parallel Printer Support (CONFIG_PRINTER)

module is called lp...
This is something that comes in top of
Code:
Device Drivers -> Parallel Port Support


Strange how they are spread through that config file...

Anyway, thanks again codergeek42!!

Hope this is useful to others too...
_________________
Viata-i grea, dar trece...
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Sat Aug 07, 2004 4:16 pm    Post subject: Reply with quote

Awesome. Glad you got it solved!
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum