The invention discloses a method for realizing Linux Godson embedded system based on hardware platform, the realization process is based on Godson configuration of the hardware platform, the embedded Linux system and the installation of the platform is provided with the watchdog resources, namely the Linux embedded system increase the watchdog driver loaded at boot time enable, watchdog function; design a protection process module, the process of protection module running after the boot, regularly feed the dog, if the protection process is malicious is closed, the watchdog will automatically restart the equipment. This is a kind of method to realize Linux compared with the existing technology of the embedded system hardware platform based on godson, reduce the probability of occurrence of the system when the key business process exit brings, improve the usability of the system; the control effect of introducing open source software reliability, improve the reliability of the whole embedded system; two level protection, fast recovery and improve the robustness of the embedded system, strong practicability, wide application range, easy popularization.
【技术实现步骤摘要】
一种基于龙芯硬件平台的linux嵌入式系统实现方法
本专利技术涉及计算机
,尤具体地说是一种实用性强、基于龙芯硬件平台的linux嵌入式系统实现方法。
技术介绍
随着龙芯CPU的成熟和国产替代计划的推进,龙芯越来越广泛的应用在国产通信设备和国防信息装备中,本专利技术是一种针对龙芯硬件平台的linux嵌入式系统设计方法,可有效的提高系统的稳定性和可靠性。linux是一种非常流行的开源操作系统,拥有丰富的开源软件,是龙芯CPU的配套操作系统。由于linux操作系统和软件的开源特性,可以以较低的成本,在较短的时间内通过集成开源软件搭建起一套功能丰富嵌入式系统。嵌入式系统通常需要长时间不间断运行,特别是在通信和国防信息设备上,对嵌入式系统的可靠性提出了极高的要求。由linux开源软件集成起来的嵌入式系统,虽然具有成本优势,但其安全性和可靠性通常得不到保障。基于此,本专利技术提出了一种基于龙芯硬件平台的linux嵌入式系统实现方法,来保护linux嵌入式系统的关键进程不被恶意关闭或意外中断,从而提高系统的可靠性和可用性。
技术实现思路
本专利技术的技术任务是针对以上不足之 ...
【技术保护点】
一种基于龙芯硬件平台的linux嵌入式系统实现方法,其特征在于,其实现过程为:基于配置有龙芯的硬件平台,该平台上安装有linux嵌入式系统、配置有看门狗资源,即在linux嵌入式系统中增加看门狗驱动,在系统启动时加载,使能看门狗功能;设计一个保护进程模块,该保护进程模块在系统启动后运行,定期喂狗,若保护进程被恶意关闭,则看门狗自动将设备重启。
【技术特征摘要】
1.一种基于龙芯硬件平台的linux嵌入式系统实现方法,其特征在于,其实现过程为:基于配置有龙芯的硬件平台,该平台上安装有linux嵌入式系统、配置有看门狗资源,即在linux嵌入式系统中增加看门狗驱动,在系统启动时加载,使能看门狗功能;设计一个保护进程模块,该保护进程模块在系统启动后运行,定期喂狗,若保护进程被恶意关闭,则看门狗自动将设备重启。2.根据权利要求1所述的一种基于龙芯硬件平台的linux嵌入式系统实现方法,其特征在于,所述保护进程模块用于保护进程的安全,该保护进程模块在嵌入式系统中第一个启动,对外提供注册接口;嵌入式系统中包括业务进程、服务代理进程的其它进程调用其注册接口时,将包括本进程名称、进程号、程序运行启动路径的参数信息传递给保护进程模块;保护进程定期向各个被保护的进程发送信号以监控各个进程的运行状态,若信号无响应,说明被保护进程卡...
【专利技术属性】
技术研发人员:赵瑞东,李若寒,曹刚,张小亮,
申请(专利权)人:山东超越数控电子有限公司,
类型:发明
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。