//位置:Documentation/arm/Setup
KernelinitialisationparametersonARMLinux
在ARM平台上的内核初始化参数
---------------------------------------------
Thefollowingdocumentdescribesthekernelinitialisationparameter
structure,otherwiseknownas'structparam_struct'whichisused
formostARMLinuxarchitectures.
下述文档描述了内核的初始化参数结构,也被叫做'stuctparam_struct',它
被用作大多数的arm体系结构。
Thisstructureisusedtopassinitialisationparametersfromthe
kernelloadertotheLinuxkernelproper,andmaybeshortlived
throughthekernelinitialisationprocess.Asageneralrule,it
shouldnotbereferencedoutsideofarch/arm/kernel/setup.c:setup_arch().
这个结构被拿来将初始化参数从内核加载器完完全全的传递到linux内核中,可能
在内核初始化过程中是短暂的,作为一个通用的准则linux内核文件放在哪,他不应当被arch/arm/kernel/setup.c:setup_arch()
之外的方式引用。
Therearealotofparameterslistedinthere,andtheyaredescribed
below:
有好多参数列在哪里,但是她们将会在下文中被描述:
page_size
Thisparametermustbesettothepagesizeofthemachine,and
willbecheckedbythekernel.
这个参数必须设置机器的页大小,而且会被内核检测。
nr_pages
Thisisthetotalnumberofpagesofmemoryinthesystem.If
thememoryisbanked,thenthisshouldcontainthetotalnumber
ofpagesinthesystem.
这个是系统中显存页的所有的数目。假如显存是堆积上去的,这么这个应当
包含在系统中的所有的页数。
IfthesystemcontainsseparateVRAM,thisvalueshouldnot
includethisinformation.
假如一个系统包含独立的VRAM(VideoRandomaccessmemory),这个
参数应当不会包含这个信息。
ramdisk_size
Thisisnowobsolete,andshouldnotbeused.
这个参数如今早已过时了,不应当使用了。
flags
好多内核标示,包括:
Variouskernelflags,including:
bit0-1=mountrootreadonly位0=挂在根目录但是只读
bit1-unused位1=没有被使用
bit2-0=loadramdisk位2=加载显存c盘
bit3-0=promptforramdisk位3=提示显存
rootdev
major/minornumberpairofdevicetomountastherootfilesystem.
挂载主设备号/次设备号作为根文件系统
video_num_cols
video_num_rows
Thesetwotogetherdescribethecharactersizeofthedummyconsole,
orVGAconsolecharactersize.Theyshouldnotbeusedforanyother
purpose.
这两个在一起描述了虚拟控制台的字符大小,或则是VGA控制台的字符大小。她们不能
被用作其他的目的。
It'sgenerallyagoodideatosetthesetobeeitherstandardVGA,or
theequivalentcharactersizeofyourfbcondisplay.Thisthenallows
allthebootupmessagestobedisplayedcorrectly.
这一般是一个好注意,通过设置这两个参数来作为标准VGA,或则是平衡你的fbcan显示
的字符大小。这能否准许所有的启动信息都还能正确的显示。
video_x
video_y
ThisdescribesthecharacterpositionofcursoronVGAconsole,and
isotherwiseunused.(shouldnotusedforotherconsoletypes,and
shouldnotbeusedforotherpurposes).
这两个参数描述了在VGA控制台上光标的字符位置,否则也不能被使用(不能被
其他的控制台类型使用,也不能用作其他的目的)。
memc_control_reg
MEMCchipcontrolregisterforAcornArchimedesandAcornA5000
basedmachines.Maybeuseddifferentlybydifferentarchitectures.
MEMC芯片控制寄存器用于基于AcornArchimedes和AcornA5000的机器。不同
的体系结构使用方法可能是不一样的。
sounddefault
DefaultsoundsettingonAcornmachines.Maybeuseddifferentlyby
differentarchitectures.
在Acorn机器上的默认的声音设置linux查看硬件信息什么是linux,体系结构不同使用方法可能不同。
adfsdrives
NumberofADFS/MFMdisks.Maybeuseddifferentlybydifferent
architectures.
ADFS/MFMc盘的数目。体系结构不同使用方法可能不同。
bytes_per_char_h
bytes_per_char_v
Thesearenowobsolete,andshouldnotbeused.
这两个参数如今早已过时了,不应当使用了。
pages_in_bank[4]
Numberofpagesineachbankofthesystemsmemory(usedforRiscPC).
Thisisintendedtobeusedonsystemswherethephysicalmemory
isnon-contiguousfromtheprocessorspointofview.
在系统显存的每一个bank中页的数目(用于RISCPC)。
pages_in_vram
NumberofpagesinVRAM(usedonAcornRiscPC).Thisvaluemayalso
beusedbyloadersifthesizeofthevideoRAMcan'tbeobtained
fromthehardware.
在VRAM中页的数目(用于ACRON精简指令集的PC中)。假如主板的数目不能从
硬件中获得linux内核文件放在哪,这个参数也会被加载机使用。
initrd_start
initrd_size
Thisdescribesthekernelvirtualstartaddressandsizeofthe
initialramdisk.
这两个参数分别描述的是内核的虚拟启动地址和启动c盘的大小。
rd_start
Startaddressinsectorsoftheramdiskimageonafloppydisk.
在一个软驱中,c盘镜像的磁道的开始地址。
system_rev
systemrevisionnumber.
系统修订号
system_serial_low
system_serial_high
system64-bitserialnumber
系统64位序列号
mem_fclk_21285
Thespeedoftheexternaloscillatortothe21285(footbridge),
whichcontrolsthespeedofthememorybus,timer&serialport.
Dependinguponthespeedofthecpuitsvaluecanbebetween
0-66MHz.Ifnoparamsarepassedoravalueofzeroispassed,
thenavalueof50Mhzisthedefaulton21285architectures.
外部振荡器达到21285的速率,外部振荡器控制着显存总线的速率,时钟和序列号。
依赖于cpu的速率,他的值介于0-66MHZ。假如没有参数被传递或则是传递的参数
是0,这么在21285体系结构中,这个参数的默认值是50MHZ。
paths[8][128]
Thesearenowobsolete,andshouldnotbeused.
这个参数现今早已过时了,不应当使用了。
commandline
Kernelcommandlineparameters.Detailscanbefoundelsewhere.
内核命令行参数。具体的细节可以在别的地方找到。
文章评论