// 此模板仅供参考,如果不适用可以修改
问题描述
BMC网口环回装备测试失败
环境信息
- 软件版本:OpenUBMC LTS SP1
重现步骤
- 使能DFT,命令ipmicmd -k “f 0 30 90 20 db 07 00 01” smi 0,返回0f 31 00 90 00表示成功,否则失败
- 获取测试项个数,命令ipmicmd -k “f 0 30 90 40 02” smi 0 ,返回0f 31 00 90 00表示成功,否则失败,返回第二个字节为测试项个数,测试项个数为0则报失败
- 获取每个测试项的内容,命令ipmicmd -k “f 0 30 90 41 00 20 02 $testitem” smi 0,返回0f 31 00 90 00表示成功,否则失败
- 解析返回的DFT ID、DEVICE ID、测试项名字,把DFT ID为0x4a的保存下来,如果所有的测试项DFT ID都不为0x4a则报错
- 启动DFT ID为0x4a的测试项测试,命令ipmicmd -k “f 0 30 90 42 00 20 02 01 $obtain_testitem” smi 0
期望结果
DFT ID为0x4a的测试项成功
实际结果
DFT ID为0x4a的测试项失败
分析结论
日志提示如下,涉及闭源
2026-04-09 02:07:19.998636 manufacture NOTICE: get_test_item_count.lua(24): get dft item type = 2 num is 25
2026-04-09 02:07:32.357349 bmc_network NOTICE: manufacture_dft.lua(127): dft eth test: Id:74 Slot:1 DeviceNum:0 [repeated 33 times in 362s from 2026-04-09 02:01:30.525016 to 2026-04-09 02:07:32.357349]
2026-04-09 02:07:32.358138 bmc_network NOTICE: manufacture_dft.lua(142): dft eth test: eth_name user eth2 [repeated 33 times in 362s from 2026-04-09 02:01:30.525703 to 2026-04-09 02:07:32.358138]
2026-04-09 02:07:32.358547 bmc_network NOTICE: manufacture_dft.lua(267): dft eth start: eth_name:eth2 eth_mac:f0:c8:b5:ac:f0:87 test_type:0 [repeated 33 times in 362s from 2026-04-09 02:01:30.526192 to 2026-04-09 02:07:32.358547]
2026-04-09 02:07:32.359738 bmc_network NOTICE: manufacture_dft.lua(224): bmc self loop test start mac is: ,eth is eth2 [repeated 8 times in 380s from 2026-04-09 02:01:12.216430 to 2026-04-09 02:07:32.359738]
2026-04-09 02:07:32.360335 bmc_network NOTICE: manufacture_dft.lua(283): dft eth start: test status: Testing, test result:Failed [repeated 33 times in 362s from 2026-04-09 02:01:30.526603 to 2026-04-09 02:07:32.360335]
2026-04-09 02:07:32.853727 bmc_network NOTICE: manufacture_dft.lua(49): get_phy_identifier start! [repeated 8 times in 380s from 2026-04-09 02:01:12.714319 to 2026-04-09 02:07:32.853727]
2026-04-09 02:07:32.854408 bmc_network NOTICE: manufacture_dft.lua(204): dft eth, phy_addr is 3, read identifier is 282 [repeated 8 times in 380s from 2026-04-09 02:01:12.714991 to 2026-04-09 02:07:32.854408]
2026-04-09 02:07:32.855812 bmc_network NOTICE: manufacture_dft.lua(83): enable phy loop mode begin [repeated 8 times in 380s from 2026-04-09 02:01:12.716559 to 2026-04-09 02:07:32.855812]
2026-04-09 02:07:32.856703 bmc_network NOTICE: manufacture_dft.lua(100): enable phy loop mode end [repeated 8 times in 380s from 2026-04-09 02:01:12.717513 to 2026-04-09 02:07:32.856703]
2026-04-09 02:07:35.489800 bmc_core ERROR: net_dft.c(197): [self_loop_test:197]recv failed! errno:2, read_length:110, [repeated 9 times in 410s from 2026-04-09 02:00:45.479780 to 2026-04-09 02:07:35.489800]
2026-04-09 02:07:36.416638 bmc_network NOTICE: manager.lua(103): Active port eth2 relink, restart dhcpv4 successfully [repeated 10 times in 380s from 2026-04-09 02:01:16.885893 to 2026-04-09 02:07:36.416638]
2026-04-09 02:07:36.422068 bmc_network NOTICE: arp.lua(87): start send ipv4 arp!, ethname: eth2, mac: f0:c8:b5:ac:f0:87
2026-04-09 02:07:37.501335 bmc_core ERROR: net_dft.c(197): [self_loop_test:197]recv failed! errno:2, read_length:60, [repeated 56 times in 339s from 2026-04-09 02:01:58.321373 to 2026-04-09 02:07:37.501335]
2026-04-09 02:07:59.995246 manufacture NOTICE: get_dft_result.lua(115): dft test get result: dft_id=74 slot=1 device_num=0 itemname=MGMT Test test_res=Failed