uboot移植记录

uboot移植记录
uboot是一种bootloader,是一个裸机代码 ,作用是用于启动linux,初始化内核,把内核镜像(zimage)从EMMC拷贝到DDR中。
uboot是.bin文件

a. 工具链准备
先将arm-eabi-4.8.tar.bz2拷至/usr/local/arm/
解压在当前目录: tar xvfj arm-eabi-4.8.tar.bz2

b. 准备工程
#mkdir /opt/mkplat
#mkdir /opt/mkplat/build_uboot
#cd /opt/mkplat/build_uboot
将u-boot-2014.07_cfg.tar.gz拷至本目录

c. 配置编译
#tar xvfz u-boot-2014.07_cfg.tar.gz
解压之后可以看到以下文件:
u-boot-2014.07_cfg

u-boot-2014.07_cfg就是我们要编译的包

#cd u-boot-2014.07_cfg

//清除编译文件
make distclean CROSS_COMPILE=/usr/local/arm/arm-eabi-4.8/bin/arm-eabi-

//配置
若不修改makefile 语句中就要加粗体字uboot移植记录

make x6818_config CROSS_COMPILE=/usr/local/arm/arm-eabi-4.8/bin/arm-eabi-
细节:make x6818_config

//编译
make -j3 CROSS_COMPILE=/usr/local/arm/arm-eabi-4.8/bin/arm-eabi-
经过上面操作之后,会发现在当前的目录下多了一个

ubootpak.bin,这个就是要烧写到开发板的bootloader

d. 下载烧写到开发板测试
数据线链接 fastboot烧写过去