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.

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



目录
相关文章
|
9月前
|
安全 网络协议 Linux
深入理解Linux内核模块:加载机制、参数传递与实战开发
本文深入解析了Linux内核模块的加载机制、参数传递方式及实战开发技巧。内容涵盖模块基础概念、加载与卸载流程、生命周期管理、参数配置方法,并通过“Hello World”模块和字符设备驱动实例,带领读者逐步掌握模块开发技能。同时,介绍了调试手段、常见问题排查、开发规范及高级特性,如内核线程、模块间通信与性能优化策略。适合希望深入理解Linux内核机制、提升系统编程能力的技术人员阅读与实践。
814 1
|
9月前
|
Ubuntu Linux
Ubuntu 23.04 用上 Linux 6.2 内核,预计下放到 22.04 LTS 版本
Linux 6.2 带来了多项内容更新,修复了 AMD 锐龙处理器设备在启用 fTPM 后的运行卡顿问题,还增强了文件系统。
|
9月前
|
Ubuntu Linux
Ubuntu 23.10 现在由Linux内核6.3提供支持
如果你想在你的个人电脑上测试一下Ubuntu 23.10的最新开发快照,你可以从官方下载服务器下载最新的每日构建ISO。然而,请记住,这是一个预发布版本,所以不要在生产机器上使用或安装它。
|
9月前
|
监控 Ubuntu Linux
什么Linux,Linux内核及Linux操作系统
上面只是简单的介绍了一下Linux操作系统的几个核心组件,其实Linux的整体架构要复杂的多。单纯从Linux内核的角度,它要管理CPU、内存、网卡、硬盘和输入输出等设备,因此内核本身分为进程调度,内存管理,虚拟文件系统,网络接口等4个核心子系统。
968 0
|
9月前
|
Web App开发 缓存 Rust
|
9月前
|
Ubuntu 安全 Linux
Ubuntu 发行版更新 Linux 内核,修复 17 个安全漏洞
本地攻击者可以利用上述漏洞,攻击 Ubuntu 22.10、Ubuntu 22.04、Ubuntu 20.04 LTS 发行版,导致拒绝服务(系统崩溃)或执行任意代码。
|
数据可视化 安全 API
Qt 6.1 中的模块变更(从官网文档翻译)
Qt 6.1 中的模块变更(从官网文档翻译)
366 0
|
传感器 API Android开发
Qt 6.2 中的模块变更(从官网文档翻译)
Qt 6.2 中的模块变更(从官网文档翻译)
597 0
|
存储 SQL 分布式数据库
Drill官网文档翻译六:存储插件的注册
我们可以通过存储插件连接到本地文件系统,Hive,HBase,或是其他的数据源。在Drill的web界面的存储插件配置tab,你可以查看修改这些插件的配置。如果不支持HTTPS(默认就没有),你可以访问HTTP://{IP}:8047/storage 来查看和配置存储插件。可以用IP,也可以用ho.
3537 0