__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<!DOCTYPE html>
<html lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Kernel initialisation parameters on ARM Linux — The Linux Kernel documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/alabaster.css?v=3918102e" />
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Software emulation of deprecated SWP instruction (CONFIG_SWP_EMULATE)" href="swp_emulation.html" />
<link rel="prev" title="ARM TCM (Tightly-Coupled Memory) handling in Linux" href="tcm.html" />
<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
</head><body>
<div class="document">
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../index.html">
<img class="logo" src="../../_static/logo.svg" alt="Logo of The Linux Kernel"/>
</a></p>
<h1 class="logo"><a href="../../index.html">The Linux Kernel</a></h1>
<p class="blurb">6.18.50</p>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
<p>
<h3 class="kernel-toc-contents">Contents</h3>
<input type="checkbox" class="kernel-toc-toggle" id = "kernel-toc-toggle" checked>
<label class="kernel-toc-title" for="kernel-toc-toggle"></label>
<div class="kerneltoc" id="kerneltoc">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../process/development-process.html">Development process</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../process/submitting-patches.html">Submitting patches</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../process/code-of-conduct.html">Code of conduct</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../maintainer/index.html">Maintainer handbook</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../process/index.html">All development-process docs</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../core-api/index.html">Core API</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../driver-api/index.html">Driver APIs</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../subsystem-apis.html">Subsystems</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../locking/index.html">Locking</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../process/license-rules.html">Licensing rules</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../doc-guide/index.html">Writing documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev-tools/index.html">Development tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../dev-tools/testing-overview.html">Testing guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../kernel-hacking/index.html">Hacking guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../trace/index.html">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../fault-injection/index.html">Fault injection</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../livepatch/index.html">Livepatching</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rust/index.html">Rust</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../admin-guide/index.html">Administration</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../kbuild/index.html">Build system</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../admin-guide/reporting-issues.html">Reporting issues</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools/index.html">Userspace tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../userspace-api/index.html">Userspace API</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../firmware-guide/index.html">Firmware</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../devicetree/index.html">Firmware and Devicetree</a></li>
</ul>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">CPU architectures</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../arc/index.html">ARC architecture</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="index.html">ARM Architecture</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="arm.html">ARM Linux 2.6 and upper</a></li>
<li class="toctree-l3"><a class="reference internal" href="booting.html">Booting ARM Linux</a></li>
<li class="toctree-l3"><a class="reference internal" href="cluster-pm-race-avoidance.html">Cluster-wide Power-up/power-down race avoidance algorithm</a></li>
<li class="toctree-l3"><a class="reference internal" href="firmware.html">Interface for registering and calling firmware-specific operations for ARM</a></li>
<li class="toctree-l3"><a class="reference internal" href="interrupts.html">Interrupts</a></li>
<li class="toctree-l3"><a class="reference internal" href="kernel_mode_neon.html">Kernel mode NEON</a></li>
<li class="toctree-l3"><a class="reference internal" href="kernel_user_helpers.html">Kernel-provided User Helpers</a></li>
<li class="toctree-l3"><a class="reference internal" href="memory.html">Kernel Memory Layout on ARM Linux</a></li>
<li class="toctree-l3"><a class="reference internal" href="mem_alignment.html">Memory alignment</a></li>
<li class="toctree-l3"><a class="reference internal" href="tcm.html">ARM TCM (Tightly-Coupled Memory) handling in Linux</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">Kernel initialisation parameters on ARM Linux</a></li>
<li class="toctree-l3"><a class="reference internal" href="swp_emulation.html">Software emulation of deprecated SWP instruction (CONFIG_SWP_EMULATE)</a></li>
<li class="toctree-l3"><a class="reference internal" href="uefi.html">The Unified Extensible Firmware Interface (UEFI)</a></li>
<li class="toctree-l3"><a class="reference internal" href="vlocks.html">vlocks for Bare-Metal Mutual Exclusion</a></li>
<li class="toctree-l3"><a class="reference internal" href="porting.html">Porting</a></li>
<li class="toctree-l3"><a class="reference internal" href="features.html">Feature status on arm architecture</a></li>
<li class="toctree-l3"><a class="reference internal" href="index.html#soc-specific-documents">SoC-specific documents</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../arm64/index.html">ARM64 Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../loongarch/index.html">LoongArch Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../m68k/index.html">m68k Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../mips/index.html">MIPS-specific Documentation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../nios2/index.html">Nios II Specific Documentation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../openrisc/index.html">OpenRISC Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../parisc/index.html">PA-RISC Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../powerpc/index.html">powerpc</a></li>
<li class="toctree-l2"><a class="reference internal" href="../riscv/index.html">RISC-V architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../s390/index.html">s390 Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../sh/index.html">SuperH Interfaces Guide</a></li>
<li class="toctree-l2"><a class="reference internal" href="../sparc/index.html">Sparc Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../x86/index.html">x86-specific Documentation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../xtensa/index.html">Xtensa Architecture</a></li>
</ul>
</li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../staging/index.html">Unsorted documentation</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../translations/index.html">Translations</a></li>
</ul>
</div>
<script type="text/javascript"> <!--
var sbar = document.getElementsByClassName("sphinxsidebar")[0];
let currents = document.getElementsByClassName("current")
if (currents.length) {
sbar.scrollTop = currents[currents.length - 1].offsetTop;
}
--> </script>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/arch/arm/setup.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
</div>
</div>
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="kernel-initialisation-parameters-on-arm-linux">
<h1>Kernel initialisation parameters on ARM Linux<a class="headerlink" href="#kernel-initialisation-parameters-on-arm-linux" title="Link to this heading">¶</a></h1>
<p>The following document describes the kernel initialisation parameter
structure, otherwise known as ‘<code class="xref c c-struct broken_xref docutils literal notranslate"><span class="pre">struct</span> <span class="pre">param_struct</span></code>’ which is used
for most ARM Linux architectures.</p>
<p>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:<code class="xref c c-func broken_xref docutils literal notranslate"><span class="pre">setup_arch()</span></code>.</p>
<p>There are a lot of parameters listed in there, and they are described
below:</p>
<blockquote>
<div><dl>
<dt>page_size</dt><dd><p>This parameter must be set to the page size of the machine, and
will be checked by the kernel.</p>
</dd>
<dt>nr_pages</dt><dd><p>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.</p>
<p>If the system contains separate VRAM, this value should not
include this information.</p>
</dd>
<dt>ramdisk_size</dt><dd><p>This is now obsolete, and should not be used.</p>
</dd>
<dt>flags</dt><dd><p>Various kernel flags, including:</p>
<blockquote>
<div><table class="docutils align-default">
<tbody>
<tr class="row-odd"><td><p>bit 0</p></td>
<td><p>1 = mount root read only</p></td>
</tr>
<tr class="row-even"><td><p>bit 1</p></td>
<td><p>unused</p></td>
</tr>
<tr class="row-odd"><td><p>bit 2</p></td>
<td><p>0 = load ramdisk</p></td>
</tr>
<tr class="row-even"><td><p>bit 3</p></td>
<td><p>0 = prompt for ramdisk</p></td>
</tr>
</tbody>
</table>
</div></blockquote>
</dd>
<dt>rootdev</dt><dd><p>major/minor number pair of device to mount as the root filesystem.</p>
</dd>
<dt>video_num_cols / video_num_rows</dt><dd><p>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.</p>
<p>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.</p>
</dd>
<dt>video_x / video_y</dt><dd><p>This describes the character position of cursor on VGA console, and
is otherwise unused. (should not be used for other console types, and
should not be used for other purposes).</p>
</dd>
<dt>memc_control_reg</dt><dd><p>MEMC chip control register for Acorn Archimedes and Acorn A5000
based machines. May be used differently by different architectures.</p>
</dd>
<dt>sounddefault</dt><dd><p>Default sound setting on Acorn machines. May be used differently by
different architectures.</p>
</dd>
<dt>adfsdrives</dt><dd><p>Number of ADFS/MFM disks. May be used differently by different
architectures.</p>
</dd>
<dt>bytes_per_char_h / bytes_per_char_v</dt><dd><p>These are now obsolete, and should not be used.</p>
</dd>
<dt>pages_in_bank[4]</dt><dd><p>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.</p>
</dd>
<dt>pages_in_vram</dt><dd><p>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.</p>
</dd>
<dt>initrd_start / initrd_size</dt><dd><p>This describes the kernel virtual start address and size of the
initial ramdisk.</p>
</dd>
<dt>rd_start</dt><dd><p>Start address in sectors of the ramdisk image on a floppy disk.</p>
</dd>
<dt>system_rev</dt><dd><p>system revision number.</p>
</dd>
<dt>system_serial_low / system_serial_high</dt><dd><p>system 64-bit serial number</p>
</dd>
<dt>mem_fclk_21285</dt><dd><p>The speed of the external oscillator to the 21285 (footbridge),
which control’s 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.</p>
</dd>
<dt>paths[8][128]</dt><dd><p>These are now obsolete, and should not be used.</p>
</dd>
<dt>commandline</dt><dd><p>Kernel command line parameters. Details can be found elsewhere.</p>
</dd>
</dl>
</div></blockquote>
</section>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©The kernel development community.
|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
& <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>
|
<a href="../../_sources/arch/arm/setup.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Folder | 0755 |
|
||
| keystone | Folder | 0755 |
|
|
| nwfpe | Folder | 0755 |
|
|
| omap | Folder | 0755 |
|
|
| pxa | Folder | 0755 |
|
|
| sa1100 | Folder | 0755 |
|
|
| samsung | Folder | 0755 |
|
|
| spear | Folder | 0755 |
|
|
| sti | Folder | 0755 |
|
|
| stm32 | Folder | 0755 |
|
|
| sunxi | Folder | 0755 |
|
|
| vfp | Folder | 0755 |
|
|
| arm.html | File | 21.31 KB | 0644 |
|
| booting.html | File | 20.57 KB | 0644 |
|
| cluster-pm-race-avoidance.html | File | 31.14 KB | 0644 |
|
| features.html | File | 19.66 KB | 0644 |
|
| firmware.html | File | 13.86 KB | 0644 |
|
| index.html | File | 16.01 KB | 0644 |
|
| interrupts.html | File | 18.73 KB | 0644 |
|
| ixp4xx.html | File | 19.27 KB | 0644 |
|
| kernel_mode_neon.html | File | 18.64 KB | 0644 |
|
| kernel_user_helpers.html | File | 20.2 KB | 0644 |
|
| marvell.html | File | 59.02 KB | 0644 |
|
| mem_alignment.html | File | 13.41 KB | 0644 |
|
| memory.html | File | 16.07 KB | 0644 |
|
| microchip.html | File | 20.99 KB | 0644 |
|
| netwinder.html | File | 16.51 KB | 0644 |
|
| porting.html | File | 16.77 KB | 0644 |
|
| setup.html | File | 15 KB | 0644 |
|
| sunxi.html | File | 18.79 KB | 0644 |
|
| swp_emulation.html | File | 11.99 KB | 0644 |
|
| tcm.html | File | 17.34 KB | 0644 |
|
| uefi.html | File | 14.41 KB | 0644 |
|
| vlocks.html | File | 18.73 KB | 0644 |
|