Path: blob/master/Documentation/blockdev/floppy.txt
10821 views
This file describes the floppy driver.12FAQ list:3=========45A FAQ list may be found in the fdutils package (see below), and also6at <http://fdutils.linux.lu/faq.html>.789LILO configuration options (Thinkpad users, read this)10======================================================1112The floppy driver is configured using the 'floppy=' option in13lilo. This option can be typed at the boot prompt, or entered in the14lilo configuration file.1516Example: If your kernel is called linux-2.6.9, type the following line17at the lilo boot prompt (if you have a thinkpad):1819linux-2.6.9 floppy=thinkpad2021You may also enter the following line in /etc/lilo.conf, in the description22of linux-2.6.9:2324append = "floppy=thinkpad"2526Several floppy related options may be given, example:2728linux-2.6.9 floppy=daring floppy=two_fdc29append = "floppy=daring floppy=two_fdc"3031If you give options both in the lilo config file and on the boot32prompt, the option strings of both places are concatenated, the boot33prompt options coming last. That's why there are also options to34restore the default behavior.353637Module configuration options38============================3940If you use the floppy driver as a module, use the following syntax:41modprobe floppy <options>4243Example:44modprobe floppy omnibook messages4546If you need certain options enabled every time you load the floppy driver,47you can put:4849options floppy omnibook messages5051in /etc/modprobe.conf.525354The floppy driver related options are:5556floppy=asus_pci57Sets the bit mask to allow only units 0 and 1. (default)5859floppy=daring60Tells the floppy driver that you have a well behaved floppy controller.61This allows more efficient and smoother operation, but may fail on62certain controllers. This may speed up certain operations.6364floppy=0,daring65Tells the floppy driver that your floppy controller should be used66with caution.6768floppy=one_fdc69Tells the floppy driver that you have only one floppy controller.70(default)7172floppy=two_fdc73floppy=<address>,two_fdc74Tells the floppy driver that you have two floppy controllers.75The second floppy controller is assumed to be at <address>.76This option is not needed if the second controller is at address770x370, and if you use the 'cmos' option.7879floppy=thinkpad80Tells the floppy driver that you have a Thinkpad. Thinkpads use an81inverted convention for the disk change line.8283floppy=0,thinkpad84Tells the floppy driver that you don't have a Thinkpad.8586floppy=omnibook87floppy=nodma88Tells the floppy driver not to use Dma for data transfers.89This is needed on HP Omnibooks, which don't have a workable90DMA channel for the floppy driver. This option is also useful91if you frequently get "Unable to allocate DMA memory" messages.92Indeed, dma memory needs to be continuous in physical memory,93and is thus harder to find, whereas non-dma buffers may be94allocated in virtual memory. However, I advise against this if95you have an FDC without a FIFO (8272A or 82072). 82072A and96later are OK. You also need at least a 486 to use nodma.97If you use nodma mode, I suggest you also set the FIFO98threshold to 10 or lower, in order to limit the number of data99transfer interrupts.100101If you have a FIFO-able FDC, the floppy driver automatically102falls back on non DMA mode if no DMA-able memory can be found.103If you want to avoid this, explicitly ask for 'yesdma'.104105floppy=yesdma106Tells the floppy driver that a workable DMA channel is available.107(default)108109floppy=nofifo110Disables the FIFO entirely. This is needed if you get "Bus111master arbitration error" messages from your Ethernet card (or112from other devices) while accessing the floppy.113114floppy=usefifo115Enables the FIFO. (default)116117floppy=<threshold>,fifo_depth118Sets the FIFO threshold. This is mostly relevant in DMA119mode. If this is higher, the floppy driver tolerates more120interrupt latency, but it triggers more interrupts (i.e. it121imposes more load on the rest of the system). If this is122lower, the interrupt latency should be lower too (faster123processor). The benefit of a lower threshold is less124interrupts.125126To tune the fifo threshold, switch on over/underrun messages127using 'floppycontrol --messages'. Then access a floppy128disk. If you get a huge amount of "Over/Underrun - retrying"129messages, then the fifo threshold is too low. Try with a130higher value, until you only get an occasional Over/Underrun.131It is a good idea to compile the floppy driver as a module132when doing this tuning. Indeed, it allows to try different133fifo values without rebooting the machine for each test. Note134that you need to do 'floppycontrol --messages' every time you135re-insert the module.136137Usually, tuning the fifo threshold should not be needed, as138the default (0xa) is reasonable.139140floppy=<drive>,<type>,cmos141Sets the CMOS type of <drive> to <type>. This is mandatory if142you have more than two floppy drives (only two can be143described in the physical CMOS), or if your BIOS uses144non-standard CMOS types. The CMOS types are:1451460 - Use the value of the physical CMOS1471 - 5 1/4 DD1482 - 5 1/4 HD1493 - 3 1/2 DD1504 - 3 1/2 HD1515 - 3 1/2 ED1526 - 3 1/2 ED15316 - unknown or not installed154155(Note: there are two valid types for ED drives. This is because 5 was156initially chosen to represent floppy *tapes*, and 6 for ED drives.157AMI ignored this, and used 5 for ED drives. That's why the floppy158driver handles both.)159160floppy=unexpected_interrupts161Print a warning message when an unexpected interrupt is received.162(default)163164floppy=no_unexpected_interrupts165floppy=L40SX166Don't print a message when an unexpected interrupt is received. This167is needed on IBM L40SX laptops in certain video modes. (There seems168to be an interaction between video and floppy. The unexpected169interrupts affect only performance, and can be safely ignored.)170171floppy=broken_dcl172Don't use the disk change line, but assume that the disk was173changed whenever the device node is reopened. Needed on some174boxes where the disk change line is broken or unsupported.175This should be regarded as a stopgap measure, indeed it makes176floppy operation less efficient due to unneeded cache177flushings, and slightly more unreliable. Please verify your178cable, connection and jumper settings if you have any DCL179problems. However, some older drives, and also some laptops180are known not to have a DCL.181182floppy=debug183Print debugging messages.184185floppy=messages186Print informational messages for some operations (disk change187notifications, warnings about over and underruns, and about188autodetection).189190floppy=silent_dcl_clear191Uses a less noisy way to clear the disk change line (which192doesn't involve seeks). Implied by 'daring' option.193194floppy=<nr>,irq195Sets the floppy IRQ to <nr> instead of 6.196197floppy=<nr>,dma198Sets the floppy DMA channel to <nr> instead of 2.199200floppy=slow201Use PS/2 stepping rate:202" PS/2 floppies have much slower step rates than regular floppies.203It's been recommended that take about 1/4 of the default speed204in some more extreme cases."205206207Supporting utilities and additional documentation:208==================================================209210Additional parameters of the floppy driver can be configured at211runtime. Utilities which do this can be found in the fdutils package.212This package also contains a new version of mtools which allows to213access high capacity disks (up to 1992K on a high density 3 1/2 disk!).214It also contains additional documentation about the floppy driver.215216The latest version can be found at fdutils homepage:217http://fdutils.linux.lu218219The fdutils releases can be found at:220http://fdutils.linux.lu/download.html221http://www.tux.org/pub/knaff/fdutils/222ftp://metalab.unc.edu/pub/Linux/utils/disk-management/223224Reporting problems about the floppy driver225==========================================226227If you have a question or a bug report about the floppy driver, mail228me at [email protected] . If you post to Usenet, preferably use229comp.os.linux.hardware. As the volume in these groups is rather high,230be sure to include the word "floppy" (or "FLOPPY") in the subject231line. If the reported problem happens when mounting floppy disks, be232sure to mention also the type of the filesystem in the subject line.233234Be sure to read the FAQ before mailing/posting any bug reports!235236Alain237238Changelog239=========24024110-30-2004 : Cleanup, updating, add reference to module configuration.242James Nelson <[email protected]>2432446-3-2000 : Original Document245246247