本文转载自:https://blog.csdn.net/chenzhen1080/article/details/54945992?utm_source=blogxgwz8

1 Boot Address for Processors使用的处理器
chipsets里有不同的处理器,下图显示了处理器的类型以及启动地址
Subsystem     Processor     Boot address
APPS     Cortex-A53     0x00100000*
RPM     Cortex-M3     0x00200000           |
(Subsystem view)   |   0x0(System view)
Modem     MSS_QDSP6     Configurable*
WCNSS (Pronto)      ARM9     0x0 or 0xFFFF0000 or hardware remap*
LPASS     LPASS_QDSP6      Configurable*         |        LPASS
*No change in the boot address in system and subsystem views
APPS:应用处理器
RPM:resource and power management 用来进行电源管理
Modem:打电话2G 3G 4G的相关功能 (由dsp实现)
WCNSS:wireless connectivity network subsystem,wifi上网
LPASS:low power audio subsystem,低功耗音频子系统(sensorhub也在这里实现)(由dsp实现)

2 Boot Call Stack  
Component
组件     Based on
processor
哪个处理器执行     Loaded from
从哪加载       Executes in
再哪里执行     Function
功能
Application Processor
Primary Boot Loader
(APPS PBL)
AP的第一个Bootloader     Cortex-A53
(AArch32)     NA     APPS ROM     Boot device and interface detection,
Emergency Download mode support,
loads and authenticates SBL1 ELF
segments across L2TCM, and RPM
code RAM
Secondary Boot
Loader stage 1 (SBL1)
第二个bootloader的
第一阶段     Cortex-A53
(AArch32)     eMMC     
L2 TCM
(segment1)     L2 TCM
OCIMEM     —
RPM code RAM
(segment2)     RPM code
RAM
    Initial memory subsystem (buses,
DDR, clocks, and CDT), loads/
authorizes TrustZone, DEVCFG,
RPM_FW, APPS BL images, memory
dump via USB 2.0 and Sahara,
Watchdog debug retention, e.gfor
example, L2 flush, RAM dump to
eMMC/SD support, USB driver
support, USB charging, thermal
check, PMIC driver support,
configures DDR, and flushes
L1/L2/ETB to crash debug
support-related configuration
QSEE/TrustZone     Cortex-A53
(AArch64)     eMMC     LPDDR3     Equivalent to TZBSP; sets up secure
runtime environment, configures xPU,
supports fuse driver, authenticates
any subsystem images; abnormal
RESET debug functionality is added
DEVCFG     Cortex-A53
(AArch64)     eMMC     LPDDR3     OEM configurable data, for example,
xPU configuration, PIL loading image
regions

Component     Based on
processor     Loaded from      Executes in     Function
Debug policy1
(fuse的机器可以调试,
是可选的)     Cortex-A53
(Aarch 32)     eMMC     LPDDR3     Enables debugging on commercial
secure devices
Resource Power
Manager Firmware
(RPM_FW)     Cortex-M3     eMMC     RPM code RAM     Resource power management
APPSBL/boot
manager and
OS loader
(就是lk)     Cortex-A532
(AArch32/
AArch64)     eMMC     LPDDR3     Splash screen, loads and
authenticates the kernel, and
provides HLOS-specific boot loader
features using UEFI
High-Level Operating
System (HLOS)
(就是android)     Cortex-A53
(AArch32/
AArch64)     eMMC     LPDDR3     Boots HLOS images, for example,
A53 HLOS kernel image, WCNSS
(Pronto) image, and so on.
Modem Primary Boot
Loader (Modem PBL)
(modem的bootloader)     MSS_QDSP6      NA     Modem ROM
Qualcomm® Hexagon™ TCM
(data and stack)     Sets up Hexagon TCM, copies MBA
from LPDDR3 into Hexagon TCM,
and authenticates MBA in Hexagon
TCM
Modem Boot
Authenticator (MBA)
(modem验证)     MSS_QDSP6      eMMC     Hexagon TCM     Authenticates the modem image, xPU
protects the DDR regions for modem,
and memory dump
1Debug policy image is an optional image loaded by the SBL. See Debug Policy User Guide for MSM8996, MSM8976, MSM8956
(80-NV396-72).
2LK boot loader will start in 32-bit
PS:debug policy是针对fuse过的机器,让fuse过的机器也可以调试

3 Boot Code Flow启动流程

