1、简介
典型的Uboot启动分为两个阶段,bootrom->SPL(Secondary Program Loader)->ATF->OPTEE(可选)->Uboot。其中SPL为BL2,ATF为BL31,OPTEE为BL32,Uboot为BL33。其中bootrom是固化在芯片内部的…
(1)init_baudrate
#波特率初始化
static int init_baudrate (void)
{
#定义缓存空间
char tmp[64]; /* long enough for environment variables */
#将波特率放到缓存空间中,如果成功函数getenv_r返回1
int i getenv_r ("baudrate&quo…
参考:doc/README.standalone The functions are exported by U-Boot via a jump table. 跳转表的初始函数jumptable_init()在common/exports.c文件中实现跳转表结构体在include/exports.h文件中定义 // u-boot/include/asm-generic/global_data.h
typedef struct gl…
前言
Das U-Boot 是一个主要用于嵌入式系统的引导加载程序,可以支持多种不同的计算机系统结构,包括PPC、ARM、AVR32、MIPS、x86、68k、Nios与MicroBlaze。这也是一套在GNU通用公共许可证之下发布的自由软件。 一言以蔽之,uboot的功能就是用户…
目录
Linux 工程目录分析
顶层Makefile详解
make xxx_defconfig过程
Makefile.build脚本分析
make过程
built-in.o文件编译生成过程
make zImage过程 Linux 工程目录分析
将正点原子提供的Linux源码进行解压,解压完成以后的目录如图所示: 图就是正点原子提供的未编译的…
在start_armboot()函数中调用mmc_initialize(0)初始化mmc;最终调用到int hi_mci_initialize(unsigned int dev_num)函数;内容如下:static int hi_mci_initialize(unsigned int dev_num)
{struct mmc *mmc NULL;static struct himci_host *host;unsigned int regval;unsigned l…