BIOS固件导出报错

// 此模板仅供参考,如果不适用可以修改

问题描述

BIOS固件导出报错,

1970-01-01 00:00:59.892355 bios NOTICE: micro_component.lua(157): Startup status has changed, ==> Starting, uptime:60s, cost 0ms
1970-01-01 00:01:00.810341 bios NOTICE: persist_client_lib.lua(60): persist client init completed, time taken: 320 ms
1970-01-01 00:01:01.543598 bios NOTICE: persist_client_lib.lua(60): persist client init completed, time taken: 320 ms
1970-01-01 00:01:01.546497 bios NOTICE: bios_app.lua(549): [bios]super init start
1970-01-01 00:01:01.585507 bios NOTICE: service_app_base.lua(368): start bios service
1970-01-01 00:01:01.590686 bios NOTICE: bios_app.lua(551): [bios]check dependencies start
1970-01-01 00:01:01.600769 bios NOTICE: mc_admin.lua(86): skipping dependency parsing: no service json info
1970-01-01 00:01:01.675723 bios NOTICE: bios_app.lua(553): [bios]init finish
1970-01-01 00:01:01.701397 bios NOTICE: micro_component.lua(157): Startup status has changed, Starting ==> InitCompleted, uptime:62s, cost 1810ms
1970-01-01 00:01:01.702326 bios NOTICE: main.lua(33): [bios]new app success
1970-01-01 00:01:01.719893 bios NOTICE: bios_app.lua(555): [bios]fork init start
1970-01-01 00:01:01.863294 bios NOTICE: signal.lua(153): [bios]subscribe before power on signal success
1970-01-01 00:01:01.870669 bios NOTICE: signal.lua(155): [bios]subscribe fructrl signal success
1970-01-01 00:01:02.979087 bios NOTICE: key_client_lib.lua(188): Key Client started listening for key id changes signal on path: /bmc/kepler/KeyService/Kmc/Keys/2
1970-01-01 00:01:02.982175 bios NOTICE: kmc_client.lua(74): [bios]init key mgmt success
1970-01-01 00:01:08.447983 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/90/GetAllowedPackageType)
1970-01-01 00:01:08.453300 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/90/GetBiosGoldValid)
1970-01-01 00:01:08.455345 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/90/SetAllowedPackageType)
1970-01-01 00:01:08.482027 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/92/GetSmBiosInfo)
1970-01-01 00:01:08.485355 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/92/SetBiosBootInfo)
1970-01-01 00:01:08.491161 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/92/SetSmBiosInfo)
1970-01-01 00:01:08.506163 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/92/UpdateBiosPassword)
1970-01-01 00:01:08.620316 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/30/92/UpdateBiosStatus)
1970-01-01 00:01:08.796888 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/06/59/GetChannelInfo)
1970-01-01 00:01:08.810657 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/06/59/GetOperatingSystemName)
1970-01-01 00:01:08.978320 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/06/59/GetPrimaryOperatingSystemName)
1970-01-01 00:01:08.980433 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/06/59/GetSystemName)
1970-01-01 00:01:09.275775 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/06/59/GetSystemFirmwareVersion)
1970-01-01 00:01:09.392455 ipmi_core NOTICE: ipmi_core_app.lua(690): An unregistered ipmi command is found.(bmc.kepler.bios:/bmc/kepler/IpmiCmds/06/59/GetProgressSystemInfo)
1970-01-01 00:01:09.399030 storage ERROR: bus_monitor_service.lua(151): get smbios object failed
1970-01-01 00:01:11.872436 bios NOTICE: bios_app.lua(512): [bios]init infrastructure success
1970-01-01 00:01:11.873755 bios NOTICE: bios_app.lua(507): [bios]init doamin success
1970-01-01 00:01:11.895476 bios NOTICE: bios_app.lua(572): [bios]fork init end
1970-01-01 00:01:11.896049 bios NOTICE: key_client_lib.lua(107): started scheduled task to refresh master key mask
1970-01-01 00:01:11.932031 bios NOTICE: object_manage.lua(682): start to fetch hwdiscovery objects
1970-01-01 00:01:11.959042 bios ERROR: bios_service.lua(1542): [bios]bios_read_file_from_bmc: system id(invalid)
1970-01-01 00:01:11.985463 bios NOTICE: object_manage.lua(720): fetch hwdiscovery objects completely, took 0 ms, uptime: 72 s
1970-01-01 00:01:11.986227 bios NOTICE: object_manage.lua(682): start to fetch devmon objects
1970-01-01 00:01:11.998781 bios NOTICE: object_manage.lua(720): fetch devmon objects completely, took 0 ms, uptime: 72 s
1970-01-01 00:01:12.043850 bios NOTICE: object_manage.lua(316): start to add objects, path: /bmc/kepler/ObjectGroup/00, life cycle id: 1, count: 1, uptime: 73 s
1970-01-01 00:01:12.045630 bios NOTICE: object_manage.lua(336): add objects callback, path: /bmc/kepler/ObjectGroup/00, life cycle id: 1, count: 1, took 0ms, uptime: 73 s
1970-01-01 00:01:12.046315 bios NOTICE: object_manage.lua(346): add objects completely, path: /bmc/kepler/ObjectGroup/00, life cycle id: 1, took 0ms, uptime: 73 s
1970-01-01 00:01:12.061735 bios NOTICE: object_manage.lua(316): start to add objects, path: /bmc/kepler/ObjectGroup/010101, life cycle id: 1, count: 2, uptime: 73 s
1970-01-01 00:01:12.198496 bios NOTICE: bios_object_mutihost.lua(114): [bios]start async fetch component version info, system is 1
1970-01-01 00:01:12.451674 bios NOTICE: bios_object_mutihost.lua(449): biosinit setting effective status to Effective
1970-01-01 00:01:13.355429 bios NOTICE: bios_object_mutihost.lua(461): bios_registry_version_update:(systemId:1)Bios RegistryVersion update to V4.48
1970-01-01 00:01:15.233192 bios NOTICE: bios_object_mutihost.lua(501): [bios]system 1 new web config
1970-01-01 00:01:15.492027 bios NOTICE: bios_object_mutihost.lua(515): [bios]system 1 update web config current value
1970-01-01 00:01:15.492861 bios NOTICE: bios_object_mutihost.lua(534): [bios]build system 1 registry config
1970-01-01 00:01:15.798725 bios NOTICE: bios_object_mutihost.lua(157): [bios] start cache cpu info
1970-01-01 00:01:15.997293 bios NOTICE: bios_object_mutihost.lua(170): CPU silkinfo: PhysicalSocketId=1, LogicalSocketId=0, Silk=CPU1, DeviceLocator=CPU1
1970-01-01 00:01:16.007699 bios NOTICE: bios_object_mutihost.lua(137): [bios] start cache pcie and sas info
1970-01-01 00:01:16.500383 bios NOTICE: package_snapshot.lua(66): [bios]package snapshot system 1 slave upgrade is false
1970-01-01 00:01:16.502039 bios NOTICE: object_manage.lua(336): add objects callback, path: /bmc/kepler/ObjectGroup/010101, life cycle id: 1, count: 2, took 4440ms, uptime: 77 s
1970-01-01 00:01:16.502768 bios NOTICE: object_manage.lua(346): add objects completely, path: /bmc/kepler/ObjectGroup/010101, life cycle id: 1, took 0ms, uptime: 77 s
1970-01-01 00:01:16.671789 bios WARNING: harbor_client.lua(386): Receiver Skynet message queue scheduling delay is 2267 ms (threshold: 500 ms), service_name=bmc.kepler.bios, path=/bmc/kepler/IpmiCmds/30/92/ReadFileFromBmc, interface=bmc.kepler.CmdInfo, method_name=Process
1970-01-01 00:01:16.680543 compute NOTICE: smbios_service.lua(111): [smbios_service] add_smbios_handler: system_id(1)
1970-01-01 00:01:16.697085 bios NOTICE: bios_object_mutihost.lua(302): [bios] need cache sas info
1970-01-01 00:01:16.700499 compute NOTICE: decoder.lua(194): [bios]presence_memory alias_name is 0000, 0010, 0020, 0030
1970-01-01 00:01:16.836641 bios NOTICE: bios_object_mutihost.lua(594): get_mem_silk_array: MemoryAddrInfo count=0, system id: 1
1970-01-01 00:01:16.837674 bios NOTICE: bios_object_mutihost.lua(310): [bios] need cache pcie info
1970-01-01 00:01:16.846978 bios NOTICE: bios_service.lua(1027): get_pcie_silk_config: PCIeAddrInfo count=0, system id(1)
1970-01-01 00:01:16.938036 bios WARNING: harbor_client.lua(386): Receiver Skynet message queue scheduling delay is 1236 ms (threshold: 500 ms), service_name=bmc.kepler.bios, path=/bmc/kepler/IpmiCmds/30/92/ReadFileFromBmc, interface=bmc.kepler.CmdInfo, method_name=Process
1970-01-01 00:01:16.966834 bios NOTICE: bios_object_mutihost.lua(302): [bios] need cache sas info
1970-01-01 00:01:16.984204 bios NOTICE: bios_object_mutihost.lua(594): get_mem_silk_array: MemoryAddrInfo count=0, system id: 1
1970-01-01 00:01:17.000530 bios NOTICE: bios_object_mutihost.lua(310): [bios] need cache pcie info
1970-01-01 00:01:17.062987 bios NOTICE: bios_service.lua(1027): get_pcie_silk_config: PCIeAddrInfo count=0, system id(1)
1970-01-01 00:01:17.521232 bios NOTICE: firmware_multihost.lua(117): [BIOSUpgrade] register Bios_1 to firmware inventory success
1970-01-01 00:01:17.659695 bios NOTICE: firmware_multihost.lua(180): [Teeos] register Teeos_1 to firmware inventory success
1970-01-01 00:01:17.661962 bios NOTICE: bios_object_mutihost.lua(594): get_mem_silk_array: MemoryAddrInfo count=0, system id: 1
1970-01-01 00:01:17.665994 bios NOTICE: bios_service.lua(1027): get_pcie_silk_config: PCIeAddrInfo count=1, system id(1)
1970-01-01 00:01:17.668132 bios NOTICE: bios_service.lua(974): PCIeCard PCIeAddrInfo: segment=0, port_id=0, socket_id=0, slot=6
1970-01-01 00:01:17.740327 bios NOTICE: bios_service.lua(1512): [bios] system 1 read file(42) success
1970-01-01 00:01:17.787894 bios NOTICE: firmware_multihost.lua(243): [cca] register cca 1 to firmware inventory success
1970-01-01 00:01:17.816187 bios NOTICE: bios_object_mutihost.lua(594): get_mem_silk_array: MemoryAddrInfo count=0, system id: 1
1970-01-01 00:01:17.821566 bios NOTICE: bios_service.lua(1027): get_pcie_silk_config: PCIeAddrInfo count=2, system id(1)
1970-01-01 00:01:17.822605 bios NOTICE: bios_service.lua(974): PCIeCard PCIeAddrInfo: segment=0, port_id=8, socket_id=0, slot=5
1970-01-01 00:01:17.827444 bios NOTICE: bios_service.lua(974): PCIeCard PCIeAddrInfo: segment=0, port_id=0, socket_id=0, slot=6
1970-01-01 00:01:17.922782 bios NOTICE: bios_service.lua(1512): [bios] system 1 read file(42) success
1970-01-01 00:01:17.949779 bios NOTICE: bios_object_mutihost.lua(594): get_mem_silk_array: MemoryAddrInfo count=0, system id: 1
1970-01-01 00:01:17.962349 bios NOTICE: bios_service.lua(1027): get_pcie_silk_config: PCIeAddrInfo count=3, system id(1)
1970-01-01 00:01:17.962974 bios NOTICE: bios_service.lua(974): PCIeCard PCIeAddrInfo: segment=0, port_id=0, socket_id=0, slot=6
1970-01-01 00:01:17.963554 bios NOTICE: bios_service.lua(974): PCIeCard PCIeAddrInfo: segment=0, port_id=8, socket_id=0, slot=5
1970-01-01 00:01:17.964132 bios NOTICE: bios_service.lua(974): PCIeCard PCIeAddrInfo: segment=0, port_id=0, socket_id=1, slot=4
1970-01-01 00:01:18.069266 bios NOTICE: bios_service.lua(1512): [bios] system 1 read file(42) success
1970-01-01 00:01:18.952950 bios NOTICE: bios_service.lua(1512): [bios] system 1 read file(47) success
1970-01-01 00:01:26.794800 bios NOTICE: bios_service.lua(1577): [bios]system 1 get setting file(0) change flag(0)
1970-01-01 00:01:26.879712 bios NOTICE: bios_service.lua(1286): [bios] system 1 start verify SecureBootNewFile
1970-01-01 00:01:26.880206 bios NOTICE: bios_service.lua(1294): [bios] system 1 SecureBootNewFile is correct or certificate backup is bull, report raw file to bios
1970-01-01 00:01:26.907032 bios NOTICE: bios_service.lua(1308): [bios] system 1 start report new secureboot file.
1970-01-01 00:01:27.033496 bios NOTICE: bios_service.lua(1512): [bios] system 1 read file(43) success
1970-01-01 00:01:27.145736 bios NOTICE: bios_service.lua(2099): [bios] system 1 Set bios setting file changed flag to (no changed) successfully
1970-01-01 00:01:27.421854 bios NOTICE: bios_prop_handler.lua(219): [bios]prop_handler get prop system_id:1, prop:RegistryVersion, value:V4.48
1970-01-01 00:01:30.007296 bios NOTICE: file_operation_impl.lua(90): write_file_finish OperationFile write file len(8645)!
1970-01-01 00:01:30.019022 bios ERROR: bios_object_mutihost.lua(664): bios_sync_demt_cfg: get PowerSaving fail
1970-01-01 00:01:30.022162 bios NOTICE: bios_service.lua(877): [bios] system 1 bios write file(CurrentValueFileName) success
1970-01-01 00:01:30.026084 bios NOTICE: bios_service.lua(220): [bios] system 1 bios receive before power on UpgradeSignal.
1970-01-01 00:01:30.026874 bios NOTICE: pfr_service.lua(189): [PfrService]PfrService:system 1 period dismatch, no need verify
1970-01-01 00:01:30.027924 bios NOTICE: signal.lua(627): [bios] bios receive before power on UpgradeSignal.
1970-01-01 00:01:30.031498 bios NOTICE: signal.lua(520): [bios]multihost is false
1970-01-01 00:01:30.032114 bios NOTICE: alarm_manager.lua(162): event_list is nil, no need recover, system id: nil
1970-01-01 00:01:30.113429 bios NOTICE: bios_object_mutihost.lua(843): [bios]set setting effective status to Effective
1970-01-01 00:01:30.113797 bios NOTICE: boot_object.lua(99): [bios]update order from file, system id is 1
1970-01-01 00:01:32.763615 bios NOTICE: bios_object_mutihost.lua(484): [bios]system 1 update config current value
1970-01-01 00:01:49.753981 bios ERROR: base_util.lua(196): write file_index:45 is invalid!
1970-01-01 00:01:49.754342 bios ERROR: bios_service.lua(857): bios_write_finish: system 1 judge_write_file_selector_valid file_selector:45 fail
1970-01-01 00:05:57.644808 bios NOTICE: start_profiling.lua(199): profiling finished, start time:1970-01-01 00:00:57, duration:5 min, sent signals:125, received signals:28, sent rpcs:13, received rpcs:62
1970-01-01 00:10:01.185009 bios NOTICE: upgrade_service.lua(1177): export bios(nil) firmware
1970-01-01 00:10:01.211539 bios NOTICE: task_mgmt.lua(312): Create task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 0, State: New] successfully
1970-01-01 00:10:01.213629 bios NOTICE: upgrade_service.lua(1201): start to export bios firmware
1970-01-01 00:10:01.215027 bios NOTICE: upgrade_service.lua(1250): =========pre download action=========
1970-01-01 00:10:01.216459 bios NOTICE: upgrade_service.lua(1258): Expected number of BIOS firmware to be exported is 1
1970-01-01 00:10:01.217725 bios NOTICE: upgrade_service.lua(1260): start to create export bios path
1970-01-01 00:10:01.316225 bios NOTICE: task_mgmt.lua(443): Update task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 5, State: Running] successfully
1970-01-01 00:10:01.316637 bios NOTICE: upgrade_service.lua(1271): =========pre download action finished=========
1970-01-01 00:10:01.316996 bios NOTICE: upgrade_service.lua(1312): =========process download action=========
1970-01-01 00:10:01.317521 bios NOTICE: upgrade_service.lua(1320): start to download bios 1 firmware, 1 / 1
1970-01-01 00:10:01.412053 bios NOTICE: task_mgmt.lua(443): Update task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 35, State: Running] successfully
1970-01-01 00:10:01.417884 bios NOTICE: scm3.lua(104): Set BIOS upgrade flag ok
1970-01-01 00:10:16.663417 bios ERROR: spi_flash.lua(315): [spi]check_device_ready: ready fail
1970-01-01 00:10:16.834164 bios NOTICE: scm3.lua(92): Verify BIOS upgrade flag ok
1970-01-01 00:10:16.836072 bios NOTICE: scm3.lua(104): Set BIOS upgrade flag ok
1970-01-01 00:10:16.952009 bios NOTICE: task_mgmt.lua(443): Update task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 65, State: Running] successfully
1970-01-01 00:10:16.952406 bios ERROR: upgrade_service.lua(1302): download bios 1 firmware failed, msg: …ualib/libmgmt_protocol/bios/infrastructure/spi_flash.lua:316: check device ready fail
1970-01-01 00:10:17.049632 bios NOTICE: task_mgmt.lua(443): Update task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 95, State: Running] successfully
1970-01-01 00:10:17.050927 bios NOTICE: upgrade_service.lua(1330): =========process download action finished=========
1970-01-01 00:10:17.052251 bios NOTICE: upgrade_service.lua(1335): =========post download action=========
1970-01-01 00:10:17.053784 bios NOTICE: upgrade_service.lua(1336): start to package bios firmware
1970-01-01 00:10:17.121498 bios NOTICE: upgrade_service.lua(1345): =========post download action finished=========
1970-01-01 00:10:17.223904 bios NOTICE: task_mgmt.lua(174): task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 95, State: Exception] will be destroyed after 10 minutes
1970-01-01 00:10:17.224639 bios NOTICE: task_mgmt.lua(443): Update task[Id: 1212879171, StartTime: 1970-01-01T00:10:01+00:00, Progress: 95, State: Exception] successfully
1970-01-01 00:10:17.225138 bios NOTICE: upgrade_service.lua(1206): export bios firmware finished
1970-01-01 00:10:17.225530 bios ERROR: upgrade_service.lua(1210): download_multi_bios failed, ret = ./opt/bmc/apps/bios/lualib/service/upgrade_service.lua:1361: download bios firmware failed, system id : 1

