CN104899091B - A kind of intelligence embedded device multiple operating system switching method - Google Patents

A kind of intelligence embedded device multiple operating system switching method Download PDF

Info

Publication number
CN104899091B
CN104899091B CN201510383431.5A CN201510383431A CN104899091B CN 104899091 B CN104899091 B CN 104899091B CN 201510383431 A CN201510383431 A CN 201510383431A CN 104899091 B CN104899091 B CN 104899091B
Authority
CN
China
Prior art keywords
operating system
flag bit
boot
address
function
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.)
Expired - Fee Related
Application number
CN201510383431.5A
Other languages
Chinese (zh)
Other versions
CN104899091A (en
Inventor
熊永华
吴敏
郭述帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China University of Geosciences
Original Assignee
China University of Geosciences
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China University of Geosciences filed Critical China University of Geosciences
Priority to CN201510383431.5A priority Critical patent/CN104899091B/en
Publication of CN104899091A publication Critical patent/CN104899091A/en
Application granted granted Critical
Publication of CN104899091B publication Critical patent/CN104899091B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of methods for realizing multiple operating system selective actuation in intelligent embedded device, it is first that user divides multiple operating system subregion in memory, the load run function for adding EEPROM flag bit handling function in U-Boot and being write for each operating system, in QT environment, os starting menu is set, an operating system is selected to start in os starting menu, U-Boot calling EEPROM flag bit handling function reads the flag bit of the operating system, call the load run function of the corresponding operating system of the flag bit, start-up operation system.In the present invention, handover management system independently of U-Boot, compensate for U-Boot can not omnibearing management hardware the shortcomings that, it is possible to provide more comprehensive interactive function facilitates carry out Function Extension.

Description

A kind of intelligence embedded device multiple operating system switching method
Technical field
The present invention relates to a kind of intelligent embedded device multiple operating system switching methods, belong to computer systems technology neck Domain.
Background technique
Intelligent embedded device such as smart phone, tablet computer etc., because it has the characteristics that frivolous, portable obtain quickly It is universal.A usual intelligent embedded device can only run a type operating system, and each operation system function is biased to area Not, as Android, iOS primarily focus on amusement, Windows is then more suitable office.Industry in order to realize polymorphic type operation system System is run on intelligent embedded device, is typically employed in Bootstrap Commissioning Program and is added user's selection menu, obtains user's choosing The method for selecting selective actuation operating system after parameter.Bootstrap loader is responsible realization operating system before os starting The simple program being booted up is guided the restriction of loading procedure based on the multiple operating system handover scheme that this program is realized, Its scalability, manageability are extremely limited.
Summary of the invention
In order to solve the deficiencies in the prior art, the present invention provides a kind of intelligent embedded device multiple operating system switching sides It is not strong to solve multiple operating system tradition handover scheme scalability, manageability based on bootstrap loader exploitation for method Problem.
The present invention is that technical solution used by solving its technical problem is:A kind of intelligent embedded device is provided to grasp more Make system switching method, includes the following steps:
Step 1:By memory partition, storage address is in turn divided into U-Boot subregion and system partitioning, by each operation The image file of system is successively stored in system partitioning, and personal distance is equipped between the image file of each operating system, according to The storage address of the image file of each operating system establishes system image partitions of file table, according to the system image partitions of file table It is that each operating system establishes address of cache macrodefinition respectively in U-Boot subregion;The address of cache macrodefinition includes Nand The address Flash OS_ADDR, image file size OS_LEN, the memory address OS_RAM_ADDR of image file position and jump address OS_RAM_BOOT_OFF;
Step 2:EEPROM flag bit handling function is added in U-Boot subregion, and defines the flag bit of each operating system And handover management system sign position;
Step 3:The load run function for adding each operating system respectively in U-Boot subregion, respectively loads run function For the image file at the address Nand Flash to be loaded onto memory address OS_RAM_ADDR, and jump to memory address OS_RAM_ADDR start-up operation system kernel;
Step 4:Os starting menu is set in QT environment, the os starting menu is different for selecting Operating system;
Step 5:An operating system is selected to start in os starting menu, U-Boot calls EEPROM mark Bit manipulation function reads the flag bit of the operating system, calls the load run function of the corresponding operating system of the flag bit, opens Dynamic operating system.
In step 5, before start-up operation system, EEPROM flag bit handling function is called, flag bit is rewritten as switching pipe Manage system sign position.
The present invention is based on beneficial effects possessed by its technical solution to be:
(1) by the present invention in that being patrolled according to starting with handover management system intelligent embedded device polymorphic type operating system It collects and carries out unified subregion, guidance operation, this method is enabled to be conveniently accomplished the switching of polymorphic type operating system;
(2) image file of each operating system is successively stored in the system partitioning of memory and safety is arranged by the present invention Interval, establishes system image partitions of file table according to the storage address of the image file of each operating system, in U-Boot subregion It is that each operating system establishes address of cache macrodefinition respectively, and adds respectively for each operating system according to system image partitions of file table Load run function defines flag bit corresponding with each operating system, can reduce the event in traditional " brush machine " operating process Barrier rate guarantees the stability of polymorphic type operating system switching;
(3) os starting menu is arranged in QT environment in the present invention, it is possible to provide more humanization alternate surface and expansion The stronger switching system of malleability makes up the selection menu mutual based on bootstrap loader exploitation and experiences not strong and poor expandability The shortcomings that.
Detailed description of the invention
Fig. 1 is the system structure diagram for realizing the method for the invention.
Fig. 2 is the flow chart of the method for the invention.
Fig. 3 is storage address partition table of the embodiment of the present invention.
Fig. 4 is os starting menu interface diagram.
Specific embodiment
Present invention will be further explained below with reference to the attached drawings and examples.
The present invention provides a kind of intelligent embedded device multiple operating system switching methods, referring to Fig. 2, including following step Suddenly:
Step 1:By memory partition, storage address is in turn divided into U-Boot subregion and system partitioning, by each operation The image file of system is successively stored in system partitioning, and personal distance is equipped between the image file of each operating system, according to The storage address of the image file of each operating system establishes system image partitions of file table, according to the system image partitions of file table It is that each operating system establishes address of cache macrodefinition respectively in U-Boot subregion;The address of cache macrodefinition includes Nand The address Flash OS_ADDR, image file size OS_LEN, the memory address OS_RAM_ADDR of image file position and jump address OS_RAM_BOOT_OFF;
Step 2:EEPROM flag bit handling function is added in U-Boot subregion, and defines the flag bit of each operating system And handover management system sign position;
Step 3:The load run function for adding each operating system respectively in U-Boot subregion, respectively loads run function For the image file at the address Nand Flash to be loaded onto memory address OS_RAM_ADDR, and jump to memory address OS_RAM_ADDR start-up operation system kernel;
Step 4:Os starting menu is set in QT environment, the os starting menu is different for selecting Operating system;
Step 5:An operating system is selected to start in os starting menu, U-Boot calls EEPROM mark Bit manipulation function reads the flag bit of the operating system, calls the load run function of the corresponding operating system of the flag bit, opens Dynamic operating system.
In step 5, before start-up operation system, EEPROM flag bit handling function is called, flag bit is rewritten as switching pipe Manage system sign position.
Using intelligent embedded device multiple operating system switching method of the invention can be applied to it is as shown in Figure 1 based on The intelligent embedded device of Linux.Intelligent embedded device hardware configuration is:FriendlyARM company Mini6410 development board (Samsung S3C6410 processor, ARM1176JZF-S kernel, dominant frequency 533MHz/667MHz, 1GB Nand Flash storage Device, 256B IIC interface eeprom memory)
Intelligent embedded device software configuration:
Linux QT (kernel version:2.6.38, using VFS), Android 2.3.4, (file system uses file system VFS)、Windows CE 6.0、U-Boot 1.1.5。
The first step, by memory partition, as shown in figure 3, the 256KB storage region since the address Nand Flash 0 is deposited U-Boot program is put, memory space is system partitioning after U-Boot subregion, with personal distance storage Windows CE, switching pipe Reason system, Linux, android system kernel and file system mirror file, storage sequence have no strict demand.According to each behaviour The storage address for making the image file of system establishes system image partitions of file table, according to system image partitions of file table in U- It is that each operating system establishes address of cache macrodefinition respectively in Boot subregion, every type operating system address of cache macrodefinition is mainly wrapped It includes:Nand Flash address OS_ADDR, image file size OS_LEN, image file position memory address OS_RAM_ADDR and Jump address OS_RAM_BOOT_OFF.
Second step writes EEPROM handling function in U-Boot subregion, including:First, opening source code Include/configs/mini6410.hIIC interface driver macrodefinition:CFG_CMD_I2C;Second, addition eeprom memory Macrodefinition CFG_I2C_EEPROM_ADDR address 0x50;After above-mentioned modification, that is, EEPROM handling function can be used eeprom_read(dev_addr,off,os_flag,cnt)、eeprom_write(dev_addr,off,os_flag,cnt)。 Each operating system flag bit is defined, indicates one byte of bit occupancy, wherein 0x00 corresponds to handover management system, and 0x01 is corresponding Windows CE, 0x02 correspond to Linux QT system, 0x03 corresponding A ndroid system, and flag bit deposits in eeprom memory In first byte.
Third step:Each operating system load run function is added in U-Boot, each run function that loads is by calling U- Image file is loaded onto OS_RAM_ADDR memory fortune according to the address Nand Flash defined in the first step by Boot loading command In row address, and jump to memory address OS_RAM_ADDR start-up operation system kernel.
It is void boot_wince (int exe_flag) that wherein WindowsCE, which loads run function, and exe_flag is to open Dynamic flag bit decides whether execution starting operation, and operating system load and starting are by executing char set_wince_ The realization of bootcmd [] character string definition command, " nand read.i " MK_STR (WINCE_RAM_ADDR) " " MK_STR (WINCE_ADDR)""MK_STR(WINCE_LEN)";" passing through " bootm " MK_STR (WINCE_RAM_BOOT_OFF) ";" life U-Boot is enabled to jump to Windows CE kernel entrance start-up operation system.
Android run function is void boot_android (int exe_flag), needs to lead to before Android starting It crosses char set_android_bootargs [] to set, including specified VFS file system type, console The parameters such as interface and LCD type after the completion of configuration, define Android using char set_android_bootcmd [] and start Movement, Linux run function void boot_linux (int exe_flag), handover management system run function viod Boot_manageos (int exe_flag) is consistent substantially with Android run function.
4th step starts menu in QT environment setting system, is illustrated in figure 4 the interface schematic diagram of system starting menu, System starting menu for user provide Windows CE, Linux QT and tri- example operation Systematic selections of Android by Button, user can directly select touching LCD, and after user selects example operation system, EEPROM flag bit is rewritten as corresponding to Operating system, equipment are restarted, and U-Boot is booted up example operation system.
5th step selects an operating system to start in os starting menu, and U-Boot is executed comprising starting The load run function MyBootOS () of logic, wherein MyBootOS () function by eeprom_read (dev_addr, Off, os_flag, cnt) function acquisition flag bit, calls switch sentence, is mapped and closed according to the operating system of second step setting System executes respective operations system run function, when flag bit 0x00,0x01,0x02,0x03, executes boot_ respectively Manageos (1), boot_wince (1), boot_linux (1) and boot_android (1) function.Before executing function, adjust With eeprom_write (dev_addr, off, os_flag, cnt) function by mark position be 0x00 so that later equipment restart Activation system starts menu afterwards.

Claims (2)

1. a kind of intelligence embedded device multiple operating system switching method, it is characterised in that include the following steps:
Step 1:By memory partition, storage address is in turn divided into U-Boot subregion and system partitioning, by each operating system Image file be successively stored in system partitioning, and between the image file of each operating system be equipped with personal distance, according to each behaviour The storage address for making the image file of system establishes system image partitions of file table, according to the system image partitions of file table in U- It is that each operating system establishes address of cache macrodefinition respectively in Boot subregion;The address of cache macrodefinition includes Nand Flash Address OS_ADDR, image file size OS_LEN, image file position memory address OS_RAM_ADDR and jump address OS_ RAM_BOOT_OFF;
Step 2:In U-Boot subregion add EEPROM flag bit handling function, and define each operating system flag bit and Handover management system sign position;
Step 3:Add the load run function of each operating system respectively in U-Boot subregion, each run function that loads is used for Image file at the address Nand Flash is loaded onto memory address OS_RAM_ADDR, and jumps to memory address OS_ RAM_ADDR start-up operation system kernel;
Step 4:Os starting menu is set in QT environment, the os starting menu is for selecting different operations System;
Step 5:An operating system is selected to start in os starting menu, U-Boot calls EEPROM flag bit behaviour The flag bit that the operating system is read as function calls the load run function of the corresponding operating system of the flag bit, starting behaviour Make system.
2. intelligence embedded device multiple operating system switching method according to claim 1, it is characterised in that:In step 5, Before start-up operation system, EEPROM flag bit handling function is called, flag bit is rewritten as handover management system sign position.
CN201510383431.5A 2015-07-02 2015-07-02 A kind of intelligence embedded device multiple operating system switching method Expired - Fee Related CN104899091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510383431.5A CN104899091B (en) 2015-07-02 2015-07-02 A kind of intelligence embedded device multiple operating system switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510383431.5A CN104899091B (en) 2015-07-02 2015-07-02 A kind of intelligence embedded device multiple operating system switching method

Publications (2)

Publication Number Publication Date
CN104899091A CN104899091A (en) 2015-09-09
CN104899091B true CN104899091B (en) 2018-11-27

Family

ID=54031769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510383431.5A Expired - Fee Related CN104899091B (en) 2015-07-02 2015-07-02 A kind of intelligence embedded device multiple operating system switching method

Country Status (1)

Country Link
CN (1) CN104899091B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045621B (en) * 2015-07-14 2018-04-13 河南科技大学 The installation method of any multisystem based on chain type guiding and dynamic modification partition table
CN107632828B (en) * 2016-07-18 2020-04-07 迈普通信技术股份有限公司 Multi-dts file supporting method, compiling device and embedded equipment
CN107656757A (en) * 2016-07-25 2018-02-02 南京中兴新软件有限责任公司 operating system switching method and device
CN106648685B (en) * 2016-12-29 2020-07-28 东软集团股份有限公司 Intelligent terminal system application processing method and device and intelligent terminal
CN109976687A (en) * 2017-12-28 2019-07-05 深圳市雍慧电子科技有限公司 The display system and method for display screen
CN108235095B (en) * 2018-01-17 2020-12-08 深圳创维数字技术有限公司 Set top box starting/debugging method based on disk medium, set top box and storage medium
IT201800004293A1 (en) * 2018-04-06 2019-10-06 MANAGEMENT PROCESS OF MULTIPLE OPERATING SYSTEMS IN INTEGRATED CIRCUIT CARDS, CORRESPONDING SYSTEM AND IT PRODUCT
CN110134445A (en) * 2019-04-02 2019-08-16 视联动力信息技术股份有限公司 A kind of switching method and apparatus of operating system
CN112860477A (en) * 2020-12-31 2021-05-28 京信网络系统股份有限公司 High-reliability operation method and system for operating system, storage medium and server
CN112988253B (en) * 2021-05-12 2021-09-07 中勍科技有限公司 Method for automatically selecting operating system according to slot position based on dual-system board card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5142680A (en) * 1989-04-26 1992-08-25 Sun Microsystems, Inc. Method for loading an operating system through a network
CN101840341A (en) * 2010-04-01 2010-09-22 惠州Tcl移动通信有限公司 Intelligent mobile phone system and starting method thereof
CN102638728A (en) * 2012-03-30 2012-08-15 江苏幻影视讯科技有限公司 Method for multi-system switching and digital household intelligent terminal
CN102799484A (en) * 2012-07-11 2012-11-28 中兴通讯股份有限公司 Method and device for running multiple operating systems by mobile terminal
CN104503922A (en) * 2015-01-19 2015-04-08 中国地质大学(武汉) Method for loading Windows CE system based on uboot guidance

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838075A (en) * 2005-03-24 2006-09-27 光宝科技股份有限公司 Operating system selection method and computer system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5142680A (en) * 1989-04-26 1992-08-25 Sun Microsystems, Inc. Method for loading an operating system through a network
CN101840341A (en) * 2010-04-01 2010-09-22 惠州Tcl移动通信有限公司 Intelligent mobile phone system and starting method thereof
CN102638728A (en) * 2012-03-30 2012-08-15 江苏幻影视讯科技有限公司 Method for multi-system switching and digital household intelligent terminal
CN102799484A (en) * 2012-07-11 2012-11-28 中兴通讯股份有限公司 Method and device for running multiple operating systems by mobile terminal
CN104503922A (en) * 2015-01-19 2015-04-08 中国地质大学(武汉) Method for loading Windows CE system based on uboot guidance

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
智能移动终端多操作系统无线启动方法与应用;王宁;《中国优秀硕士学位论文全文数据库 信息科技辑》;20150215(第02期);正文第10-14,15,23-24页 *
移动透明计算中智能终端多操作系统启动及其性能分析优化;呙邵明;《中国优秀硕士学位论文全文数据库 信息科技辑》;20150315(第03期);正文第20-26页 *

Also Published As

Publication number Publication date
CN104899091A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
CN104899091B (en) A kind of intelligence embedded device multiple operating system switching method
CN105260205B (en) The method that dual operating systems start is realized on a kind of embedded board
CN102033790B (en) Method and device for upgrading embedded-type system BOOTROM
CN103677915B (en) A method of card is started based on TF and carries out the automatic programming of flash mirror
WO2017101663A1 (en) Application guiding method and apparatus, and terminal
US9304788B2 (en) Electronic device, configurable component and configuration information storage method thereof
WO2020037906A1 (en) Method for editing script of hmi configuration software
CN105373419A (en) Background application operation method and system
CN102609274B (en) A kind of quick startup optimization method of system and television set
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
CN103473102B (en) The system start-up bootstrap technique of multiple operating system and instrument
CN103106092A (en) System software updating method and device in terminal appliance
CN103282883A (en) Systems and methods for displaying android applications launchers in webtop application tray
CN103593289A (en) Design method for android set top box production testing software
CN105487885A (en) Mobile game hot-updating method
CN109491731B (en) Control method and device for suspension button and storage medium
CN106371863A (en) Embedded multi-operation system boot program upgrading method
CN103605540A (en) Flash mirror fast writing method based on Android system
CN103533434A (en) Method for customizing boot animation
CN108897576A (en) A method of the quick start BOOT based on ARM chip
CN106648759A (en) Common programming device firmware updating method
CN106201608A (en) Computer UEFI firmware update
CN103677943A (en) Upgrading method of control software of sewing machine
TW201826102A (en) Execution of multiple applications on a device
CN104133706B (en) Firmware modification method and firmware modification device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181127

Termination date: 20190702

CF01 Termination of patent right due to non-payment of annual fee