Boot Flowchart
1. The system powers on and takes the MSM8937/MSM8953/MSM8940 apps  processor CPU out of reset.
按下power键后,MSM8937/MSM8953/MSM8940的apps处理器开始执行,APPS PBL在ROM里执行
2. In Cortex-A53, APPS PBL loads and authenticates the following:
  a. SBL1 segment 1 from the boot device to L2 (as TCM)
  将sbl1加载到l2中
  b. SBL1 segment 2 (SDI equivalent) to RPM code RAM, then jumps to SBL1
  将RPM的代码加载到RPM的code RAM中,跳转执行SBL1
3. SBL1 segment 1 initializes DDR and loads and authenticates the following:
  a. QSEE/TrustZone image from the boot device to DDR
  将QSEE/TrustZone加载到DDR
  b. DEVCFG image from the boot device to DDR
  将DEVCFG 加载到DDR
  c. Debug Policy image from the boot device to DDR
  将Debug Policy加载到DDR
  d. HLOS APPSBL image from the boot device to DDR
  将APPSBL(即lk)加载到DDR
  e. RPM firmware image from the boot device to RPM code RAM
  将RPM firmware image加载到DDR
4. SBL1 transfers the execution to QSEE/TrustZone. QSEE/TrustZone sets up a  secure environment, configures xPU, and supports the fuse driver.
  sbl1执行完后,执行QSEE,QSEE设置安全环境,配置xPU,
  a. SBL1 runs in AArch32 mode. QSEE/TrustZone runs in AArc64 mode. For AArch64 mode switch, SBL1 sets boot remapper for QSEE entry and writes to RMR register, and then triggers warm-reset. QSEE now starts in AArch64 mode.
  SBL1运行在AArch32 模式,QSEE/TrustZone运行在AArc64 模式,SBL1将QSEE 的入口remap,写RMR寄存器,warm-reset,这样QSEE就在AArch64 模式
5. QSEE notifies RPM to start the RPM firmware execution.
  QSEE通知RPM执行RPM的固件

6. QSEE transfers execution to the HLOS APPSBL to initialize the system.
   HLOS APPSBL (即lk)初始化系统
  a. The Linux APPS boot loader (HLOS APPSBL) starts the execution in AArch32 mode only.
  HLOS APPSBL运行在AArch32 模式
  b. This is done by EL3/Monitor mode by looking at the ELF header for HLOS APPSBL, which indicates that it uses 32-bit instruction set architecture. EL3/Monitor mode changes to 32-bit mode and starts Linux APPS boot loader (HLOS APPSBL) execution in 32-bit mode.
  通过查看 HLOS APPSBL的ELF的文件头,需要使用32位的指令集,系统切换到32位的模式
7. The HLOS APPSBL loads and authenticates the HLOS kernel. The Linux APPS boot loader (HLOS APPSBL) will indicate about the HLOS kernel AArch64 mode by making an SCM call to secure the monitor before exiting. LK does not jump into the kernel directly as it did previously.
 HLOS APPSBL(即lk)加载内核,通过SCM调用切换到AArch64 模式
8. The HLOS kernel loads the MBA to DDR via PIL.
HLOS kernel 通过pil加载MBA到DDR
9. The HLOS kernel brings the Hexagon modem DSP out of reset.
HLOS kernel复位modem的DSP
10. The Modem PBL then continues its boot process.
Modem的PBL执行
11. The HLOS kernel loads the AMSS modem image to DDR via PIL.
HLOS kernel 通过pil加载AMSS modem image 到DDR
12. The Modem PBL authenticates MBA and then jumps to it.
modem的PBL验证MBA,然后跳进执行
13. HLOS loads the WCNSS (Pronto) image to DDR via PIL.
HLOS kernel 通过pil加载WCNSS 到DDR
14. HLOS brings the WCNSS (Pronto) image out of reset so that the Pronto image starts executing.
HLOS复位wifi的处理器,wifi的固件开始执行
15. HLOS loads the LPASS image to DDR via PIL.
HLOS kernel 通过pil加载LPASS(音频子系统)到DDR
16. HLOS brings the LPASS image out of reset so that the LPASS image starts executing.
HLOS kernel 复位处理音频的dsp,音频子系统开始运行
---------------------
作者:茫茫大士
来源:CSDN
原文:https://blog.csdn.net/chenzhen1080/article/details/54945992
版权声明:本文为博主原创文章,转载请附上博文链接!

转载于:https://www.cnblogs.com/zzb-Dream-90Time/p/10000579.html

