WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: enable the parallel port  (Read 4959 times)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
enable the parallel port
« 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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: enable the parallel port
« Reply #1 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?
The only barriers that can stop you are the ones you create yourself.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: enable the parallel port
« Reply #2 on: August 05, 2010, 03:14:42 PM »
I use TC 2.X and port parallel is enable in bios

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: enable the parallel port
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: enable the parallel port
« Reply #4 on: August 05, 2010, 03:30:48 PM »
See if there's an option "PnP OS" or similar.  --> In BIOS??

Thanks
« Last Edit: August 05, 2010, 03:42:02 PM by jjreina »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: enable the parallel port
« Reply #5 on: August 05, 2010, 05:23:51 PM »
Yes, in bios.
The only barriers that can stop you are the ones you create yourself.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: enable the parallel port
« Reply #6 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

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: enable the parallel port
« Reply #7 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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: enable the parallel port
« Reply #8 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
« Last Edit: August 06, 2010, 04:59:28 AM by jjreina »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: enable the parallel port
« Reply #9 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'
« Last Edit: August 06, 2010, 05:07:36 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: enable the parallel port
« Reply #10 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.   ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: enable the parallel port
« Reply #11 on: August 06, 2010, 05:23:30 AM »
Ok, sorry where is bootloader? I don't find in /hda1/boot

Thanks

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: enable the parallel port
« Reply #12 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'.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: enable the parallel port
« Reply #13 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

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: enable the parallel port
« Reply #14 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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)