# 入门指南

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by Microsoft Visio, SVG Export eth-dev-workflow.svg Page-1 -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:v="http://schemas.microsoft.com/visio/2003/SVGExtensions/" width="9.69791in" height="3.19791in" viewbox="0 0 698.25 230.25" xml:space="preserve" color-interpolation-filters="sRGB" class="st14"><v:documentproperties v:langid="1033" v:viewmarkup="false"></v:documentproperties>
<style>.svg-1 .st1 { fill: #ffffff; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st2 { fill: none }
.svg-1 .st3 { stroke: #000000; stroke-dasharray: 7, 5; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.999999 }
.svg-1 .st4 { fill: #3253dc; stroke: #3253dc; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st5 { fill: none; stroke: none; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st6 { fill: #ffffff; font-family: SimHei; font-size: 1.00001em }
.svg-1 .st7 { font-family: Arial; font-size: 1em }
.svg-1 .st8 { stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.999999 }
.svg-1 .st9 { fill: #000000; stroke: none; stroke-width: 0.999999 }
.svg-1 .st10 { fill: #82cbd7; stroke: #82cbd7; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st11 { fill: #000000; font-family: SimHei; font-size: 1.00001em }
.svg-1 .st12 { fill: none; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st13 { fill: #000000; font-family: SimHei; font-size: 1.33333em }
.svg-1 .st14 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }</style>
<g v:mid="0" v:index="1" v:groupcontext="foregroundPage">	<title>Page-1</title>	<v:pageproperties v:drawingscale="1" v:pagescale="1" v:drawingunits="19" v:shadowoffsetx="9" v:shadowoffsety="-9"></v:pageproperties>	<g id="shape3-1" v:mid="3" v:groupcontext="shape" transform="translate(0.375,-0.375)">		<title>Sheet.3</title>		<rect x="0" y="0.749998" width="697.5" height="229.5" class="st1"></rect>	</g>	<g id="shape5-3" v:mid="5" v:groupcontext="shape" transform="translate(26.6875,-149.252)">		<title>Sheet.5</title>		<path d="M0 230.25 L640.12 230.25 L0 230.25 Z" class="st2"></path>		<path d="M0 230.25 L640.12 230.25" class="st3"></path>	</g>	<g id="shape7-6" v:mid="7" v:groupcontext="shape" transform="translate(132.142,-168.187)">		<title>Sheet.7</title>		<rect x="0" y="188.375" width="92.25" height="41.875" class="st4"></rect>	</g>	<g id="shape8-8" v:mid="8" v:groupcontext="shape" transform="translate(135.812,-183.975)">		<title>Sheet.8</title>		<desc>设置 SSH 连接</desc>		<v:textblock v:margins="rect(0,0,0,0)" v:verticalalign="0"></v:textblock>		<v:textrect cx="54.0005" cy="223.05" width="108.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="108.001" height="14.4001" class="st5"></rect>		<text x="0" y="227.55" class="st6" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>设置<tspan class="st7"> </tspan><tspan class="st7">SSH </tspan>连接</text>		</g>	<g id="shape10-13" v:mid="10" v:groupcontext="shape" transform="translate(269.187,-168.187)">		<title>Sheet.10</title>		<rect x="0" y="188.375" width="92.25" height="41.875" class="st4"></rect>	</g>	<g id="shape11-15" v:mid="11" v:groupcontext="shape" transform="translate(275.312,-184.875)">		<title>Sheet.11</title>		<desc>验证 MAC 地址</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="54.0005" cy="223.05" width="108.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="108.001" height="14.4001" class="st5"></rect>		<text x="0" y="226.95" class="st6" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>验证<tspan class="st7"> </tspan><tspan class="st7">MAC </tspan>地址</text>		</g>	<g id="shape13-20" v:mid="13" v:groupcontext="shape" transform="translate(553.437,-167.249)">		<title>Sheet.13</title>		<rect x="0" y="188.375" width="108" height="41.875" class="st4"></rect>	</g>	<g id="shape14-22" v:mid="14" v:groupcontext="shape" transform="translate(576.812,-180.982)">		<title>Sheet.14</title>		<desc>调通以太网</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="30.0003" cy="223.05" width="60.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="60.0006" height="14.4001" class="st5"></rect>		<text x="0" y="226.95" class="st6" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>调通以太网</text>		</g>	<g id="group16-25" transform="translate(225.592,-189.416) rotate(0.111778)" v:mid="16" v:groupcontext="group">		<title>Sheet.16</title>		<g id="shape17-26" v:mid="17" v:groupcontext="shape">			<title>Sheet.17</title>			<path d="M0 230.25 L37 230.25 L0 230.25 Z" class="st2"></path>			<path d="M0 230.25 L37 230.25" class="st8"></path>		</g>		<g id="group18-29" transform="translate(37,3.52)" v:mid="18" v:groupcontext="group">			<title>mrkr4-22</title>			<g id="shape19-30" v:mid="19" v:groupcontext="shape" transform="translate(7.04,453.46) rotate(180)">				<title>Sheet.19</title>				<path d="M7.04 230.25 L0 226.73 L7.04 223.21 L7.04 230.25 Z" class="st9"></path>			</g>		</g>	</g>	<g id="group21-32" transform="translate(361.437,-189.752)" v:mid="21" v:groupcontext="group">		<title>Sheet.21</title>		<g id="shape22-33" v:mid="22" v:groupcontext="shape">			<title>Sheet.22</title>			<path d="M0 230.25 L184.96 230.25 L0 230.25 Z" class="st2"></path>			<path d="M0 230.25 L184.96 230.25" class="st8"></path>		</g>		<g id="group23-36" transform="translate(184.96,3.52)" v:mid="23" v:groupcontext="group">			<title>mrkr4-22</title>			<g id="shape24-37" v:mid="24" v:groupcontext="shape" transform="translate(7.04,453.46) rotate(180)">				<title>Sheet.24</title>				<path d="M7.04 230.25 L0 226.73 L7.04 223.21 L7.04 230.25 Z" class="st9"></path>			</g>		</g>	</g>	<g id="shape26-39" v:mid="26" v:groupcontext="shape" transform="translate(390.687,-89.1244)">		<title>Sheet.26</title>		<rect x="0" y="188.375" width="133.5" height="41.875" class="st10"></rect>	</g>	<g id="shape27-41" v:mid="27" v:groupcontext="shape" transform="translate(410.077,-110.057)">		<title>Sheet.27</title>		<desc>调通启用替代硬件</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="54.0005" cy="223.05" width="108.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="108.001" height="14.4001" class="st5"></rect>		<text x="0" y="226.95" class="st11" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>调通启用替代硬件</text>		</g>	<g id="shape29-44" v:mid="29" v:groupcontext="shape" transform="translate(264.687,-89.3119)">		<title>Sheet.29</title>		<rect x="0" y="188.375" width="98.9999" height="41.875" class="st10"></rect>	</g>	<g id="shape30-46" v:mid="30" v:groupcontext="shape" transform="translate(279.812,-105.675)">		<title>Sheet.30</title>		<desc>保留并存储 MAC 地址</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="72.0007" cy="223.05" width="144.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="144.001" height="14.4001" class="st5"></rect>		<text x="0" y="219.15" class="st11" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>保留并存储<v:newlinechar></v:newlinechar><tspan x="0" dy="1.3em" class="st7"> </tspan><tspan class="st7">MAC </tspan>地址</text>		</g>	<g id="shape32-51" v:mid="32" v:groupcontext="shape" transform="translate(553.287,-89.1244)">		<title>Sheet.32</title>		<rect x="0" y="188.375" width="108" height="41.875" class="st10"></rect>	</g>	<g id="shape33-53" v:mid="33" v:groupcontext="shape" transform="translate(564.812,-107.475)">		<title>Sheet.33</title>		<desc>配置以太网功能</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="48.0005" cy="223.05" width="96.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="96.0009" height="14.4001" class="st5"></rect>		<text x="0" y="226.95" class="st11" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>配置以太网功能</text>		</g>	<g id="shape35-56" v:mid="35" v:groupcontext="shape" transform="translate(19.1875,-110.188)">		<title>Sheet.35</title>		<rect x="0" y="198.75" width="108" height="31.5" class="st12"></rect>	</g>	<g id="shape36-58" v:mid="36" v:groupcontext="shape" transform="translate(25.6175,-116.34)">		<title>Sheet.36</title>		<desc>探索更多</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="31.9999" cy="220.65" width="64" height="19.1999"></v:textrect>		<rect x="0" y="211.05" width="63.9998" height="19.1999" class="st5"></rect>		<text x="0" y="225.85" class="st13" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>探索更多</text>		</g>	<g id="shape38-61" v:mid="38" v:groupcontext="shape" transform="translate(19.4375,-155.625)">		<title>Sheet.38</title>		<rect x="0" y="198.75" width="92.25" height="31.5" class="st12"></rect>	</g>	<g id="shape39-63" v:mid="39" v:groupcontext="shape" transform="translate(25.9875,-161.777)">		<title>Sheet.39</title>		<desc>入门</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="16" cy="220.65" width="32" height="19.1999"></v:textrect>		<rect x="0" y="211.05" width="31.9999" height="19.1999" class="st5"></rect>		<text x="0" y="225.85" class="st13" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>入门</text>		</g>	<g id="shape41-66" v:mid="41" v:groupcontext="shape" transform="translate(553.287,-18.7495)">		<title>Sheet.41</title>		<rect x="0" y="188.375" width="108" height="41.875" class="st10"></rect>	</g>	<g id="shape42-68" v:mid="42" v:groupcontext="shape" transform="translate(567.247,-35.4752)">		<title>Sheet.42</title>		<desc>日志和调试问题</desc>		<v:textblock v:margins="rect(0,0,0,0)"></v:textblock>		<v:textrect cx="48.0005" cy="223.05" width="96.01" height="14.4001"></v:textrect>		<rect x="0" y="215.85" width="96.0009" height="14.4001" class="st5"></rect>		<text x="0" y="226.95" class="st11" v:langid="1033"><v:paragraph></v:paragraph><v:tablist></v:tablist>日志和调试问题</text>		</g>	<g id="group44-71" transform="translate(544.439,62.4514) rotate(90.0968)" v:mid="44" v:groupcontext="group">		<title>Sheet.44</title>		<g id="shape45-72" v:mid="45" v:groupcontext="shape">			<title>Sheet.45</title>			<path d="M0 230.25 L29.96 230.25 L0 230.25 Z" class="st2"></path>			<path d="M0 230.25 L29.96 230.25" class="st8"></path>		</g>		<g id="group46-75" transform="translate(29.96,3.52)" v:mid="46" v:groupcontext="group">			<title>mrkr4-22</title>			<g id="shape47-76" v:mid="47" v:groupcontext="shape" transform="translate(7.04,453.46) rotate(180)">				<title>Sheet.47</title>				<path d="M7.04 230.25 L0 226.73 L7.04 223.21 L7.04 230.25 Z" class="st9"></path>			</g>		</g>	</g>	<g id="group49-78" transform="translate(837.439,63.4999) rotate(90.0498)" v:mid="49" v:groupcontext="group">		<title>Sheet.49</title>		<g id="shape50-79" v:mid="50" v:groupcontext="shape">			<title>Sheet.50</title>			<path d="M0 230.25 L28.96 230.25 L0 230.25 Z" class="st2"></path>			<path d="M0 230.25 L28.96 230.25" class="st8"></path>		</g>		<g id="group51-82" transform="translate(28.96,3.52)" v:mid="51" v:groupcontext="group">			<title>mrkr4-22</title>			<g id="shape52-83" v:mid="52" v:groupcontext="shape" transform="translate(7.04,453.46) rotate(180)">				<title>Sheet.52</title>				<path d="M7.04 230.25 L0 226.73 L7.04 223.21 L7.04 230.25 Z" class="st9"></path>			</g>		</g>	</g>	<g id="group54-85" transform="translate(837.539,141.812) rotate(90)" v:mid="54" v:groupcontext="group">		<title>Sheet.54</title>		<g id="shape55-86" v:mid="55" v:groupcontext="shape">			<title>Sheet.55</title>			<path d="M0 230.25 L20.8 230.25 L0 230.25 Z" class="st2"></path>			<path d="M0 230.25 L20.8 230.25" class="st8"></path>		</g>		<g id="group56-89" transform="translate(20.8,3.52)" v:mid="56" v:groupcontext="group">			<title>mrkr4-22</title>			<g id="shape57-90" v:mid="57" v:groupcontext="shape" transform="translate(7.04,453.46) rotate(180)">				<title>Sheet.57</title>				<path d="M7.04 230.25 L0 226.73 L7.04 223.21 L7.04 230.25 Z" class="st9"></path>			</g>		</g>	</g>	<g id="group59-92" transform="translate(524.187,-110.502)" v:mid="59" v:groupcontext="group">		<title>Sheet.59</title>		<g id="shape60-93" v:mid="60" v:groupcontext="shape">			<title>Sheet.60</title>			<path d="M0 230.25 L22.06 230.25 L0 230.25 Z" class="st2"></path>			<path d="M0 230.25 L22.06 230.25" class="st8"></path>		</g>		<g id="group61-96" transform="translate(22.06,3.52)" v:mid="61" v:groupcontext="group">			<title>mrkr4-22</title>			<g id="shape62-97" v:mid="62" v:groupcontext="shape" transform="translate(7.04,453.46) rotate(180)">				<title>Sheet.62</title>				<path d="M7.04 230.25 L0 226.73 L7.04 223.21 L7.04 230.25 Z" class="st9"></path>			</g>		</g>	</g></g>
</svg>

在开始之前，请参阅 [*Qualcomm Linux 编译指南*](https://docs.qualcomm.com/bundle/publicresource/topics/80-70017-254) 了解常见基础架构设置和构建工作流程。

关于 QCS6490/QCS5430 上以太网接口的更多信息，请参阅 [RB3 Gen 2 开发套件上的以太网](https://docs.qualcomm.com/bundle/publicresource/topics/80-70015-251/rb3_gen2_ethernet.html)。

## 设置 SSH 连接

要启用 SSH 并连接到设备，请执行以下操作：

1. 请执行[使用 SSH 登录](https://docs.qualcomm.com/bundle/publicresource/topics/80-70017-254/how_to.html#use-ssh)中提到的步骤，以便启用 SSH。
2. 要连接到设备，请运行以下命令：

ssh root@<device_IP_address>
        Copy to clipboard

    例如，如果设备的 IP 地址为 `10.92.160.222`，请运行以下命令：

ssh root@10.92.160.222
        Copy to clipboard
3. 要连接 SSH shell，可输入以下密码：

oelinux123
        Copy to clipboard

## 验证预配置的 MAC 地址

Note

QCS6490/QCS5430 支持 MAC 地址持久存储，但 QCS9075 不支持。

QPS615 是 RB3 Gen 2 开发套件上的 PCIe switch。它没有可用于固定存储 MAC 地址的电可擦编程只读存储器 (EEPROM)。但是，MAC 地址已编程并存储到设备的固定路径中。

要验证预配置的 MAC 地址，请执行以下操作：

1. 要验证接口的配置，请运行以下命令。

ifconfig
        Copy to clipboard

    示例输出：

enP1p5s0f0 Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY

inet addr:169.254.227.235  Bcast:169.254.255.255  Mask:255.255.0.0

inet6 addr: fe80::533c:8ed6:557:3860/64 Scope:Link

UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

RX packets:19 errors:0 dropped:0 overruns:0 frame:0

TX packets:36 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:3416 (3.3 KiB)  TX bytes:5559 (5.4 KiB)

Interrupt:249

    MAC 地址存储在 `config.ini` 文件中，并且位于设备的 `/var/persist` 中。
2. 要验证 `config.ini` 文件是否位于设备上，请运行以下命令：

ls /var/persist/
        Copy to clipboard
3. 请运行以下命令，以便验证 `config.ini` 文件的内容。

cat /var/persist/config.ini
        Copy to clipboard

    示例输出：

#MAC ID configuration, For Test purpose only

MDIOBUSID1: 1: MAC\_ID01: XX:XX:XX:YY:YY:YY

## 保留并存储 MAC 地址

Note

QCS6490/QCS5430 支持保留和存储 MAC 地址，但 QCS9075 不支持。

每当设备重启时，持久路径 `/var/persist` 中的 MAC 地址配置 `config.ini` 文件均会保留。但是，在升级软件版本时，如果选择了 **Erase all before download** 选项，则会将将配置文件从设备中删除。在这种情况下，软件将分配一个随机的 MAC 地址。

请执行以下操作，以便保留 `config.ini` 文件并将 MAC 地址存储在 `/var/persist` 以外的位置：

1. 要将文件备份到本地路径，请运行以下命令：

scp  root@<device_ip_address>:/var/persist/config.ini .
        Copy to clipboard
2. 要在升级软件编译版本后还原备份的文件，请运行以下命令：

scp config.ini root@<device_ip_address>:/var/persit/
        Copy to clipboard

Note

当系统提示输入密码时，输入 `oelinux123` 以通过安全复制协议 (SCP) 对文件传输进行鉴权。
3. 要将 MAC 地址存储在 `/var/persist` 以外的位置，请在以下源代码中使用新路径更新 EMAC 驱动程序软件：

sources/data-eth/drivers/qps615/src/tc956xmac_main.c
        ret = kernel_read_file_from_path("/var/persist/config.ini", &data, &size, 1000, READING_POLICY);
        Copy to clipboard

Last Published: Jan 24, 2025

[Previous Topic
概述](https://docs.qualcomm.com/bundle/publicresource/80-70017-26SC/topics/overview.md) [Next Topic
功能](https://docs.qualcomm.com/bundle/publicresource/80-70017-26SC/topics/features.md)