2010年2月10日

CVS Command

Root:
#export CVSROOT=:pserver:[user name]@[server]:/share/service/cvs

Checkout:
#cvs checkout -d [folder name] -r [tag] "[server code path]"

Commit:
#cvs commit -m "[log]"

Branch:
#cvs tag -b [branch name]

Checkout Branch:
#cvs checkout -d [folder name] -r [branch name] "[server code path]"

Look Up Version:
#cvs status -v

Look Up Log:
#cvs log -S -d "2005/10/1<2005/10/3">
/*To show the headers of files in the current directory created after October 1, 2005 through the present time*/

Add Tag:
#cvs tag tag_name

checkout by tag:
#cvs co -r tag_name output_path

checkout by date:
#cvs checkout -D "mm/dd/yyyy hh:mm" -d [folder name] "[server code path]"

look changelog
#cvs2cl.pl -r
#vim ChangeLog

UBOOT-gd

gd指標在需要使用它的函數中定義(用DECLARE_GLOBAL_DATA_PTR)為一各區域變數
因為在uboot中用一個固定的暫存器來存放這個指標,所以即使是區域變數,但是他再所有使用到他的地方都是一樣的值,這個值在board_init_f中初始化,指向CFG_GBL_DATA_ADDR