[国嵌笔记][028][Bootloader设计蓝图]

Bootloader的作用就是启动Linux内核

 

U-Boot简介

1.U-Boot是用于多种嵌入式CPU(ARM、x86、MIPS等)的bootloader程序,U-Boot不仅支持嵌入式Linux系统的引导,还支持VxWorks、QNX等多种嵌入式操作系统

2.uboot自动启动Linux的模式叫做自主模式;uboot在启动倒计时,停止启动的模式叫开发模式

 

建立uboot代码工程

1.安装source insight,方便进行大量代码的阅读

2.建立工程

project->new project->browse(uboot)->project has its own configuration file

3.解压uboot源码

注意:必须要在Linux下解压源码,因为在源码中有很多大小写不同但文件名相同的文件,Windows无法区分文件名的大小写

4.通过在Windows下的source insight访问Linux下的源码

工具->映射网络驱动器->\192.168.1.109 ootspaceworkguoqian00uboot

5.在source insight中添加uboot源码

project->add and remove project file...->add all->recursively add lower sub-directories(添加子目录文件)-close

添加汇编文件

options->document options...->document type(c source file)->file(*.c;*.h;*.s;*.S)

再次添加文件

project->add and remove project file...->add tree->close

同步文件

点击书的图标进行同步

原文地址:https://www.cnblogs.com/d442130165/p/4897702.html