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.

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



目录
相关文章
|
1天前
|
Ubuntu Linux Windows
如何在WSL中的ubuntu编译Linux内核并且安装使用ebpf?
请注意,在WSL1中可能会由于内核架构限制而无法成功进行以上过程,WSL2对于Linux内核的完整支持更为合适。此外,部分步骤可能因不同的Linux发行版或内核版本而异。
8 4
|
1天前
|
Linux 开发者
Linux的诞生:Linus Torvalds的“惊天一敲”与Linux内核的“首秀”
在科技界璀璨星辰中,Linus Torvalds以一次“惊天一敲”悄然点燃了革命之火——Linux就此诞生。1991年,不满现状的Linus决定创造更好的操作系统,这一敲不仅开启了个人传奇,更奏响了技术革新的序章。他将Linux内核低调发布网络,随即吸引了全球开发者的目光与贡献,使之迅速成长为开源世界的巨星。Linus的故事告诉我们:伟大创举常源于微小想法,也许下一个改变世界的“一敲”就出自你手。
12 1
|
6天前
|
编解码 安全 Linux
基于arm64架构国产操作系统|Linux下的RTMP|RTSP低延时直播播放器开发探究
这段内容讲述了国产操作系统背景下,大牛直播SDK针对国产操作系统与Linux平台发布的RTMP/RTSP直播播放SDK。此SDK支持arm64架构,基于X协议输出视频,采用PulseAudio和Alsa Lib处理音频,具备实时静音、快照、缓冲时间设定等功能,并支持H.265编码格式。此外,提供了示例代码展示如何实现多实例播放器的创建与管理,包括窗口布局调整、事件监听、视频分辨率变化和实时快照回调等关键功能。这一技术实现有助于提高直播服务的稳定性和响应速度,适应国产操作系统在各行业中的应用需求。
|
14天前
|
存储 Unix Linux
揭秘Linux硬件组成:从内核魔法到设备树桥梁,打造你的超级系统,让你的Linux之旅畅通无阻,震撼体验来袭!
【8月更文挑战第5天】Linux作为顶级开源操作系统,凭借其强大的功能和灵活的架构,在众多领域大放异彩。本文首先概述了Linux的四大核心组件:内核、Shell、文件系统及应用程序,并深入探讨了内核的功能模块,如存储、CPU及进程管理等。接着介绍了设备树(Device Tree),它是连接硬件与内核的桥梁,通过DTS/DTB文件描述硬件信息,实现了跨平台兼容。此外,还简要介绍了Linux如何通过本地总线高效管理硬件资源,并阐述了文件系统与磁盘管理机制。通过这些内容,读者可以全面了解Linux的硬件组成及其核心技术。
29 3
|
4天前
|
网络协议 算法 Unix
Linux源码学习笔记01-Linux内核源码结构
Linux源码学习笔记01-Linux内核源码结构
|
11天前
|
运维 网络协议 Linux
[linux]常见内核TCP参数描述与配置
[linux]常见内核TCP参数描述与配置
|
3月前
|
数据可视化 安全 API
Qt 6.1 中的模块变更(从官网文档翻译)
Qt 6.1 中的模块变更(从官网文档翻译)
30 0
|
3月前
|
传感器 API Android开发
Qt 6.2 中的模块变更(从官网文档翻译)
Qt 6.2 中的模块变更(从官网文档翻译)
55 0
|
存储 SQL 分布式数据库
Drill官网文档翻译六:存储插件的注册
我们可以通过存储插件连接到本地文件系统,Hive,HBase,或是其他的数据源。在Drill的web界面的存储插件配置tab,你可以查看修改这些插件的配置。如果不支持HTTPS(默认就没有),你可以访问HTTP://{IP}:8047/storage 来查看和配置存储插件。可以用IP,也可以用ho.
3270 0