手机版
你好,游客 登录 注册
背景:
阅读新闻

U-Boot-2011.06的README翻译

[日期:2011-08-12] 来源:Linux社区  作者:csuwzc [字体:大 中 小]

配置太多了,这里有选择地忽略了一部分内容。

Selection of Processor Architecture and Board Type:
选择处理器体系结构和开发板类型:
---------------------------------------------------

For all supported boards there are ready-to-use default configurations available; just type "make <board_name>_config".
对于支持的所有开发板,都有一个现成可用的默认配置,仅需要输入"make <开发板名字>_config"即可:

Example: For a TQM823L module type:
例如:对于TQM823L:

 cd u-boot
 make TQM823L_config

For the Cogent platform, you need to specify the CPU type as well; e.g. "make cogent_mpc8xx_config". And also configure the cogent directory according to the instructions in cogent/README.
对于Cogent平台,你需要指定CPU类型,例如"make cogent_mpc8xx_config"。此外,还需要按照cogent/README的说明配置cogent目录。


Configuration Options:
配置选项:
----------------------

Configuration depends on the combination of board and CPU type; all such information is kept in a configuration file "include/configs/<board_name>.h".
配置选项依赖于开发板和CPU的组合,所有的这些信息保存在配置文件"include/configs/<开发板名字>.h"中。

Example: For a TQM823L module, all configuration settings are in "include/configs/TQM823L.h".
例如:TQM823L的所有配置的设置在"include/configs/TQM823L.h"中。


Many of the options are named exactly as the corresponding Linux kernel configuration options. The intention is to make it easier to build a config tool - later.
许多选项和对应的Linux内核的配置选择命名完全相同,目的是在使以后建立配置工具更简单。


The following options need to be configured:
一下选项需要配置:

- CPU Type: Define exactly one, e.g. CONFIG_MPC85XX.
- CPU类型:只能定义一个,比如CONFIG_MPC85XX.

- Board Type: Define exactly one, e.g. CONFIG_MPC8540ADS.
- 开发板类型:只能定义一个,比如CONFIG_MPC8540ADS.

- CPU Daughterboard Type: (if CONFIG_ATSTK1000 is defined)
 Define exactly one, e.g. CONFIG_ATSTK1002
- CPU子板类型:(如果定义了ONFIG_ATSTK1000)只能定义一个,例如CONFIG_ATSTK1002

- CPU Module Type: (if CONFIG_COGENT is defined)
  Define exactly one of
  CONFIG_CMA286_60_OLD
--- FIXME --- not tested yet:
  CONFIG_CMA286_60, CONFIG_CMA286_21, CONFIG_CMA286_60P,
  CONFIG_CMA287_23, CONFIG_CMA287_50
- CPU组件类型:(如果定义了CONFIG_COGENT)只能定义以下配置中的一个
  CONFIG_CMA286_60_OLD
--- 需要整理 --- 尚未测试:
  CONFIG_CMA286_60, CONFIG_CMA286_21, CONFIG_CMA286_60P,
  CONFIG_CMA287_23, CONFIG_CMA287_50

- Motherboard Type: (if CONFIG_COGENT is defined)
  Define exactly one of
  CONFIG_CMA101, CONFIG_CMA102
- 母板类型:(如果定义了CONFIG_COGENT)
  只能定义以下配置之一
  CONFIG_CMA101, CONFIG_CMA102
……

