uboot Readme中文注释Word文件下载.docx

上传人:b****3 文档编号:18432080 上传时间:2022-12-16 格式:DOCX 页数:117 大小:86.21KB
下载 相关 举报
uboot Readme中文注释Word文件下载.docx_第1页
第1页 / 共117页
uboot Readme中文注释Word文件下载.docx_第2页
第2页 / 共117页
uboot Readme中文注释Word文件下载.docx_第3页
第3页 / 共117页
uboot Readme中文注释Word文件下载.docx_第4页
第4页 / 共117页
uboot Readme中文注释Word文件下载.docx_第5页
第5页 / 共117页
点击查看更多>>
下载资源
资源描述

uboot Readme中文注释Word文件下载.docx

《uboot Readme中文注释Word文件下载.docx》由会员分享,可在线阅读,更多相关《uboot Readme中文注释Word文件下载.docx(117页珍藏版)》请在冰豆网上搜索。

uboot Readme中文注释Word文件下载.docx

-mcf5227xFilesspecifictoFreescaleColdFireMCF5227xCPUs

-mcf532xFilesspecifictoFreescaleColdFireMCF5329CPUs

-mcf5445xFilesspecifictoFreescaleColdFireMCF5445xCPUs

-mcf547x_8xFilesspecifictoFreescaleColdFireMCF547x_8xCPUs

-mipsFilesspecifictoMIPSCPUs

-mpc5xxFilesspecifictoFreescaleMPC5xxCPUs

-mpc5xxxFilesspecifictoFreescaleMPC5xxxCPUs

-mpc8xxFilesspecifictoFreescaleMPC8xxCPUs

-mpc8220FilesspecifictoFreescaleMPC8220CPUs

-mpc824xFilesspecifictoFreescaleMPC824xCPUs

-mpc8260FilesspecifictoFreescaleMPC8260CPUs

-mpc85xxFilesspecifictoFreescaleMPC85xxCPUs

-niosFilesspecifictoAlteraNIOSCPUs

-nios2FilesspecifictoAlteraNios-IICPUs

-ppc4xxFilesspecifictoAMCCPowerPC4xxCPUs

-pxaFilesspecifictoIntelXScalePXACPUs

-s3c44b0FilesspecifictoSamsungS3C44B0CPUs

-sa1100FilesspecifictoIntelStrongARMSA1100CPUs

-diskCodefordiskdrivepartitionhandling

磁盘驱动,及分区操作的代码

-docDocumentation(don'

texpecttoomuch)

文档(不要期待太多(搞不懂为什么了?

))

-driversCommonlyuseddevicedrivers

通用设备驱动

-dttDigitalThermometerandThermostatdrivers

数字温度器及调温装置驱动

-examplesExamplecodeforstandaloneapplications,etc.

独立应用程序的例子

-includeHeaderFiles

头文件

-lib_armFilesgenerictoARMarchitecture

ARM体系结构通用的文件

-lib_avr32FilesgenerictoAVR32architecture

-lib_genericFilesgenerictoallarchitectures

所有体系结构通用的文件

-lib_i386Filesgenerictoi386architecture

-lib_m68kFilesgenerictom68karchitecture

-lib_mipsFilesgenerictoMIPSarchitecture

-lib_niosFilesgenerictoNIOSarchitecture

-lib_ppcFilesgenerictoPowerPCarchitecture

-lib_sparcFilesgenerictoSPARCarchitecture

-libfdtLibraryfilestosupportflatteneddevicetrees

支持平板设备树的库文件

-netNetworkingcode

网络代码

-postPowerOnSelfTest

上电自检

-rtcRealTimeClockdrivers

实时时钟驱动

-toolsToolstobuildS-RecordorU-Bootimages,etc.

编译S-Record和U-Boot镜像的工具

-api

1.3版本的UBOOT还增加了一个API的文件夹,

这里放的是一些扩展应用的独立的API函数

SoftwareConfiguration:

软件配置:

=======================

ConfigurationisusuallydoneusingCpreprocessordefines;

the

rationalebehindthatistoavoiddeadcodewheneverpossible.

配置是通过C预处理程序完成。

Therearetwoclassesofconfigurationvariables:

有两类配置变量:

*Configuration_OPTIONS_:

配置选项:

Theseareselectablebytheuserandhavenamesbeginningwith

