创建uboot目录
mkdir /opt/systemmake/uboot
cd /opt/systemmake/uboot
下载uboot源码
https://codeload.github.com/friendlyarm/uboot_tiny4412/zip/master
说明:使用友善原厂光盘提供的uboot源码也可以,推荐使用上方下载链接
解压源码
unzip uboot_tiny4412-master
cd uboot_tiny4412-master
清理配置
make distclean
make clean
修改配置
-
修改include/configs/tiny4412.h文件
vim include/configs/tiny4412.h
修改第311行 #define CONFIG_ENABLE_MMU 为 #undef CONFIG_ENABLE_MMU
-
修改board/samsung/tiny4412/config.mk文件
vim board/samsung/tiny4412/config.mk
修改 CONFIG_SYS_TEXT_BASE = 0xc3e00000 为 CONFIG_SYS_TEXT_BASE = 0x43e00000
-
修改drivers/mmc/mmc.c
vim drivers/mmc/mmc.c
修改第958行 if (ext_csd_struct > 5) 为 if (ext_csd_struct > 7)
注意:如果是原厂提供的源码需要操作这一步,如果是我提供的链接则不用。其次,如果你的emmc是8G需要将5改成7,如果是小于等于4,则将7改成5
编译uboot
make tiny4412_config
time ( make -j 16 )