- Linux Kernel Interface:
- Linux内核接口
  CONFIG_CLOCKS_IN_MHZ

  U-Boot stores all clock information in Hz internally. For binary compatibility with older Linux kernels (which expect the clocks passed in the bd_info data to be in MHz) the environment variable "clocks_in_mhz" can be defined so that U-Boot converts clock data to MHZ before passing it to the Linux kernel. When CONFIG_CLOCKS_IN_MHZ is defined, a definition of  "clocks_in_mhz=1" is automatically included in the default environment.
  U-Boot内部使用Hz来存储所有的时钟信息。为了与旧内核(旧内核使用MHZ)的二进制兼容,应该定义环境变量"clocks_in_mhz"以使U-Boot在将时钟数据传递给Linux内核内核前将其转换为MHZ。如果定义了CONFIG_CLOCKS_IN_MHZ,则"clocks_in_mhz=1"的定义会自动包含到默认的环境变量中。

  CONFIG_MEMSIZE_IN_BYTES  [relevant for MIPS only]

  When transferring memsize parameter to linux, some versions expect it to be in bytes, others in MB. Define CONFIG_MEMSIZE_IN_BYTES to make it in bytes.
  仅和MIPS相关。当传递内存大小参数给内核时,一些版本以字节为单位,另一些以MB为单位。定义CONFIG_MEMSIZE_IN_BYTES将以字节为单位。

  CONFIG_OF_LIBFDT

  New kernel versions are expecting firmware settings to be passed using flattened device trees (based on open firmware concepts).
  新的内核版本要求用flattened设备树传递固件设置(基于开放固件思想?)

  CONFIG_OF_LIBFDT
   * New libfdt-based support
   * Adds the "fdt" command
   * The bootm command automatically updates the fdt

  OF_CPU - The proper name of the cpus node (only required for
   MPC512X and MPC5xxx based boards).
  OF_SOC - The proper name of the soc node (only required for
   MPC512X and MPC5xxx based boards).
  OF_TBCLK - The timebase frequency.
  OF_STDOUT_PATH - The path to the console device

  boards with QUICC Engines require OF_QE to set UCC MAC
  addresses

  CONFIG_OF_BOARD_SETUP

  Board code has addition modification that it wants to make to the flat device tree before handing it off to the kernel
  

  CONFIG_OF_BOOT_CPU

  This define fills in the correct boot CPU in the boot param header, the default value is zero if undefined.
  这个定义在启动参数头中填充正确的启动CPU,如果没有定义,默认值将是0

  CONFIG_OF_IDE_FIXUP

  U-Boot can detect if an IDE device is present or not. If not, and this new config option is activated, U-Boot removes the ATA node from the DTS before booting Linux, so the Linux IDE driver does not probe the device and crash. This is needed for buggy hardware (uc101) where no pull down resistor is connected to the signal IDE5V_DD7.
  U-Boot会检测是否存在IDE设备,如果不存在,并且激活了这个选项,那么U-Boot将在启动Linux前从DTS中删除ATA结点,因此,Linux的IDE驱动不会探测IDE设备并崩溃。这个选项用于那些有bug的硬件(uc101),这些硬件没有下拉电阻连接到IDE5V_DD7。

- vxWorks boot parameters:
- vxWorks启动参数:
 ……
- Serial Ports:
- 串口:
 ……
- Console Interface:
- 控制台接口:

- Console Baudrate:
- 控制台波特率:
  CONFIG_BAUDRATE - in bps                                                     单位bps
  Select one of the baudrates listed in                                            从下面定义的波特率列表中选择一个
  CONFIG_SYS_BAUDRATE_TABLE, see below.
  CONFIG_SYS_BRGCLK_PRESCALE, baudrate prescale

- Console Rx buffer length
- 控制台接收缓冲长度
  仅82xx and 8xx可能使用。
 ……

- Boot Delay: CONFIG_BOOTDELAY - in seconds
  Delay before automatically booting the default image;set to -1 to disable autoboot.
  在自动启动默认镜像前的延时,单位是秒,设为-1可禁用自动启动

  See doc/README.autoboot for these options that work with CONFIG_BOOTDELAY. None are required.
  阅读doc/README.autoboot可以了解下面这些同CONFIG_BOOTDELAY一起工作的选项。它们都不是必须的。
  CONFIG_BOOT_RETRY_TIME
  CONFIG_BOOT_RETRY_MIN
  CONFIG_AUTOBOOT_KEYED
  CONFIG_AUTOBOOT_PROMPT
  CONFIG_AUTOBOOT_DELAY_STR
  CONFIG_AUTOBOOT_STOP_STR
  CONFIG_AUTOBOOT_DELAY_STR2
  CONFIG_AUTOBOOT_STOP_STR2
  CONFIG_ZERO_BOOTDELAY_CHECK
  CONFIG_RESET_TO_RETRY

- Autoboot Command:
  CONFIG_BOOTCOMMAND
  Only needed when CONFIG_BOOTDELAY is enabled; define a command string that is automatically executed when no character is read on the console interface within "Boot Delay" after reset.
  仅CONFIG_BOOTDELAY使能时需要,定义一个命令字符串,如果复位后在Boot Dealy时间内没有从控制台读入任何字符,则自动执行该字符串定义的命令。

  CONFIG_BOOTARGS
  This can be used to pass arguments to the bootm command. The value of CONFIG_BOOTARGS goes into the environment value "bootargs".
  用于向bootm命令传递参数。CONFIG_BOOTARGS的值将会加入环境变量"bootargs"中

  CONFIG_RAMBOOT and CONFIG_NFSBOOT
  The value of these goes into the environment as "ramboot" and "nfsboot" respectively, and can be used as a convenience, when switching between booting from RAM and NFS.
  它们的值将分别加入环境变量"ramboot"和"nfsboot"中,可为从RAM或NFS启动切换提供方便

- Pre-Boot Commands:
- 预启动命令:
……

- Serial Download Echo Mode:
- 串口下载回显模式:
  CONFIG_LOADS_ECHO
  If defined to 1, all characters received during a serial download (using the "loads" command) are echoed back. This might be needed by some terminal emulations (like "cu"), but may as well just take time on others. This setting #define's the initial value of the "loads_echo" environment variable.
  如果定义为1,所有通过串口下载(使用loads命令)接收的字符会回显。这可能被某些终端模拟器(比如cu)需要。

……

- Monitor Functions:
- U-Boot功能:
  Monitor commands can be included or excluded from the build by using the #include files "config_cmd_all.h" and #undef'ing unwanted commands, or using "config_cmd_default.h"  and augmenting with additional #define's for wanted commands.
  U-Boot命令可以包含或排除在生成中,可以使用#include "config_cmd_all.h"并用#undef排除不需要的命令的方式,也可以使用include "config_cmd_default.h"并用define添加需要命令的方式。

  The default command configuration includes all commands except those marked below with a "*".
  默认命令包含如下除标以*的所有命令。

  CONFIG_CMD_ASKENV * ask for env variable
  CONFIG_CMD_BDI    bdinfo
  CONFIG_CMD_BEDBUG * Include BedBug Debugger
  CONFIG_CMD_BMP  * BMP support
  CONFIG_CMD_BSP  * Board specific commands
  CONFIG_CMD_BOOTD   bootd
  CONFIG_CMD_CACHE * icache, dcache
  CONFIG_CMD_CONSOLE   coninfo
  CONFIG_CMD_CRC32 * crc32
  CONFIG_CMD_DATE  * support for RTC, date/time...
  CONFIG_CMD_DHCP  * DHCP support
  CONFIG_CMD_DIAG  * Diagnostics
  CONFIG_CMD_DS4510 * ds4510 I2C gpio commands
  CONFIG_CMD_DS4510_INFO * ds4510 I2C info command
  CONFIG_CMD_DS4510_MEM * ds4510 I2C eeprom/sram commansd
  CONFIG_CMD_DS4510_RST * ds4510 I2C rst command
  CONFIG_CMD_DTT  * Digital Therm and Thermostat
  CONFIG_CMD_ECHO    echo arguments
  CONFIG_CMD_EDITENV   edit env variable
  CONFIG_CMD_EEPROM * EEPROM read/write support
  CONFIG_CMD_ELF  * bootelf, bootvx
  CONFIG_CMD_EXPORTENV * export the environment
  CONFIG_CMD_SAVEENV   saveenv
  CONFIG_CMD_FDC  * Floppy Disk Support
  CONFIG_CMD_FAT  * FAT partition support
  CONFIG_CMD_FDOS  * Dos diskette Support
  CONFIG_CMD_FLASH   flinfo, erase, protect
  CONFIG_CMD_FPGA    FPGA device initialization support
  CONFIG_CMD_GO  * the 'go' command (exec code)
  CONFIG_CMD_GREPENV * search environment
  CONFIG_CMD_HWFLOW * RTS/CTS hw flow control
  CONFIG_CMD_I2C  * I2C serial bus support
  CONFIG_CMD_IDE  * IDE harddisk support
  CONFIG_CMD_IMI    iminfo
  CONFIG_CMD_IMLS    List all found images
  CONFIG_CMD_IMMAP * IMMR dump support
  CONFIG_CMD_IMPORTENV * import an environment
  CONFIG_CMD_IRQ  * irqinfo
  CONFIG_CMD_ITEST   Integer/string test of 2 values
  CONFIG_CMD_JFFS2 * JFFS2 Support
  CONFIG_CMD_KGDB  * kgdb
  CONFIG_CMD_LDRINFO   ldrinfo (display Blackfin loader)
  CONFIG_CMD_LOADB   loadb
  CONFIG_CMD_LOADS   loads
  CONFIG_CMD_MD5SUM   print md5 message digest
       (requires CONFIG_CMD_MEMORY and CONFIG_MD5)
  CONFIG_CMD_MEMORY   md, mm, nm, mw, cp, cmp, crc, base,
       loop, loopw, mtest
  CONFIG_CMD_MISC    Misc functions like sleep etc
  CONFIG_CMD_MMC  * MMC memory mapped support
  CONFIG_CMD_MII  * MII utility commands
  CONFIG_CMD_MTDPARTS * MTD partition support
  CONFIG_CMD_NAND  * NAND support
  CONFIG_CMD_NET    bootp, tftpboot, rarpboot
  CONFIG_CMD_PCA953X * PCA953x I2C gpio commands
  CONFIG_CMD_PCA953X_INFO * PCA953x I2C gpio info command
  CONFIG_CMD_PCI  * pciinfo
  CONFIG_CMD_PCMCIA  * PCMCIA support
  CONFIG_CMD_PING  * send ICMP ECHO_REQUEST to network
       host
  CONFIG_CMD_PORTIO * Port I/O
  CONFIG_CMD_REGINFO * Register dump
  CONFIG_CMD_RUN    run command in env variable
  CONFIG_CMD_SAVES * save S record dump
  CONFIG_CMD_SCSI  * SCSI Support
  CONFIG_CMD_SDRAM * print SDRAM configuration information
       (requires CONFIG_CMD_I2C)
  CONFIG_CMD_SETGETDCR   Support for DCR Register access
       (4xx only)
  CONFIG_CMD_SHA1SUM   print sha1 memory digest
       (requires CONFIG_CMD_MEMORY)
  CONFIG_CMD_SOURCE   "source" command Support
  CONFIG_CMD_SPI  * SPI serial bus support
  CONFIG_CMD_TFTPSRV * TFTP transfer in server mode
  CONFIG_CMD_USB  * USB support
  CONFIG_CMD_CDP  * Cisco Discover Protocol support
  CONFIG_CMD_FSL  * Microblaze FSL support


  EXAMPLE: If you want all functions except of network support you can write:
  例如:如果你需要除网络外的所有功能,你可以这样写:

  #include "config_cmd_all.h"
  #undef CONFIG_CMD_NET

 Other Commands:
  fdt (flattened device tree) command: CONFIG_OF_LIBFDT

 Note: Don't enable the "icache" and "dcache" commands (configuration option CONFIG_CMD_CACHE) unless you know what you (and your U-Boot users) are doing. Data cache cannot be enabled on systems like the 8xx or 8260 (where accesses to the IMMR region must be uncached), and it cannot be disabled on all other systems where we (mis-) use the data cache to hold an initial stack and some data.
 注意:不要使能指令cache和数据cache命令(配置CONFIG_CMD_CACHE选项),除非你知道你(和你的U-Boot用户)知道你在做什么。数据cache不能在像8xx或8260(这里访问IMMR区域必须不能被缓存)这样的系统中启用,但是在其他一些系统中(mis-)数据cache不能被禁用,因为在这些地方我们要使用数据cache保持初始化堆栈和一些数据。


  XXX - this list needs to get updated!
  XXX - 这个列表需要更新

linux
相关资讯       U-boot 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款