摘要
近年来,随着嵌入式技术的迅猛发展,嵌入式产品已渗透到生产与生活各个方面,嵌入式设备运行稳定性则显得愈发重要。针对嵌入式设备运行异常现场难复现的问题,设计一种基于Linux的嵌入式设备多状态重启记录系统,可为设备问题定位提供重要的系统参考数据,实现嵌入式设备多状态重启数据记录。系统选择EEPROM掉电记忆存储芯片,结合嵌入式Linux系统中的看门狗驱动、EEPROM驱动和reboot命令,完成嵌入式设备断电重启、看门狗重启与reboot命令正常重启3种重启状态统计记录。该系统为维护设备的稳定运行提供了可靠方法,具有较高的实际应用价值。
With the rapid development of embedded technology in recent years,embedded device products have penetrated into every corner of life and production,and the stability of embedded device operation has become increasingly important.For the abnormal operation of the embedded device and difficulty to reproduce the scene,this paper proposes a multi-state restart recording system for embedded devices based on Linux to provide important system reference data for device problem location,enabling multiple times of multi-state restart data logging of embedded devices.This system selects the EEPROM power-down memory storage chip,combined with the watchdog driver,EEPROM driver and reboot command in the embedded Linux system.It completes the record of three reboot states for the embedded device power-off reboot,watchdog reboot,and reboot command normal reboot.This system provides a reliable method for stable operation and maintenance of the equipment,and has a high practical application value.
作者
王晨光
孙文胜
WANG Chen-guang;SUN Wen-sheng(Communication Engineering College,Hangzhou Dianzi University,Hangzhou 310018,China)
出处
《软件导刊》
2019年第5期125-129,共5页
Software Guide