有没有关闭bmc看门狗的方法

bmc每隔五分钟就会自动重启,从串口的打印信息来看是由于看门狗的倒计时,用 .\ipmitool.exe -H 192.168.2.100 -I lanplus -p 623 -C 17 mc watchdog off的命令尝试关闭看门狗不管用

串口信息如下:

[  275.743639] [I2C-11-RT<-5|-5>] M<0x48|0x1|0x0|1|10> L<1|2|0> C<1|0|2> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  275.757941] [I2C-04-RT<-5|-5>] M<0x30|0x0|0x0|3|10> L<7|0|0> C<7|0|0> E<0x1|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  276.037291] [I2C-08-RT<-5|-5>] M<0x21|0x1|0x0|1|10> L<1|1|0> C<1|0|1> E<0x801|0x0|0x0|0x1> I<0x0|0x510|0x0>
[  276.051228] [I2C-08-RT<-5|-5>] M<0x48|0x1|0x0|1|10> L<1|2|0> C<1|0|2> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  276.814174] [I2C-08-RT<-5|-5>] M<0x47|0x1|0x0|1|10> L<1|1|0> C<1|0|1> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
1970-01-01 08:04:47.102906 maca ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 7

iBMC login: 1970-01-01 08:05:02.162482 maca ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 8
1970-01-01 08:05:02.236518 maca NOTICE: init.lua(246): recheck startup status completely, total components count: 47, normal count: 46, abnormal components: [my_app]
         Stopping Session c1 of User Administrator...
[  OK  ] Removed slice Slice /system/modprobe.
[  OK  ] Stopped target Multi-User System.
[  OK  ] Stopped target Login Prompts.
[  OK  ] Stopped target Timer Units.
[  OK  ] Stopped start logrotate timer.
[  OK  ] Stopped start partition usage monitor timer.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
         Stopping alarm service...
         Stopping ibmc ssdp module...
[  303.707675] 54,1970-01-01 00:05:03,2623,gpio_cmd_get_int_event,1321,gpio_get_int_event errs(-4)
         Stopping energy service...
         Stopping ibmc file transfer module...
         Stopping Getty on ttyS0...
         Stopping hardware service...
         Stopping interface service...
         Stopping system memory monitor...
         Stopping my_app service...
         Stopping om_priv service...
         Stopping system process memory monitor...
         Stopping ras service...
         Stopping rmmod driver service...
         Stopping security service...
         Stopping Simple Network Ma…ent Protocol (SNMP) Daemon....
         Stopping Load/Save Random Seed...
         Stopping A server which su…tive communication protocol...
[  OK  ] Stopped system memory monitor.
[  OK  ] Stopped system process memory monitor.
[  OK  ] Stopped Getty on ttyS0.

[  OK  ] Stopped A server which sup…active communication protocol.tupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 6
[  OK  ] Stopped my_app service.ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 7
[  OK  ] Stopped alarm service. ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 8
[  OK  ] Stopped security service.TICE: init.lua(246): check startup status completely, total components count: 47, normal count: 46, abnormal components: [my_app]
[  OK  ] Stopped ras service.ca NOTICE: init.lua(342): start to restart abnormal components and recheck startup status
[  OK  ] Stopped energy service.ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 1
[  OK  ] Stopped hardware service.ROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 2
[  OK  ] Stopped om_priv service. M<0x30|0x0|0x0|3|10> L<7|0|0> C<7|0|0> E<0x1|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Stopped ibmc ssdp module.M<0x48|0x1|0x0|1|10> L<1|2|0> C<1|0|2> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Stopped interface service.<0x21|0x1|0x0|1|10> L<1|1|0> C<1|0|1> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Stopped Session c1 of User Administrator.|10> L<1|2|0> C<1|0|2> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Removed slice Slice /system/getty.1|0x0|1|10> L<1|1|0> C<1|0|1> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
         Stopping om service... ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 3
         Stopping Rsyslog Logging Service...lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 4
         Stopping User Login Management...t.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 5
         Stopping User Manager for UID 502...ua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 6
