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 = "DC.rights.owner" content = "(C) 版权 2025" / > < meta name = "copyright" content = "(C) 版权 2025" / > < meta name = "generator" content = "DITA-OT" / > < meta name = "DC.type" content = "concept" / > < meta name = "description" content = "OneStep 是 ArtInChip 对 SCons 工具二次封装的总称,在基础命令上开发了一组更高效和方便的快捷命令, 以实现任意目录、一步即达的目的。根据操作系统的不同,可能需要不同的设置: Windows 系统设置 在 Windows 系统中, OneStep 自动集成到 win_cmd.bat 和 win_env.bat 批处理脚本中。 在 CMD 或者 ENV 窗口启动后, OneStep ..." / > < meta name = "DC.relation" content = "../../../topics/sdk/advanced/commands.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/advanced/scons-commands.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/advanced/tree_cmd_user_guide.html" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.creator" content = "yan.wang" / > < meta name = "DC.date.modified" content = "2025-05-16" / > < meta name = "DC.format" content = "HTML5" / > < meta name = "DC.identifier" content = "lb-onestep-command-ref-guide" / > < meta name = "DC.language" content = "zh-CN" / >
< title > OneStep 命令参考指南< / title > <!-- Generated with build number 2025051600. --> < meta name = "wh-path2root" content = "../../../" / > < meta name = "wh-toc-id" content = "lb-onestep-command-ref-guide-d3752e651" / > < meta name = "wh-source-relpath" content = "topics/sdk/advanced/onestep_command_ref.dita" / > < meta name = "wh-out-relpath" content = "topics/sdk/advanced/onestep_command_ref.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 = "lb-onestep-command-ref-guide" 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" >
2025-04-23 17:54:31 +08:00
< 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 = "id" > < div class = "title" > < a href = "../../../topics/sdk/advanced/sdk-usage.html" > 使用指南< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 命令详解,编译选项,镜像和分区配置,添加应用和驱动等的详细使用说明。< / p > < / div > < / div > < / div > < / li > < li > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/advanced/commands.html" > 命令详解 < / a > < / div > < / div > < / li > < li class = "active" > < div class = "topicref" data-id = "lb-onestep-command-ref-guide" > < div class = "title" > < a href = "../../../topics/sdk/advanced/onestep_command_ref.html" > OneStep 命令参考指南< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > < / p > < / div > < / div > < / div > < / li > < / ol > < / div >
2025-01-23 16:37:00 +08:00
< 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/advanced/scons-commands.html" title = "scons 命令参考指南" aria-label = "上一主题: scons 命令参考指南" rel = "prev" > < / a > < / span >
2025-04-23 17:54:31 +08:00
< span class = "navnext" > < a class = "- topic/link link" href = "../../../topics/sdk/advanced/tree_cmd_user_guide.html" title = "tree 命令参考指南" aria-label = "下一主题: tree 命令参考指南" rel = "next" > < / a > < / span > < / span > < / div >
2025-01-23 16:37:00 +08:00
< 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 = "true" > < div data-tocid = "id-d3752e604" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-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 > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" aria-expanded = "true" > < div data-tocid = "id-d3752e623" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-action id-d3752e623-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/commands.html" id = "id-d3752e623-link" > 命令详解 < / a > < / div > < / div > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" > < div data-tocid = "scons-commands-d3752e637" class = "topicref" data-id = "scons-commands" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/scons-commands.html" id = "scons-commands-d3752e637-link" > scons 命令参考指南 < / a > < / div > < / div > < / li > < li role = "treeitem" class = "active" > < div data-tocid = "lb-onestep-command-ref-guide-d3752e651" class = "topicref" data-id = "lb-onestep-command-ref-guide" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/onestep_command_ref.html" id = "lb-onestep-command-ref-guide-d3752e651-link" > OneStep 命令参考指南< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > < / p > < / div > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "tree-cmd-user-guide-d3752e667" class = "topicref" data-id = "tree-cmd-user-guide" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/tree_cmd_user_guide.html" id = "tree-cmd-user-guide-d3752e667-link" > < span class = "keyword cmdname" > tree< / span > 命令参考指南< / a > < / div > < / div > < / li > < / ul > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e683" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/architecture.html" id = "id-d3752e683-link" > 设计框架< / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e697" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/sconstruct.html" id = "id-d3752e697-link" > SConstruct < / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e711" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href =
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 concept/concept topic concept" 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/advanced/onestep_command_ref.dita" > Edit online< / a > < / span > < h1 class = "- topic/title title topictitle1" id = "ariaid-title1" > OneStep 命令参考指南< / h1 >
2025-07-22 11:15:46 +08:00
< div class = "date inPage" > 16 May 2025< / div > < div style = "color: gray;" >
2025-01-23 16:37:00 +08:00
Read time: 4 minute(s)
2025-04-23 17:54:31 +08:00
< / div >
< div class = "- topic/body concept/conbody body conbody" > < p class = "- topic/shortdesc shortdesc" > < / p >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e30__20250519091528" > OneStep 是 ArtInChip 对 SCons 工具二次封装的总称,在基础命令上开发了一组更高效和方便的快捷命令,
2025-04-23 17:54:31 +08:00
以实现任意目录、一步即达的目的。根据操作系统的不同,可能需要不同的设置:< ul class = "- topic/ul ul" id = "lb-onestep-command-ref-guide__ul_iyq_3fp_fdc" data-ofbid = "lb-onestep-command-ref-guide__ul_iyq_3fp_fdc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d202388e34__20250519091528" > < strong class = "+ topic/ph hi-d/b ph b" > Windows< / strong > 系统设置< p class = "- topic/p p" data-ofbid = "d202388e38__20250519091528" > 在 Windows 系统中, OneStep 自动集成到
2025-01-23 16:37:00 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > win_cmd.bat< / span > 和 < span class = "+ topic/ph sw-d/filepath ph filepath" > win_env.bat< / span >
2025-07-22 11:15:46 +08:00
批处理脚本中。< / p > < p class = "- topic/p p" data-ofbid = "d202388e46__20250519091528" > 在 CMD 或者 ENV 窗口启动后, OneStep 命令已经生效,在其中可以从任意目录执行 OneStep
2025-04-23 17:54:31 +08:00
命令。< / p > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d202388e49__20250519091528" > < strong class = "+ topic/ph hi-d/b ph b" > Linux< / strong > 系统设置< div class = "- topic/p p" data-ofbid = "d202388e53__20250519091528" > 在 Linux 系统中,需要将 OneStep
脚本添加到当前路径中,如执行以下命令:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__pre_a2n_1vp_wcc" data-ofbid = "lb-onestep-command-ref-guide__pre_a2n_1vp_wcc" > source tools/onestep.sh< / pre > < / div > < p class = "- topic/p p" data-ofbid = "d202388e57__20250519091528" > 在
2025-01-23 16:37:00 +08:00
Ubuntu 终端中,进入 SDK 根目录后,使用 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > source tools/onestep.sh< / span >
2025-04-23 17:54:31 +08:00
命令即可查看所有常见命令。< / p > < / li >
< / ul > < / div >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e64__20250519091528" > 为了方便使用并加快开发效率, ArtInChip 开发了一系列的 OneStep
2025-01-23 16:37:00 +08:00
子命令,如< span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > h|help< / span > 显示帮助信息以及< span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > lunch< / span > 选择和启动指定的项目配置。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__pre_b2n_1vp_wcc" data-ofbid = "lb-onestep-command-ref-guide__pre_b2n_1vp_wcc" > h< / pre > < pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_bbc_klp_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_bbc_klp_5dc" > < span class = "- topic/ph ph" > Luban-Lite< / span > SDK OneStep commands:
hmm|h : Get this help.
lunch [keyword] : Start with selected defconfig.e.g. lunch mmc
menuconfig|me : Config application with menuconfig
bm : Config bootloader with menuconfig
km : Config application with menuconfig
m|mb : Build bootloader & application and generate final image
ma : Build application only
mu|ms : Build bootloader only
c : Clean bootloader and application
mc : Clean & Rebuild all and generate final image
croot|cr : cd to SDK root directory.
cout|co : cd to build output directory.
cbuild|cb : cd to build root directory.
ctarget|ct : cd to target board directory.
godir|gd [keyword] : Go/jump to selected directory.
list : List all SDK defconfig.
list_module : List all enabled modules.
i : Get current project< span class = "hl-string" > 's information.
< / span > buildall : Build all the *defconfig in target/configs
rebuildall : Clean and build all the *defconfig in target/configs
addboard|ab : Add new board *defconfig in target/configs
aicupg : Burn image file to target board
2025-04-23 17:54:31 +08:00
< / pre > < / div >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__id9" data-ofbid = "lb-onestep-command-ref-guide__id9" > < h2 class = "- topic/title title sectiontitle" > list< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e84__20250519091528" > 查看所有项目文件。< / p >
2025-01-23 16:37:00 +08:00
< div class = "- topic/note note note note_note" id = "lb-onestep-command-ref-guide__note_km4_xxq_3dc" data-ofbid = "lb-onestep-command-ref-guide__note_km4_xxq_3dc" > < span class = "note__title" > 注:< / span > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > list< / span > 命令进行了显示项目精简,隐藏了
< span class = "+ topic/ph sw-d/filepath ph filepath" > bootloader< / span > 的项目文件。< / div >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e95__20250519091528" > < pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_gzp_q2p_fdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_gzp_q2p_fdc" > list< / pre > 输出示例如下:< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_sqq_qx1_rdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_sqq_qx1_rdc" > scons: Reading SConscript files ...
2025-01-23 16:37:00 +08:00
Built-in configs:
d12x_demo68-nand_rt-thread_helloworld_defconfig
< span class = "hl-number" > 0.< / span > d12x_demo68-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 1.< / span > d12x_hmi-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 2.< / span > d13x_demo68-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 3.< / span > d13x_demo88-nand_rt-thread_helloworld_defconfig
< span class = "hl-number" > 4.< / span > d13x_demo88-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 5.< / span > d13x_kunlunpi88-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 6.< / span > d21x_d215-demo88-nand_rt-thread_helloworld_defconfig
< span class = "hl-number" > 7.< / span > d21x_d215-demo88-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 8.< / span > d21x_demo100-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 9.< / span > d21x_demo128-nand_rt-thread_helloworld_defconfig
< span class = "hl-number" > 10.< / span > g73x_demo100-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 11.< / span > g73x_demo68-nor_rt-thread_helloworld_defconfig
< span class = "hl-number" > 12.< / span > g73x_scan_rt-thread_helloworld_defconfig< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_n12_sn3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_n12_sn3_rdc" > < h2 class = "- topic/title title sectiontitle" > lunch< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e108__20250519091528" > 选择、加载或应用具体配置方案。< ul class = "- topic/ul ul" id = "lb-onestep-command-ref-guide__ul_xmy_wn3_rdc" data-ofbid = "lb-onestep-command-ref-guide__ul_xmy_wn3_rdc" >
< li class = "- topic/li li" data-ofbid = "d202388e112__20250519091528" >
< div class = "- topic/p p" data-ofbid = "d202388e114__20250519091528" > 示例 1: 进入 Recovery 系统 SDK
2025-01-23 16:37:00 +08:00
生产环境< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_qsy_tn3_rdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_qsy_tn3_rdc" > lunch ota_emmc< / 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 = "d202388e120__20250519091528" >
< div class = "- topic/p p" data-ofbid = "d202388e122__20250519091528" > 示例 2: 加载
2025-01-23 16:37:00 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > d13x_demo88-nor-xip_rt-thread_helloworld_defconfig< / span >
配置文件< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_yyy_h43_rdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_yyy_h43_rdc" > lunch d13x_demo88-nor-xip_rt-thread_helloworld_defconfig< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / li >
< / ul > < / div >
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__rt-thread" data-ofbid = "lb-onestep-command-ref-guide__rt-thread" > < h2 class = "- topic/title title sectiontitle" > menuconfig|me< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e138__20250519091528" > 打开 menuconfig 工具界面,修改 RT-Thread 配置< / p >
< div class = "- topic/p p" data-ofbid = "d202388e141__20250519091528" > < pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_rxf_lmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_rxf_lmr_5dc" > menuconfig< / pre > 或< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_e2l_r2p_fdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_e2l_r2p_fdc" > me< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__bootloader" data-ofbid = "lb-onestep-command-ref-guide__bootloader" > < h2 class = "- topic/title title sectiontitle" > bm< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e155__20250519091528" > 打开 menuconfig 工具界面,修改 BootLoader 配置< / p >
2025-01-23 16:37:00 +08:00
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_b3n_r2p_fdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_b3n_r2p_fdc" > bm< / pre >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_hrs_mmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__section_hrs_mmr_5dc" > < h2 class = "- topic/title title sectiontitle" > km< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e167__20250519091528" > 打开 menuconfig 工具界面,修改应用配置< / p >
2025-01-23 16:37:00 +08:00
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_irs_mmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_irs_mmr_5dc" > bm< / pre >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_h4r_m43_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_h4r_m43_rdc" > < h2 class = "- topic/title title sectiontitle" > m< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e179__20250519091528" > 编译 SDK
2025-01-23 16:37:00 +08:00
固件,并生成镜像文件。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_jmc_rp3_rdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_jmc_rp3_rdc" > m< / pre > < / div >
< div class = "- topic/note note note note_note" id = "lb-onestep-command-ref-guide__note_ay1_tmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__note_ay1_tmr_5dc" > < span class = "note__title" > 注:< / span > 与 < a class = "- topic/xref xref" href = "onestep_command_ref.html#lb-onestep-command-ref-guide__section_vg1_5p3_rdc" > mb< / a >
命令含义相同。< / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_vg1_5p3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_vg1_5p3_rdc" > < h2 class = "- topic/title title sectiontitle" > mb< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e197__20250519091528" > 编译 bootloader
2025-01-23 16:37:00 +08:00
和应用,并生成最终镜像文件。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_ofg_wp3_rdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_ofg_wp3_rdc" > mb< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_mx4_rmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__section_mx4_rmr_5dc" > < h2 class = "- topic/title title sectiontitle" > ma< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e208__20250519091528" > 仅编译应用,并生成最终镜像文件。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_nx4_rmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_nx4_rmr_5dc" > ma< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_nb5_5mr_5dc" data-ofbid = "lb-onestep-command-ref-guide__section_nb5_5mr_5dc" > < h2 class = "- topic/title title sectiontitle" > mu|ms< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e219__20250519091528" > 仅编译
2025-01-23 16:37:00 +08:00
bootloader, 并生成最终镜像文件。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_ob5_5mr_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_ob5_5mr_5dc" > mu|ms< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_jgv_wmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__section_jgv_wmr_5dc" > < h2 class = "- topic/title title sectiontitle" > c< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e231__20250519091528" > 清除 bootloader
2025-01-23 16:37:00 +08:00
和应用配置。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_kgv_wmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_kgv_wmr_5dc" > c< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_mlf_zmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__section_mlf_zmr_5dc" > < h2 class = "- topic/title title sectiontitle" > mc< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d202388e242__20250519091528" > 清除并重新编译,重新生产所有最终镜像文件。< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_nlf_zmr_5dc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_nlf_zmr_5dc" > mc< / pre > < / div >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_u2c_s43_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_u2c_s43_rdc" > < h2 class = "- topic/title title sectiontitle" > croot|cr< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e253__20250519091528" > 进入 SDK 根目录。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_lkr_yp3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_lkr_yp3_rdc" > < h2 class = "- topic/title title sectiontitle" > cout|co< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e262__20250519091528" > 进入编译输出目录< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_pcb_y43_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_pcb_y43_rdc" > < h2 class = "- topic/title title sectiontitle" > ctarget|ct< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e271__20250519091528" > 回到方案或目标开发板目录。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_wdb_z43_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_wdb_z43_rdc" > < h2 class = "- topic/title title sectiontitle" > godir|gd< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e280__20250519091528" > 跳转到指定目录。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__id11" data-ofbid = "lb-onestep-command-ref-guide__id11" > < h2 class = "- topic/title title sectiontitle" > i< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e290__20250519091528" > 查看当前项目的配置信息。< / p >
2025-01-23 16:37:00 +08:00
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_ls3_r2p_fdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_ls3_r2p_fdc" > i< / pre >
< pre class = "+ topic/pre pr-d/codeblock pre codeblock language-c" id = "lb-onestep-command-ref-guide__codeblock_bjv_vhb_rdc" data-ofbid = "lb-onestep-command-ref-guide__codeblock_bjv_vhb_rdc" > scons: Reading SConscript files ...
Target app: application/rt-thread/helloworld
Target chip: d12x
Target arch: riscv32
Target board: target/d12x/demo68-nor
Target kernel: kernel/rt-thread
Defconfig file: target/configs/d12x_demo68-nor_rt-thread_helloworld_defconfig
Root directory: xxxxxxxxxxxxxx
Out directory: output/d12x_demo68-nor_rt-thread_helloworld
Toolchain: toolchain/bin\riscv64-unknown-elf-< / pre >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_mzf_2q3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_mzf_2q3_rdc" > < h2 class = "- topic/title title sectiontitle" > buildall< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e305__20250519091528" > 编译目标配置文件 < span class = "+ topic/ph sw-d/filepath ph filepath" > target/configs< / span > 中的所有 < span class = "+ topic/ph sw-d/filepath ph filepath" > *defconfig< / span >
2025-01-23 16:37:00 +08:00
文件。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_k3v_hq3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_k3v_hq3_rdc" > < h2 class = "- topic/title title sectiontitle" > rebuildall< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e320__20250519091528" > 清除前一次配置信息,并重新编译目标配置文件 < span class = "+ topic/ph sw-d/filepath ph filepath" > target/configs< / span > 中的所有
2025-01-23 16:37:00 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > *defconfig< / span > 文件。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_grq_kq3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_grq_kq3_rdc" > < h2 class = "- topic/title title sectiontitle" > addboard|ab< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e335__20250519091528" > 在 < span class = "+ topic/ph sw-d/filepath ph filepath" > target/configs< / span > 中添加新开发板的 < span class = "+ topic/ph sw-d/filepath ph filepath" > *defconfig< / span >
2025-01-23 16:37:00 +08:00
文件。< / p >
2025-04-23 17:54:31 +08:00
< / section >
< section class = "- topic/section section" id = "lb-onestep-command-ref-guide__section_utx_mq3_rdc" data-ofbid = "lb-onestep-command-ref-guide__section_utx_mq3_rdc" > < h2 class = "- topic/title title sectiontitle" > aicupg< / h2 >
2025-01-23 16:37:00 +08:00
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d202388e350__20250519091528" > 将镜像文件烧录到目标开发板中。< / p >
2025-04-23 17:54:31 +08:00
< / 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 = "#lb-onestep-command-ref-guide__id9" data-tocid = "lb-onestep-command-ref-guide__id9" > list< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_n12_sn3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_n12_sn3_rdc" > lunch< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__rt-thread" data-tocid = "lb-onestep-command-ref-guide__rt-thread" > menuconfig|me< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__bootloader" data-tocid = "lb-onestep-command-ref-guide__bootloader" > bm< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_hrs_mmr_5dc" data-tocid = "lb-onestep-command-ref-guide__section_hrs_mmr_5dc" > km< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_h4r_m43_rdc" data-tocid = "lb-onestep-command-ref-guide__section_h4r_m43_rdc" > m< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_vg1_5p3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_vg1_5p3_rdc" > mb< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_mx4_rmr_5dc" data-tocid = "lb-onestep-command-ref-guide__section_mx4_rmr_5dc" > ma< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_nb5_5mr_5dc" data-tocid = "lb-onestep-command-ref-guide__section_nb5_5mr_5dc" > mu|ms< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_jgv_wmr_5dc" data-tocid = "lb-onestep-command-ref-guide__section_jgv_wmr_5dc" > c< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_mlf_zmr_5dc" data-tocid = "lb-onestep-command-ref-guide__section_mlf_zmr_5dc" > mc< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_u2c_s43_rdc" data-tocid = "lb-onestep-command-ref-guide__section_u2c_s43_rdc" > croot|cr< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_lkr_yp3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_lkr_yp3_rdc" > cout|co< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_pcb_y43_rdc" data-tocid = "lb-onestep-command-ref-guide__section_pcb_y43_rdc" > ctarget|ct< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_wdb_z43_rdc" data-tocid = "lb-onestep-command-ref-guide__section_wdb_z43_rdc" > godir|gd< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__id11" data-tocid = "lb-onestep-command-ref-guide__id11" > i< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_mzf_2q3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_mzf_2q3_rdc" > buildall< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_k3v_hq3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_k3v_hq3_rdc" > rebuildall< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_grq_kq3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_grq_kq3_rdc" > addboard|ab< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lb-onestep-command-ref-guide__section_utx_mq3_rdc" data-tocid = "lb-onestep-command-ref-guide__section_utx_mq3_rdc" > aicupg< / 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 >