一、相关资料获取
我个人在学习 mini2440 开发板时是跟着韦东山老师的视频学习的,视频和资料可以访问百问网论坛获取。
百问网论坛链接: http://www.100ask.net/bbs/forum.php
下载好资料后在 "JZ2440资料光盘" 文件中 systems 目录下可以获取到 u-boot-1.1.6.tar.bz2(U-Boot 源码包)和 u-boot-1.1.6_jz2440.patch(韦东山老师移植到 S3C2440 处理器的 patch 包)。
二、配置编译 U-Boot
1. 将下载好的 U-Boot 源码包和对应的 Patch 包复制到 Ubuntu 虚拟机 /home/user/workspace/s3c2440/package 目录下。
2. 解压 U-Boot 到上级目录,也就是 /home/user/workspace/s3c2440/ 目录下。
user@vmware:~/workspace/s3c2440/package$ tar jxf u-boot-1.1.6.tar.bz2 -C ../
3. 切换到 U-Boot 目录下,给 U-Boot 打补丁。
user@vmware:~/workspace/s3c2440/package$ cd ../u-boot-1.1.6/
user@vmware:~/workspace/s3c2440/u-boot-1.1.6$ patch -p1 < ../package/u-boot-1.1.6_jz2440.patch
4. 配置 U-Boot。
user@vmware:~/workspace/s3c2440/u-boot-1.1.6$ make 100ask24x0_config
Configuring for 100ask24x0 board...
5. 开始编译 U-Boot。
user@lenovo:~/workspace/s3c2440/u-boot-1.1.6$ make
6. 编译成功后会在当前目录下生成 u-boot.bin 文件,此 u-boot 文件适用于 JZ2440、TQ2440、MINI2440 开发板。
user@vmware:~/workspace/s3c2440/u-boot-1.1.6$ ls -l u-boot.bin
-rwxrwxr-x 1 user user 198316 10月 8 22:22 u-boot.bin
相关文章