[  OK  ] Stopped om service.|-5>] M<0x48|0x1|0x0|1|10> L<1|2|0> C<1|0|2> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Stopped User Manager for UID 502.x0|0x0|3|10> L<7|0|0> C<7|0|0> E<0x1|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Stopped Simple Network Man…ement Protocol (SNMP) Daemon..1|0|1> E<0x801|0x0|0x0|0x1> I<0x0|0x510|0x0>
[  OK  ] Stopped Load/Save Random Seed.8|0x1|0x0|1|10> L<1|2|0> C<1|0|2> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  OK  ] Stopped Rsyslog Logging Service.0x1|0x0|1|10> L<1|1|0> C<1|0|1> E<0x801|0x0|0x0|0x1> I<0x0|0x710|0x0>
[  304.687308] 55,1970-01-01 00:05:04,2581,bt_recv_data,428,bt(0) recv req msg ERESTARTSYS, bt_state(0).p.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 7
[  304.688790] 56,1970-01-01 00:05:04,2635,ipmb_cmd_check_data_readable,1285,ipmb check read was interrupted, ret = -4
         Stopping bmc_core service...2 maca ERROR: init.lua(185): [my_app]StartupCheck failed, error: org.freedesktop.DBus.Error.ServiceUnknown: The name bmc.kepler.my_app was not provided by any .service files, check count: 8
         Stopping User Runtime Directory /run/user/502...check startup status completely, total components count: 47, normal count: 46, abnormal components: [my_app]
[  OK  ] Stopped User Login Management.ministrator...
[  OK  ] Unmounted /run/user/502.tem/modprobe.
[  OK  ] Stopped User Runtime Directory /run/user/502.
[  OK  ] Removed slice User Slice of UID 502.
         Stopping Permit User Sessions...
[  OK  ] Stopped bmc_core service.imer.
         Stopping framework service... monitor timer.
[  OK  ] Stopped Permit User Sessions.orary Directories.
[  304.948520] dwc3 8800000.dwc3: request ffff1d6b4f0b2600 was not queued to ep1in
[  304.955823] dwc3 8800000.dwc3: request ffff1d6b4f0b29c0 was not queued to ep2in
[  OK  ] Stopped framework service.03,2623,gpio_cmd_get_int_event,1321,gpio_get_int_event errs(-4)
         Stopping D-Bus System Message Bus...
[  OK  ] Stopped D-Bus System Message Bus.e...
         Stopping /etc/rc.local Compatibility...
[  OK  ] Stopped /etc/rc.local Compatibility.
[  *** ] A stop job is running for rmmod driver service (3s / 1min 30s)
[   ***] A stop job is running for rmmod driver service (4s / 1min 30s)
[  308.164156] hisport_cdev: 1413, listen thread end, ret=0
[  OK  ] Stopped rmmod driver service.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Path Units..
[  OK  ] Stopped Dispatch Password …ts to Console Directory Watch.
[  OK  ] Stopped Forward Password R…uests to Wall Directory Watch.
[  OK  ] Stopped target Slice Units.ce...
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Socket Units.nt Protocol (SNMP) Daemon....
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target System Initialization.nication protocol...
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Update is Completed.y monitor.
[  OK  ] Stopped Rebuild Journal Catalog.
         Stopping Record System Boot/Shutdown in UTMP...
[  OK  ] Stopped Record System Boot/Shutdown in UTMP.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /data/backup...
         Unmounting /data/ibma...
         Unmounting /data/sp...
         Unmounting /data/trust...
         Unmounting /etc/machine-id...
         Unmounting /opt/bmc/pram...
         Unmounting /tmp...
         Stopping Flush Journal to Persistent Storage...
[  OK  ] Unmounted /data/backup.
[  OK  ] Unmounted /data/ibma.
[  OK  ] Unmounted /data/sp.
[  OK  ] Unmounted /data/trust.
[  OK  ] Unmounted /etc/machine-id.
[  OK  ] Unmounted /opt/bmc/pram.
[  OK  ] Unmounted /tmp.
[  OK  ] Stopped Flush Journal to Persistent Storage.
         Unmounting /data...
         Unmounting /var/log...
