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.

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



目录
相关文章
|
安全 网络协议 Linux
深入理解Linux内核模块:加载机制、参数传递与实战开发
本文深入解析了Linux内核模块的加载机制、参数传递方式及实战开发技巧。内容涵盖模块基础概念、加载与卸载流程、生命周期管理、参数配置方法,并通过“Hello World”模块和字符设备驱动实例,带领读者逐步掌握模块开发技能。同时,介绍了调试手段、常见问题排查、开发规范及高级特性,如内核线程、模块间通信与性能优化策略。适合希望深入理解Linux内核机制、提升系统编程能力的技术人员阅读与实践。
1111 1
|
监控 Ubuntu Linux
什么Linux,Linux内核及Linux操作系统
上面只是简单的介绍了一下Linux操作系统的几个核心组件,其实Linux的整体架构要复杂的多。单纯从Linux内核的角度,它要管理CPU、内存、网卡、硬盘和输入输出等设备,因此内核本身分为进程调度,内存管理,虚拟文件系统,网络接口等4个核心子系统。
1186 0
|
Web App开发 缓存 Rust
|
Ubuntu 安全 Linux
Ubuntu 发行版更新 Linux 内核,修复 17 个安全漏洞
本地攻击者可以利用上述漏洞,攻击 Ubuntu 22.10、Ubuntu 22.04、Ubuntu 20.04 LTS 发行版,导致拒绝服务(系统崩溃)或执行任意代码。
|
存储 机器学习/深度学习 数据库
阿里云服务器X86/ARM/GPU/裸金属/超算五大架构技术特点、场景适配参考
在云计算技术飞速发展的当下,云计算已经渗透到各个行业,成为企业数字化转型的关键驱动力。选择合适的云服务器架构对于提升业务效率、降低成本至关重要。阿里云提供了多样化的云服务器架构选择,包括X86计算、ARM计算、GPU/FPGA/ASIC、弹性裸金属服务器以及高性能计算等。本文将深入解析这些架构的特点、优势及适用场景,以供大家了解和选择参考。
1751 61
|
消息中间件 数据可视化 Kafka
docker arm架构部署kafka要点
本内容介绍了基于 Docker 的容器化解决方案,包含以下部分: 1. **Docker 容器管理**:通过 Portainer 可视化管理工具实现对主节点和代理节点的统一管理。 2. **Kafka 可视化工具**:部署 Kafka-UI 以图形化方式监控和管理 Kafka 集群,支持动态配置功能, 3. **Kafka 安装与配置**:基于 Bitnami Kafka 镜像,提供完整的 Kafka 集群配置示例,涵盖 KRaft 模式、性能调优参数及数据持久化设置,适用于高可用生产环境。 以上方案适合 ARM64 架构,为用户提供了一站式的容器化管理和消息队列解决方案。
1332 10
|
存储 机器学习/深度学习 算法
阿里云X86/ARM/GPU/裸金属/超算等五大服务器架构技术特点、场景适配与选型策略
在我们选购阿里云服务器的时候,云服务器架构有X86计算、ARM计算、GPU/FPGA/ASIC、弹性裸金属服务器、高性能计算可选,有的用户并不清楚他们之间有何区别。本文将深入解析这些架构的特点、优势及适用场景,帮助用户更好地根据实际需求做出选择。
|
弹性计算 编解码 运维
飞天技术沙龙回顾:业务创新新选择,倚天 Arm 架构深入探讨
飞天技术沙龙回顾:业务创新新选择,倚天 Arm 架构深入探讨
540 1