MSM8937系统启动流程【转】相关推荐

  1. +++++++X86平台系统启动流程

    操作系统的组成.内核的功能.库.函数.头文件.函数名.Linux内核.X86平台系统启动流程 忘记密码如何登陆系统 操作系统的组成:kernel + rootfs , kernel + 应用程序 ke ...

  2. CentOS系统启动流程

    CentOS系统启动流程 POST-->Boot Sequence(BIOS) -->bootloader(MBR)-->Kernel-->rootfs(readonly)-- ...

  3. linux系统启动流程详解

    系统启动流程(CentOS6) Post加电自检: 开机检查cpu.内存.磁盘等是否存在 Boot Sequence: BIOS:Basic Input and Output System 按照BIO ...

  4. Linux 操作系统原理 — 系统启动流程

    目录 文章目录 目录 系统启动流程 编辑 gurb.cfg RHEL7 的启动级别 RHEL7 破密码步骤 grup2 加密,防止破密码 initramfs 文件 系统启动流程 RHEL7 使用了 G ...

  5. Linux 系统启动流程及其介绍

    熟悉Linux系统启动流程可以更好的排除Linux系统在启动的过程中所遇到的错误,下面介绍Linux系统在启动过程. 开机,BIOS自检:检测外置设备,目的是为了把外围设备的信息提供给操作系统使用 寻 ...

  6. 内核电源管理器已启动关机转换_Linux系统启动流程

    Linux系统启动流程 电源开关 (手动操作按钮 / 加电自启动 ) 加载bios : 最接近硬件的软件 各家厂商都会开发适合自己主板的bios BIOS加电自检 只有硬件没有问题的情况下才能运行软件 ...

  7. 【Android 系统开发】 Android 系统启动流程简介

    作者 : 万境绝尘 (octopus_truth@163.com) 转载请注明出处 : http://blog.csdn.net/shulianghan/article/details/3889548 ...

  8. 嵌入式系统启动流程和启动代码的作用 !

    嵌入式系统启动流程启动代码的作用 一般嵌入式开发流程就是先建立一个工程,再编写源文件,然后进行编译,把所有的*.s 文件和*.c 文件编译成一个*.o 文件,再对目标文件进行链接和定位,编译成功后会生 ...

  9. Linux的系统启动流程

    Linux的系统启动流程 一.systemd进程介绍 1.systemd服务介绍 2.systemd功能 3.服务单元 3.查看以激活状态的服务单元 4.查看服务之间的依赖关系 二.Linux的运行级 ...

  10. CentOS系统启动流程及GRUB文件说明

    CentOS系统启动流程及GRUB文件说明 时间:2013-10-24 01:33来源:"过程就是为了实现结果" 博客 作者:本站 举报 点击:1114次 id="ifr ...

最新文章

  1. Code::Blocks 使用技巧总结
  2. jdk安装教程_在JDK 12精简数字格式中使用最小分数数字
  3. python自带的数据库_Python小白的数据库入门
  4. JavaWeb中post提交乱码之编码拦截器Filter
  5. 装配bean的三种方式
  6. 自动驾驶路径规划论文解析(6)
  7. 基于JAVA+SpringMVC+Mybatis+MYSQL的高校学生健康档案管理系统
  8. Deep learning 学习开篇
  9. Pandas 数据处理三板斧,你会几板?
  10. 防火墙状态检测及会话表技术
  11. turtle实例2 奥运五环
  12. 图文详解:微信公众号申请流程
  13. wordpress优化title的seo技巧
  14. Python标记函数或类为废弃(deprecated)并在Pychram或Idea中检测提示删除线
  15. 小白必看:IT转行需要注意什么,这几个问题很重要
  16. Innovus中useful skew的设置
  17. vim中文乱码问题的解决
  18. grep的-A-B-选项详解
  19. EasyRecovery15Mac全面好用的苹果电脑数据恢复app
  20. 小米盒子挂载ext4移动硬盘

热门文章

  1. HybridPose:混合表示下的6D对象姿态估计
  2. minimumsnap(1)微分平坦特性(Differential Flatness)
  3. Android驱动开发过程中常用的adb指令
  4. Android相同包名不同签名的apk安装失败问题分析
  5. 2019,谁把握了 “私域流量”,谁就把握了未来十年!私域流量的未来是矩阵化!...
  6. 无法打开html5,IE浏览器无法打开怎么办
  7. 使用计算机粘贴板的步骤,电脑中快速打开剪贴板查看器的方法
  8. 《Google Android开发入门与实战》
  9. Zemax单透镜设计
  10. c语言程序设计马秀丽课后题答案,c语言程序设计课后题答案马秀丽