"

CONFIG_"

.

是可由用户选择并以“CONFIG_”开头

*Configuration_SETTINGS_:

配置设置

Thesedependonthehardwareetc.andshouldnotbemeddledwithif

youdon'

tknowwhatyou'

redoing;

theyhavenamesbeginningwith

CFG_"

依赖于硬件,由“CFG_”开头

Laterwewilladdaconfigurationtool-probablysimilartooreven

identicaltowhat'

susedfortheLinuxkernel.Rightnow,wehaveto

dotheconfigurationbyhand,whichmeanscreatingsomesymbolic

linksandeditingsomeconfigurationfiles.WeusetheTQM8xxLboards

asanexamplehere.

以后我们将加入类似Linux内核一样的配置工具。

但现在只能手工配置。

我们将以TQM8XXL为例。

第一步:

SelectionofProcessorArchitectureandBoardType:

选择处理器架构和板类型:

---------------------------------------------------

Forallsupportedboardsthereareready-to-usedefault

configurationsavailable;

justtype"

make<

board_name>

_config"

对所有已至此的板都已经有可用的默认配置,只要执行:

boare_name>

_config

下面是例子

Example:

ForaTQM823Lmoduletype:

cdu-boot

makeTQM823L_config

FortheCogentplatform,youneedtospecifytheCPUtypeaswell;

e.g."

makecogent_mpc8xx_config"

.Andalsoconfigurethecogent

directoryaccordingtotheinstructionsincogent/README.

对于加强型平台还要指定CPU类型,请阅读cogent/READM

 

第二步

ConfigurationOptions:

配置选项:

----------------------

ConfigurationdependsonthecombinationofboardandCPUtype;

all

suchinformationiskeptinaconfigurationfile

配置依赖于板和CPU,所有配置设置信息保存在:

"

include/configs/<

.h"

ForaTQM823Lmodule,allconfigurationsettingsarein

include/configs/TQM823L.h"

ManyoftheoptionsarenamedexactlyasthecorrespondingLinux

kernelconfigurationoptions.Theintentionistomakeiteasierto

buildaconfigtool-later.

Thefollowingoptionsneedtobeconfigured:

以下的选项需要被配置:

这里MPC的配置比较多,如果是SMDK2410的话配置会少很多

-CPUType:

Defineexactlyone,e.g.CONFIG_MPC85XX.

CPU类型:

正确地定义一个种类,比如:

CONFIG_MPC85XX

-BoardType:

Defineexactlyone,e.g.CONFIG_MPC8540ADS.

板类型:

比如:

CONFIG_MPC8540ADS

-CPUDaughterboardType:

(ifCONFIG_ATSTK1000isdefined)

Defineexactlyone,e.g.CONFIG_ATSTK1002

CPU子类

-CPUModuleType:

(ifCONFIG_COGENTisdefined)

Defineexactlyoneof

CONFIG_CMA286_60_OLD

CPU模型

---FIXME---nottestedyet:

CONFIG_CMA286_60,CONFIG_CMA286_21,CONFIG_CMA286_60P,

CONFIG_CMA287_23,CONFIG_CMA287_50

-MotherboardType:

CONFIG_CMA101,CONFIG_CMA102

主板

-MotherboardI/OModules:

Defineoneormoreof

CONFIG_CMA302

主板I/O模式

-MotherboardOptions:

(ifCONFIG_CMA101orCONFIG_CMA102aredefined)

CONFIG_LCD_HEARTBEAT-updateacharacterpositionon

theLCDdisplayeverysecondwith

a"

rotator"

|\-/|\-/

-Boardflavour:

(ifCONFIG_MPC8260ADSisdefined)

CONFIG_ADSTYPE

Possiblevaluesare:

CFG_8260ADS-originalMPC8260ADS

CFG_8266ADS-MPC8266ADS

CFG_PQ2FADS-PQ2FADS-ZUorPQ2FADS-VR

CFG_8272ADS-MPC8272ADS

-MPC824XFamilyMember(ifCONFIG_MPC824Xisdefined)

CONFIG_MPC8240,CONFIG_MPC8245

-8xxCPUOptions:

(ifusinganMPC8xxCPU)

CONFIG_8xx_GCLK_FREQ-deprecated:

CPUclockif

get_gclk_freq()cannotwork

e.g.ifthereisno32KHz

