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

简介: //位置:Documentation/arm/SetupKernel initialisation parameters on ARM Linux在ARM平台上的内核初始化参数------------------...

//位置:Documentation/arm/Setup


Kernel initialisation parameters on ARM Linux

在ARM平台上的内核初始化参数
---------------------------------------------


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',它
被用作大多数的arm体系结构。


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().
这个结构被用来将初始化参数从内核加载器完完全全的传递到linux内核中,可能
在内核初始化过程中是短暂的,作为一个通用的准则,他不应该被arch/arm/kernel/setup.c:setup_arch()
之外的方法引用。


There are a lot of parameters listed in there, and they are described
below:
有很多参数列在那里,并且他们将会在下文中被描述:

 page_size
 
   This parameter must be set to the page size of the machine, and
   will be checked by the kernel.
   这个参数必须设置机器的页大小,并且会被内核检查。

 nr_pages

   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),这个
   参数应该不会包含这个信息。

 ramdisk_size

   This is now obsolete, and should not be used.
   这个参数现在已经过时了,不应该使用了。

 flags

   很多内核标识,包括:
   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 = 提示内存

 rootdev

   major/minor number pair of device to mount as the root filesystem.
   挂载主设备号/次设备号作为根文件系统 

 video_num_cols
 video_num_rows

   These two together describe the character size of the dummy console,
   or VGA console character size.  They should not be used for any other
   purpose.
   这两个在一起描述了虚拟控制台的字符大小,或者是VGA控制台的字符大小。他们不能
   被用作其他的目的。

   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.
   这通常是一个好注意,通过设置这两个参数来作为标准VGA,或者是平衡你的fbcan显示
   的字符大小。这能够允许所有的启动信息都能够正确的显示。

 video_x
 video_y

   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).
   这两个参数描述了在VGA控制台上光标的字符位置,否则也不能被使用(不能被
   其他的控制台类型使用,也不能用作其他的目的)。

 memc_control_reg

   MEMC chip control register for Acorn Archimedes and Acorn A5000
   based machines.  May be used differently by different architectures. 
   MEMC芯片控制寄存器用于基于Acorn Archimedes和 Acorn A5000的机器。不同
   的体系结构使用方式可能是不一样的。

 sounddefault

   Default sound setting on Acorn machines.  May be used differently by
   different architectures.
   在Acorn机器上的默认的声音设置,体系结构不同使用方式可能不同。

 adfsdrives

   Number of ADFS/MFM disks.  May be used differently by different
   architectures.
   ADFS/MFM磁盘的数量。体系结构不同使用方式可能不同。

 bytes_per_char_h
 bytes_per_char_v

   These are now obsolete, and should not be used.
   这两个参数现在已经过时了,不应该使用了。

 pages_in_bank[4]

   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.
   在系统内存的每一个bank中页的数量(用于RISCPC)。

 pages_in_vram

   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.
   在VRAM中页的数量(用于ACRON精简指令集的PC中)。如果显卡的数量不能从
   硬件中获得,这个参数也会被加载机使用。

 initrd_start
 initrd_size

   This describes the kernel virtual start address and size of the
   initial ramdisk.
   这两个参数分别描述的是内核的虚拟启动地址和启动磁盘的大小。

 rd_start

   Start address in sectors of the ramdisk image on a floppy disk.
   在一个软盘中,磁盘镜像的扇区的开始地址。

 system_rev

   system revision number.
   系统修订号

 system_serial_low
 system_serial_high

   system 64-bit serial number
   系统64位序列号

 mem_fclk_21285

   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.
   外部振荡器达到21285的速度,外部振荡器控制着内存总线的速度,时钟和序列号。
   依赖于cpu的速度,他的值介于0-66MHZ。如果没有参数被传递或者是传递的参数
   是0,那么在21285体系结构中,这个参数的默认值是50MHZ。

 paths[8][128]

   These are now obsolete, and should not be used.
    这个参数现在已经过时了,不应该使用了。
 commandline

   Kernel command line parameters.  Details can be found elsewhere.

   内核命令行参数。具体的细节可以在别的地方找到。



目录
相关文章
|
18天前
|
Linux
Linux(1)arm64根目录扩容
Linux(1)arm64根目录扩容
14 0
|
2月前
|
安全 Shell Linux
【Shell 命令集合 系统设置 】Linux 初始化系统设置setup命令 使用指南
【Shell 命令集合 系统设置 】Linux 初始化系统设置setup命令 使用指南
39 0
|
2月前
|
传感器 Linux 数据处理
ARM Linux摄像头传感器数据处理全景视野:从板端编码视频到高级应用(二)
ARM Linux摄像头传感器数据处理全景视野:从板端编码视频到高级应用
48 1
|
1天前
|
存储 Ubuntu Linux
xenomai3+linux构建linux实时操作系统-基于X86_64和arm
Xenomai是一个实时性解决方案,通过在Linux上添加实时内核Cobalt来增强实时性能。它有三个主要部分:libcobalt(用户空间实时库)、Cobalt(内核空间实时内核)和硬件架构特定层(ipipe-core或dovetail)。ipipe-core适用于Linux 5.4以下版本,而dovetail用于5.4及以上版本。本文介绍了在X86 Ubuntu环境下,如何编译Xenomai内核,搭建应用环境,包括配置、编译、安装和实时性测试。对于其他硬件架构,如ARM和ARM64,步骤类似。文章还提到了Xenomai与Linux内核版本的兼容性和实时性测试结果。
10 0
xenomai3+linux构建linux实时操作系统-基于X86_64和arm
|
18天前
|
Ubuntu Linux 数据安全/隐私保护
Linux(7)Ubuntu20.04 arm64安装Docker
Linux(7)Ubuntu20.04 arm64安装Docker
71 0
|
1月前
|
Linux 计算机视觉
Linux交叉编译opencv并移植ARM端
通过以上步骤,你可以在Linux上交叉编译OpenCV,并将生成的库文件和头文件移植到ARM平台上,从而在ARM上使用OpenCV。 买CN2云服务器,免备案服务器,高防服务器,就选蓝易云。百度搜索:蓝易云
60 0
|
1月前
|
JSON Ubuntu Linux
LuaJit交叉编译移植到ARM Linux
LuaJit交叉编译移植到ARM Linux
28 1
|
2月前
|
传感器 存储 编解码
ARM Linux摄像头传感器数据处理全景视野:从板端编码视频到高级应用(三)
ARM Linux摄像头传感器数据处理全景视野:从板端编码视频到高级应用
56 2
|
1月前
|
数据处理 编译器 数据库
x64 和 arm64 处理器架构的区别
x64 和 arm64 处理器架构的区别
68 0
【各种问题处理】X86架构和ARM架构的区别
【1月更文挑战第13天】【各种问题处理】X86架构和ARM架构的区别