2025-04-23 17:54:31 +08:00
<!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "zh-cn" lang = "zh-cn" data-whc_version = "26.1" >
2025-07-22 11:15:46 +08:00
< head > < meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" / > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" / > < meta http-equiv = "X-UA-Compatible" content = "IE=edge" / > < meta name = "description" content = "OTA 文件结构 OTA 源码位于 Luban-Lite 根目录中的 packages/artinchip/ota/ 文件夹 ,文件结构如下: ├── absystem.c # 文件系统挂载源文件 ├── absystem.h ├── burn.c # FLASH 固化接口源文件 ├── burn.h ├── ota.c # OTA 接口源文件 ├── ota.h └── test_ota.c # ..." / > < meta name = "DC.rights.owner" content = "(C) 版权 2025" / > < meta name = "copyright" content = "(C) 版权 2025" / > < meta name = "generator" content = "DITA-OT" / > < meta name = "DC.type" content = "topic" / > < meta name = "DC.relation" content = "../../../topics/sdk/ota/ota_guide.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/ota/ota_programming.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/ota/ota_faq_lite.html" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.date.modified" content = "2025-05-16" / > < meta name = "DC.format" content = "HTML5" / > < meta name = "DC.identifier" content = "id" / > < meta name = "DC.language" content = "zh-CN" / > < title > 设计说明< / title > <!-- Generated with build number 2025051600. --> < meta name = "wh-path2root" content = "../../../" / > < meta name = "wh-toc-id" content = "id-d3752e1253" / > < meta name = "wh-source-relpath" content = "topics/sdk/ota/ota_design_lite.dita" / > < meta name = "wh-out-relpath" content = "topics/sdk/ota/ota_design_lite.html" / >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/app/commons.css?buildId=2024041900" / >
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/app/topic.css?buildId=2024041900" / >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< script src = "../../../webhelp/app/options/properties.js?buildId=20250519091401" > < / script >
2025-04-23 17:54:31 +08:00
< script src = "../../../webhelp/app/localization/strings.js?buildId=2024041900" > < / script >
2025-07-22 11:15:46 +08:00
< script src = "../../../webhelp/app/search/index/keywords.js?buildId=20250519091401" > < / script >
2025-04-23 17:54:31 +08:00
< script defer = "defer" src = "../../../webhelp/app/commons.js?buildId=2024041900" > < / script >
< script defer = "defer" src = "../../../webhelp/app/topic.js?buildId=2024041900" > < / script >
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-styles-web-internal.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/notes.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-common.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-images.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/footnote.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-highlight-changes.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/search-in-header.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/topic-body-list.css?buildId=2024041900" / > < / head >
2025-01-23 16:37:00 +08:00
< body id = "id" class = "wh_topic_page frmBody" >
< a href = "#wh_topic_body" class = "sr-only sr-only-focusable" >
跳转到主要内容
< / a >
< header class = "navbar navbar-default wh_header" >
< div class = "container-fluid" >
2025-04-23 17:54:31 +08:00
< div xmlns:whc = "http://www.oxygenxml.com/webhelp/components" class = "wh_header_flex_container navbar-nav navbar-expand-md navbar-dark" >
2025-01-23 16:37:00 +08:00
< div class = "wh_logo_and_publication_title_container" >
< div class = "wh_logo_and_publication_title" >
2025-04-23 17:54:31 +08:00
< a href = "https://www.artinchip.com" class = " wh_logo d-none d-sm-block " > < img src = "../../../company-logo.png" alt = " RTOS SDK 使用指南 SDK 指南文件 " / > < / a >
< div class = " wh_publication_title " > < a href = "../../../index.html" > < span class = "booktitle" > < span class = "ph mainbooktitle" > RTOS SDK 使用指南< / span > < span class = "ph booktitlealt" > SDK 指南文件< / span > < / span > < / a > < / div >
2025-01-23 16:37:00 +08:00
< / div >
< / div >
< div class = "wh_top_menu_and_indexterms_link collapse navbar-collapse" id = "wh_top_menu_and_indexterms_link" >
< / div >
< div class = " wh_search_input navbar-form wh_topic_page_search search " role = "form" >
< form id = "searchForm" method = "get" role = "search" action = "../../../search.html" > < div > < input type = "search" placeholder = "搜索 " class = "wh_search_textfield" id = "textToSearch" name = "searchQuery" aria-label = "搜索查询" required = "required" / > < button type = "submit" class = "wh_search_button" aria-label = "搜索" > < span class = "search_input_text" > 搜索< / span > < / button > < / div > < / form >
2025-04-23 17:54:31 +08:00
< / div > < / div >
< / div >
< / header >
2025-01-23 16:37:00 +08:00
< div class = "container-fluid" id = "wh_topic_container" >
< div class = "row" >
< nav class = "wh_tools d-print-none navbar-expand-md" aria-label = "Tools" >
< div data-tooltip-position = "bottom" class = " wh_breadcrumb " > < ol class = "d-print-none" > < li > < span class = "home" > < a href = "../../../index.html" > < span > 主页< / span > < / a > < / span > < / li > < li > < div class = "topicref" data-id = "concept_rcx_czh_pzb" > < div class = "title" > < a href = "../../../topics/sdk/chapter-app.html" > 应用场景< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 描述了 SDK 在不同应用场景中的配置和使用, 包括系统更新、OTA、安全方案等。< / p > < / div > < / div > < / div > < / li > < li > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/ota/ota_guide.html" > OTA 方案< / a > < / div > < / div > < / li > < li class = "active" > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/ota/ota_design_lite.html" > 设计说明< / a > < / div > < / div > < / li > < / ol > < / div >
< div class = "wh_right_tools" >
< button class = "wh_hide_highlight" aria-label = "切换搜索突出显示" title = "切换搜索突出显示" > < / button >
< button class = "webhelp_expand_collapse_sections" data-next-state = "collapsed" aria-label = "折叠截面" title = "折叠截面" > < / button >
< div class = " wh_navigation_links " > < span id = "topic_navigation_links" class = "navheader" >
< span class = "navprev" > < a class = "- topic/link link" href = "../../../topics/sdk/ota/ota_programming.html" title = "编程指南" aria-label = "上一主题: 编程指南" rel = "prev" > < / a > < / span >
< span class = "navnext" > < a class = "- topic/link link" href = "../../../topics/sdk/ota/ota_faq_lite.html" title = "常见问题" aria-label = "下一主题: 常见问题" rel = "next" > < / a > < / span > < / span > < / div >
< div class = " wh_print_link print d-none d-md-inline-block " > < button onClick = "window.print()" title = "打印此页" aria-label = "打印此页" > < / button > < / div >
< button type = "button" id = "wh_toc_button" class = "custom-toggler navbar-toggler collapsed wh_toggle_button navbar-light" aria-expanded = "false" aria-label = "Toggle publishing table of content" aria-controls = "wh_publication_toc" >
< span class = "navbar-toggler-icon" > < / span >
< / button >
< / div >
< / nav >
< / div >
< div class = "wh_content_area" >
< div class = "row" >
< nav id = "wh_publication_toc" class = "col-lg-3 col-md-3 col-sm-12 d-md-block d-none d-print-none" aria-label = "Table of Contents Container" >
< div id = "wh_publication_toc_content" >
2025-07-22 11:15:46 +08:00
< div class = " wh_publication_toc " data-tooltip-position = "right" > < span class = "expand-button-action-labels" > < span id = "button-expand-action" role = "button" aria-label = "Expand" > < / span > < span id = "button-collapse-action" role = "button" aria-label = "Collapse" > < / span > < span id = "button-pending-action" role = "button" aria-label = "Pending" > < / span > < / span > < ul role = "tree" aria-label = "Table of Contents" > < li role = "treeitem" > < div data-tocid = "revinfo_linux-d3752e463" class = "topicref" data-id = "revinfo_linux" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/revinfo/revinfo_rtos.html" id = "revinfo_linux-d3752e463-link" > 修订记录< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e480" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e480-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/sdk-compile.html" id = "id-d3752e480-link" > SDK 编译< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 介绍不同编译环境下 SDK 的详细编译流程。< / p > < / div > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e604" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e604-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/sdk-usage.html" id = "id-d3752e604-link" > 使用指南< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 命令详解,编译选项,镜像和分区配置,添加应用和驱动等的详细使用说明。< / p > < / div > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "true" > < div data-tocid = "concept_rcx_czh_pzb-d3752e1004" class = "topicref" data-id = "concept_rcx_czh_pzb" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-action concept_rcx_czh_pzb-d3752e1004-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/chapter-app.html" id = "concept_rcx_czh_pzb-d3752e1004-link" > 应用场景< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 描述了 SDK 在不同应用场景中的配置和使用, 包括系统更新、OTA、安全方案等。< / p > < / div > < / div > < / div > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" > < div data-tocid = "id-d3752e1021" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/usb/udisk.html" id = "id-d3752e1021-link" > 挂载 U 盘 < / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e1035" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/sdmc/sdcard.html" id = "id-d3752e1035-link" > 挂载 SD 卡< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e1049" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e1049-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/burnsys/burnsys_user_guide.html" id = "id-d3752e1049-link" > 系统更新< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "true" > < div data-tocid = "id-d3752e1163" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-action id-d3752e1163-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/ota/ota_guide.html" id = "id-d3752e1163-link" > OTA 方案< / a > < / div > < / div > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" > < div data-tocid = "id-d3752e1181" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/ota/ota__sys_intro.html" id = "id-d3752e1181-link" > OTA 系统结构< / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e1195" class = "topicref" data-id = "id" data-state = "leaf" > < sp
2025-01-23 16:37:00 +08:00
< / div >
< / nav >
< div class = "col-lg-7 col-md-9 col-sm-12" id = "wh_topic_body" >
< button id = "wh_close_publication_toc_button" class = "close-toc-button d-none" aria-label = "Toggle publishing table of content" aria-controls = "wh_publication_toc" aria-expanded = "true" >
< span class = "close-toc-icon-container" >
< span class = "close-toc-icon" > < / span >
< / span >
< / button >
< button id = "wh_close_topic_toc_button" class = "close-toc-button d-none" aria-label = "Toggle topic table of content" aria-controls = "wh_topic_toc" aria-expanded = "true" >
< span class = "close-toc-icon-container" >
< span class = "close-toc-icon" > < / span >
< / span >
< / button >
2025-04-23 17:54:31 +08:00
< div class = " wh_topic_content body " > < main role = "main" > < article class = "- topic/topic topic" role = "article" aria-labelledby = "ariaid-title1" >
< span class = "edit-link" style = "font-size:12px; opacity:0.6; text-align:right; vertical-align:middle" > < a target = "_blank" href = "http://aicdocco/taskstopics/sdk/ota/ota_design_lite.dita" > Edit online< / a > < / span > < h1 class = "- topic/title title topictitle1" id = "ariaid-title1" > 设计说明< / h1 >
2025-07-22 11:15:46 +08:00
< div class = "date inPage" > 16 May 2025< / div > < div style = "color: gray;" >
2025-04-23 17:54:31 +08:00
Read time: 7 minute(s)
< / div >
< div class = "- topic/body body" >
< section class = "- topic/section section" id = "id__section_jvr_j1q_wcc" data-ofbid = "id__section_jvr_j1q_wcc" > < h2 class = "- topic/title title sectiontitle" > OTA 文件结构< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< ul class = "- topic/ul ul" id = "id__ul_cnc_jfv_1dc" data-ofbid = "id__ul_cnc_jfv_1dc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e37__20250519091515" > OTA 源码位于 < span class = "- topic/ph ph" > Luban-Lite< / span > 根目录中的< span class = "+ topic/ph sw-d/filepath ph filepath" > packages/artinchip/ota/< / span > 文件夹
2025-01-23 16:37:00 +08:00
,文件结构如下:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__pre_gyg_jfv_1dc" data-ofbid = "id__pre_gyg_jfv_1dc" > ├── absystem.c # 文件系统挂载源文件
├── absystem.h
├── burn.c # FLASH 固化接口源文件
├── burn.h
├── ota.c # OTA 接口源文件
├── ota.h
2025-04-23 17:54:31 +08:00
└── test_ota.c # 测试 TF 卡 OTA 源文件< / pre > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e48__20250519091515" > OTA 升级过程中使用到的相关文件位于各个 < span class = "+ topic/ph sw-d/filepath ph filepath" > target/xx-chip/xx-board/pack< / span >
2025-01-23 16:37:00 +08:00
板级目录中,文件结构如下:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__pre_zgg_cfv_1dc" data-ofbid = "id__pre_zgg_cfv_1dc" > ├── bootloader.bin # 引导加载程序,用于启动系统。
├── ddr_init.json # DDR 初始化配置文件,用于配置内存参数。
├── env.txt # 环境变量文件,用于环境变量存放。
├── image_cfg.json # 系统分区配置文件,用作定义系统分区信息。
2025-04-23 17:54:31 +08:00
└── ota-subimgs.cfg # OTA 升级包配置文件,用于指定需要更新的子镜像及其顺序< / pre > < / li >
< / ul >
< / section >
< section class = "- topic/section section" id = "id__section_zfn_qfv_1dc" data-ofbid = "id__section_zfn_qfv_1dc" > < h2 class = "- topic/title title sectiontitle" > A/B 系统分区信息< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< figure class = "- topic/fig fig fignone" id = "id__fig_rr5_wgv_1dc" data-ofbid = "id__fig_rr5_wgv_1dc" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_agn_qfv_1dc" src = "../../../images/ota/part_lite.png" alt = "part" / > < / div > < br / >
< figcaption data-caption-side = "bottom" class = "- topic/title title figcapcenter" > < span class = "figtitleprefix fig--title-label" > 图< span class = "fig--title-label-number" > 1< / span > < span class = "fig--title-label-punctuation" > . < / span > < / span > < span class = "fig--title" > A/B 系统方案分区信息 < / span > < / figcaption > < / figure >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e75__20250519091515" > 如< a class = "- topic/xref xref" href = "ota_design_lite.html#id__fig_rr5_wgv_1dc" > A/B 系统方案分区信息 < / a > 所示,各分区详细描述如下:< / p >
2025-04-23 17:54:31 +08:00
< ul class = "- topic/ul ul arabic simple" id = "id__ol_bgn_qfv_1dc" data-ofbid = "id__ol_bgn_qfv_1dc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e84__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e86__20250519091515" > ENV 分区:用来保存 < a class = "- topic/xref xref" href = "ota_design_lite.html#id__section_k5j_33v_1dc" > env
2025-01-23 16:37:00 +08:00
环境变量< / a > ,其中增加了一个备用 ENV 分区,确保在一份数据破坏后,另外一份数据还能继续使用。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e94__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e96__20250519091515" > OS, RODATA 和 DATA 分区各有一个主分区和一个备份分区,统称为 A/ B 系统。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e100__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e102__20250519091515" > 用户可根据实际 OTA 需求< a class = "- topic/xref xref" href = "ota_faq_lite.html#id__section_nzj_fhv_1dc" > 剪裁分区< / a > ,例如只需升级
2025-01-23 16:37:00 +08:00
OS, 则可以删除 RODATA 与 DATA 的备份分区。< / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ul >
< / section >
< section class = "- topic/section section" id = "id__section_i4m_hjv_1dc" data-ofbid = "id__section_i4m_hjv_1dc" > < h2 class = "- topic/title title sectiontitle" > OTA 分区说明< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< div class = "table-container" > < table class = "- topic/table table docutils align-default frame-all" id = "id__table_rgn_qfv_1dc" data-ofbid = "id__table_rgn_qfv_1dc" data-cols = "3" > < caption class = "- topic/title title tablecap" data-caption-side = "top" data-is-repeated = "true" > < span class = "table--title-label" > 表< span class = "table--title-label-number" > 1< / span > < span class = "table--title-label-punctuation" > . < / span > < / span > < span class = "table--title" > NAND 分区说明< / span > < / caption > < colgroup > < col style = "width:18.832391713747647%" / > < col style = "width:35.781544256120526%" / > < col style = "width:45.38606403013182%" / > < / colgroup > < thead class = "- topic/thead thead" >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e135__20250519091515" > 设备名称< / p > < / th >
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e139__20250519091515" > 定义< / p > < / th >
< th class = "- topic/entry entry head colsep-0 rowsep-1" id = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e143__20250519091515" > 注释说明< / p > < / th >
2025-04-23 17:54:31 +08:00
< / tr >
< / thead > < tbody class = "- topic/tbody tbody" >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e153__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > os< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e159__20250519091515" > 系统主分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e163__20250519091515" > 用于 A 系统烧录 OS< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e170__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > os_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e176__20250519091515" > 系统备份分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e180__20250519091515" > 用于 B 系统烧录 OS< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e187__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_rodata< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e193__20250519091515" > 只读文件系统主分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e197__20250519091515" > 用于 A 系统挂载只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e204__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_rodata_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e210__20250519091515" > 只读文件系统备份分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e214__20250519091515" > 用于 B 系统挂载只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e221__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_data< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e227__20250519091515" > 读写文件系统主分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e231__20250519091515" > 用于 A 系统挂载与烧录读写文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e239__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_data_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e245__20250519091515" > 读写文件系统备份分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e249__20250519091515" > 用于 B 系统挂载与烧录读写文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e256__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > rodata< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e262__20250519091515" > 只读文件系统主分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e266__20250519091515" > 用于 A 系统烧录只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_rgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e273__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > rodata_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_rgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e279__20250519091515" > 只读文件系统备份分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-0" headers = "id__table_rgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e283__20250519091515" > 用于 B 系统烧录只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< / tbody > < / table > < / div >
< div class = "table-container" > < table class = "- topic/table table docutils align-default frame-all" id = "id__table_sgn_qfv_1dc" data-ofbid = "id__table_sgn_qfv_1dc" data-cols = "3" > < caption class = "- topic/title title tablecap" data-caption-side = "top" data-is-repeated = "true" > < span class = "table--title-label" > 表< span class = "table--title-label-number" > 2< / span > < span class = "table--title-label-punctuation" > . < / span > < / span > < span class = "table--title" > NOR 分区说明< / span > < / caption > < colgroup > < col style = "width:19.53125%" / > < col style = "width:35.3515625%" / > < col style = "width:45.1171875%" / > < / colgroup > < thead class = "- topic/thead thead" >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e308__20250519091515" > 设备名称< / p > < / th >
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e312__20250519091515" > 定义< / p > < / th >
< th class = "- topic/entry entry head colsep-0 rowsep-1" id = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e316__20250519091515" > 注释说明< / p > < / th >
2025-04-23 17:54:31 +08:00
< / tr >
< / thead > < tbody class = "- topic/tbody tbody" >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e326__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > os< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e332__20250519091515" > 系统主分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e336__20250519091515" > 用于 A 系统烧录 OS< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e343__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > os_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e349__20250519091515" > 系统备份分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e353__20250519091515" > 用于 B 系统烧录 OS< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e360__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_rodata< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e366__20250519091515" > 只读文件系统主分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e370__20250519091515" > 用于 A 系统挂载只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e377__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_rodata_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e383__20250519091515" > 只读文件系统备份分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e387__20250519091515" > 用于 B 系统挂载只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e394__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > rodata< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e400__20250519091515" > 只读文件系统主分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e404__20250519091515" > 用于 A 系统烧录只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_sgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e412__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > rodata_r< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_sgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e418__20250519091515" > 只读文件系统备份分区 MTD 设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-0" headers = "id__table_sgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e422__20250519091515" > 用于 B 系统烧录只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< / tbody > < / table > < / div >
< div class = "table-container" > < table class = "- topic/table table docutils align-default frame-all" id = "id__table_tgn_qfv_1dc" data-ofbid = "id__table_tgn_qfv_1dc" data-cols = "3" > < caption class = "- topic/title title tablecap" data-caption-side = "top" data-is-repeated = "true" > < span class = "table--title-label" > 表< span class = "table--title-label-number" > 3< / span > < span class = "table--title-label-punctuation" > . < / span > < / span > < span class = "table--title" > eMMC 分区说明< / span > < / caption > < colgroup > < col style = "width:19.120458891013385%" / > < col style = "width:35.75525812619503%" / > < col style = "width:45.12428298279158%" / > < / colgroup > < thead class = "- topic/thead thead" >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e447__20250519091515" > 设备名称< / p > < / th >
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e451__20250519091515" > 定义< / p > < / th >
< th class = "- topic/entry entry head colsep-0 rowsep-1" id = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e455__20250519091515" > 注释说明< / p > < / th >
2025-04-23 17:54:31 +08:00
< / tr >
< / thead > < tbody class = "- topic/tbody tbody" >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e465__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p3< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e471__20250519091515" > 系统主分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e475__20250519091515" > 用于 A 系统烧录 OS< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e482__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p4< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e488__20250519091515" > 系统备份分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e492__20250519091515" > 用于 B 系统烧录 OS< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e499__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p5< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e505__20250519091515" > 只读文件系统主分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e509__20250519091515" > 用于 A 系统挂载与烧录只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e516__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p6< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e522__20250519091515" > 只读文件系统备份分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e526__20250519091515" > 用于 B 系统挂载与烧录只读文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e533__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p7< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e539__20250519091515" > 读写文件系统主分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e543__20250519091515" > 用于 A 系统挂载与烧录读写文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_tgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e551__20250519091515" > < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p8< / span >
2025-04-23 17:54:31 +08:00
< / p > < / td >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_tgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e557__20250519091515" > 读写文件系统备份分区块设备< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-0" headers = "id__table_tgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e561__20250519091515" > 用于 B 系统挂载与烧录读写文件系统< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< / tbody > < / table > < / div >
< / section >
< section class = "- topic/section section" id = "id__section_fk4_shv_1dc" data-ofbid = "id__section_fk4_shv_1dc" > < h2 class = "- topic/title title sectiontitle" > A/B 系统升级过程< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< figure class = "- topic/fig fig fignone" id = "id__fig_oyd_phv_1dc" data-ofbid = "id__fig_oyd_phv_1dc" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_fgn_qfv_1dc" src = "../../../images/ota/ab.png" alt = "ab" / > < / div > < br / >
< figcaption data-caption-side = "bottom" class = "- topic/title title figcapcenter" > < span class = "figtitleprefix fig--title-label" > 图< span class = "fig--title-label-number" > 2< / span > < span class = "fig--title-label-punctuation" > . < / span > < / span > < span class = "fig--title" > A/B 系统升级过程< / span > < / figcaption > < / figure >
< ol class = "- topic/ol ol arabic simple" id = "id__ol_ggn_qfv_1dc" data-ofbid = "id__ol_ggn_qfv_1dc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e588__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e590__20250519091515" > 升级前, A 系统为启动系统, B 系统为备用系统。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e594__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e596__20250519091515" > 启动 OTA 升级,给 B 系统升级程序。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e600__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e602__20250519091515" > 升级完成后重启,从 B 系统启动, A 系统为备用系统。< / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ol >
< / section >
< section class = "- topic/section section" id = "id__section_k5j_33v_1dc" data-ofbid = "id__section_k5j_33v_1dc" > < h2 class = "- topic/title title sectiontitle" > ENV 环境变量< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d103746e613__20250519091515" > OTA 升级涉及的 ENV 环境变量描述如下:< ul class = "- topic/ul ul" id = "id__ul_gvj_p3v_1dc" data-ofbid = "id__ul_gvj_p3v_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e617__20250519091515" > 环境变量文件路径:< span class = "+ topic/ph sw-d/filepath ph filepath" > target/xx-chip/xx-board/pack/env.txt< / span > < / li >
< li class = "- topic/li li" data-ofbid = "d103746e622__20250519091515" > 环境变量文件详细内容:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_olb_r3v_1dc" data-ofbid = "id__codeblock_olb_r3v_1dc" > osAB_next=A
2025-01-23 16:37:00 +08:00
osAB_now=A
rodataAB_next=A
rodataAB_now=A
dataAB_next=A
dataAB_now=A
upgrade_available=< span class = "hl-number" > 0< / span >
bootlimit=< span class = "hl-number" > 5< / span >
bootcount=< span class = "hl-number" > 0< / span >
rodata_partname=blk_rodata
rodata_partname_r=blk_rodata_r
data_partname=blk_data
2025-04-23 17:54:31 +08:00
data_partname_r=blk_data_r< / pre > < / li >
< / ul > < / div >
< div class = "table-container" > < table class = "- topic/table table docutils align-default frame-all" id = "id__table_jgn_qfv_1dc" data-ofbid = "id__table_jgn_qfv_1dc" data-cols = "3" > < caption class = "- topic/title title tablecap" data-caption-side = "top" data-is-repeated = "true" > < span class = "table--title-label" > 表< span class = "table--title-label-number" > 4< / span > < span class = "table--title-label-punctuation" > . < / span > < / span > < span class = "table--title" > 环境变量使用说明< / span > < / caption > < colgroup > < col style = "width:17.513134851138354%" / > < col style = "width:25.39404553415061%" / > < col style = "width:57.09281961471103%" / > < / colgroup > < thead class = "- topic/thead thead" >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e646__20250519091515" > 环境变量名称< / p > < / th >
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e650__20250519091515" > 定义< / p > < / th >
< th class = "- topic/entry entry head colsep-0 rowsep-1" id = "id__table_jgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e654__20250519091515" > 注释说明< / p > < / th >
2025-04-23 17:54:31 +08:00
< / tr >
< / thead > < tbody class = "- topic/tbody tbody" >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e664__20250519091515" > osAB_now< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e668__20250519091515" > 当前启动分区< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < div class = "- topic/p p" data-ofbid = "d103746e672__20250519091515" > osAB_now 取值说明:< ul class = "- topic/ul ul" id = "id__ul_gbs_smv_1dc" data-ofbid = "id__ul_gbs_smv_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e676__20250519091515" > “A”: OS 本次从 A 启动< / li >
< li class = "- topic/li li" data-ofbid = "d103746e679__20250519091515" > “B”: OS 本次从 B 启动,无需手动修改< / li >
2025-04-23 17:54:31 +08:00
< / ul > < / div > < / td >
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e687__20250519091515" > osAB_next< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e691__20250519091515" > 下次启动分区< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < div class = "- topic/p p" data-ofbid = "d103746e695__20250519091515" > osAB_next 取值说明:< ul class = "- topic/ul ul" id = "id__ul_exs_vmv_1dc" data-ofbid = "id__ul_exs_vmv_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e699__20250519091515" > “A”: OS 下次从 A 启动< / li >
< li class = "- topic/li li" data-ofbid = "d103746e702__20250519091515" > “B”: OS 下次从 B 启动,可以手动修改< / li >
2025-04-23 17:54:31 +08:00
< / ul > < / div > < / td >
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e710__20250519091515" > rodataAB_now< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e714__20250519091515" > 当前挂载的只读分区< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < div class = "- topic/p p" data-ofbid = "d103746e718__20250519091515" > rodataAB_now 取值说明:< ul class = "- topic/ul ul" id = "id__ul_bng_xmv_1dc" data-ofbid = "id__ul_bng_xmv_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e722__20250519091515" > “A”: rodata 本次从 A 挂载< / li >
< li class = "- topic/li li" data-ofbid = "d103746e725__20250519091515" > “B”: rodata 本次从 B 挂载,无需手动修改< / li >
2025-04-23 17:54:31 +08:00
< / ul > < / div > < / td >
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e733__20250519091515" > rodataAB_next< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e737__20250519091515" > 下次挂载的只读分区< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < div class = "- topic/p p" data-ofbid = "d103746e741__20250519091515" > rodataAB_next 取值说明:< ul class = "- topic/ul ul" id = "id__ul_avg_ymv_1dc" data-ofbid = "id__ul_avg_ymv_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e745__20250519091515" > “A”: rodata 下次从 A 挂载< / li >
< li class = "- topic/li li" data-ofbid = "d103746e748__20250519091515" > “B”: rodata 下次从 B 挂载,可以手动修改< / li >
2025-04-23 17:54:31 +08:00
< / ul > < / div > < / td >
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e756__20250519091515" > dataAB_now< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e760__20250519091515" > 当前挂载的读写分区< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < div class = "- topic/p p" data-ofbid = "d103746e764__20250519091515" > dataAB_now 取值说明:< ul class = "- topic/ul ul" id = "id__ul_a4z_zmv_1dc" data-ofbid = "id__ul_a4z_zmv_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e768__20250519091515" > “A”: data 本次从 A 挂载< / li >
< li class = "- topic/li li" data-ofbid = "d103746e771__20250519091515" > “B”: data 本次从 B 挂载,无需手动修改< / li >
2025-04-23 17:54:31 +08:00
< / ul > < / div > < / td >
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e780__20250519091515" > dataAB_next< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e784__20250519091515" > 下次挂载的读写分区< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < div class = "- topic/p p" data-ofbid = "d103746e788__20250519091515" > dataAB_next 取值说明:< ul class = "- topic/ul ul" id = "id__ul_psh_bnv_1dc" data-ofbid = "id__ul_psh_bnv_1dc" >
< li class = "- topic/li li" data-ofbid = "d103746e792__20250519091515" > “A”: data 下次从 A 挂载< / li >
< li class = "- topic/li li" data-ofbid = "d103746e795__20250519091515" > “B”: data 下次从 B 挂载,可以手动修改< / li >
2025-04-23 17:54:31 +08:00
< / ul > < / div > < / td >
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e803__20250519091515" > upgrade_available< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e807__20250519091515" > OTA 升级完成< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e811__20250519091515" > OTA 升级完成,指导 boot 程序更新启动分区和版本回退< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e818__20250519091515" > bootcount< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e822__20250519091515" > 失败启动次数< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e826__20250519091515" > 启动分区启动 os 程序失败的次数< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e833__20250519091515" > bootlimit< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e837__20250519091515" > 失败启动次数限制< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e841__20250519091515" > 启动分区启动失败次数超过 bootlimit 会触发版本回退< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e848__20250519091515" > rodata_partname< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e852__20250519091515" > rodata 挂载设备名称< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > rodata 实际挂载的设备名称< p class = "- topic/p p" data-ofbid = "d103746e857__20250519091515" > 如果系统设备名称改变,此处应该同步修改 < / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e864__20250519091515" > rodata_partname_r< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e868__20250519091515" > 备份 rodata 挂载设备名称< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > rodata_r 实际挂载的设备名称< p class = "- topic/p p" data-ofbid = "d103746e873__20250519091515" > 如果系统设备名称改变,此处应该同步修改 < / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e881__20250519091515" > data_partname< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e885__20250519091515" > data 挂载设备名称< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_jgn_qfv_1dc__entry__3" > rodata 实际挂载的设备名称< p class = "- topic/p p" data-ofbid = "d103746e890__20250519091515" > 如果系统设备名称改变,此处应该同步修改 < / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_jgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e897__20250519091515" > data_partname_r< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_jgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e901__20250519091515" > 备份 data 挂载设备名称< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-0" headers = "id__table_jgn_qfv_1dc__entry__3" > rodata_r 实际挂载的设备名称< p class = "- topic/p p" data-ofbid = "d103746e906__20250519091515" > 如果系统设备名称改变,此处应该同步修改 < / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< / tbody > < / table > < / div >
< figure class = "- topic/fig fig fignone" id = "id__fig_tzr_t3v_1dc" data-ofbid = "id__fig_tzr_t3v_1dc" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_kgn_qfv_1dc" src = "../../../images/ota/env.png" alt = "env" / > < / div > < br / >
< figcaption data-caption-side = "bottom" class = "- topic/title title figcapcenter" > < span class = "figtitleprefix fig--title-label" > 图< span class = "fig--title-label-number" > 3< / span > < span class = "fig--title-label-punctuation" > . < / span > < / span > < span class = "fig--title" > 环境变量在 OTA 升级过程中的作用< / span > < / figcaption > < / figure >
2025-01-23 16:37:00 +08:00
< div class = "- topic/note note note note_note" id = "id__note_azg_v3v_1dc" data-ofbid = "id__note_azg_v3v_1dc" > < span class = "note__title" > 注:< / span >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e927__20250519091515" > rodata 和 data 分区的升级原理与 OS 相同。< / p >
2025-01-23 16:37:00 +08:00
< / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "id__section_bdt_x3v_1dc" data-ofbid = "id__section_bdt_x3v_1dc" > < h2 class = "- topic/title title sectiontitle" > OTA 升级包制作原理< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d103746e938__20250519091515" > < strong class = "+ topic/ph hi-d/b ph b" > OTA 升级包配置文件< / strong > 为
2025-01-23 16:37:00 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > ota-subimgs.cfg< / span > : < pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_zzm_cjv_1dc" data-ofbid = "id__codeblock_zzm_cjv_1dc" > [image]
size = < span class = "hl-string" > ""< / span > ;
version = < span class = "hl-string" > "1.0.0"< / span > ;
[file]
ota_info.bin:file;
d21x_os.itb:os;
rodata.fatfs:rodata;
2025-04-23 17:54:31 +08:00
data.fatfs:blk_data;< / pre > < div class = "table-container" > < table class = "- topic/table table docutils align-default frame-all" id = "id__table_mgn_qfv_1dc" data-ofbid = "id__table_mgn_qfv_1dc" data-cols = "3" > < caption class = "- topic/title title tablecap" data-caption-side = "top" data-is-repeated = "true" > < span class = "table--title-label" > 表< span class = "table--title-label-number" > 5< / span > < span class = "table--title-label-punctuation" > . < / span > < / span > < span class = "table--title" > ota-subimgs.cfg 配置文件详细说明< / span > < / caption > < colgroup > < col style = "width:16.233766233766232%" / > < col style = "width:26.136363636363637%" / > < col style = "width:57.62987012987013%" / > < / colgroup > < thead class = "- topic/thead thead" >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e965__20250519091515" > 环境变量名称< / p > < / th >
< th class = "- topic/entry entry head colsep-1 rowsep-1" id = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e969__20250519091515" > 定义< / p > < / th >
< th class = "- topic/entry entry head colsep-0 rowsep-1" id = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e973__20250519091515" > 注释说明< / p > < / th >
2025-04-23 17:54:31 +08:00
< / tr >
< / thead > < tbody class = "- topic/tbody tbody" >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e983__20250519091515" > size< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e987__20250519091515" > 整个 < span class = "+ topic/ph sw-d/filepath ph filepath" > ota.cpio< / span > 文件的大小< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e994__20250519091515" > size 为 py 脚本自动计算,在 C 文件中有解析此字段,供用户用做下载进度等使用。< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e1001__20250519091515" > version< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e1005__20250519091515" > 新更新的系统版本号< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e1009__20250519091515" > version 为 py 脚本自动填充,从 < span class = "+ topic/ph sw-d/filepath ph filepath" > image_cfg.json< / span >
2025-04-23 17:54:31 +08:00
中解析,用户应修改 < span class = "+ topic/ph sw-d/filepath ph filepath" > image_cfg.json< / span > 中的版本号。< / p > < / td >
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e1022__20250519091515" > ota_info.bin< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e1026__20250519091515" > ota-subimgs.cfg 的二进制文件< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e1030__20250519091515" > py 脚本会将本文件编译为二进制流文件,供 C 文件中解析使用。file 属性可以忽略。< / p > < / td >
2025-04-23 17:54:31 +08:00
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e1037__20250519091515" > d21x_os.itb< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e1041__20250519091515" > OS 的实际比特流文件< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e1045__20250519091515" > 此文件编译会自动生成,此处存在代表将会被打包进 cpio 包。 < span class = "+ topic/keyword pr-d/parmname keyword parmname" > os< / span >
2025-04-23 17:54:31 +08:00
为即将升级到的设备。< / p > < / td >
< / tr >
< tr class = "- topic/row row-even" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e1055__20250519091515" > rodata.fatfs< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e1059__20250519091515" > 只读分区的实际比特流文件< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-1" headers = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e1063__20250519091515" > 此文件编译会自动生成,此处存在代表将会被打包进 cpio 包。 < span class = "+ topic/keyword pr-d/parmname keyword parmname" > rodata< / span >
2025-04-23 17:54:31 +08:00
为即将升级到的设备。< / p > < / td >
< / tr >
< tr class = "- topic/row row-odd" >
2025-07-22 11:15:46 +08:00
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_mgn_qfv_1dc__entry__1" > < p class = "- topic/p p" data-ofbid = "d103746e1074__20250519091515" > data.fatfs< / p > < / td >
< td class = "- topic/entry entry colsep-1 rowsep-0" headers = "id__table_mgn_qfv_1dc__entry__2" > < p class = "- topic/p p" data-ofbid = "d103746e1078__20250519091515" > 读写分区的实际比特流文件< / p > < / td >
< td class = "- topic/entry entry colsep-0 rowsep-0" headers = "id__table_mgn_qfv_1dc__entry__3" > < p class = "- topic/p p" data-ofbid = "d103746e1082__20250519091515" > 此文件编译会自动生成,此处存在代表将会被打包进 cpio 包。 < span class = "+ topic/keyword pr-d/parmname keyword parmname" > blk_data< / span >
2025-04-23 17:54:31 +08:00
为即将升级到的设备。< / p > < / td >
< / tr >
< / tbody > < / table > < / div > < div class = "- topic/note note note note_note" id = "id__note_ep5_djv_1dc" data-ofbid = "id__note_ep5_djv_1dc" > < span class = "note__title" > 注:< / span >
< ol class = "- topic/ol ol arabic simple" id = "id__ol_ngn_qfv_1dc" data-ofbid = "id__ol_ngn_qfv_1dc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1095__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1097__20250519091515" > FLASH
2025-01-23 16:37:00 +08:00
为 NAND 时,只读文件系统与读写文件系统升级的设备不同,读写文件系统依赖 NFTL 支持,烧写
FLASH 需使用块设备接口,而只读文件系统烧写 FLASH 使用 MTD 设备接口即可。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1104__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1106__20250519091515" > FLASH 为 NOR 时,由于空间限制,目前读写文件系统不使用 OTA 进行升级。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1110__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1112__20250519091515" > FLASH 为 eMMC 时,主分区应为 < span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p*< / span > , 备份分区在
2025-01-23 16:37:00 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > image_cfg.json< / span > 分配时应该在主分区下面,在 OTA 代码中,默认将
< span class = "+ topic/keyword pr-d/parmname keyword parmname" > mmc0p*+1< / span > 作为备份分区。< / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ol >
2025-01-23 16:37:00 +08:00
< / div >
< / div >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e1128__20250519091515" > < strong class = "+ topic/ph hi-d/b ph b" > OTA 升级包生成工具< / strong > 为 < span class = "+ topic/ph sw-d/filepath ph filepath" > mkcpio.py< / span > ,文件路径为
2025-01-23 16:37:00 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > tools/scripts/mkcpio.py< / span > < / p >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e1138__20250519091515" > 执行编译命令,会自动执行 < span class = "+ topic/ph sw-d/filepath ph filepath" > mkcpio.py< / span > 命令生成 ota.cpio。mkcpio.py 具体调用了 cpio,
2025-01-23 16:37:00 +08:00
cpio.exe 命令进行打包。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "id__section_zsq_2jv_1dc" data-ofbid = "id__section_zsq_2jv_1dc" > < h2 class = "- topic/title title sectiontitle" > OTA 包数据组成格式< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d103746e1150__20250519091515" >
2025-04-23 17:54:31 +08:00
< figure class = "- topic/fig fig fignone" id = "id__fig_ig2_xjv_1dc" data-ofbid = "id__fig_ig2_xjv_1dc" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_pgn_qfv_1dc" src = "../../../images/ota/cpio.png" width = "192" alt = "cpio" / > < / div > < br / >
< figcaption data-caption-side = "bottom" class = "- topic/title title figcapcenter" > < span class = "figtitleprefix fig--title-label" > 图< span class = "fig--title-label-number" > 4< / span > < span class = "fig--title-label-punctuation" > . < / span > < / span > < span class = "fig--title" > OTA 包数据组成格式< / span > < / figcaption > < / figure >
2025-01-23 16:37:00 +08:00
< / div >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d103746e1165__20250519091515" > 其中头部信息如下:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_drv_yjv_1dc" data-ofbid = "id__codeblock_drv_yjv_1dc" > < strong class = "hl-keyword" > struct< / strong > filehdr {
2025-01-23 16:37:00 +08:00
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > format;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > size;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > size_align;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > begin_offset;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > cpio_header_len;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > namesize;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > filename_size;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > filename_align;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > burn_len;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > chksum;
< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > int< / strong > sum;
< strong class = "hl-keyword" > char< / strong > filename[MAX_IMAGE_FNAME];
};< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "id__section_tjc_vgv_1dc" data-ofbid = "id__section_tjc_vgv_1dc" > < h2 class = "- topic/title title sectiontitle" > A/B 系统分区优势< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< ol class = "- topic/ol ol arabic simple" id = "id__ol_fcr_gfq_wcc" data-ofbid = "id__ol_fcr_gfq_wcc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1178__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1180__20250519091515" > 避免出现升级过程中意外断电导致系统更新失败且重启后不能继续升级的问题。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1184__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1186__20250519091515" > 自带回滚机制,可以恢复到原来的程序。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1194__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1196__20250519091515" > 对比 Recovery 系统方案,配置简单,维护方便。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1200__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1202__20250519091515" > 消耗的存储资源相对较少,现有平台存储资源完全能满足要求。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1206__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1208__20250519091515" > 在 RTOS 系统上获取、校验和升级固件,不涉及 Boot, 不需要额外存储空间保存 OTA 升级文件。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1213__20250519091515" >
< p class = "- topic/p p" data-ofbid = "d103746e1215__20250519091515" > 市面上的应用广泛。< / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ol >
< / section >
< section class = "- topic/section section" id = "id__section_lvr_j1q_wcc" data-ofbid = "id__section_lvr_j1q_wcc" > < h2 class = "- topic/title title sectiontitle" > 网络 OTA 流程< / h2 >
2025-01-23 16:37:00 +08:00
2025-04-23 17:54:31 +08:00
< ul class = "- topic/ul ul" id = "id__ul_vts_2v5_4dc" data-ofbid = "id__ul_vts_2v5_4dc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1228__20250519091515" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div" >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e1232__20250519091515" > < strong class = "+ topic/ph hi-d/b ph b" > OS 阶段 app OTA 执行流程< / strong > < / p >
2025-01-23 16:37:00 +08:00
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_p4q_wgq_wcc" data-ofbid = "id__codeblock_p4q_wgq_wcc" > http_ota < em class = "hl-comment" > //packages/third-party/ota_downloader/src/http_ota.c< / em >
|-> http_ota_fw_download(argv[< span class = "hl-number" > 1< / span > ]);
|-> webclient_session_create(GET_HEADER_BUFSZ);
|-> webclient_shard_head_function(session, uri, & file_size);
|-> webclient_register_shard_position_function(session, http_ota_shard_download_swu_handle);
|-> webclient_shard_position_function(session, uri, file_offset, file_size, HTTP_OTA_BUFF_LEN);
|-> http_ota_shard_download_swu_handle < em class = "hl-comment" > //采用分片方式下载数据< / em >
|-> ota_buf_push(& shdr, buffer, length); < em class = "hl-comment" > //将下载的数据放到缓存区,供解析 cpio 头部信息< / em >
|-> find_cpio_data(& fhdr, shdr.buf, shdr.buflen); < em class = "hl-comment" > //解析 cpio 头部信息< / em >
|-> parse_cpio_file_info(& bhdr, & fhdr, & finfo); < em class = "hl-comment" > //解析 cpio 文件大小和版本号,供用户自定义使用,并且存储烧录的分区设备名字< / em >
|-> swu_buf_pop(& bhdr, & shdr, & fhdr); < em class = "hl-comment" > //将 cpio 头部信息后面的数据放到另外的缓存区,供升级使用< / em >
|-> ota_buf_push(& bhdr, buffer, length); < em class = "hl-comment" > //将下载的数据放到缓存区,供升级使用< / em >
|-> find_device(partname) < em class = "hl-comment" > //获取分区信息< / em >
|-> aic_ota_erase_part(dl_part, < span class = "hl-number" > 0< / span > , dl_part-> len) < em class = "hl-comment" > //擦除分区< / em >
|-> download_buf_pop(& bhdr, & fhdr) < em class = "hl-comment" > //将缓存区里面的数据取出来,升级到 FLASH 上< / em >
|-> aic_ota_part_write < em class = "hl-comment" > //写入数据到 FLASH 上< / em >
|-> cpio_file_checksum((< strong class = "hl-keyword" > unsigned< / strong > < strong class = "hl-keyword" > char< / strong > *)bhdr-> buf, burn_len); < em class = "hl-comment" > //升级完成以后,校验和信息< / em >
|-> aic_upgrade_end(); < em class = "hl-comment" > //升级结束,更新环境变量信息< / em >
|-> rt_hw_cpu_reset(); < em class = "hl-comment" > //重新启动< / em > < / pre >
< / div >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1241__20250519091515" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div section" id = "id__boot" >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e1245__20250519091515" > < strong class = "+ topic/ph hi-d/b ph b" > Boot 阶段新系统程序加载启动流程< / strong > < / p >
2025-01-23 16:37:00 +08:00
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_iy2_lkv_1dc" data-ofbid = "id__codeblock_iy2_lkv_1dc" > do_nor_boot < em class = "hl-comment" > //application/baremetal/bootloader/cmd/nor_boot.c< / em >
|-> aic_ota_check(); < em class = "hl-comment" > //application/baremetal/bootloader/lib/absystem/absystem.c< / em >
|-> aic_ota_version_fallback(); < em class = "hl-comment" > // OTA 升级失败,版本回退到之前的版本< / em >
|-> aic_get_os_to_startup(target); < em class = "hl-comment" > //获取新系统信息< / em >
|-> find_boot_part(target); < em class = "hl-comment" > // 获取新系统 OS 分区结构体< / em >
|-> spl_load_simple_fit(& info, & entry_point); < em class = "hl-comment" > // 加载 os 分区程序到缓存上< / em > < / pre >
< / div >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d103746e1254__20250519091515" >
2025-01-23 16:37:00 +08:00
< div class = "- topic/div div section" id = "id__os-app" >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d103746e1258__20250519091515" > < strong class = "+ topic/ph hi-d/b ph b" > OS 阶段 app 挂载新文件系统< / strong >
2025-01-23 16:37:00 +08:00
< / p >
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "id__codeblock_dm3_lkv_1dc" data-ofbid = "id__codeblock_dm3_lkv_1dc" > absystem.c < em class = "hl-comment" > //packages/artinchip/ota/absystem.c< / em >
|-> INIT_ENV_EXPORT(aic_absystem_mount_fs_prio0);
|-> INIT_LATE_APP_EXPORT(aic_absystem_mount_fs_prio1);< / pre >
< / div >
2025-04-23 17:54:31 +08:00
< / li >
< / ul >
< / section >
< / div >
< / article > < / main > < / div >
2025-01-23 16:37:00 +08:00
< / div >
< nav role = "navigation" id = "wh_topic_toc" aria-label = "On this page" class = "col-lg-2 d-none d-lg-block navbar d-print-none" >
< div id = "wh_topic_toc_content" >
< div class = " wh_topic_toc " > < div class = "wh_topic_label" > 在本页上< / div > < ul > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_jvr_j1q_wcc" data-tocid = "id__section_jvr_j1q_wcc" > OTA 文件结构< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_zfn_qfv_1dc" data-tocid = "id__section_zfn_qfv_1dc" > A/B 系统分区信息< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_i4m_hjv_1dc" data-tocid = "id__section_i4m_hjv_1dc" > OTA 分区说明< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_fk4_shv_1dc" data-tocid = "id__section_fk4_shv_1dc" > A/B 系统升级过程< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_k5j_33v_1dc" data-tocid = "id__section_k5j_33v_1dc" > ENV 环境变量< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_bdt_x3v_1dc" data-tocid = "id__section_bdt_x3v_1dc" > OTA 升级包制作原理< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_zsq_2jv_1dc" data-tocid = "id__section_zsq_2jv_1dc" > OTA 包数据组成格式< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_tjc_vgv_1dc" data-tocid = "id__section_tjc_vgv_1dc" > A/B 系统分区优势< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_lvr_j1q_wcc" data-tocid = "id__section_lvr_j1q_wcc" > 网络 OTA 流程< / a > < / div > < / li > < / ul > < / div >
< / div >
< / nav >
< / div >
< / div >
< / div >
< footer class = "navbar navbar-default wh_footer" >
< div class = " footer-container mx-auto " >
< title > footer def< / title >
2025-04-23 17:54:31 +08:00
< style >
2025-01-23 16:37:00 +08:00
.p1 {
font-family: FangZhengShuSong, Times, serif;
}
.p2 {
font-family: Arial, Helvetica, sans-serif;
}
.p3 {
font-family: "Lucida Console", "Courier New", monospace;
}
2025-04-23 17:54:31 +08:00
< / style >
2025-01-23 16:37:00 +08:00
< div class = "webhelp.fragment.footer" >
2025-04-23 17:54:31 +08:00
< p class = "p1" > Copyright © 2019-2025 广东匠芯创科技有限公司. All rights reserved.< / p >
< / div >
< div >
2025-01-23 16:37:00 +08:00
< div class = "generation_time" >
2025-07-22 11:15:46 +08:00
Update Time: 2025-05-19
2025-01-23 16:37:00 +08:00
< / div >
2025-04-23 17:54:31 +08:00
< / div >
2025-01-23 16:37:00 +08:00
< / div >
< / footer >
< div id = "go2top" class = "d-print-none" >
< span class = "oxy-icon oxy-icon-up" > < / span >
< / div >
< div id = "modal_img_large" class = "modal" >
< span class = "close oxy-icon oxy-icon-remove" > < / span >
< div id = "modal_img_container" > < / div >
< div id = "caption" > < / div >
< / div >
< script src = "${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer = "defer" > < / script >
< / body >
< / html >