?? sacsng.h
字號:
"run boot-hook\\;" \ "bootm\0" \"root-on-initrd-debug="\ "setenv bootcmd "\ "version\\;" \ "echo\\;" \ "bootp\\;" \ "setenv bootargs root=/dev/ram0 rw debug " \ "ip=\\$(ipaddr):\\$(serverip):\\$(gatewayip):\\$(netmask):\\$(hostname)::off\\;" \ "run debug-hook\\;" \ "run boot-hook\\;" \ "bootm\0" \"root-on-nfs="\ "setenv bootcmd "\ "version\\;" \ "echo\\;" \ "bootp\\;" \ "setenv bootargs root=/dev/nfs rw quiet " \ "nfsroot=\\$(serverip):\\$(rootpath) " \ "ip=\\$(ipaddr):\\$(serverip):\\$(gatewayip):\\$(netmask):\\$(hostname)::off\\;" \ "run boot-hook\\;" \ "bootm\0" \"root-on-nfs-debug="\ "setenv bootcmd "\ "version\\;" \ "echo\\;" \ "bootp\\;" \ "setenv bootargs root=/dev/nfs rw debug " \ "nfsroot=\\$(serverip):\\$(rootpath) " \ "ip=\\$(ipaddr):\\$(serverip):\\$(gatewayip):\\$(netmask):\\$(hostname)::off\\;" \ "run debug-hook\\;" \ "run boot-hook\\;" \ "bootm\0" \"debug-checkout="\ "setenv checkhostname;" \ "setenv ethaddr 00:09:70:00:00:01;" \ "bootp;" \ "setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) debug " \ "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off;" \ "run debug-hook;" \ "run boot-hook;" \ "bootm\0" \"debug-hook="\ "echo ipaddr $(ipaddr);" \ "echo serverip $(serverip);" \ "echo gatewayip $(gatewayip);" \ "echo netmask $(netmask);" \ "echo hostname $(hostname)\0" \"ana=run adc ; run dac\0" \"adc=run adc-12 ; run adc-34\0" \"adc-12=echo ### ADC-12 ; imd.b e 81 e\0" \"adc-34=echo ### ADC-34 ; imd.b f 81 e\0" \"dac=echo ### DAC ; imd.b 11 81 5\0" \"boot-hook=echo\0"/* What should the console's baud rate be? */#define CONFIG_BAUDRATE 9600/* Ethernet MAC address */#define CONFIG_ETHADDR 00:09:70:00:00:00/* The default Ethernet MAC address can be overwritten just once */#ifdef CONFIG_ETHADDR#define CONFIG_OVERWRITE_ETHADDR_ONCE 1#endif/* * Define this to do some miscellaneous board-specific initialization. */#define CONFIG_MISC_INIT_R/* Set to a positive value to delay for running BOOTCOMMAND */#define CONFIG_BOOTDELAY 1 /* autoboot after 1 second *//* Be selective on what keys can delay or stop the autoboot process * To stop use: " " */#define CONFIG_AUTOBOOT_KEYED#define CONFIG_AUTOBOOT_PROMPT "Autobooting...\n"#define CONFIG_AUTOBOOT_STOP_STR " "#undef CONFIG_AUTOBOOT_DELAY_STR#define CONFIG_ZERO_BOOTDELAY_CHECK#define DEBUG_BOOTKEYS 0/* Define a command string that is automatically executed when no character * is read on the console interface withing "Boot Delay" after reset. */#define CONFIG_BOOT_ROOT_INITRD 0 /* Use ram disk for the root file system */#define CONFIG_BOOT_ROOT_NFS 1 /* Use a NFS mounted root file system */#if CONFIG_BOOT_ROOT_INITRD#define CONFIG_BOOTCOMMAND \ "version;" \ "echo;" \ "bootp;" \ "setenv bootargs root=/dev/ram0 rw quiet " \ "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off;" \ "run boot-hook;" \ "bootm"#endif /* CONFIG_BOOT_ROOT_INITRD */#if CONFIG_BOOT_ROOT_NFS#define CONFIG_BOOTCOMMAND \ "version;" \ "echo;" \ "bootp;" \ "setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) quiet " \ "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off;" \ "run boot-hook;" \ "bootm"#endif /* CONFIG_BOOT_ROOT_NFS */#define CONFIG_BOOTP_RANDOM_DELAY /* Randomize the BOOTP retry delay *//* Add support for a few extra bootp options like: * - File size * - DNS (up to 2 servers) * - Send hostname to DHCP server */#define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT | \ CONFIG_BOOTP_BOOTFILESIZE | \ CONFIG_BOOTP_DNS | \ CONFIG_BOOTP_DNS2 | \ CONFIG_BOOTP_SEND_HOSTNAME)/* undef this to save memory */#define CFG_LONGHELP/* Monitor Command Prompt */#define CFG_PROMPT "=> "#undef CFG_HUSH_PARSER#ifdef CFG_HUSH_PARSER#define CFG_PROMPT_HUSH_PS2 "> "#endif/* When CONFIG_TIMESTAMP is selected, the timestamp (date and time) * of an image is printed by image commands like bootm or iminfo. */#define CONFIG_TIMESTAMP/* If this variable is defined, an environment variable named "ver" * is created by U-Boot showing the U-Boot version. */#define CONFIG_VERSION_VARIABLE/* What U-Boot subsytems do you want enabled? */#ifdef CONFIG_ETHER_ON_FCC# define CONFIG_COMMANDS (((CONFIG_CMD_DFL & ~(CFG_CMD_KGDB))) | \ CFG_CMD_ELF | \ CFG_CMD_ASKENV | \ CFG_CMD_ECHO | \ CFG_CMD_I2C | \ CFG_CMD_SPI | \ CFG_CMD_SDRAM | \ CFG_CMD_REGINFO | \ CFG_CMD_IMMAP | \ CFG_CMD_IRQ | \ CFG_CMD_PING | \ CFG_CMD_MII )#else# define CONFIG_COMMANDS (((CONFIG_CMD_DFL & ~(CFG_CMD_KGDB))) | \ CFG_CMD_ELF | \ CFG_CMD_ASKENV | \ CFG_CMD_ECHO | \ CFG_CMD_I2C | \ CFG_CMD_SPI | \ CFG_CMD_SDRAM | \ CFG_CMD_REGINFO | \ CFG_CMD_IMMAP | \ CFG_CMD_IRQ | \ CFG_CMD_PING )#endif /* CONFIG_ETHER_ON_FCC *//* Where do the internal registers live? */#define CFG_IMMR 0xF0000000#undef CONFIG_WATCHDOG /* disable the watchdog *//***************************************************************************** * * You should not have to modify any of the following settings * *****************************************************************************/#define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */#define CONFIG_SBC8260 1 /* on an EST SBC8260 Board */#define CONFIG_SACSng 1 /* munged for the SACSng *//* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */#include <cmd_confdefs.h>/* * Miscellaneous configurable options */#define CFG_BOOTM_HEADER_QUIET 1 /* Suppress the image header dump */ /* in the bootm command. */#define CFG_BOOTM_PROGESS_QUIET 1 /* Suppress the progress displays, */ /* "## <message>" from the bootm cmd */#define CFG_BOOTP_CHECK_HOSTNAME 1 /* If checkhostname environment is */ /* defined, then the hostname param */ /* validated against checkhostname. */#define CFG_BOOTP_RETRY_COUNT 0x40000000 /* # of timeouts before giving up */#define CFG_BOOTP_SHORT_RANDOM_DELAY 1 /* Use a short random delay value */ /* (limited to maximum of 1024 msec) */#define CFG_CHK_FOR_ABORT_AT_LEAST_ONCE 1 /* Check for abort key presses */ /* at least once in dependent of the */ /* CONFIG_BOOTDELAY value. */#define CFG_CONSOLE_INFO_QUIET 1 /* Don't print console @ startup */#define CFG_FAULT_ECHO_LINK_DOWN 1 /* Echo the inverted Ethernet link */ /* state to the fault LED. */#define CFG_FAULT_MII_ADDR 0x02 /* MII addr of the PHY to check for */ /* the Ethernet link state. */#define CFG_STATUS_FLASH_UNTIL_TFTP_OK 1 /* Keeping the status LED flashing */ /* until the TFTP is successful. */#define CFG_STATUS_OFF_AFTER_NETBOOT 1 /* After a successful netboot, */ /* turn off the STATUS LEDs. */#define CFG_TFTP_BLINK_STATUS_ON_DATA_IN 1 /* Blink status LED based on */ /* incoming data. */#define CFG_TFTP_BLOCKS_PER_HASH 100 /* For every XX blocks, output a '#' */ /* to signify that tftp is moving. */#define CFG_TFTP_HASHES_PER_FLASH 200 /* For every '#' hashes, */ /* flash the status LED. */#define CFG_TFTP_HASHES_PER_LINE 65 /* Only output XX '#'s per line */ /* during the tftp file transfer. */#define CFG_TFTP_PROGESS_QUIET 1 /* Suppress the progress displays */ /* '#'s from the tftp command. */#define CFG_TFTP_STATUS_QUIET 1 /* Suppress the status displays */ /* issued during the tftp command. */#define CFG_TFTP_TIMEOUT_COUNT 5 /* How many timeouts TFTP will allow */ /* before it gives up. */#if (CONFIG_COMMANDS & CFG_CMD_KGDB)# define CFG_CBSIZE 1024 /* Console I/O Buffer Size */#else# define CFG_CBSIZE 256 /* Console I/O Buffer Size */#endif/* Print Buffer Size */#define CFG_PBSIZE (CFG_CBSIZE + sizeof(CFG_PROMPT)+16)#define CFG_MAXARGS 32 /* max number of command args */#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */#define CFG_LOAD_ADDR 0x400000 /* default load address */#define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */#define CFG_ALT_MEMTEST /* Select full-featured memory test */#define CFG_MEMTEST_START 0x2000 /* memtest works from the end of */ /* the exception vector table */ /* to the end of the DRAM */ /* less monitor and malloc area */#define CFG_STACK_USAGE 0x10000 /* Reserve 64k for the stack usage */#define CFG_MEM_END_USAGE ( CFG_MONITOR_LEN \ + CFG_MALLOC_LEN \ + CFG_ENV_SECT_SIZE \ + CFG_STACK_USAGE )#define CFG_MEMTEST_END ( CFG_SDRAM_SIZE * 1024 * 1024 \ - CFG_MEM_END_USAGE )/* valid baudrates */#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }/* * Low Level Configuration Settings * (address mappings, register initial values, etc.) * You should know what you are doing if you make changes here. */#define CFG_FLASH_BASE CFG_FLASH0_BASE#define CFG_FLASH_SIZE CFG_FLASH0_SIZE#define CFG_SDRAM_BASE CFG_SDRAM0_BASE#define CFG_SDRAM_SIZE CFG_SDRAM0_SIZE/*----------------------------------------------------------------------- * Hard Reset Configuration Words */#if defined(CFG_SBC_BOOT_LOW)# define CFG_SBC_HRCW_BOOT_FLAGS (HRCW_CIP | HRCW_BMS)#else# define CFG_SBC_HRCW_BOOT_FLAGS (0)#endif /* defined(CFG_SBC_BOOT_LOW) *//* get the HRCW ISB field from CFG_IMMR */#define CFG_SBC_HRCW_IMMR ( ((CFG_IMMR & 0x10000000) >> 10) | \ ((CFG_IMMR & 0x01000000) >> 7) | \ ((CFG_IMMR & 0x00100000) >> 4) )#define CFG_HRCW_MASTER ( HRCW_BPS10 | \ HRCW_DPPC11 | \ CFG_SBC_HRCW_IMMR | \ HRCW_MMR00 | \ HRCW_LBPC11 | \ HRCW_APPC10 | \ HRCW_CS10PC00 | \ (CFG_SBC_MODCK_H & HRCW_MODCK_H1111) | \ CFG_SBC_HRCW_BOOT_FLAGS )/* no slaves */#define CFG_HRCW_SLAVE1 0#define CFG_HRCW_SLAVE2 0#define CFG_HRCW_SLAVE3 0#define CFG_HRCW_SLAVE4 0#define CFG_HRCW_SLAVE5 0#define CFG_HRCW_SLAVE6 0#define CFG_HRCW_SLAVE7 0/*----------------------------------------------------------------------- * Definitions for initial stack pointer and data area (in DPRAM) */#define CFG_INIT_RAM_ADDR CFG_IMMR#define CFG_INIT_RAM_END 0x4000 /* End of used area in DPRAM */#define CFG_GBL_DATA_SIZE 128 /* bytes reserved for initial data */#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)#define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET/*----------------------------------------------------------------------- * Start addresses for the final memory configuration * (Set up by the startup code) * Please note that CFG_SDRAM_BASE _must_ start at 0 * Note also that the logic that sets CFG_RAMBOOT is platform dependent. */#define CFG_MONITOR_BASE CFG_FLASH0_BASE#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)# define CFG_RAMBOOT#endif#define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */#define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() *//* * For booting Linux, the board info and command line data * have to be in the first 8 MB of memory, since this is * the maximum mapped by the Linux kernel during initialization. */#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux *//*----------------------------------------------------------------------- * FLASH and environment organization */#define CFG_FLASH_CFI 1 /* Flash is CFI conformant */#undef CFG_FLASH_PROTECTION /* use hardware protection */#define CFG_MAX_FLASH_BANKS 2 /* max number of memory banks */#define CFG_MAX_FLASH_SECT (64+4) /* max number of sectors on one chip */#define CFG_FLASH_ERASE_TOUT 8000 /* Timeout for Flash Erase (in ms) */#define CFG_FLASH_WRITE_TOUT 1 /* Timeout for Flash Write (in ms) */#ifndef CFG_RAMBOOT# define CFG_ENV_IS_IN_FLASH 1# ifdef CFG_ENV_IN_OWN_SECT
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -