⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 UBOOT 源码
💻
📖 第 1 页 / 共 5 页
字号:
   -1	common/cmd_doc.c	Bad usage of "doc" command   -1	common/cmd_doc.c	No boot device   -1	common/cmd_doc.c	Unknown Chip ID on boot device   -1	common/cmd_doc.c	Read Error on boot device   -1	common/cmd_doc.c	Image header has bad magic number   -1	common/cmd_ide.c	Bad usage of "ide" command   -1	common/cmd_ide.c	No boot device   -1	common/cmd_ide.c	Unknown boot device   -1	common/cmd_ide.c	Unknown partition table   -1	common/cmd_ide.c	Invalid partition type   -1	common/cmd_ide.c	Read Error on boot device   -1	common/cmd_ide.c	Image header has bad magic number   -1	common/cmd_nand.c	Bad usage of "nand" command   -1	common/cmd_nand.c	No boot device   -1	common/cmd_nand.c	Unknown Chip ID on boot device   -1	common/cmd_nand.c	Read Error on boot device   -1	common/cmd_nand.c	Image header has bad magic number   -1	common/env_common.c	Environment has a bad CRC, using defaultModem Support:--------------[so far only for SMDK2400 and TRAB boards]- Modem support endable:		CONFIG_MODEM_SUPPORT- RTS/CTS Flow control enable:		CONFIG_HWFLOW- Modem debug support:		CONFIG_MODEM_SUPPORT_DEBUG		Enables debugging stuff (char screen[1024], dbg())		for modem support. Useful only with BDI2000.- Interrupt support (PPC):		There are common interrupt_init() and timer_interrupt()		for all PPC archs. interrupt_init() calls interrupt_init_cpu()		for cpu specific initialization. interrupt_init_cpu()		should set decrementer_count to appropriate value. If		cpu resets decrementer automatically after interrupt		(ppc4xx) it should set decrementer_count to zero.		timer_interrupt() calls timer_interrupt_cpu() for cpu		specific handling. If board has watchdog / status_led		/ other_activity_monitor it works automatically from		general timer_interrupt().- General:		In the target system modem support is enabled when a		specific key (key combination) is pressed during		power-on. Otherwise U-Boot will boot normally		(autoboot). The key_pressed() fuction is called from		board_init(). Currently key_pressed() is a dummy		function, returning 1 and thus enabling modem		initialization.		If there are no modem init strings in the		environment, U-Boot proceed to autoboot; the		previous output (banner, info printfs) will be		supressed, though.		See also: doc/README.ModemConfiguration Settings:------------------------ CFG_LONGHELP: Defined when you want long help messages included;		undefine this when you're short of memory.- CFG_PROMPT:	This is what U-Boot prints on the console to		prompt for user input.- CFG_CBSIZE:	Buffer size for input from the Console- CFG_PBSIZE:	Buffer size for Console output- CFG_MAXARGS:	max. Number of arguments accepted for monitor commands- CFG_BARGSIZE: Buffer size for Boot Arguments which are passed to		the application (usually a Linux kernel) when it is		booted- CFG_BAUDRATE_TABLE:		List of legal baudrate settings for this board.- CFG_CONSOLE_INFO_QUIET		Suppress display of console information at boot.- CFG_CONSOLE_IS_IN_ENV		If the board specific function			extern int overwrite_console (void);		returns 1, the stdin, stderr and stdout are switched to the		serial port, else the settings in the environment are used.- CFG_CONSOLE_OVERWRITE_ROUTINE		Enable the call to overwrite_console().- CFG_CONSOLE_ENV_OVERWRITE		Enable overwrite of previous console environment settings.- CFG_MEMTEST_START, CFG_MEMTEST_END:		Begin and End addresses of the area used by the		simple memory test.- CFG_ALT_MEMTEST:		Enable an alternate, more extensive memory test.- CFG_MEMTEST_SCRATCH:		Scratch address used by the alternate memory test		You only need to set this if address zero isn't writeable- CFG_TFTP_LOADADDR:		Default load address for network file downloads- CFG_LOADS_BAUD_CHANGE:		Enable temporary baudrate change while serial download- CFG_SDRAM_BASE:		Physical start address of SDRAM. _Must_ be 0 here.- CFG_MBIO_BASE:		Physical start address of Motherboard I/O (if using a		Cogent motherboard)- CFG_FLASH_BASE:		Physical start address of Flash memory.- CFG_MONITOR_BASE:		Physical start address of boot monitor code (set by		make config files to be same as the text base address		(TEXT_BASE) used when linking) - same as		CFG_FLASH_BASE when booting from flash.- CFG_MONITOR_LEN:		Size of memory reserved for monitor code, used to		determine _at_compile_time_ (!) if the environment is		embedded within the U-Boot image, or in a separate		flash sector.- CFG_MALLOC_LEN:		Size of DRAM reserved for malloc() use.- CFG_BOOTM_LEN:		Normally compressed uImages are limited to an		uncompressed size of 8 MBytes. If this is not enough,		you can define CFG_BOOTM_LEN in your board config file		to adjust this setting to your needs.- CFG_BOOTMAPSZ:		Maximum size of memory mapped by the startup code of		the Linux kernel; all data that must be processed by		the Linux kernel (bd_info, boot arguments, eventually		initrd image) must be put below this limit.- CFG_MAX_FLASH_BANKS:		Max number of Flash memory banks- CFG_MAX_FLASH_SECT:		Max number of sectors on a Flash chip- CFG_FLASH_ERASE_TOUT:		Timeout for Flash erase operations (in ms)- CFG_FLASH_WRITE_TOUT:		Timeout for Flash write operations (in ms)- CFG_FLASH_LOCK_TOUT		Timeout for Flash set sector lock bit operation (in ms)- CFG_FLASH_UNLOCK_TOUT		Timeout for Flash clear lock bits operation (in ms)- CFG_FLASH_PROTECTION		If defined, hardware flash sectors protection is used		instead of U-Boot software protection.- CFG_DIRECT_FLASH_TFTP:		Enable TFTP transfers directly to flash memory;		without this option such a download has to be		performed in two steps: (1) download to RAM, and (2)		copy from RAM to flash.		The two-step approach is usually more reliable, since		you can check if the download worked before you erase		the flash, but in some situations (when sytem RAM is		too limited to allow for a tempory copy of the		downloaded image) this option may be very useful.- CFG_FLASH_CFI:		Define if the flash driver uses extra elements in the		common flash structure for storing flash geometry.- CFG_FLASH_CFI_DRIVER		This option also enables the building of the cfi_flash driver		in the drivers directory- CFG_FLASH_QUIET_TEST		If this option is defined, the common CFI flash doesn't		print it's warning upon not recognized FLASH banks. This		is useful, if some of the configured banks are only		optionally available.- CFG_RX_ETH_BUFFER:		Defines the number of ethernet receive buffers. On some		ethernet controllers it is recommended to set this value		to 8 or even higher (EEPRO100 or 405 EMAC), since all		buffers can be full shortly after enabling the interface		on high ethernet traffic.		Defaults to 4 if not defined.The following definitions that deal with the placement and managementof environment data (variable area); in general, we support thefollowing configurations:- CFG_ENV_IS_IN_FLASH:	Define this if the environment is in flash memory.	a) The environment occupies one whole flash sector, which is	   "embedded" in the text segment with the U-Boot code. This	   happens usually with "bottom boot sector" or "top boot	   sector" type flash chips, which have several smaller	   sectors at the start or the end. For instance, such a	   layout can have sector sizes of 8, 2x4, 16, Nx32 kB. In	   such a case you would place the environment in one of the	   4 kB sectors - with U-Boot code before and after it. With	   "top boot sector" type flash chips, you would put the	   environment in one of the last sectors, leaving a gap	   between U-Boot and the environment.	- CFG_ENV_OFFSET:	   Offset of environment data (variable area) to the	   beginning of flash memory; for instance, with bottom boot	   type flash chips the second sector can be used: the offset	   for this sector is given here.	   CFG_ENV_OFFSET is used relative to CFG_FLASH_BASE.	- CFG_ENV_ADDR:	   This is just another way to specify the start address of	   the flash sector containing the environment (instead of	   CFG_ENV_OFFSET).	- CFG_ENV_SECT_SIZE:	   Size of the sector containing the environment.	b) Sometimes flash chips have few, equal sized, BIG sectors.	   In such a case you don't want to spend a whole sector for	   the environment.	- CFG_ENV_SIZE:	   If you use this in combination with CFG_ENV_IS_IN_FLASH	   and CFG_ENV_SECT_SIZE, you can specify to use only a part	   of this flash sector for the environment. This saves	   memory for the RAM copy of the environment.	   It may also save flash memory if you decide to use this	   when your environment is "embedded" within U-Boot code,	   since then the remainder of the flash sector could be used	   for U-Boot code. It should be pointed out that this is	   STRONGLY DISCOURAGED from a robustness point of view:	   updating the environment in flash makes it always	   necessary to erase the WHOLE sector. If something goes	   wrong before the contents has been restored from a copy in	   RAM, your target system will be dead.	- CFG_ENV_ADDR_REDUND	  CFG_ENV_SIZE_REDUND	   These settings describe a second storage area used to hold	   a redundand copy of the environment data, so that there is	   a valid backup copy in case there is a power failure during	   a "saveenv" operation.BE CAREFUL! Any changes to the flash layout, and some changes to thesource code will make it necessary to adapt <board>/u-boot.lds*accordingly!- CFG_ENV_IS_IN_NVRAM:	Define this if you have some non-volatile memory device	(NVRAM, battery buffered SRAM) which you want to use for the	environment.	- CFG_ENV_ADDR:	- CFG_ENV_SIZE:	  These two #defines are used to determin the memory area you	  want to use for environment. It is assumed that this memory	  can just be read and written to, without any special	  provision.BE CAREFUL! The first access to the environment happens quite earlyin U-Boot initalization (when we try to get the setting of for theconsole baudrate). You *MUST* have mappend your NVRAM area then, orU-Boot will hang.Please note that even with NVRAM we still use a copy of theenvironment in RAM: we could work on NVRAM directly, but we want tokeep settings there always unmodified except somebody uses "saveenv"to save the current settings.- CFG_ENV_IS_IN_EEPROM:	Use this if you have an EEPROM or similar serial access	device and a driver for it.	- CFG_ENV_OFFSET:	- CFG_ENV_SIZE:	  These two #defines specify the offset and size of the	  environment area within the total memory of your EEPROM.	- CFG_I2C_EEPROM_ADDR:	  If defined, specified the chip address of the EEPROM device.	  The default address is zero.	- CFG_EEPROM_PAGE_WRITE_BITS:	  If defined, the number of bits used to address bytes in a	  single page in the EEPROM device.  A 64 byte page, for example	  would require six bits.	- CFG_EEPROM_PAGE_WRITE_DELAY_MS:	  If defined, the number of milliseconds to delay between	  page writes.	The default is zero milliseconds.	- CFG_I2C_EEPROM_ADDR_LEN:	  The length in bytes of the EEPROM memory array address.  Note	  that this is NOT the chip address length!	- CFG_I2C_EEPROM_ADDR_OVERFLOW:	  EEPROM chips that implement "address overflow" are ones	  like Catalyst 24WC04/08/16 which has 9/10/11 bits of	  address and the extra bits end up in the "chip address" bit	  slots. This makes a 24WC08 (1Kbyte) chip look like four 256	  byte chips.	  Note that we consider the length of the address field to	  still be one byte because the extra address bits are hidden	  in the chip address.	- CFG_EEPROM_SIZE:	  The size in bytes of the EEPROM device.- CFG_ENV_IS_IN_DATAFLASH:	Define this if you have a DataFlash memory device which you	want to use for the environment.	- CFG_ENV_OFFSET:	- CFG_ENV_ADDR:	- CFG_ENV_SIZE:	  These three #defines specify the offset and size of the	  environment area within the total memory of your DataFlash placed	  at the specified address.- CFG_ENV_IS_IN_NAND:	Define this if you have a NAND device which you want to use	for the environment.	- CFG_ENV_OFFSET:	- CFG_ENV_SIZE:	  These two #defines specify the offset and size of the environment	  area within the first NAND device.	- CFG_ENV_OFFSET_REDUND	  This setting describes a second storage area of CFG_ENV_SIZE	  size used to hold a redundant copy of the environment data,	  so that there is a valid backup copy in case there is a	  power failure during a "saveenv" operation.	Note: CFG_ENV_OFFSET and CFG_ENV_OFFSET_REDUND must be aligned	to a block boundary, and CFG_ENV_SIZE must be a multiple of	the NAND devices block size.- CFG_SPI_INIT_OFFSET	Defines offset to the initial SPI buffer area in DPRAM. The	area is used at an early stage (ROM part) if the environment	is configured to reside in the SPI EEPROM: We need a 520 byte	scratch DPRAM area. It is used between the two initialization	calls (spi_init_f() and spi_init_r()). A value of 0xB00 seems	to be a good choice since it makes it far enough from the	start of the data area as well as from the stack pointer.Please note that the environment is read-only as long as the monitorhas been relocated to RAM 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -