387 lines
38 KiB
HTML
387 lines
38 KiB
HTML
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="27.0">
|
||
<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 Over The Air 远程升级 Luban OTA 方案介绍 Luban OTA 系统方案具有如下特点: 基于 SWUpdate 平台实现,使用 Recovery 系统方案。 程序 kernel 和 Rootfs 称为主系统。 ..."/><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_guide.html"/><meta name="DC.relation" content="../../../topics/sdk/ota/ota_emmc_config_guide.html"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-01-15"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="id"/><title>模块介绍</title><!-- Generated with build number 2024112209. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content="id-d4445e1509"/><meta name="wh-source-relpath" content="topics/sdk/ota/ota_introduction_lb.dita"/><meta name="wh-out-relpath" content="topics/sdk/ota/ota_introduction_lb.html"/>
|
||
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2024112209"/>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2024112209"/>
|
||
|
||
<script src="../../../webhelp/app/options/properties.js?buildId=20250123154945"></script>
|
||
<script src="../../../webhelp/app/localization/strings.js?buildId=2024112209"></script>
|
||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250123154945"></script>
|
||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2024112209"></script>
|
||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2024112209"></script>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2024112209"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2024112209"/></head>
|
||
|
||
<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">
|
||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||
<div class="wh_logo_and_publication_title_container">
|
||
<div class="wh_logo_and_publication_title">
|
||
|
||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt=" Linux SDK 使用指南 SDK 指南文件 "/></a>
|
||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"> <span class="ph mainbooktitle">Linux SDK 使用指南</span> <span class="ph booktitlealt">SDK 指南文件</span> </span></a></div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
|
||
|
||
|
||
<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>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<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_introduction_lb.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_guide.html" title="OTA 方案" aria-label="上一主题: OTA 方案" rel="prev"></a></span>
|
||
<span class="navnext"><a class="- topic/link link" href="../../../topics/sdk/ota/ota_emmc_config_guide.html" title="eMMC OTA 参数配置" aria-label="下一主题: eMMC OTA 参数配置" 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">
|
||
|
||
<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-d4445e1079" 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_linux.html" id="revinfo_linux-d4445e1079-link">修订记录</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1096" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1096-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/env/sdk-compile.html" id="id-d4445e1096-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="tocId-d4445e1240" class="topicref" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action tocId-d4445e1240-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/lb_usage_commands.html" id="tocId-d4445e1240-link">使用指南</a></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="concept_rcx_czh_pzb-d4445e1360" 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-d4445e1360-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/chapter-app.html" id="concept_rcx_czh_pzb-d4445e1360-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" aria-expanded="false"><div data-tocid="id-d4445e1377" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1377-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/burnsys/burnsys_user_guide.html" id="id-d4445e1377-link">系统更新</a></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="id-d4445e1491" class="topicref" data-id="id" data-state="expanded"><span role="button" tabindex="0" aria-labelledby="button-collapse-action id-d4445e1491-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/ota/ota_guide.html" id="id-d4445e1491-link">OTA 方案</a></div></div><ul role="group" class="navbar-nav nav-list"><li role="treeitem" class="active"><div data-tocid="id-d4445e1509" 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_introduction_lb.html" id="id-d4445e1509-link">模块介绍</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1523" 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_emmc_config_guide.html" id="id-d4445e1523-link">eMMC OTA 参数配置</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1537" 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_emmc_test_guide.html" id="id-d4445e1537-link">eMMC 平台测试指南</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1551" 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_spinand_config_guide.html" id="id-d4445e1551-link">SPINAND OTA 参数配置</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1565" 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_spinand_test_guide.html" id="id-d4445e1565-link">SPI NAND 平台测试指南</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1579" 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_design.html" id="id-d4445e1579-link">Luban OTA 升级包制作过程</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1593" 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_faq.html" id="id-d4445e1593-link">常见问题</a></div></div></li></ul></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1607" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1607-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/secure/chapter-secure.html" id="id-d4445e1607-link">安全方案</a></div></div></li><li role="treeitem"><div data-tocid="id-d4445e1663" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/burnsys/burner_offline.html" id="id-d4445e1663-link">离线烧录</a></div></div></li></ul></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1678" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1678-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/peripheral/peripheral-intro.html" id="id-d4445e1678-link">外设移植</a><div class="wh-tooltip"><p class="shortdesc"><span class="ph">触摸屏、显示器、WIFI 模块、按键</span>等外设的介绍和使用说明。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e1964" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e1964-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/bringup/chapter-bringup.html" id="id-d4445e1964-link">BringUp</a><div class="wh-tooltip"><p class="shortdesc">在硬件上电后快速初始化系统,为操作系统的启动准备好必要的硬件环境。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d4445e2153" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d4445e2153-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/chapter-advanced-app.html" id="id-d4445e2153-link">高级应用</a><div class="wh-tooltip"><p class="shortdesc">系统、存储、多媒体、接口、安全等模块的详细配置和设计说明。</p></div></div></div></li></ul></div>
|
||
|
||
</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>
|
||
|
||
<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" title="Edit this document" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/ota/ota_introduction_lb.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">模块介绍</h1>
|
||
<div class="date inPage">15 Jan 2024</div><div style="color: gray;">
|
||
Read time: 2 minute(s)
|
||
</div>
|
||
<div class="- topic/body body">
|
||
<p class="- topic/p p" data-ofbid="d65929e28__20250123155204">OTA 是一种通过网络从服务器上下载更新文件,对本地系统或者文件进行升级的升级方式,便于为用户及时更新系统和应用程序。 </p>
|
||
<div class="table-container"><table class="- topic/table table docutils align-default frame-all" id="id__table_u1j_lpw_fdc" data-ofbid="id__table_u1j_lpw_fdc" data-cols="3"><caption></caption><colgroup><col style="width:31.948881789137378%"/><col style="width:31.948881789137378%"/><col style="width:36.10223642172524%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row row-odd">
|
||
<th class="- topic/entry entry head colsep-1 rowsep-1" id="id__table_u1j_lpw_fdc__entry__1">术语</th>
|
||
<th class="- topic/entry entry head colsep-1 rowsep-1" id="id__table_u1j_lpw_fdc__entry__2">定义</th>
|
||
<th class="- topic/entry entry head colsep-0 rowsep-1" id="id__table_u1j_lpw_fdc__entry__3">注释说明</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row row-even">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="id__table_u1j_lpw_fdc__entry__1">OTA</td>
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="id__table_u1j_lpw_fdc__entry__2">Over The Air</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="id__table_u1j_lpw_fdc__entry__3">远程升级</td>
|
||
</tr>
|
||
</tbody></table></div>
|
||
<section class="- topic/section section" id="id__luban-ota" data-ofbid="id__luban-ota"><h2 class="- topic/title title sectiontitle">Luban OTA 方案介绍</h2>
|
||
|
||
<p class="- topic/p p" data-ofbid="d65929e78__20250123155204">Luban OTA 系统方案具有如下特点:</p>
|
||
<ul class="- topic/ul ul arabic simple" id="id__ol_jqk_lpw_fdc" data-ofbid="id__ol_jqk_lpw_fdc">
|
||
<li class="- topic/li li" data-ofbid="d65929e83__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e85__20250123155204">基于 <a class="- topic/xref xref" href="ota_introduction_lb.html#id__swupdate">SWUpdate</a> 平台实现,使用 Recovery
|
||
系统方案。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e93__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e95__20250123155204">程序 kernel 和 Rootfs 称为主系统。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e99__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e101__20250123155204">在主系统之外,增加一个 Recovery 系统,包含 kernel 和 initramfs,用来对主系统程序进行升级。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e105__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e107__20250123155204">为了便于演示,增加 ota 分区,用于保存 OTA 升级包。</p>
|
||
<p class="- topic/p p" data-ofbid="d65929e110__20250123155204"><strong class="+ topic/ph hi-d/b ph b">OTA 功能新增分区</strong>如下图所示:</p>
|
||
<figure class="- topic/fig fig fignone" id="id__fig_kqk_lpw_fdc" data-ofbid="id__fig_kqk_lpw_fdc">
|
||
<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_lqk_lpw_fdc" src="../../../images/ota/part.png" alt="part"/></div><br/>
|
||
</figure>
|
||
<ul class="- topic/ul ul arabic simple" id="id__ol_nqk_lpw_fdc" data-ofbid="id__ol_nqk_lpw_fdc">
|
||
<li class="- topic/li li" data-ofbid="d65929e126__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e128__20250123155204">黄色代表原始分区</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e132__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e134__20250123155204">绿色代表新加分区</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e138__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e140__20250123155204"><code class="+ topic/ph pr-d/codeph ph codeph">recovery 分区</code> 用来存放 Recovery 系统程序</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e146__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e148__20250123155204"><code class="+ topic/ph pr-d/codeph ph codeph">ota 分区</code> 用来存放 OTA 升级包</p>
|
||
</li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</section>
|
||
<section class="- topic/section section" id="id__id4" data-ofbid="id__id4"><h2 class="- topic/title title sectiontitle">Luban OTA 升级过程</h2>
|
||
|
||
<p class="- topic/p p" data-ofbid="d65929e163__20250123155204">Luban OTA 升级过程如下所示:</p><ol class="- topic/ol ol arabic simple" id="id__ol_oqk_lpw_fdc" data-ofbid="id__ol_oqk_lpw_fdc">
|
||
<li class="- topic/li li" data-ofbid="d65929e167__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e169__20250123155204">主系统升级 Recovery 系统文件,Recovery 系统升级主系统文件。</p>
|
||
<p class="- topic/p p" data-ofbid="d65929e172__20250123155204">升级脚本文件名称为 <span class="+ topic/ph sw-d/filepath ph filepath">swupdate_cmd.sh</span>。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e179__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e181__20250123155204">主系统升级 Recovery 系统程序、U-Boot 等。</p>
|
||
<p class="- topic/p p" data-ofbid="d65929e184__20250123155204">环境变量采用 U-Boot 环境变量。在 U-Boot 启动时,通过环境变量决定启动主系统还是 Recovery 系统。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e188__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e190__20250123155204">Recovery 系统升级主系统 kernel、Rootfs、App 等。</p>
|
||
<p class="- topic/p p" data-ofbid="d65929e193__20250123155204">一次完整的升级活动,需要重启两次。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e197__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e199__20250123155204">升级过程中出现异常掉电,下次启动还能够继续完成剩下的升级过程。</p>
|
||
</li>
|
||
</ol><figure class="- topic/fig fig fignone" id="id__fig_pqk_lpw_fdc" data-ofbid="id__fig_pqk_lpw_fdc">
|
||
|
||
<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_qqk_lpw_fdc" src="../../../images/ota/ota.png" alt="ota"/></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">Luban OTA 升级示例</span></figcaption></figure>
|
||
</section>
|
||
<section class="- topic/section section" id="id__swupdate" data-ofbid="id__swupdate"><h2 class="- topic/title title sectiontitle">SWUpdate 功能介绍</h2>
|
||
|
||
<ul class="- topic/ul ul simple" id="id__ul_tqk_lpw_fdc" data-ofbid="id__ul_tqk_lpw_fdc">
|
||
<li class="- topic/li li" data-ofbid="d65929e223__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e225__20250123155204">可以给 eMMC、SD、NOR 和 NAND 等介质升级程序</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e229__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e231__20250123155204">可以更新 UBI 卷的程序, 重新创建 UBI 卷,建立新的 UBI 卷, 配置分区的大小</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e235__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e237__20250123155204">支持使用 zlib 库压缩镜像</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e241__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e243__20250123155204">支持识别和使用 U 盘, 支持本地升级</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e247__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e249__20250123155204">支持更新文件系统里面的单个文件, 必须指定该文件的路径</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e254__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e256__20250123155204">使用结构化语言来描述镜像, libconfig 语法</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e260__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e262__20250123155204">支持设置/删除 U-Boot 变量</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e266__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e268__20250123155204">多种获取软件的接口, 本地存储: USB,SD,UART,…</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e272__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e274__20250123155204">OTA/远程, 使用 Mongoose 服务器</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e278__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e280__20250123155204">通过配置可以检查软件和硬件之间的兼容性</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e284__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e286__20250123155204">支持镜像提取, SWUpdate 以流的方式接收软件, 不进行临时存储</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e291__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e293__20250123155204">掉电安全</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e297__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e299__20250123155204">镜像在升级之前经过身份认证和校验</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e303__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e305__20250123155204">通过 make menuconfig 进行管理</p>
|
||
</li>
|
||
</ul>
|
||
<div class="table-container"><table class="- topic/table table docutils align-default frame-all" id="id__table_bd1_k24_hdc" data-ofbid="id__table_bd1_k24_hdc" data-cols="2"><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">SWUpdate 包重要配置描述</span></caption><colgroup><col style="width:46.948356807511736%"/><col style="width:53.051643192488264%"/></colgroup><thead class="- topic/thead thead">
|
||
<tr class="- topic/row row-odd">
|
||
<th class="- topic/entry entry head colsep-1 rowsep-1" id="id__table_bd1_k24_hdc__entry__1">文件</th>
|
||
<th class="- topic/entry entry head colsep-0 rowsep-1" id="id__table_bd1_k24_hdc__entry__2">说明</th>
|
||
</tr>
|
||
</thead><tbody class="- topic/tbody tbody">
|
||
<tr class="- topic/row row-even">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_UBOOT=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">支持 U-Boot</td>
|
||
</tr>
|
||
<tr class="- topic/row row-odd">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_DOWNLOAD=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">使能通过 libcurl 的方式下载程序</td>
|
||
</tr>
|
||
<tr class="- topic/row row-even">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_DOWNLOAD_SSL=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">在使用 libcurl 时使能 ssl 校验</td>
|
||
</tr>
|
||
<tr class="- topic/row row-odd">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_WEBSERVER=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">编译 web 服务器, 设备端作为服务器使用</td>
|
||
</tr>
|
||
<tr class="- topic/row row-even">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_HASH_VERIFY=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">解析升级包时使能 sha256 校验</td>
|
||
</tr>
|
||
<tr class="- topic/row row-odd">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_BOOTLOADERHANDLER=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">在升级过程中允许修改 U-Boot 环境变量</td>
|
||
</tr>
|
||
<tr class="- topic/row row-even">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_CFI=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">允许给 flash 烧录程序</td>
|
||
</tr>
|
||
<tr class="- topic/row row-odd">
|
||
<td class="- topic/entry entry colsep-1 rowsep-1" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_RAW=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-1" headers="id__table_bd1_k24_hdc__entry__2">默认烧录方式, 给 eMMC 使用</td>
|
||
</tr>
|
||
<tr class="- topic/row row-even">
|
||
<td class="- topic/entry entry colsep-1 rowsep-0" headers="id__table_bd1_k24_hdc__entry__1">CONFIG_SHELLSCRIPTHANDLER=y</td>
|
||
<td class="- topic/entry entry colsep-0 rowsep-0" headers="id__table_bd1_k24_hdc__entry__2">支持 shell 脚本升级 </td>
|
||
</tr>
|
||
</tbody></table></div></section>
|
||
<section class="- topic/section section" id="id__id5" data-ofbid="id__id5"><h2 class="- topic/title title sectiontitle">OTA 升级获取方式</h2>
|
||
|
||
<p class="- topic/p p" data-ofbid="d65929e426__20250123155204">按照获取 OTA 升级包的方式,OTA 可以分为两种情况:</p><ul class="- topic/ul ul simple" id="id__ul_uqk_lpw_fdc" data-ofbid="id__ul_uqk_lpw_fdc">
|
||
<li class="- topic/li li" data-ofbid="d65929e430__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e432__20250123155204">本地升级</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e436__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e438__20250123155204">网络升级方式</p>
|
||
</li>
|
||
</ul>
|
||
<ol class="- topic/ol ol arabic simple" id="id__ol_wqk_lpw_fdc" data-ofbid="id__ol_wqk_lpw_fdc">
|
||
<li class="- topic/li li" data-ofbid="d65929e445__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e447__20250123155204">Luban 平台配置好了一个 <code class="+ topic/ph pr-d/codeph ph codeph">ota 分区</code>,用来存放 OTA 升级包, 用户可以通过 AiBurn 的方式将 OTA
|
||
升级包烧录到具体开发板上, 直接验证 OTA 本地升级功能。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e454__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e456__20250123155204">用户如果搭建好了服务器, 并能将服务器上 OTA 升级包下载到本地 <code class="+ topic/ph pr-d/codeph ph codeph">ota 分区</code>,希望通过 Luban OTA
|
||
系统实现单独升级功能, 可以直接通过 OTA 本地升级方式实现。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e463__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e465__20250123155204">如果本地空间不够, 可以使用 SD 卡,U 盘充当本地存储空间,存放 OTA 升级包。</p>
|
||
</li>
|
||
<li class="- topic/li li" data-ofbid="d65929e469__20250123155204">
|
||
<p class="- topic/p p" data-ofbid="d65929e471__20250123155204">Luban OTA 网络升级方式依赖服务器,用户如果采用网络方案,需要搭建好 HTTP 或 FTP 服务器,Luban OTA
|
||
系统可以远程获取服务器里面的数据进行升级。</p>
|
||
</li>
|
||
</ol></section>
|
||
</div>
|
||
</article></main></div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</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__luban-ota" data-tocid="id__luban-ota">Luban OTA 方案介绍</a></div></li><li class="section-item"><div class="section-title"><a href="#id__id4" data-tocid="id__id4">Luban OTA 升级过程</a></div></li><li class="section-item"><div class="section-title"><a href="#id__swupdate" data-tocid="id__swupdate">SWUpdate 功能介绍</a></div></li><li class="section-item"><div class="section-title"><a href="#id__id5" data-tocid="id__id5">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>
|
||
<style><!--
|
||
|
||
.p1 {
|
||
font-family: FangZhengShuSong, Times, serif;
|
||
}
|
||
.p2 {
|
||
font-family: Arial, Helvetica, sans-serif;
|
||
}
|
||
.p3 {
|
||
font-family: "Lucida Console", "Courier New", monospace;
|
||
}
|
||
|
||
--></style>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="webhelp.fragment.footer">
|
||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||
</div><div>
|
||
<div class="generation_time">
|
||
Update Time: 2025-01-23
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<button id="go2top" class="d-print-none" title="返回顶部">
|
||
<span class="oxy-icon oxy-icon-up"></span>
|
||
</button>
|
||
|
||
<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> |