LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 01-28-2009, 04:14 AM   #1
fredrikis
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Rep: Reputation: 0
Implications of disabling plug and play in custom kernel


Hi!
I am building a locked down system based on a stripped desktop Ubuntu distribution. No desktop environment, just the X server, and my kiosk-like application running on top.

When looking around in the kernel config for the most recent kernel in Ubuntu 8.04 (2.6.24.6), I noticed the parameter CONFIG_PNP, "plug and play support".

If I were to compile the kernel, having CONFIG_PNP set to "No", what would be the implications? What would my application have to do in order to, for example, recognize a usb printer attached to the machine?

My main reason for disabling plug and play would be security and stability, and also to keep things as simple as possible.

Regards,
Fredrik
 
Old 01-30-2009, 02:05 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
I think this will mean that plug and play devices might not work at all "in the PnP way" with such a system which has a kernel without any PnP support.

I think though the device will still work, if you configure it manually...

With such a kernel, you'll probably need to somehow determine "by hand" such devices' IRQ, DMA and memory range settings (which would have been automatically handled by the PnP interface), and then manually compose a modprobe statement for that device's module that will load such a device's driver and make it usable.

I once had such a situation in an older 2.4 kernel which did not have any PnP support. I had to start the system in Windows, use the Windows tape drive (the PnP device was a tape drive) software to get the IRQ, DMA and memory range settings picked by the Windows PnP driver for the device. I then had to reboot into Linux, and manually use these settings (written on a piece of paper!) to insmod the Linux driver for the tape drive.

The mess was that each time the system had been physically switched off, I had to redo the whole "boot Windows, write down on a piece of paper, reboot into Linux" dance to get the device to work. It was long ago, but it worked for the rare occassions when I needed to be able to access the PnP tape drive in Linux.

Last edited by rylan76; 01-30-2009 at 02:07 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Plug n Play Daejavu Linux - General 2 02-02-2006 01:05 PM
New kernel implications nobby_trussin Linux - Software 2 06-05-2005 03:32 PM
Is linux plug n play? Maverick1182 Linux - Newbie 2 08-20-2004 08:21 AM
undefined reference in custom plug-in 00it45 Programming 0 03-04-2004 12:54 AM
Multimedia kernel - implications? bluefire Linux - General 4 10-06-2003 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration