系统:Ubuntu 18.04.1 LTS amd64
编译工具链: arm-linux-gcc version 4.4.3
一、 下载uboot源码:
创建Src文件夹用来保存源码,并下载源码:
mkdir Src
wget https://codeload.github.com/friendlyarm/uboot_tiny4412/zip/master
解压:unzip master
二、 Uboot编译
1、关闭MMU
进入源码目录:cd uboot_tiny4412_master
打开文件include/configs/tiny4412.h
将311行 #define CONFIG_ENABLE_MMU#define CONFIG_ENABLE_MMU
修改为:
#undef CONFIG_ENABLE_MMU
打开board/Samsung/tiny4412下的config.mk文件,修改:
‘CONFIG_SYS_TEXT_BASE = 0xc3e00000’
为:
‘CONFIG_SYS_TEXT_BASE = 0x43e00000’
2、编译uboot
在顶层目录中:
make tiny4412_config
make
之后会生成u-boot.bin文件
编译 用于生成bl2 的工具
make -C sd_fuse
TINY4412 Uboot移植并启动内核+文件系统
最新推荐文章于 2022-08-30 21:11:48 发布