|
$ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/u-boot login
$ cvs -z6 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/u-boot \
co -P u-boot
官方发布的U-Boot也可以通过FTP方式获取。你可以到
ftp://ftp.denx.de/pub/u-boot/
下载tar形式的压缩包。
5.2 源代码包的解压
如果你是通过CVS得到的U-Boot源代码,你可以跳过这一步,因为你得到的已经是解压后的目录树了。如果你是从FTP服务器上下载的tar压缩包,那么你需要按照以下步骤解压:
$ cd /opt/eldk/usr/src
$ wget ftp://ftp.denx.de/pub/u-boot/u-boot-0.4.5.tar.bz2
$ rm -f u-boot
$ bunzip2 < u-boot-0.4.5.tar.bz2 tar xf -
$ ln -s u-boot-0.4.5 u-boot
$ cd u-boot
5.3 配置
进入U-Boot源代码根目录后,可以先使用如下命令确保已经清除以前编译的结果:
$ make distclean
下一步是为TQM8xxL板配置U-Boot:
$ make tqm8xxl_config
(译者注:应该根据你自己的具体开发板配置,如
$ make <yourboard>_config,如果没有相应的开发板,应该自己照着建立相应的目录和配置文件。)
最后我们可以开始编译U-Boot了:
$ make all
5.4 安装
5.4.1 动手之前
5.4.1.1 安装所需
上一篇:完全控制桌面的实现
下一篇:The DENX U-Boot and Linux Guide (DULG) for TQM8xxL
|