mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fernando Fraga e Silva <fernando.fraga@poli.usp.br>
To: linux-kernel@vger.kernel.org
Cc: thiago@sim.lme.usp.br
Subject: Parallel port misbehavior using kernel 2.4.19 and pcchips M810
Date: Fri, 8 Nov 2002 07:12:56 -0200	[thread overview]
Message-ID: <200211080712.56551.fernando.fraga@poli.usp.br> (raw)

Hi Guys

I'm working for 4 days on a parallel port misbehavior problem without having 
any sucess. I have to control a device with SPP mode using a pcchips M810, a 
Duron processor and a kernel 2.4.19.

So I made the following simple code :
--
#include <asm/io.h> //i've tried <sys/io.h>  too
int main ()
{
ioperm( 0x378, 3, 1);
outb (0x01, 0x378 );
ioperm (0x378, 3, 0);
return 0;
}
--
And copiled with "gcc -O2 test.c -o test; ./test".  running it as superuser 
the result should be a "1" logic on pin "2" of parallel port.
Ok it is correct except for this motherboard, it works on Soyo+K6, 
Gigabyte+Athlon, i810+Celeron, etc. But it doesn't for M810+Duron.
I verified the BIOS setup, changed the kernel source for 2.2.20, changed the 
motherboard for M812, recompiled and recompiled the kernel, changed the 
distro from Debian/Woody to Debian/Testing. None of this worked.

So I tried to install Win95 and make it using a assembler code ... It worked.

The next thing i've done was start making a kernel module.... it worked for 
Gigabyte+Athlon, i810+Celeron, Soyo+K6 and a old PC-Chips board with K6 
processor....but nothing happened for the M810+Duron board though.

So I thought it should be a problem with outb call, so I made a module using 
assembler instead outb call, it was compiled with success and was installed. 
The requested i/o region was reserved with success but didn't work with 
M810+Duron. Though It worked with Gigabyte+Athlon and Soyo+K6 again.
So i get the old code (as i listed above)  and after testing it with success 
again in the Soyo+K6 board i compiled it and linked the program statically. i 
brought the executable to the M810+Duron and it didn't work again... though 
it always runs without any errors the signals are not present on the parallel 
port.

I tried to access the parallel port through /dev/ports using lseek to get the 
0x378 address position... and the result was the same... nothing for 
M810+Duron

I don't know any more to do, and I'm wondered if anyone here can help me. I 
can't believe it will not work on this motherboard if the parallel works 
perfectly. If anyone have any information about this parallel port on this 
motherboard, any code or any related knowlegment and like to share It would 
be a lot appreciated.

Thanks.

Fernando.


             reply	other threads:[~2002-11-07 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-08  9:12 Fernando Fraga e Silva [this message]
2002-11-08 12:38 Fernando Fraga e Silva
2002-11-07 16:19 ` Richard B. Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211080712.56551.fernando.fraga@poli.usp.br \
    --to=fernando.fraga@poli.usp.br \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thiago@sim.lme.usp.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®