referencePIT/RTCclock

CONFIG_8xx_OSCLK-PLLinputclock(eitherEXTCLK

orXTAL/EXTAL)

-859/866/885CPUoptions:

(ifusingaMPC859orMPC866orMPC885CPU):

CFG_8xx_CPUCLK_MIN

CFG_8xx_CPUCLK_MAX

CONFIG_8xx_CPUCLK_DEFAULT

Seedoc/README.MPC866

CFG_MEASURE_CPUCLK

DefinethistomeasuretheactualCPUclockinstead

ofrelyingonthecorrectnessoftheconfigured

values.Mostlyusefulforboardbringuptomakesure

thePLLislockedattheintendedfrequency.Note

thatthisrequiresa(stable)referenceclock(32kHz

RTCclockorCFG_8XX_XIN)

-IntelMonahansoptions:

CFG_MONAHANS_RUN_MODE_OSC_RATIO

DefinestheMonahansrunmodetooscillator

ratio.Validvaluesare8,16,24,31.Thecore

frequencyisthisvaluemultipliedby13MHz.

CFG_MONAHANS_TURBO_RUN_MODE_RATIO

DefinestheMonahansturbomodetooscillator

ratio.Validvaluesare1(defaultifundefined)and

2.Thecorefrequencyascalculatedaboveismultiplied

bythisvalue.

-LinuxKernelInterface:

-Linux内核接口

CONFIG_CLOCKS_IN_MHZ

U-BootstoresallclockinformationinHz

internally.

UBOOT以Hz位单位存储时钟信息

ForbinarycompatibilitywitholderLinux

kernels(whichexpecttheclockspassedinthe

bd_infodatatobeinMHz

Linux内核期望时钟是以MHz位单位传到bd_info的)

theenvironmentvariable

为了和内核兼容可以定义环境变量

"

clocks_in_mhz"

canbedefinedsothatU-Boot

convertsclockdatatoMHZbeforepassingittothe

Linuxkernel.

把UBOOT的时钟数据转换位MHz后传入内核

WhenCONFIG_CLOCKS_IN_MHZisdefined,adefinitionof

clocks_in_mhz=1"

isautomaticallyincludedinthe

defaultenvironment.

当CONFIG_CLOCKS_IN_MHZ被定义后clocks_in_mhz=1

会被自动包含到环境中

CONFIG_MEMSIZE_IN_BYTES[relevantforMIPSonly]

只跟MIPS相关

Whentransferringmemsizeparametertolinux,someversions

expectittobeinbytes,othersinMB.

DefineCONFIG_MEMSIZE_IN_BYTEStomakeitinbytes.

对于内存大小的参数可以定义CONFIG_MEMSIZE_IN_BYTES

以BYTES位单位

CONFIG_OF_LIBFDT

Newkernelversionsareexpectingfirmwaresettingstobe

passedusingflatteneddevicetrees(basedonopenfirmware

concepts).

*Newlibfdt-basedsupport

*Addsthe"

fdt"

command

*Thebootmcommandautomaticallyupdatesthefdt

OF_CPU-Thepropernameofthecpusnode.

OF_SOC-Thepropernameofthesocnode.

OF_TBCLK-Thetimebasefrequency.

OF_STDOUT_PATH-Thepathtotheconsoledevice

boardswithQUICCEnginesrequireOF_QEtosetUCCMAC

addresses

CONFIG_OF_BOARD_SETUP

Boardcodehasadditionmodificationthatitwantstomake

totheflatdevicetreebeforehandingitofftothekernel

CONFIG_OF_BOOT_CPU

ThisdefinefillsinthecorrectbootCPUintheboot

paramheader,thedefaultvalueiszeroifundefined.

-SerialPorts:

-串口

CFG_PL010_SERIAL

DefinethisifyouwantsupportforAmbaPrimeCellPL010UARTs.

要支持AmbaPrimeCellPL010UARTs就定义此项

CFG_PL011_SERIAL

DefinethisifyouwantsupportforAmbaPrimeCellPL011UARTs.

CONFIG_PL011_CLOCK

IfyouhaveAmbaPrimeCellPL011UARTs,setthisvariableto

theclockspeedoftheUARTs.

CONFIG_PL01x_PORTS

IfyouhaveAmbaPrimeCellPL010orPL011UARTs

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1