# 调通以太网

下图展示了在参考套件上调通以太网的工作流。

<?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 bringup-workflow.svg bringup-workflow -->
<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="8.01042in" height="1.38542in" viewbox="0 0 576.75 99.7502" xml:space="preserve" color-interpolation-filters="sRGB" class="st9" aria-label="图 ：以太网启动工作流"><v:documentproperties v:langid="1033"></v:documentproperties>
<style>.svg-1 .st1 { fill: #ffffff; stroke: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st2 { fill: #fafafa; stroke: #d2d7e1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st3 { fill: #6280cc; stroke: #6280cc; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0.75 }
.svg-1 .st4 { fill: #ffffff; font-family: SimHei; font-size: 1.00001em }
.svg-1 .st5 { font-family: Arial; font-size: 1em }
.svg-1 .st6 { fill: #6280cc; stroke: #6280cc; stroke-linecap: butt; stroke-width: 0.75 }
.svg-1 .st7 { marker-end: url("#mrkr4-25"); stroke: #000000; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1 }
.svg-1 .st8 { fill: #000000; fill-opacity: 1; stroke: #000000; stroke-opacity: 1; stroke-width: 0.28409099372373 }
.svg-1 .st9 { fill: none; fill-rule: evenodd; font-size: 12px; overflow: visible; stroke-linecap: square; stroke-miterlimit: 3 }</style>
<defs id="Markers">	<g id="lend4">		<path d="M 2 1 L 0 0 L 2 -1 L 2 1 " style="stroke:none"></path>	</g>	<marker id="mrkr4-25" class="st8" v:arrowtype="4" v:arrowsize="2" v:setback="7.04" refx="-7.0399979027317" orient="auto" markerunits="strokeWidth" overflow="visible">		<use xlink:href="#lend4" transform="scale(-3.5199989513658,-3.5199989513658) "></use>	</marker></defs><g v:mid="0" v:index="1" v:groupcontext="foregroundPage">	<title>bringup-workflow</title>	<v:pageproperties v:drawingscale="1" v:pagescale="1" v:drawingunits="19" v:shadowoffsetx="9" v:shadowoffsety="-9"></v:pageproperties>	<g id="shape1-1" v:mid="1" v:groupcontext="shape" transform="translate(0,-9.92458E-05)">		<title>Solid.1000</title>		<v:userdefs>			<v:ud v:nameu="Background" v:val="VT0(0):26"></v:ud>			<v:ud v:nameu="visVersion" v:val="VT0(15):26"></v:ud>			<v:ud v:nameu="msvShapeCategories" v:val="VT4(DoNotContain)"></v:ud>			<v:ud v:nameu="msvVisioCreated" v:val="VT0(0):26"></v:ud>		</v:userdefs>		<rect x="0" y="0.000198492" width="576.75" height="99.75" class="st1"></rect>	</g>	<g id="shape2-3" v:mid="2" v:groupcontext="shape" transform="translate(18.375,-18.3751)">		<title>Sheet.2</title>		<path d="M-0 95.25 A4.50011 4.50011 -180 0 0 4.5 99.75 L535.5 99.75 A4.50011 4.50011 -180 0 0 540 95.25 L540 41.25 A4.50011					 4.50011 -180 0 0 535.5 36.75 L4.5 36.75 A4.50011 4.50011 -180 0 0 -0 41.25 L0 95.25 Z" class="st2"></path>	</g>	<g id="shape3-5" v:mid="3" v:groupcontext="shape" transform="translate(28.5,-27.8438)">		<title>Sheet.3</title>		<desc>分配 MAC 地址</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="72" cy="78.1501" width="144.01" height="43.2"></v:textrect>		<path d="M0 95.25 A4.50011 4.50011 -180 0 0 4.5 99.75 L139.5 99.75 A4.50011 4.50011 -180 0 0 144 95.25 L144 61.05 A4.50011					 4.50011 -180 0 0 139.5 56.55 L4.5 56.55 A4.50011 4.50011 -180 0 0 0 61.05 L0 95.25 Z" class="st3"></path>		<text x="31.33" y="82.1" class="st4" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>分配<tspan class="st5"> </tspan><tspan class="st5">MAC </tspan>地址</text>		</g>	<g id="shape4-10" v:mid="4" v:groupcontext="shape" transform="translate(404.625,-27.8438)">		<title>Sheet.4</title>		<desc>配置 MTU 大小</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="72" cy="78.1501" width="144.01" height="43.2"></v:textrect>		<path d="M0 95.25 A4.50011 4.50011 -180 0 0 4.5 99.75 L139.5 99.75 A4.50011 4.50011 -180 0 0 144 95.25 L144 61.05 A4.50011					 4.50011 -180 0 0 139.5 56.55 L4.5 56.55 A4.50011 4.50011 -180 0 0 0 61.05 L0 95.25 Z" class="st3"></path>		<text x="31.67" y="82.05" class="st4" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>配置<tspan class="st5"> </tspan><tspan class="st5">MTU </tspan>大小</text>		</g>	<g id="shape5-15" v:mid="5" v:groupcontext="shape" transform="translate(216.375,-27.8438)">		<title>Sheet.5</title>		<desc>分配 IP 地址</desc>		<v:userdefs></v:userdefs>		<v:textblock v:margins="rect(4,4,4,4)"></v:textblock>		<v:textrect cx="72" cy="78.1501" width="144.01" height="43.2"></v:textrect>		<path d="M0 95.25 A4.50011 4.50011 -180 0 0 4.5 99.75 L139.5 99.75 A4.50011 4.50011 -180 0 0 144 95.25 L144 61.05 A4.50011					 4.50011 -180 0 0 139.5 56.55 L4.5 56.55 A4.50011 4.50011 -180 0 0 0 61.05 L0 95.25 Z" class="st6"></path>		<text x="39" y="82.05" class="st4" v:langid="1033"><v:paragraph v:horizalign="1"></v:paragraph><v:tablist></v:tablist>分配<tspan class="st5"> </tspan><tspan class="st5">IP </tspan>地址</text>		</g>	<g id="shape6-20" v:mid="6" v:groupcontext="shape" transform="translate(172.975,-49.9188)">		<title>Sheet.6</title>		<path d="M0 99.75 L36.16 99.75 L36.16 99.75" class="st7"></path>	</g>	<g id="shape7-26" v:mid="7" v:groupcontext="shape" transform="translate(361.125,-49.6688)">		<title>Sheet.7</title>		<path d="M0 99.75 L36.16 99.75 L36.16 99.75" class="st7"></path>	</g></g>
</svg>

以太网调通工作流

Tab QCS6490
Tab IQ-9075
Tab IQ-8275
Tab IQ-615

- *class* tabincludedirective

    - Note

- 在设备上刷写相应的 [CDT](https://docs.qualcomm.com/bundle/publicresource/topics/RNO-251013063244/ReleaseNote.html#release-specific-information)，以确保使用正确的配置调通以太网。
- QPS615 MAC 驱动程序和内核配置在源代码中默认启用。
- 要调通 Qualcomm 提供的配置以外的硬件，请参阅[调通替代硬件](https://docs.qualcomm.com/doc/80-70022-26SC/topic/bring_up-ethernet.html#bring-up-alt-hardware-enablement)。

要在 RB3 Gen 2 开发套件上启用以太网功能，请执行以下操作：

> 
> 
> 1. RB3 Gen 2 开发套件附带[预先配置的 MAC 地址](https://docs.qualcomm.com/doc/80-70022-26SC/topic/get_started.html#verify-preconfigured-mac)。如果您选择使用相同的 MAC 地址，请跳过此步骤。
> 
> 
> 
> > 
> > 
> > 或者，要更改设备上的预配置 MAC 地址，请执行以下步骤：
> > 
> >     1. 关闭接口
> > 
> > 
> > 
> > > 
> > > 
> > > ifconfig <Interface_name> down
> > >             Copy to clipboard
> > > 
> > > 
> > > 例如：
> > > 
> > > 
> > > ifconfig enP1p5s0f0 down
> > >             Copy to clipboard
> >     2. 分配 MAC 地址。
> > 
> > 
> > 
> > > 
> > > 
> > > ifconfig <Interface_name> hw ether <MAC Address>
> > >             Copy to clipboard
> > > 
> > > 
> > > 例如：
> > > 
> > > 
> > > ifconfig enP15s0f0 hw ether XX:XX:XX:YY:YY:YY
> > >             Copy to clipboard
> >     3. 调通接口：
> > 
> > 
> > 
> > > 
> > > 
> > > ifconfig <Interface_name> <ip address> up
> > >             Copy to clipboard
> > > 
> > > 
> > > 例如：
> > > 
> > > 
> > > ifconfig enP1p5s0f0 169.254.227.235 up
> > >             Copy to clipboard
> > > 
> > > 
> > > 示例输出：
> > > 
> > > 
> > > ifconfig
> > >             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
> > >             Copy to clipboard
> > > 
> > > 
> > > Note
> > > 
> > > 
> > > 该 MAC 地址仅在当前启动周期内有效。重启设备后，将使用[验证预配置的 MAC 地址](https://docs.qualcomm.com/doc/80-70022-26SC/topic/get_started.html#verify-preconfigured-mac)中永久存储的地址更新 MAC 地址。
> 2. 当设备连接到公共网络时，网络中的 DHCP 服务器会自动分配 IP 地址。如果设备未被分配动态 IP 地址，但仍需要以太网连接，请在客户端所在的同一子网内手动配置静态 IP 地址。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> <ip address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig enP1p5s0f0 169.254.227.235
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > ifconfig
> >         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
> >         Copy to clipboard
> > 
> > 
> > Note
> > 
> > 
> > 该 IP 地址仅在当前启动周期有效。重启设备时，IP 地址不会保留。
> 3. 配置以太网接口上数据包的 MTU 大小。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> down
> >         
> >         ifconfig <Interface_name> mtu <mtu_size>
> >         
> >         ifconfig <Interface_name> up
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig enP1p5s0f0 down
> >         
> >         ifconfig enP1p5s0f0 mtu 1500
> >         
> >         ifconfig enP1p5s0f0 up
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > ifconfig
> >         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
> >         Copy to clipboard

## 调通替代硬件

您也可以使用 Qualcomm 提供的硬件配置以外的其他 MAC/PHY 组件并将它们调通。要将 QPS615 替换为其他基于 PCIe 的 MAC/PHY，参见 [QPS615 switch 的 PCIe 软件支持](https://docs.qualcomm.com/bundle/publicresource/topics/80-70022-8/pcie.html#sub$pcie-software-support-feature-for-qps615)。

Note

您必须从相应的厂商获取 MAC/PHY 的驱动程序和固件。Qualcomm 不对这些配置更改负责。

### 保留 QPS615 PCIe 并更换 QEP8121/AQR113C

要保留 QPS615 PCIe 并将 QEP8121/AQR113C 更换为其他 PHY 组件，请执行以下操作：

1. 根据附加的 PHY 建议，更新 `arch/arm64/boot/dts/qcom/qcs6490-addons-rb3gen2.dtsi` 文件中的所有参数。
2. 编译软件。

    QEP PHY 的示例代码：

qep_vreg: qep_vreg {
              compatible = "regulator-fixed";
              regulator-name = "qep_vreg";
              gpio = <&pm7325_gpios 8 0>;
              regulator-min-microvolt = <1800000>;
              regulator-max-microvolt = <1800000>;
              enable-active-high;
              };

        qps615_eth1,qps615_eth1@pcie1_rp {
                 reg = <0x100 0x0 0x0 0x0 0x0>;
                 pinctrl-names = "default";
                 pinctrl-0 = <&napa_intn_wol_sig>;
                 qcom,phy-rst-gpio = <1>;
                 interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>;
                 interrupt-names = "wol_irq";
                 phy-supply = <&qep_vreg>;
                 qcom,phy-rst-delay-us = <20000>;
                 #address-cells = <1>;
                 #size-cells = <1>;
              };
        Copy to clipboard

    刷写已修改的软件后，QPS615 驱动程序会扫描与其连接的物理设备，并比对 `qcs6490-addons-rb3gen2.dtsi` 文件中的设备树信息。

Note

由于 `.dtsi` 文件中的配置与 PHY 的实际建议不匹配，PHY 可能无法加载。在这种情况下，您必须相应地更新 `.dtsi` 文件中的配置。

## 启用 AQR PHY

虽然 10 GbE 的 AQR PHY 为可选项，但它已在参考 RB3 Gen 2 开发套件上进行了验证。您只需将 PHY 固件刷写到硬件一次。但是，当检测到 AQR PHY 时，PHY 驱动程序默认启用。

Qualcomm 验证了 RB3 Gen 2 开发套件上的以下 AQR PHY 固件：

- Marvell 固件：`AQR-G4_v5.6.1-QR_Marvell_NoSwap_XFI_ID44874_VER1836.cld`
- 建议使用 Marvell 专有 flashburn 工具来刷写 Marvell AQR113 PHY。
- 请联系 Marvell Technology, Inc. 以获取 AQR PHY 固件。

### 检测 PHY

要检测 PHY，请执行以下操作：

1. 更新 `arch/arm64/boot/dts/qcom/qcs6490-addons-rb3gen2.dtsi` 文件中的 AQR PHY 参数。
2. 编译软件。

    AQR PHY 示例代码：

aqr_vreg: aqr_vreg {
                 compatible = "regulator-fixed";
                 regulator-name = "aqr_vreg";
                 gpio = <&pm7250b_gpios 4 0>;
                 regulator-min-microvolt = <1800000>;
                 regulator-max-microvolt = <1800000>;
                 enable-active-high;
              };
        
        qps615_eth0,qps615_eth0@pcie1_rp {
                 reg = <0x0 0x0 0x0 0x0 0x0>;
                 pinctrl-names = "default";
                 pinctrl-0 = <&aqr_intn_wol_sig>;
                 qcom,phy-rst-gpio = <0>;
                 interrupts-extended = <&tlmm 141 IRQ_TYPE_EDGE_FALLING>;
                 interrupt-names = "wol_irq";
                 phy-supply = <&aqr_vreg>;
                 qcom,phy-rst-delay-us = <221000>;
                 #address-cells = <1>;
                 #size-cells = <1>;
              };
        Copy to clipboard

- *class* tabincludedirective

    - Note

在设备上刷写相应的 [CDT](https://docs.qualcomm.com/bundle/publicresource/topics/RNO-251013063244/ReleaseNote.html#release-specific-information)，以确保使用正确的配置调通以太网。

要在 IQ-9075 EVK 上调通以太网功能，请执行以下操作：

> 
> 
> 1. IQ-9075 EVK 带有 MAC 地址。如果您选择使用相同的 MAC 地址，请跳过此步骤。
> 
> 
> 
> > 
> > 
> > 或者，您可以更改设备上的 MAC 地址。
> > 
> > 
> > ifconfig <Interface_name> hw ether <MAC Address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 hw ether XX:XX:XX:YY:YY:YY
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:34 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:453 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:10176 (9.9 KiB)  TX bytes:74668 (72.9 KiB)
> >                 Interrupt:36
> >         Copy to clipboard
> > 
> > 
> > Note
> > 
> > 
> > 该 MAC 地址仅在当前启动周期内有效。重启设备后，MAC 地址将更新为持久存储中的地址。
> 2. 当设备连接到公共网络时，网络中的 DHCP 服务器会自动分配 IP 地址。如果设备未被分配动态 IP 地址，但仍需要以太网连接，请在客户端所在的同一子网内手动配置静态 IP 地址。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> <ip address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 192.168.1.1
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:34 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:453 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:10176 (9.9 KiB)  TX bytes:74668 (72.9 KiB)
> >                 Interrupt:36
> >         Copy to clipboard

> 
> 
> 3. 配置以太网接口上数据包的 MTU 大小。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> down
> >         
> >         ifconfig <Interface_name> mtu <mtu_size>
> >         
> >         ifconfig <Interface_name> up
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 down
> >         
> >         ifconfig eth0 mtu 1500
> >         
> >         ifconfig eth0 up
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:34 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:453 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:10176 (9.9 KiB)  TX bytes:74668 (72.9 KiB)
> >                 Interrupt:36
> >         Copy to clipboard

- *class* tabincludedirective

    - Note

在设备上刷写相应的 [CDT](https://docs.qualcomm.com/bundle/publicresource/topics/RNO-251013063244/ReleaseNote.html#release-specific-information)，以确保使用正确的配置调通以太网。

要在 IQ-8275 EVK 上调通以太网功能，请执行以下操作：

> 
> 
> 1. IQ-8275 EVK 带有 MAC 地址。如果您选择使用相同的 MAC 地址，请跳过此步骤。
> 
> 
> 
> > 
> > 
> > 或者，您可以更改设备上的 MAC 地址。
> > 
> > 
> > ifconfig <Interface_name> hw ether <MAC Address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 hw ether XX:XX:XX:YY:YY:YY
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:57 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:11403 (11.1 KiB)  TX bytes:31620 (30.8 KiB)
> >                 Interrupt:61
> >         Copy to clipboard
> > 
> > 
> > Note
> > 
> > 
> > 该 MAC 地址仅在当前启动周期内有效。重启设备后，MAC 地址将更新为持久存储中的地址。
> 2. 当设备连接到公共网络时，网络中的 DHCP 服务器会自动分配 IP 地址。如果设备未被分配动态 IP 地址，但仍需要以太网连接，请在客户端所在的同一子网内手动配置静态 IP 地址。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> <ip address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 192.168.1.1
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:57 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:11403 (11.1 KiB)  TX bytes:31620 (30.8 KiB)
> >                 Interrupt:61
> >         Copy to clipboard

> 
> 
> 3. 配置以太网接口上数据包的 MTU 大小。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> down
> >         
> >         ifconfig <Interface_name> mtu <mtu_size>
> >         
> >         ifconfig <Interface_name> up
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 down
> >         
> >         ifconfig eth0 mtu 1500
> >         
> >         ifconfig eth0 up
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:57 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:192 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:11403 (11.1 KiB)  TX bytes:31620 (30.8 KiB)
> >                 Interrupt:61
> >         Copy to clipboard

- *class* tabincludedirective

    - Note

在设备上刷写相应的 [CDT](https://docs.qualcomm.com/bundle/publicresource/topics/RNO-251013063244/ReleaseNote.html#release-specific-information)，以确保使用正确的配置调通以太网。

要在 IQ-615 EVK 上调通以太网功能，请执行以下操作：

> 
> 
> 1. IQ-615 EVK 带有 MAC 地址。如果您选择使用相同的 MAC 地址，请跳过此步骤。
> 
> 
> 
> > 
> > 
> > 或者，您可以更改设备上的 MAC 地址。
> > 
> > 
> > ifconfig <Interface_name> hw ether <MAC Address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 hw ether XX:XX:XX:YY:YY:YY
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:169.254.210.12  Bcast:169.254.255.255  Mask:255.255.0.0
> >                 inet6 addr: fe80::44e6:e3ff:fe29:1c58/64 Scope:Link
> >                 inet6 addr: fe80::ff5a:f25c:91c:4c1d/64 Scope:Link
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:7 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:610 (610.0 B)  TX bytes:11052 (10.7 KiB)
> >                 Interrupt:140
> >         Copy to clipboard
> > 
> > 
> > Note
> > 
> > 
> > 该 MAC 地址仅在当前启动周期内有效。重启设备后，MAC 地址将更新为随机地址。
> 2. 当设备连接到公共网络时，网络中的 DHCP 服务器会自动分配 IP 地址。如果设备未被分配动态 IP 地址，但仍需要以太网连接，请在客户端所在的同一子网内手动配置静态 IP 地址。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> <ip address>
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 169.254.210.12
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:169.254.210.12  Bcast:169.254.255.255  Mask:255.255.0.0
> >                 inet6 addr: fe80::44e6:e3ff:fe29:1c58/64 Scope:Link
> >                 inet6 addr: fe80::ff5a:f25c:91c:4c1d/64 Scope:Link
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:7 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:610 (610.0 B)  TX bytes:11052 (10.7 KiB)
> >                 Interrupt:140
> >         Copy to clipboard

> 
> 
> 3. 配置以太网接口上数据包的 MTU 大小。
> 
> 
> 
> > 
> > 
> > ifconfig <Interface_name> down
> >         
> >         ifconfig <Interface_name> mtu <mtu_size>
> >         
> >         ifconfig <Interface_name> up
> >         Copy to clipboard
> > 
> > 
> > 例如：
> > 
> > 
> > ifconfig eth0 down
> >         
> >         ifconfig eth0 mtu 1500
> >         
> >         ifconfig eth0 up
> >         Copy to clipboard
> > 
> > 
> > 示例输出：
> > 
> > 
> > eth0    Link encap:Ethernet  HWaddr XX:XX:XX:YY:YY:YY
> >                 inet addr:169.254.210.12  Bcast:169.254.255.255  Mask:255.255.0.0
> >                 inet6 addr: fe80::44e6:e3ff:fe29:1c58/64 Scope:Link
> >                 inet6 addr: fe80::ff5a:f25c:91c:4c1d/64 Scope:Link
> >                 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >                 RX packets:7 errors:0 dropped:0 overruns:0 frame:0
> >                 TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
> >                 collisions:0 txqueuelen:1000
> >                 RX bytes:610 (610.0 B)  TX bytes:11052 (10.7 KiB)
> >                 Interrupt:140
> >         Copy to clipboard

Last Published: Nov 16, 2025

[Previous Topic
以太网架构](https://docs.qualcomm.com/bundle/publicresource/80-70022-26SC/topics/ethernet-architecture.md) [Next Topic
执行以太网操作](https://docs.qualcomm.com/bundle/publicresource/80-70022-26SC/topics/perform-ethernet-operations.md)