473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

finding parallel port address

3
hi,
i have not been able to find out the address of my pc's parallel port..
i am using linux os.. i checked /proc/ioports
but parport is not there
pls help me find it..
thanks
Apr 4 '07 #1
5 4866
  1. su - # become root
    cd /proc
    find -iname '*par*'

For example, when I did this on my machine I got this
Expand|Select|Wrap|Line Numbers
  1. ./sys/dev/parport
  2. ./partitions
  3.  
Apr 4 '07 #2
amph
3
  1. su - # become root
    cd /proc
    find -iname '*par*'

For example, when I did this on my machine I got this
Expand|Select|Wrap|Line Numbers
  1. ./sys/dev/parport
  2. ./partitions
  3.  
i tried it and got this output....

./asound/card0/pcm1c/sub0/sw_params
./asound/card0/pcm1c/sub0/hw_params
./asound/card0/pcm1p/sub0/sw_params
./asound/card0/pcm1p/sub0/hw_params
./asound/card0/pcm0c/sub0/sw_params
./asound/card0/pcm0c/sub0/hw_params
./asound/card0/pcm0p/sub3/sw_params
./asound/card0/pcm0p/sub3/hw_params
./asound/card0/pcm0p/sub2/sw_params
./asound/card0/pcm0p/sub2/hw_params
./asound/card0/pcm0p/sub1/sw_params
./asound/card0/pcm0p/sub1/hw_params
./asound/card0/pcm0p/sub0/sw_params
./asound/card0/pcm0p/sub0/hw_params
./partitions
find: ./3288/task: No such file or directory
find: ./3288/fd: No such file or directory


wht does it mean.???
Apr 4 '07 #3
i tried it and got this output....

./asound/card0/pcm0p/sub0/sw_params
./asound/card0/pcm0p/sub0/hw_params
./partitions
find: ./3288/task: No such file or directory
find: ./3288/fd: No such file or directory

wht does it mean.???
OK then. You need to give more information.

- What linux is it? Kernel version?
- Did you compile the kernel?
- what is the output of 'uname -a' ?
Apr 4 '07 #4
amph
3
OK then. You need to give more information.

- What linux is it? Kernel version?
- Did you compile the kernel?
- what is the output of 'uname -a' ?
mandriva
Linux localhost 2.6.17-5mdv #1 SMP Wed Sep 13 14:32:31 EDT 2006 i686 AMD Athlon(tm) XP 1700+ GNU/Linux

i am new to linux... dont know much abt it.. how should i compile the kernel
and how do i find the version of kernel
Apr 4 '07 #5
mandriva
Linux localhost 2.6.17-5mdv #1 SMP Wed Sep 13 14:32:31 EDT 2006 i686 AMD Athlon(tm) XP 1700+ GNU/Linux

i am new to linux... dont know much abt it.. how should i compile the kernel
and how do i find the version of kernel
What I meant to ask was that did you compile the kernel yourself or installed a precompiled one? It is clear that you have a precompiled kernel from Mandriva. Parallel port support needs to be compiled in the kernel and I think Mandriva have not done so in the supplied kernel. You can find out by asking on a Mandriva specific forum or the Mandriva website.

To compile the kernel you will need to install the Kernel sources and then configure and compile the kernel. The generic procedure is something like

Expand|Select|Wrap|Line Numbers
  1. cd /usr/src/linux
  2. make menuconfig
  3. make && make modules_install
  4.  
The freshly compiled kernel is then copied to /boot and the bootloader (GRUB or LILO) configured to boot the new kernel.

It is not exactly simple and my advice is that you do your homework well before attempting to do this. Most distributions have a guide on compiling the kernel. Read the one for Mandriva and make sure you understand the instructions before doing anything. It is important that you configure GRUB or LILO to include your old working kernel as a boot option in case the new one does not boot for some reason.
Apr 4 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Todd Gardner | last post by:
--------------------------------------------------------------- I would appreciate any ideas how to write to the parallel port (Mem 0x378) when runnning WinXP or Mandrake 9.2. In C and LabVIEW I...
6
by: Novice Experl | last post by:
I'd like to write a simple application that interfaces with the parallel port, and changes the data on it according to keyboard input. I hope I can get it to run under windows xp and / or windows...
11
by: karan | last post by:
I would like to know how one can use the parallel port through c/c++.Also, how does one determine what port is installed(EPP/ECP/SSP/PS2)? What is the differnece between these? What are the...
3
by: Danijel Babic | last post by:
Hi! Is there any way to control parallel port from VB.NET. I want to be able to send or read data from parallel port on Windows XP. Some ActiveX or dll, API or anything. Thx!
11
by: Isaac T Alston | last post by:
Basically, I'm thinking about building a robot which can be controlled by programs which I write, I'm going to interface to the robot through the parallel port (like in this tutorial here:...
12
by: david.brown.0 | last post by:
I'm trying to make a Java program access a parallel port. Java's comm API does not provide me with the control I need. I need to be able to write to the data and control pins and read the status...
23
by: Marco | last post by:
Could anyone please tell me why the program has the following error? I copy the program from http://www.beyondlogic.org/parlcd/parlcd.htm ...
4
by: Soren | last post by:
Hi, I want to control some motors using the parallel port.. however, my laptop does not have any parallel ports (very few do). What I do have is a USB->Parallel converter... I thought about...
1
by: ssndk123 | last post by:
Hi, Using the UserPort program that changes permissions in XP so that I am able to write directly to the parallel port using assembler.. I'm trying to send out square wave pulses for x number...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.