Skip to contentSkip to conversation

permission problem

DISCUSSION joy merwin monteiro 2 participants 2 messages Nov 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
wantdd to write something to the parallel port
"windows style" but am getting a seg fault on the "out" instruction.

any pointers?

any easy stuff on this i/o port programming in assembly available on the net (tutorials, I mean)
I'm using nasm for assembling.

thanks in advance,
Joy.M.Monteiro

Signature · 5 lines
people always turn away,
from the eyes of a stranger...
Afraid to know
what lies behind the stare.......
    --QueensRyche
#1 lore raw

joy merwin monteiro <[email protected]> schreef:

Quoted 3 lines

wantdd to write something to the parallel port
"windows style" but am getting a seg fault on the "out" instruction.

Before you can write something to a port you need to get "ioperm". Type 'man ioperm' for more information.

You can find some example-programs that use "ioperm" at
<http://www.janw.easynet.be/eng.html>.

Also, at <http://www.janw.easynet.be/koffie.html>, I have an example-program that writes to port 0x310. This webpage is in the Dutch language and is using the at&t-syntax - so maybe a little difficult to read - but hopefully not to difficult to get the picture ;-)

Also remember to run programs that use ioperm as 'suid-root' (chown root prg ; chmod 4750 prg), or you will stil get a segmentation fault.

Hope this helps you.

Signature · 4 lines
Met vriendelijke groetjes         - Jan Wagemakers -

... RFS: picprog: Microchip PIC serial programmer software (GPL)
    Deb-package is available at <http://www.janw.easynet.be/picprog.html>