[  OK  ] Unmounted /data.
[  OK  ] Unmounted /var/log.
         Unmounting /var...
[  OK  ] Unmounted /var.
[  OK  ] Stopped target Preparation for Local File Systems.
[  OK  ] Stopped target Swaps.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Reached target System Shutdown.
[  OK  ] Reached target Late Shutdown Services.
[  OK  ] Finished System Reboot.
[  OK  ] Reached target System Reboot.
[systemd-shutdown] -----------------------------------------------------------------
[systemd-shutdown] USER	PID	PPID	CMD
[systemd-shutdown] 0	1	0	/lib/systemd/systemd-shutdown reboot --timeout 90000000us --log-level 6 --dfx-reboot 1 --log-target kmsg --log-color
[systemd-shutdown] 0	4992	1	(process_status)
[systemd-shutdown] -----------------------------------------------------------------
[  310.344452] xhci-hcd xhci-hcd.1.auto: Host halt failed, -110
[  310.382231] xhci-hcd xhci-hcd.0.auto: Host halt failed, -110
[  313.047678] reboot: Restarting system
NOTICE:  watchdog reboot setting success.
[I][00b2]: 0810	0x0823af70 0x08235bf0 0x08235bbc 0x08233bc8
[I][0021]: 0144	0x00000000 0x08744000 0x0821b259 0x0875e000
[I][00b1]: 0211	0x00000006 0x00000004 0x00000005 0x0875e000
[I][009f]: 0864	0x00000006 0x00000004 0x00000005 0x08744000
[W][009f]: 0919	0x00000001 0x17c00000 0x03e7b351 0x00000002
[W][009f]: 0988	0x00000002 0x17c00000 0x03e7b351 0x00000002
[W][009f]: 1070	0xffffffea 0x00000004 0x00000005 0x08744000
[W][009f]: 0919	0x00000001 0x17c00000 0x03e7b351 0x00000002
[W][009f]: 0988	0x00000002 0x17c00000 0x03e7b351 0x00000002
[W][009f]: 1076	0xffffffea 0x00000004 0x00000005 0x08744000
[I][009a]: 0300	0xe000e114 0x00000000 0x08205405 0x00000000
[I][00e1]: 0411	0x0000008f 0x00000000 0x082117eb 0x0000008f
[I][00e1]: 0515	0x0000008f 0x0000008f 0x08203887 0x000000f6
[I][00b2]: 1191	0x00000000 0xffffffff 0x0821e99d 0x0000008f
[I][00a5]: 0038	0x082396f4 0x082346a8 0x00000002 0x0823aa40
[I][00a5]: 0038	0x082396f4 0x082346a8 0x00000000 0x0823e800
[I][00b2]: 0628	0xffffffff 0xffffffff 0x0821e99d 0x0000008f
[I][00e1]: 0411	0x0000008f 0x08237ac8 0x0821169b 0x0821e99d
[I][00e1]: 0447	0x0821e99d 0x0821e99d 0x0000008f 0x00000003
[I][00b2]: 1226	0x00000000 0xffffffff 0x0821e99d 0x0000008f
[I][00b2]: 1307	0x00000000 0xffffffff 0x0821e99d 0x0000008f
[I][00b2]: 1310	0x00000001 0xffffffff 0x0821e99d 0x0000008f
[W][00a1]: 0466	0x00000000 0x00000000 0xa1740000 0x00000001
[W][00a1]: 0466	0x00000000 0x00000000 0xa1740000 0x00000001
[W][00a1]: 0466	0x00000000 0x00000000 0xa1740000 0x00000001
[I][00b2]: 1310	0x00000002 0xffffffff 0x0821e99d 0x0000008f
[I][00a5]: 0038	0x082396f4 0x082346d4 0x00000003 0x0823aa40
[I][00b2]: 1310	0x00000003 0xffffffff 0x0821e99d 0x0000008f
[I][00b2]: 0679	0x00000001 0xffffffff 0x0821e99d 0x0000008f
[I][00b2]: 1310	0x00000004 0xffffffff 0x0821e99d 0x0000008f
[I][00e1]: 0411	0x0000008f 0x08237ac8 0x0821169b 0x0821e99d
[I][00e1]: 0447	0x0821e99d 0x0821e99d 0x0000008f 0x00000003
[I][00b2]: 1338	0x00000000 0xffffffff 0x0821e99d 0x0000008f
Serial Probe!
66
U-Boot Runing...