硬件连接如下

环境信息

  • 操作系统: Ubuntu 24.04

  • 软件版本:OpenUBMC2603

  • 硬件配置:[如 CPU、内存等]

重现步骤

期望结果

BMC可以导出BIOS固件

实际结果

实际报错1970-01-01 00:10:16.663417 bios ERROR: spi_flash.lua(315): [spi]check_device_ready: ready fail

尝试过的解决方案

[列出您已经尝试过的解决方案及结果]

分析结论

想确认下BMC的spi接口的硬件连接是否正确,CPU端接了6线,BMC端接了4线,差别是HLD,WP没有接。

硬件相关问题可以在https://www.hikunpeng.com/forum/ 鲲鹏论坛问问看,软件社区只能提供有限支持

可以通过上面的打印可以分析出是硬件的问题还是软件的问题吗?/lib/modules/ko/sfc0_drv.ko手动加载驱动时会报错,有手动切换的SPI总线的命令吗?

[ 651.273006] 183,1970-01-01 00:10:51,6247,hisfc_drv_probe,834,probe bus 0
[ 651.283112] 184,1970-01-01 00:10:51,6247,hisfc_drv_request_permission,628,sfc0 use hwid 4
[ 651.292099] 185,1970-01-01 00:10:51,6247,hisfc_flash_scan_init,1050,hisfc_probe start bus 0
[ 651.302183] 186,1970-01-01 00:10:51,6247,sfc_sys_set_controller_clk,246,bus 0 clock frequency of is all set!
[ 651.313685] 187,1970-01-01 00:10:51,6247,sfc_sys_clock_operator,213,CLOSE 1711 SFC Clock Success!
[ 651.323424] 188,1970-01-01 00:10:51,6247,sfc_sys_clock_operator,223,Open 1711 SFC Clock Success!
[ 651.332304] 189,1970-01-01 00:10:51,6247,sfc_core_spi_probe,2053,Spi(cs0) ID: 0xffffffff 0xffffffff
[ 651.341807] 190,1970-01-01 00:10:51,6247,sfc_core_spi_probe,2056,Spi(cs0): RDID not right!
[ 651.350403] 191,1970-01-01 00:10:51,6247,sfc_core_spi_probe,2053,Spi(cs1) ID: 0xffffffff 0xffffffff
[ 651.359764] 192,1970-01-01 00:10:51,6247,sfc_core_spi_probe,2056,Spi(cs1): RDID not right!
[ 651.368272] 193,1970-01-01 00:10:51,6247,hisfc_flash_scan_init,1065,hisfc_base_probe failed. bus 0
[ 651.377260] 194,1970-01-01 00:10:51,6247,hisfc_std_init,1096,hisfc_flash_scan_init bus 0 failed -14
[ 651.387236] 195,1970-01-01 00:10:51,6247,hisfc_drv_probe,850,hisfc_std_init failed -14
[ 651.395345] hi_sfc0: probe of 8640000.sfc0 failed with error -14

首先需要联系厂商获取bmcdfx工具,手动进行spi链路的切换以及sfc驱动的加载

#切bios falsh到bmc侧
bmcdfx coreMsg secfw set biosMuxStatus 1
#检查切换状态
bmcdfx coreMsg secfw get biosMuxStatus
#重新加载卸载sfc驱动
rmmod /lib/modules/hibmc/sfc0_drv.ko
insmod /lib/modules/hibmc/sfc0_drv.ko

dmesg查看驱动加载具体报错,明确打印全F或全0的sfc片选外部是否接flash颗粒,若没有接颗粒,则请硬件焊接颗粒。