2011年10月4日 星期二

U-Boot-( 可修改的 ) The hardware dependent configuration and supported hardware model

=============================
SPI Flash support list 在這裡看到可支援的spi flash 型號

Location:
$U-boot_DIR/ include/ spi_type.h
Define:
spi_info[]={ ... };

=============================
U-Boot version (see at booting message) 可以修改開機訊息顯示的版本別

Location:
$U-Boot_DIR/ lib_$ARCH/ board.c
Define:
const char version_string[] = $VERSION;

show message:
U-Boot 1.3.0 (Jan 20 2011 - 09:06:50)

****checksum is effected.****

=============================
U-Boot TEXT_BASE

FILE Location:
$U-Boot_DIR/ board/ $VENDOR/ $BOARD/config.mk

Code:
# RAM version
TEXT_BASE = 0xa000000

u-boot 存放在memory的位置

=============================
U-Boot Hardware dep. Setting Declare.

***宣告要包 哪種 Hardware的設定值
File Location:
$U-Boot_DIR/ include/config.h

Code:
#include _ configs/$BOARD.h _



***硬體相關名稱 ( mk檔多會用到,(if)define亦是 )
File Location:
$U-Boot_DIR/ include/config.mk

Code:
ARCH = $ARCH
CPU = $CPU
BOARD = $BOARD
VENDOR = $VENDOR


***define HW 週邊設定、宣告,時脈、I2C、SPI、bootargs、USB‧‧‧等
File Location:
$U-Boot_DIR/ include/ configs/ $BOARD.h

Code: (部分代碼)
...
#define CONFIG_BAUDRATE 115200
...
#define CONFIG_LOADADDR 0xa0000000 /* default load address */
...