home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 15 / boot-disc-1997-11.iso / Debian / Tools / LODLIN16.ZIP / LODLIN16 / DOC / PARAMS.DOC < prev    next >
Text File  |  1996-04-30  |  13KB  |  386 lines

  1. ------------------------------------------------------------------------
  2.  
  3.     LOADLIN 1.6 ((C) 1994..1995 lermen@elserv.ffm.fgan.de)
  4.      and
  5.     Linux version: 0.99.14, 0.99.15, 1.0, 1.1.47, 1.3.97
  6.  
  7. ------------------------------------------------------------------------
  8. NOTE:
  9.  
  10. The below list of Linux commandline parameters is quite out of date,
  11. though most of it will be still valid at this time (1.3.97).
  12. I only edited a few new things into it.
  13. A much better list of boot parameters can be found in Paul Gortmakers
  14. BootPrompt-HOWTO, which can be accessed via WWW:
  15.  
  16.     http://sunsite.unc.edu/mdw/HOWTO/BootPrompt-HOWTO.html
  17. or
  18.     http://rsphy1.anu.edu/~gpg109/BootPrompt-HOWTO.html
  19.  
  20. ------------------------------------------------------------------------
  21.  
  22. This is a list of command line parameters recognized and interpreted by:
  23. ========================================================================
  24.  
  25.   1. LOADLIN
  26.        initrd=file      file name of the initial ramdisk to be loaded
  27.                         by LAODLIN. See initrd.txt for more information
  28.        vga=mode
  29.  
  30.   2. The Linux kernel
  31.        mem=number       (for > 0.99.15,  number = end of physical memory in bytes)
  32.        root=device
  33.        ro
  34.        rw
  35.        no387
  36.        debug            sets console_loglevel = 10
  37.        no-hlt           disables check of HLT isntruction at startup
  38.        load_ramdisk=N   N=0 or 1
  39.        prompt_ramdisk=N N=0 or 1
  40.  
  41.   3. init
  42.        single
  43.        auto
  44.  
  45.   4. Some drivers
  46.        reserve=port1,num1,...,port5,num5 #reserves 80x86 ioports
  47.        ether=irq,base_addr,mem_start,mem_end,dev_name
  48.        hd=cyl,head,sect                  # for 2 drives you need this twice
  49.                                          # first relates to drive 0
  50.        bmouse=irq
  51.        max_scsi_luns=n                          # (n should be between 1 and 8)
  52.        st0x=base_address,irq                    # SEAGATE controller ST01/ST02
  53.        tmc8xx=base_address,irq                  # Future Domain TMC-885,TMC-950
  54.        t128=address,irq                         # Trantor T128/T128F/T228
  55.        ncr5380=port,irq,dma                     # Generic NCR5380 driver
  56.        aha152x=portbase,irq,scsiid,reconnect    # Adaptec AHA-152x driver
  57.        xd=type,irq,iobase,dma
  58.        mcd=port,irq
  59.        sound=0x0TTPPPID, ..
  60.        sbpcd=sbport,SoundBlaster
  61.        sbpcd=LMport,LaserMate
  62.        sbpcd=SpeaFXport,SPEA
  63.  
  64.  
  65.   5. Environment
  66.        All parameters of format  name=xxxx  which are not recogized by
  67.        the kernel or a driver are put onto the environment.
  68.  
  69.        LOADLIN itself always puts  BOOT_IMAGE=imagefile  onto the environ-
  70.        ment.  The user may put additional values onto the environment in
  71.        order to allow  /etc/rc  to behave differently for a given condition.
  72.  
  73.  
  74. ==============================================================================
  75.  
  76. Following are detailed descriptions:
  77.  
  78.  
  79. Parameters recognized by LOADLIN:
  80. =================================
  81.  
  82.   ramdisk=size
  83.   ------------
  84.         size      number of Kbytes for the RAMDISK device.
  85.                   The image for the ramdisk is loaded by the
  86.                   kernel at startup from a floppy drive, if
  87.                   root=/dev/fdx  is also given.
  88.                   After loading the image, the kernel then makes
  89.                   the ramdisk the root device (NOT the floppy).
  90.                   In addition to this, LOADLIN prompts for inserting
  91.                   the ramdisk image into the floppy drive if it no
  92.                   longer needs the drive (i.e. after loading the kernel).
  93.  
  94.   vga=mode
  95.   --------
  96.         mode      -3  the user is asked to specify the VGA mode
  97.                  ask  equal to -3
  98.                   -2  80x50 extended VGA mode
  99.             extended  equal to -2
  100.                   -1  80x25 normal mode
  101.               normal  equal to -1
  102.                    0  as if "0" was entered at the boot prompt
  103.                    .
  104.                    .
  105.                    n  as if the number "n" was entered at the boot prompt
  106.  
  107.   ro
  108.   --
  109.         "ro" forces the root device to be mounted read-only (Not for UMSDOS!)
  110.  
  111.   rw
  112.   --
  113.         "rw" forces the root device to be mounted read/write.
  114.  
  115.   initrd=file
  116.   -----------
  117.         file name of the initial ramdisk to be loaded
  118.         by LAODLIN. See initrd.txt for more information
  119.  
  120. ------------------------------------------------------------------------------
  121.  
  122. Parameters recognized only by the kernel:
  123. =========================================
  124.  
  125.   root=device
  126.   -----------
  127.         device     may be a symbolic device name such as "/dev/hda2"
  128.                    or the numeric device number (hex)
  129.                    (highbyte=major, lowbyte=minor)
  130.                    recognized symbolic devices (with their partitions) are:
  131.                    "hda", "hdb", "hdc", "hdd",
  132.                    "sda", "sdb", "sdc", "sdd", "sde",
  133.                    "fd", "xda", "xdb"
  134.  
  135.  
  136.         Examples:
  137.         root=302
  138.         root=/dev/hda2
  139.         root=/dev/sda10
  140.  
  141.  
  142.   mem=number
  143.   ----------
  144.         number     End of physical RAM, this is recognized by kernels
  145.                    of 0.99.15 and higher and is useful if the exact
  146.                    installed RAM size cannot be determined automatically.
  147.                    may be 0x1000000, 16M, 4096K or some thing like that.
  148.                    mem=nopentium disables 4M page tables.
  149.  
  150.  
  151.  
  152.   no387
  153.   -----
  154.         "no387" disables use of the hardware math coprocessor.
  155.  
  156.   since 1.1.47 (or perhaps earlier) the following options are no more
  157.   passed to init:
  158.  
  159.   ro,rw,no387
  160.   -----------
  161.  
  162.  
  163.   debug  sets console_loglevel high enough to dispay all
  164.   -----
  165.  
  166.   no-hlt
  167.   ------
  168.          disables check of HLT instruction at startup.
  169.          If you have a clone 486, this option is *very* usefull.
  170.  
  171. ------------------------------------------------------------------------------
  172.  
  173. Option Parameters recognized by "init":
  174. =======================================
  175.  
  176.   single
  177.   ------
  178.         Enter "single user mode" on boot
  179.  
  180.  
  181.   auto
  182.   ----
  183.  
  184.   ro,rw,no387   (forwarded from kernels < 1.1.47).   (see !!comment!! above)
  185.   -----------
  186.  
  187.  
  188. ------------------------------------------------------------------------------
  189.  
  190.  
  191.  
  192. Configuration of ethernet cards:
  193. ================================
  194.  
  195.   ether=irq,base_addr,mem_start,mem_end,dev_name
  196.   ---------------------------------------------
  197.         irq        number, IRQ-number (3..15)
  198.         base_addr  number, IO-base (0x280,...)
  199.         mem_start  number, shared mem start
  200.         mem_end    number, shared mem end
  201.         dev_name   string,
  202.                         eth0..3     all configured ethernetcards
  203.                         dl0         D-Link DE600 pocket adaptor
  204.                         atp0        AT-LAN-TEC (RealTek) pocket adaptor
  205.                         plip0..2    parallel IP (PLIP)
  206.                         sl0..3      serial IP (SLIP)
  207.         example:
  208.                 ether=10,0x280,0xc8000,0xcbfff,eth0
  209.  
  210.   related files: net/inet/eth.c, drivers/net/Space.c
  211.  
  212. ------------------------------------------------------------------------------
  213.  
  214. Reserving I/O port space:
  215. =========================
  216.  
  217.   reserve=port1,num1,...,port5,num5
  218.   ---------------------------------
  219.  
  220.         portn     first IOport-address in range
  221.         numn      number of addresses in this range to reserve
  222.                   (there will be bits set to "1" in "ioport_register")
  223.  
  224.   related files:  kernel/ioport.c
  225.  
  226.  
  227. ------------------------------------------------------------------------------
  228.  
  229. Setting hard disk parameters for the root device:
  230. =================================================
  231.  
  232.   hd=cyl,head,sect
  233.   ---------------
  234.          # NOTE: if you have two drives, you must put
  235.          #       two hd= params into the commandline
  236.          #       the first for drive 1, the second for drive 2
  237.          #       eg.
  238.          #       loadlin zimage hd=1001,15,17 hd=989,15,56 root=/dev/hdb2 ro
  239.          #       (this example from my machine however is not needed,
  240.          #       you need it only, if Linux can't get the drive params properly
  241.          #       from the BIOS).
  242.   related files: drivers/block/hd.c
  243.   config:        CONFIG_BLK_DEV_HD
  244.  
  245. ------------------------------------------------------------------------------
  246.  
  247. Setting IDE CDrom support (ATAPI)
  248. =================================
  249.  
  250.   hdX=cdrom
  251.   ---------
  252.  
  253.   Where X may be a,b,c,d.
  254.   Example:
  255.     hdc=cdrom
  256.  
  257. ------------------------------------------------------------------------------
  258.  
  259. Setting the IRQ for the bus-mouse:
  260. ==================================
  261.  
  262.   bmouse=irq
  263.   ----------
  264.   related files: drivers/char/busmouse.c
  265.   config:        CONFIG_BUSMOUSE
  266.  
  267.  
  268.  
  269. ------------------------------------------------------------------------------
  270.  
  271. Parameters for SCSI controllers:
  272. ================================
  273.  
  274.   max_scsi_luns=n                           (n should be between 1 and 8)
  275.  
  276.   st0x=base_address,irq                     SEAGATE controller ST01/ST02
  277.  
  278.   tmc8xx=base_address,irq                   Future Domain TMC-885,TMC-950
  279.  
  280.   t128=address,irq                          Trantor T128/T128F/T228
  281.  
  282.   ncr5380=port,irq,dma                      Generic NCR5380 driver
  283.  
  284.   aha152x=portbase,irq,scsiid,reconnect     Adaptec AHA-152x driver
  285.  
  286.  
  287.  
  288.   related files: drivers/scsi/seagate.c, t128.c, g_NCR5380.c, aha152x.c
  289.  
  290.   config:        CONFIG_SCSI_SEAGATE, CONFIG_SCSI_T128,
  291.                  CONFIG_SCSI_GENERIC_NCR5380, CONFIG_SCSI_AHA152X
  292.  
  293.  
  294. ------------------------------------------------------------------------------
  295.  
  296. Parameters for SCSI Tapes:
  297. =========================
  298.  
  299.   st=buffer_size,write_threshould,max_buffers
  300.  
  301.      buffer_size       Size of tape buffer in Kbyte (i.e. ST_BLOCK_SIZE)
  302.      write_threshould  Number of Kbytes to buffer before write.
  303.                        (must be < buffer_size)
  304.      max_buffers       Number of buffers to reserve
  305.  
  306.   related files: drivers/scsi/st.c
  307.   config:        CONFIG_CHR_DEV_ST
  308.  
  309. ------------------------------------------------------------------------------
  310.  
  311. Parameter for XT hard disk controller (DTC 5150X):
  312. ==================================================
  313.  
  314.   xd=type,irq,iobase,dma
  315.   ----------------------
  316.  
  317.   related files: drivers/block/xd.c
  318.   config:        CONFIG_BLK_DEV_XD
  319.  
  320. ------------------------------------------------------------------------------
  321.  
  322. Parameter for Mitsumi CDROM driver:
  323. ===================================
  324.  
  325.   mcd=port,irq
  326.   ------------
  327.  
  328.   related files: drivers/block/mcd.c
  329.   config:        CONFIG_MCD
  330.  
  331.  
  332. ------------------------------------------------------------------------------
  333.  
  334. Parameter for sound cards:
  335. ==========================
  336.  
  337.   sound=0x0TTPPPID, ..
  338.   ----------------
  339.      all values are enbedded in one longint, the above format
  340.      shows a hex number, each place is a hex-digit
  341.  
  342.      TT         Supported card type.
  343.                 This is the index into the list of configured cards
  344.                 If all cards are configured (which normally is not the case)
  345.                 the following order is kept:
  346.                         Roland MPU-401
  347.                         Gravis Ultrasound
  348.                         ProAudio Spectrum
  349.                         SoundBlaster
  350.                         SoundBlaster 16
  351.                         SB16 MPU-401 (SB16-MIDI port)
  352.                         AdLib
  353.  
  354.      PPP        Port Address
  355.  
  356.      I          IRQ
  357.  
  358.      D          DMA Channel
  359.  
  360.  
  361.   related files: drivers/sound/dev_table.h,dev_table.c
  362.   config:        CONFIG_SOUND
  363.  
  364. ------------------------------------------------------------------------------
  365.  
  366. Parameter for IDE-style CD-ROM device driver (Kotobuki/Matsushita/Panasonic):
  367. =============================================================================
  368.  
  369.   sbpcd=sbport,SoundBlaster
  370.   ------------------------
  371.   sbpcd=LMport,LaserMate
  372.   ----------------------
  373.   sbpcd=SpeaFXport,SPEA
  374.   ----------------------
  375.  
  376.         sbport     soundblaster base port +0x10 (i.e 0x230 = 0x220+0x10)
  377.         LMport     MPU-type port at 0x300 or equivalent
  378.         SpeaFXport base port on SpeaFX card
  379.  
  380.   related files: drivers/block/sbpcd.c
  381.   config:        CONFIG_SBPCD
  382.  
  383.  
  384.  
  385. ------------------------------------------------------------------------------
  386.