linux内核文档翻译 位置:Documentation/arm/Setup

2015/05/19 19:31
阅读数 78


Kernel initialisation parameters on ARM Linux


The following document describes the kernel initialisation parameter
structure, otherwise known as 'struct param_struct' which is used
for most ARM Linux architectures.
下列文档描述了内核的初始化参数结构,也被称作'stuct param_struct',它

This structure is used to pass initialisation parameters from the
kernel loader to the Linux kernel proper, and may be short lived
through the kernel initialisation process.  As a general rule, it
should not be referenced outside of arch/arm/kernel/setup.c:setup_arch().

There are a lot of parameters listed in there, and they are described

   This parameter must be set to the page size of the machine, and
   will be checked by the kernel.


   This is the total number of pages of memory in the system.  If
   the memory is banked, then this should contain the total number
   of pages in the system.

   If the system contains separate VRAM, this value should not
   include this information.
   如果一个系统包含独立的VRAM(Video Random access memory),这个


   This is now obsolete, and should not be used.


   Various kernel flags, including:
    bit 0 - 1 = mount root read only        位 0 = 挂在根目录并且只读
    bit 1 - unused                          位 1 = 没有被使用
    bit 2 - 0 = load ramdisk                位 2 = 加载内存磁盘
    bit 3 - 0 = prompt for ramdisk          位 3 = 提示内存


   major/minor number pair of device to mount as the root filesystem.


   These two together describe the character size of the dummy console,
   or VGA console character size.  They should not be used for any other

   It's generally a good idea to set these to be either standard VGA, or
   the equivalent character size of your fbcon display.  This then allows
   all the bootup messages to be displayed correctly.


   This describes the character position of cursor on VGA console, and
   is otherwise unused. (should not used for other console types, and
   should not be used for other purposes).


   MEMC chip control register for Acorn Archimedes and Acorn A5000
   based machines.  May be used differently by different architectures. 
   MEMC芯片控制寄存器用于基于Acorn Archimedes和 Acorn A5000的机器。不同


   Default sound setting on Acorn machines.  May be used differently by
   different architectures.


   Number of ADFS/MFM disks.  May be used differently by different


   These are now obsolete, and should not be used.


   Number of pages in each bank of the systems memory (used for RiscPC).
   This is intended to be used on systems where the physical memory
   is non-contiguous from the processors point of view.


   Number of pages in VRAM (used on Acorn RiscPC).  This value may also
   be used by loaders if the size of the video RAM can't be obtained
   from the hardware.


   This describes the kernel virtual start address and size of the
   initial ramdisk.


   Start address in sectors of the ramdisk image on a floppy disk.


   system revision number.


   system 64-bit serial number


   The speed of the external oscillator to the 21285 (footbridge),
   which controls the speed of the memory bus, timer & serial port.
   Depending upon the speed of the cpu its value can be between
   0-66 MHz. If no params are passed or a value of zero is passed,
   then a value of 50 Mhz is the default on 21285 architectures.


   These are now obsolete, and should not be used.

   Kernel command line parameters.  Details can be found elsewhere.




0 收藏
0 评论
0 收藏