CN101866295A - A method of operating system network installation - Google Patents
A method of operating system network installation Download PDFInfo
- Publication number
- CN101866295A CN101866295A CN 201010212282 CN201010212282A CN101866295A CN 101866295 A CN101866295 A CN 101866295A CN 201010212282 CN201010212282 CN 201010212282 CN 201010212282 A CN201010212282 A CN 201010212282A CN 101866295 A CN101866295 A CN 101866295A
- Authority
- CN
- China
- Prior art keywords
- network
- operating system
- mobile terminal
- terminal device
- installation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
本发明的实施例提出了一种操作系统网络安装的方法,包括以下步骤:移动终端设备引导程序启动元操作系统,进入系统管理模式;在所述系统管理模式下,所述移动终端设备建立网络连接,并从网络下载相应的系统镜像文件;所述移动终端设备解压缩系统镜像文件,并将其写入相应的分区,完成系统安装。本发明提出的上述方案,在不改变引导程序功能的前提下实现移动设备的操作系统网络化自动安装,分离底层硬件和网络服务之间的耦合关系,降低移植和开发的难度,提高在不同手机终端的移植性,实现简单。
The embodiment of the present invention proposes a method for network installation of an operating system, including the following steps: the mobile terminal device bootstrap program starts the meta-operating system and enters the system management mode; in the system management mode, the mobile terminal device establishes a network Connect and download the corresponding system image file from the network; the mobile terminal device decompresses the system image file and writes it into the corresponding partition to complete the system installation. The above-mentioned solution proposed by the present invention realizes the networked automatic installation of the operating system of the mobile device without changing the function of the boot program, separates the coupling relationship between the underlying hardware and the network service, reduces the difficulty of transplantation and development, and improves the compatibility between different mobile phones. Terminal portability, easy to implement.
Description
技术领域technical field
本发明涉及网络通信领域,具体而言,本发明涉及一种操作系统网络安装的方法。The invention relates to the field of network communication, in particular, the invention relates to a method for network installation of an operating system.
背景技术Background technique
随着移动互联网的到来,智能移动终端设备将成为主要的网络接入媒介,如手机,MID,嵌入式设备等。凭借其功能优势和便携特点,手机将拥有广阔的应用前景,功能特色日渐丰富。操作系统在手机中地位越来越重要,用户对手机操作系统的自动化智能管理也提出了新的需求。功能手机(Feature Phone)的操作系统一旦安装之后就不能修改,也无法安装第三方应用,功能简单,在移动互联网时代将逐渐淡出。本发明主要面向可以更换操作系统和安装独立应用程序的智能手机(Smart Phone)。With the advent of the mobile Internet, smart mobile terminal equipment will become the main network access medium, such as mobile phones, MIDs, embedded devices and so on. With its functional advantages and portability, mobile phones will have broad application prospects, with increasingly rich functions and features. The operating system plays an increasingly important role in mobile phones, and users have also put forward new requirements for the automatic and intelligent management of mobile phone operating systems. Once installed, the operating system of a feature phone cannot be modified, nor can third-party applications be installed. It has simple functions and will gradually fade out in the mobile Internet era. The present invention is mainly aimed at the smart phone (Smart Phone) that can replace the operating system and install the independent application program.
虽然智能手机支持操作系统的更换,但目前的技术方案中操作系统和硬件捆绑紧密,安装更新手机操作系统非常困难,操作过程复杂,需要用户有一定的操作经验和操作技能,普通手机用户稍有不慎就可能失败。同时,用户对智能手机操作系统的自动安装更新有很强的需求。Although smartphones support the replacement of operating systems, the operating system and hardware are tightly bound in the current technical solution, and it is very difficult to install and update the mobile phone operating system. The operation process is complicated and requires users to have certain operating experience and skills. If you are not careful, you may fail. At the same time, users have a strong demand for automatic installation and updates of smartphone operating systems.
首先,特定应用需求。不同智能手机操作系统平台的差异,使得应用软件集合差别很大,如iPhone中的相片浏览程序拥有友好的用户操作界面,Windows Mobile包含Office Mobile等。用户希望在同一款手机上使用不同的应用,但囿于操作系统的限制而无法实现。智能手机也正在成为新的移动娱乐平台,面向各种智能系统的游戏软件非常丰富,而不同系统支持的游戏也大不相同,因此为用户提供一种便利的使用不同操作系统软件的方法有很大的需求。First, specific application requirements. The differences in the operating system platforms of different smartphones make the collection of application software very different. For example, the photo browsing program in the iPhone has a friendly user interface, and Windows Mobile includes Office Mobile. Users want to use different applications on the same mobile phone, but it cannot be realized due to the limitation of the operating system. Smartphones are also becoming a new mobile entertainment platform. There are a lot of game software for various smart systems, and the games supported by different systems are also very different. Therefore, it is very important to provide users with a convenient way to use different operating system software. big demand.
其次,操作系统更新。为了不断提高用户体验,智能手机操作系统也在不断地更新版本。不同于PC机,普通手机用户不能胜任手机操作系统的安装。这样就不得不放弃新版本操作系统带来的好处,如软件缺陷的修复(尤其是安全相关的问题),用户应用的支持等。Second, the operating system is updated. In order to continuously improve user experience, smartphone operating systems are also constantly updated. Unlike PCs, ordinary mobile phone users are not competent to install mobile phone operating systems. In this way, the benefits brought by the new version of the operating system have to be given up, such as the repair of software defects (especially security-related issues), the support of user applications, and the like.
最后,系统故障修复。智能手机与普通手机的关键不同在于可以安装第三方程序。一方面,这些应用扩展了手机的用户体验,带来了丰富的应用。另一方面,这些应用中的软件缺陷很可能导致手机操作系统出现问题(如频繁死机,响应时间过长等)。即使是专业手机开发人员也必须借助开发板等专用工具才能分析此类问题,而普通用户则几乎不可能解决。另外,如果系统感染病毒或被入侵,最有效的办法也是将系统恢复至健康的状态。一般来说,如果手机操作系统出现异常,重新安装操作系统是一种快速有效的方法。Finally, system failure repair. The key difference between smartphones and ordinary mobile phones is that third-party programs can be installed. On the one hand, these applications expand the user experience of mobile phones and bring rich applications. On the other hand, software defects in these applications are likely to cause problems in the mobile phone operating system (such as frequent crashes, long response time, etc.). Even professional mobile phone developers must rely on special tools such as development boards to analyze such problems, but it is almost impossible for ordinary users to solve them. In addition, if the system is infected with a virus or invaded, the most effective way is to restore the system to a healthy state. Generally speaking, if there is an abnormality in the mobile phone operating system, reinstalling the operating system is a fast and effective method.
综上所述,为用户提供自动的操作系统安装是移动设备一项重要的功能。随着无线网络的广泛部署和3G规范的流行,这些高速网络接入方式给移动设备操作系统网络化自动安装提供了保证。To sum up, providing users with automatic operating system installation is an important function of mobile devices. With the widespread deployment of wireless networks and the popularity of 3G specifications, these high-speed network access methods provide a guarantee for the networked and automatic installation of mobile device operating systems.
目前绝大多数手机都不支持操作系统的自动安装,用户必须手动下载系统镜像,手动安装,不同手机终端的操作方法也各不相同,对用户有较高的要求。因此,大量手机用户在需要重装系统的时候不得不放弃,继续使用原有的用户体验和性能很差的系统。部分嵌入式设备可以实现操作系统的自动更新,其基本方法是扩展引导程序(boot loader),支持网络自动下载和系统镜像的自动安装。很多通用嵌入式设备引导程序(如U-Boot)为了方便开发过程中的文件传输,只提供了简单的网络支持,一般只能在有线局域网中使用TFTP协议。At present, most mobile phones do not support the automatic installation of the operating system. Users must manually download the system image and install it manually. The operation methods of different mobile terminals are also different, which has higher requirements for users. Therefore, a large number of mobile phone users have to give up when they need to reinstall the system, and continue to use the original system with poor user experience and performance. Some embedded devices can automatically update the operating system. The basic method is to expand the boot loader to support automatic network download and automatic installation of system images. Many general-purpose embedded device boot programs (such as U-Boot) only provide simple network support in order to facilitate file transfer during the development process, and generally only use the TFTP protocol in wired LANs.
这种通过扩展引导程序支持操作系统的网络下载安装的方法多用在定制的嵌入式设备中,或嵌入式设备的开发过程中,不适用于发布的手机终端产品,其原因在于:This method of supporting the network download and installation of the operating system through the extended boot program is mostly used in customized embedded devices, or in the development process of embedded devices, and is not suitable for released mobile phone terminal products. The reasons are:
(1)实现复杂。引导程序直接与硬件交互,一般只完成硬件的初始化工作,以汇编代码为主,且缺乏友好的二次开发平台,要在引导程序中支持手机网络(WiFi,GPRS,3G,LTE等),实现不同网络的驱动程序和必要的网络协议栈难度非常大。此外,还要实现一些辅助工具,如网络配置工具,文件下载,文件解压缩工具,文件系统模块等。这些工具或模块大多被设计为在独立的操作系统中工作,会使用其他库,将这些工具移植到引导程序中难度和工作量都非常大。(1) The implementation is complicated. The boot program directly interacts with the hardware, and generally only completes the initialization of the hardware, mainly in assembly code, and lacks a friendly secondary development platform. It is necessary to support mobile phone networks (WiFi, GPRS, 3G, LTE, etc.) in the boot program to realize Drivers for different networks and the necessary network stacks are very difficult. In addition, some auxiliary tools must be implemented, such as network configuration tools, file downloads, file decompression tools, file system modules, etc. Most of these tools or modules are designed to work in an independent operating system and use other libraries. It is very difficult and labor-intensive to port these tools to the bootloader.
(2)硬件绑定。引导程序与硬件直接交互,需要针对不同的硬件平台定制实现,即使是相同的网络也会因为手机硬件的不同需要重新实现。实际上很多工具和模块与底层硬件并无必然关联,但若将其在引导程序中实现则不得不根据硬件平台进行移植。如果要扩展新功能,难度会更大。(2) Hardware binding. The bootloader interacts directly with the hardware and needs to be customized for different hardware platforms. Even the same network will need to be re-implemented due to different mobile phone hardware. In fact, many tools and modules are not necessarily related to the underlying hardware, but if they are implemented in the bootloader, they have to be transplanted according to the hardware platform. If you want to extend new functions, it will be more difficult.
(3)引导程序规模膨胀。原理上讲,引导程序只负责硬件的初始化和操作系统的载入,工作量少,程序规模也很小,可以快速加载至内存中执行。如果将网络驱动,网络协议以及辅助工具都纳入其中,其规模必然膨胀,加载慢,甚至可能会超过内存容量而无法执行。(3) Bootstrap scale expansion. In principle, the bootloader is only responsible for the initialization of the hardware and the loading of the operating system, with less workload and a small program size, which can be quickly loaded into the memory for execution. If network drivers, network protocols, and auxiliary tools are all included, the scale will inevitably expand, the loading will be slow, and it may even exceed the memory capacity and cannot be executed.
因此,有必要提出一种技术方案,能够实现移动通信设备操作系统的网络安装,实现操作系统网络化自动安装。Therefore, it is necessary to propose a technical solution that can realize the network installation of the operating system of the mobile communication device and realize the networked automatic installation of the operating system.
发明内容Contents of the invention
本发明的目的旨在至少解决上述技术缺陷之一,特别是在不改变引导程序功能的前提下实现移动设备的操作系统网络化自动安装,分离底层硬件和网络服务之间的耦合关系,降低移植和开发的难度,提高在不同手机终端的移植性。The purpose of the present invention is to at least solve one of the above-mentioned technical defects, especially realize the networked automatic installation of the operating system of the mobile device without changing the function of the boot program, separate the coupling relationship between the underlying hardware and network services, and reduce the cost of transplantation. And the difficulty of development, improve the portability in different mobile terminals.
为了达到上述目的,本发明的实施例提出了一种操作系统网络安装的方法,其特征在于,包括以下步骤:In order to achieve the above object, an embodiment of the present invention proposes a method for network installation of an operating system, which is characterized in that it includes the following steps:
移动终端设备引导程序启动元操作系统,进入系统管理模式;The boot program of the mobile terminal device starts the meta-operating system and enters the system management mode;
在所述系统管理模式下,所述移动终端设备建立网络连接,并从网络下载相应的系统镜像文件;In the system management mode, the mobile terminal device establishes a network connection, and downloads a corresponding system image file from the network;
所述移动终端设备解压缩系统镜像文件,并将其写入相应的分区,完成系统安装。The mobile terminal device decompresses the system image file and writes it into the corresponding partition to complete the system installation.
其中,所述移动终端设备包括以下功能模块:Wherein, the mobile terminal equipment includes the following functional modules:
网络配置模块,用于检测可用网络,并根据网络类型进行配置,建立网络传输通道;The network configuration module is used to detect the available network, configure according to the network type, and establish a network transmission channel;
数据服务模块,用于负责从网络服务器下载系统镜像,并验证系统镜像的完整性;The data service module is used to be responsible for downloading the system image from the network server and verifying the integrity of the system image;
系统服务模块,用于提供网络驱动及文件系统支持服务,并向所述网络配置模块和所述数据服务模块提供服务。The system service module is used to provide network driver and file system support services, and provide services to the network configuration module and the data service module.
其中,所述移动终端设备建立网络连接包括以下步骤:Wherein, establishing a network connection of the mobile terminal device includes the following steps:
所述移动终端设备中的网络配置模块将自动检测当前可用网络,并以列表的形式展现给用户;The network configuration module in the mobile terminal device will automatically detect the currently available network and present it to the user in the form of a list;
所述用户选择欲使用的网络并进行提供相应的配置信息;The user selects the network to be used and provides corresponding configuration information;
所述移动终端设备与相应的网络建立通信连接。The mobile terminal establishes a communication connection with the corresponding network.
其中,从网络下载相应的系统镜像文件包括以下步骤:Wherein, downloading the corresponding system image file from the network includes the following steps:
所述移动终端设备向服务器发出下载操作系统请求,所述服务器返回可用的实例操作系统镜像列表;The mobile terminal device sends a download operating system request to the server, and the server returns a mirror list of available instance operating systems;
所述用户选择需要下载的系统镜像;The user selects the system image to be downloaded;
所述移动终端设备下载系统镜像文件并验证系统镜像文件的完整性。The mobile terminal device downloads the system image file and verifies the integrity of the system image file.
其中,所述移动终端设备还包括性能监控模块,所述性能监控模块监控设备电池剩余电量和网络状况,提示用户在低电量或者网络连接较差的情况下放弃操作系统的网络安装。Wherein, the mobile terminal device further includes a performance monitoring module, which monitors the remaining battery power and network status of the device, and prompts the user to give up the network installation of the operating system when the battery is low or the network connection is poor.
其中,所述元操作系统为根据所述移动终端设备的硬件平台定制的精简操作系统。Wherein, the meta-operating system is a simplified operating system customized according to the hardware platform of the mobile terminal device.
其中,所述元操作系统包括根据所述移动终端设备定制的Linux操作系统。Wherein, the meta-operating system includes a Linux operating system customized according to the mobile terminal device.
其中,所述移动终端设备包括手机、个人数字助理PDA或上网本。Wherein, the mobile terminal equipment includes a mobile phone, a personal digital assistant (PDA), or a netbook.
本发明提出的上述方案,在不改变引导程序功能的前提下实现移动设备的操作系统网络化自动安装,分离底层硬件和网络服务之间的耦合关系,降低移植和开发的难度,提高在不同手机终端的移植性,实现简单。具体而言,本发明提出的技术方案具有以下一个或多个优点:本方法中的引导程序为普通引导程序,无任何附加功能,例如元操作系统为高度定制的精简的Linux操作系统,向目标平台移植成功后,所有网络支持以及辅助工具都可以直接使用Linux平台下已经非常成熟的工具,实现简单;与硬件松耦合,介于引导程序和实例操作系统之间的元操作系统将网络协议,辅助工具的实现与底层硬件相分离,可以基于普通的Linux平台开发,调试移植与硬件松耦合,移植性好;扩展性好,元操作系统提供了实例操作系统管理的平台,可以方便地实现新的功能,如支持新的网络协议,对实例操作系统进行完整性检查,备份用户数据等。The above-mentioned solution proposed by the present invention realizes the networked automatic installation of the operating system of the mobile device without changing the function of the boot program, separates the coupling relationship between the underlying hardware and the network service, reduces the difficulty of transplantation and development, and improves the compatibility between different mobile phones. Terminal portability, easy to implement. Specifically, the technical solution proposed by the present invention has one or more of the following advantages: the boot program in this method is an ordinary boot program without any additional functions, for example, the meta-operating system is a highly customized streamlined Linux operating system, and the target After the platform is successfully transplanted, all network support and auxiliary tools can directly use the very mature tools under the Linux platform, which is easy to implement; loosely coupled with the hardware, the meta-operating system between the boot program and the instance operating system integrates the network protocol, The implementation of auxiliary tools is separated from the underlying hardware, and can be developed based on the common Linux platform. The debugging and transplantation are loosely coupled with the hardware, and the portability is good; the scalability is good. functions, such as supporting new network protocols, performing integrity checks on instance operating systems, and backing up user data.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1为本发明实施例操作系统网络安装的方法流程图;Fig. 1 is the flow chart of the method for operating system network installation of the embodiment of the present invention;
图2为本发明实施例元操作系统、实例操作系统、引导程序以及硬件之间关系;Fig. 2 is the relationship among meta-operating system, example operating system, boot program and hardware of the embodiment of the present invention;
图3为本发明实施例元操作系统各模块间的关系;Fig. 3 is the relationship among the modules of the meta-operating system in the embodiment of the present invention;
图4为本发明实施例操作系统网络化自动安装流程;Fig. 4 is the networked automatic installation process of the operating system according to the embodiment of the present invention;
图5为本发明实施例引导程序、元操作系统和实例操作系统的存储方式。Fig. 5 is a storage method of a boot program, a meta-OS and an example OS according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
为了实现本发明之目的,本发明主要针对移动设备中操作系统的管理,提出了两阶段启动方法,实现了操作系统的网络化自动安装:第一阶段,引导程序首先启动内置的高度定制的元操作系统(MetaOS),元操作系统完成网络连接,系统镜像下载、验证以及安装等任务;第二阶段启动用户使用的操作系统,称为实例操作系统(IOS,Instance OS)。In order to achieve the purpose of the present invention, the present invention mainly aims at the management of the operating system in the mobile device, and proposes a two-stage startup method, which realizes the networked automatic installation of the operating system: in the first stage, the boot program first starts the built-in highly customized element The operating system (MetaOS), the meta-operating system completes tasks such as network connection, system image download, verification, and installation; the second stage starts the operating system used by the user, which is called the instance operating system (IOS, Instance OS).
如图1所示,为本发明实施例操作系统网络安装的方法流程图,包括以下步骤:As shown in Figure 1, it is a flow chart of a method for network installation of an operating system in an embodiment of the present invention, including the following steps:
S110:引导程序启动元操作系统,进入系统管理模式。S110: the boot program starts the meta-OS and enters the system management mode.
在步骤S110中,移动终端设备引导程序启动元操作系统,进入系统管理模式。In step S110, the boot program of the mobile terminal device starts the meta-operating system and enters the system management mode.
具体而言,移动终端设备包括以下功能模块:Specifically, mobile terminal equipment includes the following functional modules:
网络配置模块,用于检测可用网络,并根据网络类型进行配置,建立网络传输通道;The network configuration module is used to detect the available network, configure according to the network type, and establish a network transmission channel;
数据服务模块,用于负责从网络服务器下载系统镜像,并验证系统镜像的完整性;The data service module is used to be responsible for downloading the system image from the network server and verifying the integrity of the system image;
系统服务模块,用于提供网络驱动及文件系统支持服务,并向所述网络配置模块和所述数据服务模块提供服务。The system service module is used to provide network driver and file system support services, and provide services to the network configuration module and the data service module.
此外移动终端设备还包括性能监控模块,性能监控模块监控设备电池剩余电量和网络状况,提示用户在低电量或者网络连接较差的情况下放弃操作系统的网络安装。In addition, the mobile terminal device also includes a performance monitoring module, which monitors the remaining battery power and network status of the device, and prompts the user to give up the network installation of the operating system when the battery is low or the network connection is poor.
S120:建立网络连接,并从网络下载相应的系统镜像文件。S120: Establish a network connection, and download a corresponding system image file from the network.
在步骤S120中,在系统管理模式下,移动终端设备建立网络连接,并从网络下载相应的系统镜像文件。In step S120, in the system management mode, the mobile terminal device establishes a network connection, and downloads a corresponding system image file from the network.
具体而言,移动终端设备建立网络连接包括以下步骤:Specifically, establishing a network connection with a mobile terminal device includes the following steps:
移动终端设备中的网络配置模块将自动检测当前可用网络,并以列表的形式展现给用户;The network configuration module in the mobile terminal device will automatically detect the currently available network and display it to the user in the form of a list;
用户选择欲使用的网络并进行提供相应的配置信息;The user selects the network to be used and provides corresponding configuration information;
移动终端设备与相应的网络建立通信连接。The mobile terminal establishes a communication connection with the corresponding network.
从网络下载相应的系统镜像文件包括以下步骤:Downloading the corresponding system image file from the network includes the following steps:
移动终端设备向服务器发出下载操作系统请求,服务器返回可用的实例操作系统镜像列表;The mobile terminal device sends a request to the server to download the operating system, and the server returns a list of available instance operating system images;
用户选择需要下载的系统镜像;The user selects the system image to be downloaded;
移动终端设备下载系统镜像文件并验证系统镜像文件的完整性。The mobile terminal device downloads the system image file and verifies the integrity of the system image file.
S130:解压缩系统镜像文件,并将其写入相应的分区,完成系统安装。S130: decompress the system image file, and write it into a corresponding partition, and complete the system installation.
在步骤S130中,移动终端设备解压缩系统镜像文件,并将其写入相应的分区,完成系统安装。In step S130, the mobile terminal device decompresses the system image file, and writes it into a corresponding partition to complete the system installation.
其中,元操作系统为根据移动终端设备的硬件平台定制的精简操作系统。Wherein, the meta-operating system is a streamlined operating system customized according to the hardware platform of the mobile terminal device.
例如,元操作系统包括根据移动终端设备定制的Linux操作系统。For example, the meta-operating system includes a Linux operating system customized according to mobile terminal equipment.
在上述实施例中,移动终端设备包括手机、个人数字助理PDA或上网本。In the above embodiments, the mobile terminal equipment includes a mobile phone, a personal digital assistant (PDA), or a netbook.
下面移动终端设备以手机为例、元操作系统以Linux操作系统为例对本发明作进一步阐述,显然,本发明不限于应用于手机和元操作系统不仅仅包含Linux操作系统。Below mobile terminal equipment is taken mobile phone as example, meta-operating system is taken Linux operating system as example to further elaborate the present invention, obviously, the present invention is not limited to be applied to mobile phone and meta-operating system not only includes Linux operating system.
本发明所述方法在手机客户端主要由引导程序,元操作系统,和实例操作系统组成,三者之间的以及与硬件之间的关系如图2所示。引导程序与普通手机中的引导程序相同,直接工作在硬件上,负责手机各部件的初始化,加载操作系统内核,并启动。本发明中引导程序可以直接启动元操作系统也可以直接启动实例操作系统,通过启动按键的不同组合可以启动不同的操作系统。默认情况下,引导程序直接启动实例操作系统,这与普通手机的开机过程相同。如果用户要更新或者安装操作系统,则进入元操作系统,进行相应操作,然后重新启动,则进入新的实例操作系统。也就是说,元操作系统完成实例操作系统的下载和安装后即退出,不会与实例操作系统同时运行。元操作系统是针对手机终端硬件移植定制的Linux系统,而实例操作系统则为任何可在此手机中运行的系统,如WindowsMobile,Android等,与元操作系统无关。The method of the present invention is mainly composed of a boot program, a meta-operating system, and an instance operating system on the mobile phone client. The relationship between the three and the hardware is shown in FIG. 2 . The boot program is the same as the boot program in an ordinary mobile phone. It works directly on the hardware and is responsible for the initialization of each component of the mobile phone, loading the operating system kernel, and starting it. In the present invention, the boot program can directly start the meta-operating system or the instance operating system, and different operating systems can be started by different combinations of starting keys. By default, the bootloader directly starts the instance operating system, which is the same as the boot process of a normal mobile phone. If the user wants to update or install the operating system, he enters the meta-operating system, performs corresponding operations, and then restarts to enter the new instance operating system. That is to say, the meta-OS will exit after downloading and installing the instance OS, and will not run concurrently with the instance OS. The meta-OS is a Linux system customized for mobile phone terminal hardware transplantation, while the instance OS is any system that can run on this mobile phone, such as WindowsMobile, Android, etc., and has nothing to do with the meta-OS.
由此可见,手机终端操作系统网络化的自动安装主要由元操作系统完成,元操作系统各模块之间的关系如图3所示,其功能模块如下:It can be seen that the networked automatic installation of the mobile terminal operating system is mainly completed by the meta-operating system. The relationship between the modules of the meta-operating system is shown in Figure 3, and its functional modules are as follows:
系统服务模块:包括网络驱动,文件系统支持,向所有其他模块提供服务;网络配置模块:检测可用网络,并根据网络类型进行配置,建立网络传输通道;数据服务模块:负责从网络服务器下载系统镜像,并验证系统镜像的完整性;系统安装模块:解压缩系统镜像,并将其安装到目标分区;性能监控模块:监控设备电池剩余电量和网络状况,提示用户在低电量或者网络连接较差的情况下放弃操作系统的网络安装。System service module: includes network driver, file system support, and provides services to all other modules; network configuration module: detects the available network, configures it according to the network type, and establishes a network transmission channel; data service module: responsible for downloading the system image from the network server , and verify the integrity of the system image; system installation module: decompress the system image and install it to the target partition; performance monitoring module: monitor the remaining battery power and network status of the device, and prompt the user when the battery is low or the network connection is poor In case of abandoning the network installation of the operating system.
作为本发明对实施例,操作系统的网络化自动安装流程如图4所示,操作系统网络化自动安装依次有以下步骤:As the embodiment of the present invention, the networked automatic installation process of the operating system is shown in Figure 4, and the networked automatic installation of the operating system has the following steps in turn:
1、启动1. Start
a)如果用户按下开机键,引导程序直接启动实例操作系统,不会进入系统管理模式,操作结束。a) If the user presses the power button, the boot program directly starts the instance operating system without entering the system management mode, and the operation ends.
b)如果用户按下特殊的开机键组合,引导程序将启动元操作系统,进入系统管理模式。b) If the user presses a special power-on key combination, the bootloader will start the meta-OS and enter system management mode.
2、网络配置2. Network configuration
a)网络配置模块将自动检测当前可用网络,并以列表的形式展现给用户;a) The network configuration module will automatically detect the currently available network and display it to the user in the form of a list;
b)用户选择欲使用的网络并进行提供相应的配置信息,例如WiFi密码;b) The user selects the network to be used and provides corresponding configuration information, such as WiFi password;
c)建立网络连接;c) establish a network connection;
3、性能监控3. Performance monitoring
a)如果用户电量较少或者网络连接情况较差,则提示用户放弃此次操作,否则继续。a) If the user's power is low or the network connection is poor, prompt the user to give up the operation, otherwise continue.
4、下载镜像4. Download mirror
a)向服务器发出请求,服务器返回可用的实例操作系统镜像列表;a) Send a request to the server, and the server returns a list of available instance operating system images;
b)用户选择希望下载的系统镜像;b) The user selects the system image he wishes to download;
c)下载镜像并验证镜像的完整性;c) Download the image and verify the integrity of the image;
5、安装镜像5. Install mirror
a)解压缩系统镜像文件,并将其写入相应的分区,完成安装功能。a) Unzip the system image file and write it to the corresponding partition to complete the installation function.
6、重启系统进入新的实例操作系统6. Restart the system to enter the new instance operating system
本发明所述方法可以在普通手机硬件架构上实现,设计的技术问题包括:引导程序,元操作系统,实例操作系统以及系统镜像的存储方式组织,元操作系统各模块的实现方式。The method described in the present invention can be realized on the hardware framework of an ordinary mobile phone, and the technical problems of the design include: a boot program, a meta-operating system, an instance operating system and a system image storage organization, and an implementation mode of each module of the meta-operating system.
存储方式包括:Storage methods include:
图5为2种引导程序,元操作系统和实例操作系统存储方式。其中FLASH即常见手机内置存储器,一般为NAND存储芯片;NOR也是一种常见的内置存储器,与NAND相比,容量较小,写速度较慢,但读取速度快,且支持片内执行(eXecute In Place,XIP);microSD为手机中常用的外置存储卡。图5(a)所示的结构中手机只配有一块内置存储器,引导程序,元操作系统和实例操作系统处在同一存储器的不同分区,图5(b)所示的手机中分别配有一块NOR存储器,一块NAND存储器,可以将引导程序和元操作系统植入读取速度较快的NOR中,而实例操作系统独占NAND存储器。第二种结构不仅启动速度快,而且可以对NOR存储器进行特别保护(甚至置为只读),防止用户修改或者恶意程序的篡改,保证元操作系统的安全性,从而保证了实例操作系统下载,安装的安全性。Fig. 5 shows two kinds of boot programs, meta-OS and instance OS storage methods. Among them, FLASH is a common mobile phone built-in memory, generally a NAND memory chip; NOR is also a common built-in memory. Compared with NAND, it has a smaller capacity and a slower write speed, but a faster read speed and supports on-chip execution In Place, XIP); microSD is an external memory card commonly used in mobile phones. In the structure shown in Figure 5(a), the mobile phone is equipped with only one built-in memory, and the boot program, meta-OS and instance operating system are in different partitions of the same memory. NOR memory, a piece of NAND memory, can implant the boot program and meta-operating system into NOR with a faster reading speed, while the instance operating system exclusively occupies the NAND memory. The second structure not only has a fast startup speed, but also can carry out special protection on the NOR memory (even set it as read-only), prevent user modification or tampering by malicious programs, and ensure the security of the meta-operating system, thus ensuring the download of the instance operating system. Security of installation.
元操作系统的定制包括:Meta OS customizations include:
元操作系统是根据目标手机平台定制的高度精简的Linux系统,主要的工作集中在Linux系统的移植和精简。首先,Linux系统向嵌入式设备的移植已经有比较成熟的技术和方法,本发明直接使用现有技术完成移植;其次,根据目标手机硬件进行定制,只保留必要的硬件驱动和工具软件,将元操作系统精简至最小,并采用initramfs方式将元操作系统的内核和根文件系统组织在一起,在存储中只占用一个分区。系统服务,网络配置,数据服务,系统安装以及性能监控模块只需要在目标手机平台的交叉开发环境中编译即可,与普通Linux程序的开发过程相同,最终都包含在initramfs中。The meta-operating system is a highly streamlined Linux system customized according to the target mobile phone platform. The main work focuses on the transplantation and streamlining of the Linux system. First of all, there are relatively mature technologies and methods for the transplantation of Linux system to embedded devices, and the present invention directly uses the existing technology to complete the transplantation; secondly, it customizes according to the target mobile phone hardware, only retaining necessary hardware drivers and tool software, and the element The operating system is simplified to the minimum, and the kernel and root file system of the meta-operating system are organized together by the initramfs method, and only one partition is occupied in the storage. System service, network configuration, data service, system installation and performance monitoring modules only need to be compiled in the cross-development environment of the target mobile phone platform, which is the same as the development process of ordinary Linux programs, and are finally included in the initramfs.
元操作系统模块实现包括:Meta OS module implementations include:
系统服务模块:包括内核,网络驱动,文件系统支持,向所有其他模块提供服务。针对目标手机平台的硬件配置进行网络驱动的开发与普通Linux驱动程序的开发过程相同,已经有比较成熟的方法和技术;常见的文件系统大都可以在Linux源码中找到,根据需要编译即可。系统服务模块的关键是Linux系统的移植。System service module: including kernel, network driver, file system support, providing services to all other modules. The development process of the network driver for the hardware configuration of the target mobile phone platform is the same as that of the ordinary Linux driver program, and there are already relatively mature methods and technologies; most common file systems can be found in the Linux source code, and can be compiled as needed. The key of the system service module is the transplantation of Linux system.
网络配置模块:检测可用网络,并根据网络类型进行配置,建立网络传输通道。利用Linux系统的无线网络相关工具(iwlist,iwconfig等)可以检测WiFi网络,利用wpa_supplicant可以完成WiFi认证,建立网络连接。对于GPRS和3G网络,一旦Linux驱动加载成功,网络设备添加后,即可自动连接网络。Network configuration module: detect the available network, configure according to the network type, and establish a network transmission channel. Use the wireless network related tools (iwlist, iwconfig, etc.) of the Linux system to detect the WiFi network, and use wpa_supplicant to complete the WiFi authentication and establish a network connection. For GPRS and 3G networks, once the Linux driver is successfully loaded and the network device is added, it can automatically connect to the network.
性能监控模块:监控设备电池剩余电量和网络状况,提示用户在低电量或者网络连接较差的情况下放弃操作系统的下载和安装。通过系统的电源管理模块可以获取当前电池电量以及是否正在充电,网络带宽延迟可以通过与服务器的测试性交互获得。Performance monitoring module: monitor the remaining battery power and network status of the device, and prompt the user to give up the download and installation of the operating system when the battery is low or the network connection is poor. The current battery level and whether it is charging can be obtained through the power management module of the system, and the network bandwidth delay can be obtained through test interaction with the server.
数据服务模块:负责从网络服务器下载系统镜像,并验证系统镜像的完整性。采用通用的HTTP协议与服务器交互。系统镜像下载之前首先判断本地存储是否有足够的空间存储新的系统镜像,按照先外部存储后内置存储器的顺序进行检查并下载,完成之后进行MD5校验,保证镜像的完整性。Data service module: responsible for downloading the system image from the network server and verifying the integrity of the system image. Use the common HTTP protocol to interact with the server. Before downloading the system image, first judge whether the local storage has enough space to store the new system image, check and download in the order of external storage first and then built-in storage, and perform MD5 verification after completion to ensure the integrity of the image.
系统安装模块:解压缩系统镜像,并将其安装到目标分区。不同手机操作系统对系统数据和用户数据的组织方式不同,为了保证用户数据的安全性,用户在更新操作系统之前应首先备份用户数据。新的系统镜像解压后将直接覆盖旧的系统文件,重启之后再回复用户数据。关于用户数据的自动备份和恢复我们另有专利介绍。System installation module: decompress the system image and install it to the target partition. Different mobile phone operating systems organize system data and user data in different ways. In order to ensure the security of user data, users should first back up user data before updating the operating system. After the new system image is decompressed, the old system files will be overwritten directly, and the user data will be restored after restarting. Regarding the automatic backup and recovery of user data, we have another patent introduction.
服务器端实现包括:Server-side implementations include:
服务器提供手机终端网络访问服务以及系统镜像的存储。网络访问服务可以采用通用的HTTP服务,保证对不同终端的兼容性和移植性。系统镜像的存储除了存储系统镜像本身,还需要记录系统镜像的校验码(采用MD5摘要作为校验码)以及镜像之间的先后顺序,让用户可以方便地判断镜像的版本和新旧。The server provides the mobile terminal network access service and the storage of the system image. The network access service can adopt common HTTP service to ensure the compatibility and portability of different terminals. In addition to storing the system image itself, the storage of the system image also needs to record the check code of the system image (MD5 digest is used as the check code) and the sequence of images, so that users can easily judge the version and old of the image.
本领域普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be executed when executed , including one or a combination of the steps of the method embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010212282 CN101866295A (en) | 2010-06-21 | 2010-06-21 | A method of operating system network installation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010212282 CN101866295A (en) | 2010-06-21 | 2010-06-21 | A method of operating system network installation |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN101866295A true CN101866295A (en) | 2010-10-20 |
Family
ID=42958030
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201010212282 Pending CN101866295A (en) | 2010-06-21 | 2010-06-21 | A method of operating system network installation |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101866295A (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102024109A (en) * | 2010-12-02 | 2011-04-20 | 清华大学 | Method for checking security of operating system based on Meta operating system (MetaOS) technology |
| CN103246527A (en) * | 2012-02-07 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Mobile terminal operating system updating method and system and computer |
| CN104077410A (en) * | 2014-07-14 | 2014-10-01 | 四川效率源信息安全技术有限责任公司 | Device and method for extracting mobile phone position information and marking mobile phone position information on map |
| CN104683437A (en) * | 2014-12-12 | 2015-06-03 | 广西科技大学 | An online positioning method |
| CN104754608A (en) * | 2013-12-25 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Method and system for monitoring performances of mobile terminal |
| TWI513356B (en) * | 2013-12-31 | 2015-12-11 | Aten Int Co Ltd | Network device and system and method of installation and activation of embedded control program thereof |
| CN105740006A (en) * | 2016-01-20 | 2016-07-06 | 中南大学 | Cross-platform service providing method of wearable intelligent device based on transparent computing |
| CN106681771A (en) * | 2016-12-30 | 2017-05-17 | 合网络技术(北京)有限公司 | System reinstallation method and device |
| CN106940769A (en) * | 2017-03-01 | 2017-07-11 | 广州大学 | operating system security remote loading method |
| CN109643238A (en) * | 2016-10-18 | 2019-04-16 | 惠普发展公司,有限责任合伙企业 | OS installation via RFID chip |
| CN110502280A (en) * | 2019-07-09 | 2019-11-26 | 宇龙计算机通信科技(深圳)有限公司 | Android operating system startup method, device, storage medium and terminal |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1509058A (en) * | 2002-12-18 | 2004-06-30 | 中国移动通信集团公司 | Method for wireless mobile communication equipment to automatically log in to the Internet |
| US20060005016A1 (en) * | 2004-07-01 | 2006-01-05 | Lee Sam J | Operating system installation |
| US20090182851A1 (en) * | 2008-01-14 | 2009-07-16 | Apple Inc. | Remote install assistant |
| CN101673207A (en) * | 2009-09-25 | 2010-03-17 | 成都时代诺亚舟教育软件有限公司 | Program updating method of handheld learning terminal |
| CN101674291A (en) * | 2008-09-09 | 2010-03-17 | 英业达股份有限公司 | Network service system and method for remotely installing files thereof |
-
2010
- 2010-06-21 CN CN 201010212282 patent/CN101866295A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1509058A (en) * | 2002-12-18 | 2004-06-30 | 中国移动通信集团公司 | Method for wireless mobile communication equipment to automatically log in to the Internet |
| US20060005016A1 (en) * | 2004-07-01 | 2006-01-05 | Lee Sam J | Operating system installation |
| US20090182851A1 (en) * | 2008-01-14 | 2009-07-16 | Apple Inc. | Remote install assistant |
| CN101674291A (en) * | 2008-09-09 | 2010-03-17 | 英业达股份有限公司 | Network service system and method for remotely installing files thereof |
| CN101673207A (en) * | 2009-09-25 | 2010-03-17 | 成都时代诺亚舟教育软件有限公司 | Program updating method of handheld learning terminal |
Non-Patent Citations (1)
| Title |
|---|
| 《21st International Conference on Advanced Networking and Applications(AINA'07)》 20071231 Yaoxue Zhang等 4VP+:A Novel Meta OS Approach for Streaming Programs in Ubiquitous Computing 第3节,第5节 6-8 , * |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102024109B (en) * | 2010-12-02 | 2012-07-18 | 清华大学 | Method for checking security of operating system based on Meta operating system (MetaOS) technology |
| CN102024109A (en) * | 2010-12-02 | 2011-04-20 | 清华大学 | Method for checking security of operating system based on Meta operating system (MetaOS) technology |
| CN103246527A (en) * | 2012-02-07 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Mobile terminal operating system updating method and system and computer |
| CN104754608A (en) * | 2013-12-25 | 2015-07-01 | 腾讯科技(深圳)有限公司 | Method and system for monitoring performances of mobile terminal |
| TWI513356B (en) * | 2013-12-31 | 2015-12-11 | Aten Int Co Ltd | Network device and system and method of installation and activation of embedded control program thereof |
| CN104077410A (en) * | 2014-07-14 | 2014-10-01 | 四川效率源信息安全技术有限责任公司 | Device and method for extracting mobile phone position information and marking mobile phone position information on map |
| CN104683437A (en) * | 2014-12-12 | 2015-06-03 | 广西科技大学 | An online positioning method |
| CN105740006A (en) * | 2016-01-20 | 2016-07-06 | 中南大学 | Cross-platform service providing method of wearable intelligent device based on transparent computing |
| CN109643238A (en) * | 2016-10-18 | 2019-04-16 | 惠普发展公司,有限责任合伙企业 | OS installation via RFID chip |
| CN109643238B (en) * | 2016-10-18 | 2022-07-01 | 惠普发展公司,有限责任合伙企业 | Operating system installation via radio frequency identification chip |
| CN106681771A (en) * | 2016-12-30 | 2017-05-17 | 合网络技术(北京)有限公司 | System reinstallation method and device |
| CN106681771B (en) * | 2016-12-30 | 2020-12-29 | 阿里巴巴(中国)有限公司 | System reinstallation method and device |
| CN106940769A (en) * | 2017-03-01 | 2017-07-11 | 广州大学 | operating system security remote loading method |
| CN110502280A (en) * | 2019-07-09 | 2019-11-26 | 宇龙计算机通信科技(深圳)有限公司 | Android operating system startup method, device, storage medium and terminal |
| CN110502280B (en) * | 2019-07-09 | 2024-01-05 | 宇龙计算机通信科技(深圳)有限公司 | Android operating system starting method and device, storage medium and terminal |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101866295A (en) | A method of operating system network installation | |
| US9301164B2 (en) | Method, system, and terminal for performing system update between mobile communication terminals | |
| US8874892B1 (en) | Assessing BIOS information prior to reversion | |
| US20100132042A1 (en) | Method for upgrading antivirus software and terminal and system thereof | |
| KR101626433B1 (en) | Method and system for verifying proper operation of a computing device after a system change | |
| US7694165B2 (en) | Automation of bare metal recoveries | |
| CN105094927B (en) | Equipment firmware upgrading method and device | |
| EP1983432A1 (en) | Booting system, boot program, and method therefor | |
| CN102591675B (en) | Method and system for management of multiple software images with shared memory blocks | |
| US20060075284A1 (en) | Method for over-the-air firmware update of NAND flash memory based mobile devices | |
| US20100325622A1 (en) | Updating Firmware of an Electronic Device | |
| US20110246983A1 (en) | Wireless Network Backup Device and Method | |
| TWI576764B (en) | A computer system | |
| WO2017067448A1 (en) | Firmware-over-the-air upgrade method, system and computer storage medium | |
| CN104506639A (en) | A method and device for obtaining root authority | |
| WO2019062635A1 (en) | Update method and device | |
| CN105637521B (en) | Data processing method and intelligent terminal | |
| EP2076834A1 (en) | Program upgrade system and method for ota-capable mobile terminal | |
| CN102135893A (en) | Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server | |
| CN111290773B (en) | System upgrade methods, equipment and readable storage media | |
| CN104918114A (en) | Method and device for upgrading operation system | |
| WO2024078218A1 (en) | System booting method and electronic device | |
| CN106020875A (en) | Firmware updating management method and device of embedded terminal | |
| CN102004657B (en) | A kind of electronic equipment and upgrade method thereof | |
| JP2013025426A (en) | Image output device and program therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20101020 |