The embodiment of the application provides a device and method for adaptive adjustment, the executable file in the operating system display device, adaptive adjustment method of executable image file provided by the application, the display device is switched on, to determine whether the current operating system boot program through the sign of the presence of judgment, to determine whether the image the current file is the executable image file; specifically, if the programs are currently running the guide sign, considered the current image file is not executable, clear the current operating system boot program will mark the first cut to the image file, and restart the system; if the program does not exist in the current symbol is the symbol of the new operation is the target operation marks, and in determining the target image file, enter the target image file system, with purpose The standard image file clears the target running flag and serves as the basis for judging whether the target image file is intact.
【技术实现步骤摘要】
用于系统开机时确定可执行映像文件的方法及装置
本专利技术涉及计算机操作系统领域,尤其涉及一种用于系统开机时确定可执行映像文件的方法及装置。
技术介绍
现有技术中,显示装置开机时通常需要运行可执行映像文件来开启系统。当系统中仅包含一个可执行映像文件时,系统开机时会读取包含该可执行映像文件位置信息的控制数据,进而运行该可执行映像文件并运行该操作系统。当该操作系统版本更新时,对当前的可执行映像文件进行更新,然而,由于操作系统中仅存在该应用程序的一个可执行映像文件,故通过获取最近的可执行映像文件,并将其数据包文件覆盖到当前映像文件对应的位置地址上,再修改系统启动时相应的控制数据,进而实现可执行映像更新,相应的,实现操作系统的版本更新,进而在系统重启时会选择执行最新的映像文件。然而,当系统升级失败或当前可执行映像文件破坏时,则会导致该系统不能正常开启或运行,影响系统的安全性能。因此,可通过在系统中设置多个可执行映像文件,当其中的某一可执行映像文件数据被破坏时,通过在系统开机执行引导程序时,手动选择其他可执行映像文件来保证系统的正常运行,提升系统的可靠性。然而,该方法由于需要操作者手动选择其他可执行映像文件,操作繁琐,影响用户体验;同时,对于嵌入式系统而言,由于其没有任何人机接口,故操作者不能对其手动选择,系统升级失败或当前可执行映像文件破坏时,仍然会导致该系统不能正常开启或运行。
技术实现思路
本专利技术申请提供一种用于系统开机时确定可执行映像文件的方法及装置,通过在引导程序中设置运行标志,进而通过该运行标志的删除与否确定开机系统中可执行的影响文件,提高系统的安全性能。 ...
【技术保护点】
一种用于系统开机时确定可执行映像文件的方法,其特征在于,该方法包括:判断引导程序中当前运行标志是否清除;若所述当前运行标志未清除,清除所述当前运行标志,将所述引导程序切换至第一映像文件,并重启系统;若已清除,则设置目标运行标志,并确定目标映像文件;其中,所述目标运行标志用于当执行目标映像文件时,以该目标运行标志的清除作为该目标映像文件可执行的依据。
【技术特征摘要】
1.一种用于系统开机时确定可执行映像文件的方法,其特征在于,该方法包括:判断引导程序中当前运行标志是否清除;若所述当前运行标志未清除,清除所述当前运行标志,将所述引导程序切换至第一映像文件,并重启系统;若已清除,则设置目标运行标志,并确定目标映像文件;其中,所述目标运行标志用于当执行目标映像文件时,以该目标运行标志的清除作为该目标映像文件可执行的依据。2.如权利要求1所述的确定可执行映像文件的方法,其特征在于,所述可执行映像文件为一个或多个。3.如权利要求1所述的确定可执行映像文件的方法,其特征在于,所述判断引导程序中当前运行标志是否存在之前,还包括,从系统引导程序中读取控制数据,所述控制数据包括映像文件地址信息和运行标志。4.如权利要求1所述的确定可执行映像文件的方法,其特征在于,所述设置目标运行标志后,基于所述控制数据中所述映像文件的地址信息,确定所述目标映像文件。5.如权利要求1所述的确定可执行映像文件的方法,其特征在于,所述确定所述目标映像文件,还包括,判断所述引导程序中是否存在与所述映像文件地址信息相匹配的映像文件,若存在,则确定所述映像文件为所述目标映像文件...
【专利技术属性】
技术研发人员:张士前,苟玉杰,孙有新,
申请(专利权)人:青岛智动精工电子有限公司,
类型:发明
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。