mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
236 lines
16 KiB
HTML
236 lines
16 KiB
HTML
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.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="调试端口在 Bringup 过程中非常重要,因此有必要先配置好调试信息。 调试端口包括以下几个配置参考,以 demo128_nand 工程为例, 使用 uart0 端口作为调试口: board.dts &uart0 { pinctrl-names = "default" ; pinctrl- 0 = <&uart0_pins_a>; //在 ..."/><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="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-12-05"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="bringup_debugPortsConfiguration"/><meta name="DC.language" content="zh-CN"/><title>调试配置</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content=""/><meta name="wh-source-relpath" content="topics/sdk/bringup/bringup-debug-ports-configuration.dita"/><meta name="wh-out-relpath" content="topics/sdk/bringup/bringup-debug-ports-configuration.html"/>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
|
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
|
|
|
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
|
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
|
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
|
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
|
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
|
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
|
|
|
<body id="bringup_debugPortsConfiguration" 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="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>
|
|
|
|
</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 "></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_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
|
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="wh_content_area">
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="wh_topic_body">
|
|
|
|
<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 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://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/bringup/bringup-debug-ports-configuration.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">调试配置</h1><div class="date inPage">5 Dec 2024</div><div style="color: gray;">
|
|
Read time: 2 minute(s)
|
|
</div><div class="- topic/body concept/conbody body conbody"><p class="- topic/p p" data-ofbid="d341331e22__20250121171906">调试端口在 Bringup 过程中非常重要,因此有必要先配置好调试信息。</p><div class="- topic/p p" data-ofbid="d341331e24__20250121171906">调试端口包括以下几个配置参考,以 <span class="+ topic/ph sw-d/filepath ph filepath">demo128_nand</span> 工程为例, 使用 <span class="+ topic/keyword pr-d/parmname keyword parmname">uart0</span>
|
|
端口作为调试口:<ul class="- topic/ul ul" id="bringup_debugPortsConfiguration__ul_kmy_5vb_d1c" data-ofbid="bringup_debugPortsConfiguration__ul_kmy_5vb_d1c"><li class="- topic/li li" data-ofbid="d341331e33__20250121171906"><strong class="+ topic/ph hi-d/b ph b"><span class="+ topic/ph sw-d/filepath ph filepath">board.dts</span></strong><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_debugPortsConfiguration__codeblock_ngh_vvb_d1c" data-ofbid="bringup_debugPortsConfiguration__codeblock_ngh_vvb_d1c">&uart0 {
|
|
pinctrl-names = <span class="hl-string">"default"</span>;
|
|
pinctrl-<span class="hl-number">0</span> = <&uart0_pins_a>; <em class="hl-comment">//在 target/d211/common/d211-pinctrl.dts 中预定义</em>
|
|
status = <span class="hl-string">"okay"</span>;
|
|
};</pre></li><li class="- topic/li li" data-ofbid="d341331e39__20250121171906"><strong class="+ topic/ph hi-d/b ph b"><span class="+ topic/ph sw-d/filepath ph filepath">board-u-boot.dtsi</span></strong><pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_debugPortsConfiguration__codeblock_ubz_vvb_d1c" data-ofbid="bringup_debugPortsConfiguration__codeblock_ubz_vvb_d1c">uart0_pins_a: uart0-<span class="hl-number">0</span> {
|
|
u-boot,dm-pre-reloc;
|
|
pins {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
u-boot,dm-pre-reloc;
|
|
};</pre></li></ul></div><section class="- topic/section section" id="bringup_debugPortsConfiguration__section_jpy_wvb_d1c" data-ofbid="bringup_debugPortsConfiguration__section_jpy_wvb_d1c"><h2 class="- topic/title title sectiontitle">串口参数</h2>
|
|
|
|
<div class="- topic/p p" data-ofbid="d341331e50__20250121171906">主要配置使用哪个端口,端口的波特率等工作参数。<ul class="- topic/ul ul" id="bringup_debugPortsConfiguration__ul_ilv_xvb_d1c" data-ofbid="bringup_debugPortsConfiguration__ul_ilv_xvb_d1c"><li class="- topic/li li" data-ofbid="d341331e53__20250121171906"><strong class="+ topic/ph hi-d/b ph b">uboot</strong><div class="- topic/p p" data-ofbid="d341331e56__20250121171906">如果工程目录(如 <span class="+ topic/ph sw-d/filepath ph filepath">target/d211/demo128_nand/</span>)中有
|
|
<span class="+ topic/ph sw-d/filepath ph filepath">env.txt</span> 文件,则该文件生效,否则使用
|
|
<span class="+ topic/ph sw-d/filepath ph filepath">target/d211/common/env.txt</span>
|
|
文件。<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_debugPortsConfiguration__codeblock_uqh_yvb_d1c" data-ofbid="bringup_debugPortsConfiguration__codeblock_uqh_yvb_d1c">baudrate=<span class="hl-number">115200</span>
|
|
preboot=
|
|
verify=no</pre></div></li><li class="- topic/li li" data-ofbid="d341331e69__20250121171906"><strong class="+ topic/ph hi-d/b ph b">kernel</strong><div class="- topic/p p" data-ofbid="d341331e72__20250121171906">kernel 串口参数在 <span class="+ topic/ph sw-d/filepath ph filepath">board.dts</span>
|
|
中设置<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_debugPortsConfiguration__codeblock_t5q_zvb_d1c" data-ofbid="bringup_debugPortsConfiguration__codeblock_t5q_zvb_d1c">chosen {
|
|
stdout-path = <span class="hl-string">"serial0:115200n8"</span>; <em class="hl-comment">//uart0, 115200,n,8</em>
|
|
bootargs = <span class="hl-string">"rdinit=/init earlycon=sbi loglevel=7"</span>;
|
|
reset-after-fw-burn;
|
|
};</pre></div></li></ul></div>
|
|
</section><section class="- topic/section section" id="bringup_debugPortsConfiguration__section_ocw_dwb_d1c" data-ofbid="bringup_debugPortsConfiguration__section_ocw_dwb_d1c"><h2 class="- topic/title title sectiontitle">调试日志</h2>
|
|
|
|
<p class="- topic/p p" data-ofbid="d341331e85__20250121171906">uboot 中默认的调试日志等级比较高,因此关键信息默认是有输出的</p>
|
|
<div class="- topic/p p" data-ofbid="d341331e88__20250121171906">kernel 中默认关闭了调试日志,因此在 Bringup 的时候需要打开,开关在上述的 <span class="+ topic/ph sw-d/filepath ph filepath">env.txt</span> 中,去掉
|
|
<span class="+ topic/keyword pr-d/parmname keyword parmname">quiet</span>
|
|
参数即可。<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_debugPortsConfiguration__codeblock_yvv_2wb_d1c" data-ofbid="bringup_debugPortsConfiguration__codeblock_yvv_2wb_d1c">set_commonargs=setenv bootargs quiet earlycon=${earlycon} earlyprintk init=/linuxrc</pre></div>
|
|
</section><section class="- topic/section section" id="bringup_debugPortsConfiguration__section_jnl_fwb_d1c" data-ofbid="bringup_debugPortsConfiguration__section_jnl_fwb_d1c"><h2 class="- topic/title title sectiontitle">额外日志</h2>
|
|
|
|
<p class="- topic/p p" data-ofbid="d341331e104__20250121171906">Luban 中有一些模块使用了额外的调试控制开关,如果需要可以手工打开,但如果模块工作正常就尽量不要打开,因为会拖慢开机速度。</p>
|
|
<div class="- topic/p p" data-ofbid="d341331e107__20250121171906">输入 <span class="+ topic/keyword sw-d/cmdname keyword cmdname">make km</span> 命令进入配置界面后,选择 <span class="+ topic/ph ui-d/menucascade ph menucascade"><span class="+ topic/ph ui-d/uicontrol ph uicontrol">Kernel hacking</span><abbr> > </abbr><span class="+ topic/ph ui-d/uicontrol ph uicontrol">Artinchip Debug</span></span>,可以配置下列调试参数:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="bringup_debugPortsConfiguration__codeblock_g2m_gwb_d1c" data-ofbid="bringup_debugPortsConfiguration__codeblock_g2m_gwb_d1c">[ ] ADCIM driver debug
|
|
[ ] Audio Codec driver debug
|
|
[ ] CE driver debug
|
|
[ ] SPI ENC driver debug
|
|
[ ] CIR driver debug
|
|
[ ] CMU driver debug
|
|
[ ] DE driver debug
|
|
[ ] DVP driver debug
|
|
[ ] GPAI driver debug
|
|
[ ] GE driver debug
|
|
[ ] GMAC driver debug
|
|
[ ] VE driver debug
|
|
[ ] Pinctrl driver debug
|
|
[ ] PWM driver debug
|
|
[ ] RTC driver debug
|
|
[ ] RTP driver debug
|
|
[ ] SD&MMC Host Controller driver debug
|
|
[ ] SPI driver debug
|
|
[ ] Thermal Sensor driver debug
|
|
[ ] TWI driver debug
|
|
[ ] UART driver debug
|
|
[ ] USB driver debug
|
|
[ ] Watchdog driver debug
|
|
[ ] SID(eFuse) driver debug
|
|
[ ] Boot time debug</pre></div>
|
|
</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="#bringup_debugPortsConfiguration__section_jpy_wvb_d1c" data-tocid="bringup_debugPortsConfiguration__section_jpy_wvb_d1c">串口参数</a></div></li><li class="section-item"><div class="section-title"><a href="#bringup_debugPortsConfiguration__section_ocw_dwb_d1c" data-tocid="bringup_debugPortsConfiguration__section_ocw_dwb_d1c">调试日志</a></div></li><li class="section-item"><div class="section-title"><a href="#bringup_debugPortsConfiguration__section_jnl_fwb_d1c" data-tocid="bringup_debugPortsConfiguration__section_jnl_fwb_d1c">额外日志</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-21
|
|
</div>
|
|
</div>
|
|
</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> |