Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: jjreina on August 05, 2010, 07:57:58 AM

Title: enable the parallel port
Post by: jjreina on August 05, 2010, 07:57:58 AM
Hi all.

How to enable the parallel port?

I have intalled    libieee1284.tcz and too i I tried to install ppdev.tczm but this said: ppdev.tczm not found!

Whit dmesg | grep port ->

parport _pc 00:0c: disable
parport_pc: probe of 00:0c failed whit error -22

thanks
Title: Re: enable the parallel port
Post by: curaga on August 05, 2010, 02:30:16 PM
ppdev is included in the base in 3.x. Is your paraller port disabled in the bios?
Title: Re: enable the parallel port
Post by: jjreina on August 05, 2010, 03:14:42 PM
I use TC 2.X and port parallel is enable in bios
Title: Re: enable the parallel port
Post by: curaga on August 05, 2010, 03:16:34 PM
See if there's an option "PnP OS" or similar. Turn it off so that the bios initializes everything, instead of leaving them for the OS.
Title: Re: enable the parallel port
Post by: jjreina on August 05, 2010, 03:30:48 PM
See if there's an option "PnP OS" or similar.  --> In BIOS??

Thanks
Title: Re: enable the parallel port
Post by: curaga on August 05, 2010, 05:23:51 PM
Yes, in bios.
Title: Re: enable the parallel port
Post by: jjreina on August 06, 2010, 03:46:45 AM
I searched and find nothing similar has PnP also did the same test in ububtu and if it finds the parallel port, so I think it's no problem configuring the BIOS.

Thanks
Title: Re: enable the parallel port
Post by: tinypoodle on August 06, 2010, 04:36:35 AM
Post output of
Code: [Select]
showbootcodes

Boot including parameter
Code: [Select]
syslog
and after booting do:
Code: [Select]
grep -i par /var/log/messages
grep -i pp /var/log/messages
Title: Re: enable the parallel port
Post by: jjreina on August 06, 2010, 04:51:37 AM
showbootcodes

initrd=/ubninit quiet max_loop=255 BOOT_IMAGE=/ubnkern

Boot including parameter -> Sorry this I do not know how to make them
Code:
syslog

and after booting do:
Code:

grep -i par /var/log/messages
grep -i pp /var/log/messages

a bit of information:

lsmod | grep port

parport_pc 18352 0
parport       18763 1 parpor_pc

Thanks
Title: Re: enable the parallel port
Post by: tinypoodle on August 06, 2010, 05:02:05 AM
Umm, i suspect the output of 'showbootcodes' is not done in TC, which would be what is needed.

EDIT: or maybe I am wrong as i couldn't know your particualr setup, just that i haven't seen myself a similar naming scheme in TC, just confirm if output is in TC.
Also: which version of TC are you using exactly?

Add the word 'syslog' to the parameter line in your bootloader, e.g. after 'max_loop=255'
Title: Re: enable the parallel port
Post by: tinypoodle on August 06, 2010, 05:13:58 AM
Oops, i realized I overlooked something:

Remove the boot parameter 'quiet', that one is unfavourable for debugging.   ;)
Title: Re: enable the parallel port
Post by: jjreina on August 06, 2010, 05:23:30 AM
Ok, sorry where is bootloader? I don't find in /hda1/boot

Thanks
Title: Re: enable the parallel port
Post by: tinypoodle on August 06, 2010, 05:26:52 AM
I couldn't know which (of the many existing) Linux bootloader you use, without you giving more details.
But wherever you have specified 'initrd=/ubninit quiet max_loop=255 BOOT_IMAGE=/ubnkern', remove the 'quiet' and add 'syslog'.
Title: Re: enable the parallel port
Post by: jjreina on August 06, 2010, 06:03:44 AM
i did find the bootloader  :) and i modifed it

display boot.msg
default tinycore
label tinycore
   kernel /boot/bzImage
   append initrd=/boot/tinycore.gz max_loop=255 syslog

implicit 0   
prompt 1   
timeout 300
F1 boot.msg
F2 f2
F3 f3

but when ->

grep -i par /var/log/messages

no such file or directory
Title: Re: enable the parallel port
Post by: tinypoodle on August 06, 2010, 06:46:22 AM
Hmm, i can't point out why   ???
Hopefully someone else seeing this can tell why grep'ping /var/log/messages doesn't work with this bootline...

What you could try as a boot parameter, in case boot parameters do work for you:
Code: [Select]
parport=auto

Quote
   parport=   [HW,PPT] Specify parallel ports. 0 disables.
         Format: { 0 | auto | 0xBBB[,IRQ[,DMA]] }
         Use 'auto' to force the driver to use any
         IRQ/DMA settings detected (the default is to
         ignore detected IRQ/DMA settings because of
         possible conflicts). You can specify the base
         address, IRQ, and DMA settings; IRQ and DMA
         should be numbers, or 'auto' (for using detected
         settings on that particular port), or 'nofifo'
         (to avoid using a FIFO even if it is detected).
         Parallel ports are assigned in the order they
         are specified on the command line, starting
         with parport0.

From: http://www.kernel.org/doc/Documentation/kernel-parameters.txt
Title: Re: enable the parallel port
Post by: tinypoodle on August 06, 2010, 07:03:39 AM
Oooops... (again...) only now noticed that bit, it means your basic parallel port modules are loaded and therefore parallel port should work!   :)

a bit of information:

lsmod | grep port

parport_pc 18352 0
parport       18763 1 parpor_pc
Title: Re: enable the parallel port
Post by: jjreina on August 06, 2010, 07:05:52 AM
too i have traid in bootloader  -> parport=auto

but parport_pc 00:0c disabled
      parport_pc 00:0c probe 00:0c failed with error -22

The version de TC is 2.8.1

Thanks
Title: Re: enable the parallel port
Post by: jjreina on August 06, 2010, 08:08:59 AM
I tested with version 3.x

but parport_pc 00:0c disabled
      parport_pc 00:0c probe 00:0c failed with error -22

lsmod | grep port

parport_pc 18655 0
parport      18560 2 ppdev,parpor_pc

I'm using TC 3.X live

any suggestions?

Thanks
Title: Re: enable the parallel port
Post by: ^thehatsrule^ on August 06, 2010, 01:48:23 PM
Along the lines of pnp o/s, maybe it could be named something else like "plug n' play o/s"

You could also try booting with "pnpacpi=off" or manually pass the settings (ie during modprobe)