home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / KERNELS / LODLIN15.ZIP / LOADLIN / PARAMS.DOC < prev    next >
Encoding:
Text File  |  1994-09-05  |  13.4 KB  |  397 lines

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