Boot Strap:0000FAFE
Reboot Control:00000001
Boot from Area 0(boot_cnt0[3] boot_cnt1[0])
Serial Probe!
66Core:  4 devices, 4 uclasses
MMC:   
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: hi1711_gmac
Hit 'ctrl + b' to stop autoboot:  0 
blk_probe
detect ext4img info: block cnt:385024,block size:1024
log2blksz 10
3486784 bytes read in 202 ms (16.5 MiB/s)
13278 bytes read in 9 ms (1.4 MiB/s)
5242880 bytes read in 300 ms (16.7 MiB/s)
## Booting kernel from Legacy Image...
   Image Name:   linux
   Image Type:   Linux Kernel Image (uncompressed)
   Verifying Checksum ... OK
## Flattened Device Tree blob.
   Booting using the fdt blob.
Working FDT set to 87400000
   Loading Kernel Image to 87480000
   Using Device Tree in place.
Working FDT set to 87400000
fdt_fix_memory_prop: vce_flag is 0 (SYSCTRL_INITIAL_INF: 0xbfefffff)
boot NOTICE:  Before BL31 init mmu
NOTICE:  ddr_size=0x3
NOTICE:  BL31 init mmu done
NOTICE:  BL31: v0.00:0
NOTICE:  BL31: Built : 19:10:04, 19:10:04
NOTICE:  fiq init done !
Uncompressing... done, booting...
[    0.779859] **** Total Boot time: 779 ms, uncompress initrd cost 227 ms ****
[ 0.780455] 1970-01-01 00:00:00 [AT]mount ...
rootfstype=ext4
extroot=/dev/nvm_active
extinit=/sbin/init
[ 0.811903] 1970-01-01 00:00:00 [FT] now execute /sbin/init
[ 0.827080] 1970-01-01 00:00:00 [AT]insmod...
[    0.968397] [RTOS fiq]@@ register fiq
[ 1.078913] 1970-01-01 00:00:01 insmod success!
[ 1.094022] 1970-01-01 00:00:01 [AT]create node...
[ 1.797945] 1970-01-01 00:00:01 check gpp0-2 loop_cnt = 0
/dev/mmcblk0gp2
/dev/mmcblk0gp0
/dev/mmcblk0gp1
[ 1.905117] 1970-01-01 00:00:01 [AT]mount partitions...
[ 1.961599] 1970-01-01 00:00:01 [AT]switch to second rootfs...

Welcome to RTOS 208.8.1 arm64le-preempt-pro-5.10!
  1. 看下framework.log是否因组件异常导致maca重拉,maca重拉多次依然异常后会重启BMC
  2. 如果是因为组件异常导致,可以通过修改/opt/bmc/conf/mc_control.json内的检查项全为false关闭maca健康状态检查
1 个赞

.\ipmitool.exe -H 192.168.2.100 -I lanplus -p 623 -C 17 mc watchdog off 关闭的看门狗是BMC作为业务侧OS的看门狗功能,并不是BMC小系统自身的看门狗

从日志上看是由于组件my_app未正常启动,maca尝试重拉后仍然无法正常启动,执行系统复位自愈流程导致的BMC复位
recheck startup status completely, total components count: 47, normal count: 46, abnormal components: [my_app]

maca 1.70.3及以上版本的调试包,可以在BMC启动启动后,执行自愈复位前
进入mdbctl调试命令行界面,执行以下命令关闭maca的组件启动状态检查和运行状态检查:
attach maca
setmonitorstatus starting false
setmonitorstatus running false

确实是my_app组件的原因,去掉之后不会重启了,谢谢指导!

请问怎么能进入mdbctl调试命令行界面,ssh上可以操作吗

ssh进入后可以直接输入mdbctl进入调试命令行界面

好的,已经成功关闭了,谢谢!