Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have to use my parallel port so, I've looked for it as /dev/parport0 but I haven't found it. I've checked also my kernel configuration and I've seen that the "Device Drivers" > "Parallel port support" option is built-in the kernel. If I run the command "dmesg | grep parport", I get:
Code:
[ 0.600536] parport_pc 00:06: reported by Plug and Play ACPI
[ 0.600659] parport0: PC-style at 0x378 (0x778), irq 7 [PCSPP(,...)]
Not sure if this will help but: If I look at the parport.txt file (in the ../linux.<version>/Documentation directory) I notice that the naming would be /dev/lp0, /dev/lp1, ... and not /dev/parport0 etc.
I've read the parport.txt file and it mentions about a "lp driver" so, I've looked for it in the kernel config file, by typing, in the source folder, "cat .config | grep lp" but there wasn't a relevant match. What is that driver?
One more thing, I've seen also the parallel port files in "/proc": there is a folder called "parport0" as expected, but the only entry in "/proc/sys/dev/parport/parport0/devices/active" is "none" so, as the documentation says, it means that there are no device drivers using that port. What can I do now?
The Parallel port support -> PC-style hardware + Multi-IO cards (parallel and serial) settings are for general parallel port support. Look in Block devices -> Parallel port IDE device support for the appropriate driver(s) to install for your hardware.
I cannot test this myself (no parallel port present).
Well, reading the description of the "Parallel port IDE device support" option it seems to be something related to IDE devices that are connected to the machine trough the parallel port so nothimg that helps in my case... Are there any other suggestion?
Well, reading the description of the "Parallel port IDE device support" option it seems to be something related to IDE devices that are connected to the machine trough the parallel port so nothimg that helps in my case... Are there any other suggestion?
Quote:
Originally Posted by giuliom_95
I've read the parport.txt file and it mentions about a "lp driver" so, I've looked for it in the kernel config file, by typing, in the source folder, "cat .config | grep lp" but there wasn't a relevant match. What is that driver?
Then what ARE you going to use this parallel port for? A printer, maybe? If so, then see if you have parallel printer support enabled in the kernel config. That is the lp driver you asked about.
Anyway, I prefer configuring all this stuff as modules. If the lp module does not load automatically, then add a single line with lp to /etc/sysconfig/modules.
I want to use the parallel port for programming an atmega microcontroller by a DAPA dongle so, what I need for the printer‘s and IDE‘s drivers, if it not even creates a symlink in the /dev/ folder? I thought that the parallel port, for his very simple nature, doesn‘t work like the USB ports(I connect the device, udev recognizes it, a symlink in /dev is created) but it‘s something always ready to use. However I‘ll recompile the kernel with those options as soon as possible. Thanks for helping.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.