Method and device for guiding real-time operating system in Legacy mode and electronic equipment
Through the real-time operating system boot method in Legacy mode, the IDE is used to generate boot files and image files, which simplifies the installation process of the VxWorks operating system, solves the complexity of hard disk partitioning and formatting in traditional boot mode, and achieves faster and more efficient Easy real-time operating system boot.
Patent Information
- Application Number
- CN202410670677.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-09-03
AI Technical Summary
The boot steps of the real-time operating system in the prior art are complicated and cumbersome. Especially when installing the VxWorks operating system, the hard disk needs to be partitioned and formatted in the traditional boot mode, which increases the difficulty of installation.
Provide a real-time operating system boot method in Legacy mode, use the integrated development environment IDE application to generate boot files and image files, enter the PE operating system through the USB boot disk, create and format the hard disk partition, and run in pure DOS mode Installing the boot loader of the VxWorks operating system simplifies the boot steps and reduces dependence on the DOS system.
Hard disk partitioning and formatting are completed through visual tools. The DOS system is only used during the first installation. Subsequent installations can be separated from the DOS system, which simplifies the boot process of the real-time operating system and avoids the need to operate the DOS system multiple times.
Smart Images

Figure CN118585255A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a booting method, device and electronic device for a real-time operating system in a legacy mode. Background Art
[0002] VxWorks is a real-time operating system. Due to its long history, some of the previously adapted board support packages (BSP), such as idp945, can only be booted in traditional boot mode (e.g., Legacy mode). Usually, on each target machine, the disk operating system (DOS) is used to partition and format the hard disk first, and then install the boot loader of the real-time operating system in the boot sector of the hard disk. The above steps are complicated and cumbersome in actual execution, which greatly increases the difficulty of installing the real-time operating system. Summary of the invention
[0003] The present invention provides a booting method, device and electronic device of a real-time operating system in a legacy mode, which are used to solve the problem of complicated and cumbersome booting steps of a real-time operating system in the prior art.
[0004] The present invention provides a booting method of a real-time operating system in a Legacy mode, comprising:
[0005] Generate boot files and image files using the integrated development environment IDE application;
[0006] Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode;
[0007] In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk;
[0008] When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk;
[0009] Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0010] In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined;
[0011] When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0012] Restart the target machine and run the VxWorks operating system based on the hard disk.
[0013] In some embodiments, creating a new partition in the hard disk of the target machine and formatting the hard disk includes:
[0014] Deleting all partitions in the hard disk and converting the partition table type to a master boot record (MBR);
[0015] When the new partition is created, the file system format corresponding to the new partition is set to FAT16, and the memory size of the new partition is set to be less than 4G;
[0016] And perform 8-sector alignment on the new partition and save the changes.
[0017] In some embodiments, in the case of entering the pure DOS mode, after checking the partition status of the hard disk based on the received first command, the method further includes:
[0018] Based on the received second command, it is determined whether the files written in the formatted hard disk are complete, wherein the second command is used to display all files and subdirectories under the current directory or a specified directory.
[0019] In some embodiments, after restarting the target machine and running the VxWorks operating system based on the hard disk, the method includes:
[0020] Export the partition boot record and back up the partition boot record to a target folder.
[0021] In some embodiments, when the target machine is not installing the VxWorks operating system for the first time, when entering the PE operating system, after creating a new partition in the hard disk of the target machine and formatting the hard disk, the method includes:
[0022] Writing the boot file and the image file into the formatted hard disk respectively;
[0023] Based on the partition boot record, the target machine is restarted, and based on the hard disk, the VxWorks operating system is run.
[0024] In some embodiments, the version of the VxWorks operating system is VxWorks6.6.
[0025] The present invention also provides a boot device for a real-time operating system in Legacy mode, comprising:
[0026] The first processing module is used for:
[0027] Generate boot files and image files using the integrated development environment IDE application;
[0028] Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode;
[0029] The second processing module is used for:
[0030] In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk;
[0031] When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk;
[0032] The third processing module is used for:
[0033] Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0034] In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined;
[0035] Install modules for:
[0036] When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0037] Run modules for:
[0038] Restart the target machine and run the VxWorks operating system based on the hard disk.
[0039] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a booting method of a real-time operating system in the Legacy mode as described above is implemented.
[0040] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the booting method of a real-time operating system in the Legacy mode as described in any one of the above is implemented.
[0041] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the booting methods for a real-time operating system in the Legacy mode as described above.
[0042] The booting method, device and electronic device of the real-time operating system in the legacy mode provided by the present invention complete the partitioning and formatting of the hard disk of the target machine by using a visual tool, and only need to use the DOS system to complete the installation of the real-time operating system boot loader in the hard disk boot sector when the real-time operating system is installed for the first time. When the real-time operating system is installed again on other target hosts subsequently, the DOS system can be separated and the visual tool can be used for the whole process, thereby simplifying the booting steps of the real-time operating system and avoiding the operation of the DOS system as much as possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 This is one of the flow charts of the booting method of the real-time operating system in the Legacy mode provided by the present invention;
[0045] Figure 2 This is the second flow chart of the boot method of the real-time operating system in the Legacy mode provided by the present invention;
[0046] Figure 3 It is a structural schematic diagram of a boot device of a real-time operating system in Legacy mode provided by the present invention;
[0047] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] In the related art, for some real-time operating systems that can only be booted through the traditional boot mode, taking the real-time operating system VxWorks6.6 as an example, the specific boot steps are: first, on the host, use the integrated development environment (Integrated Development Environment) tool workbench WorkBench to generate a boot file named bootrom.sys and a mirror file named VxWorks, then use the DOS system to complete the partitioning and formatting of the target hard disk on the target machine, and then copy the boot file, mirror file, vxload.com, and vxsys.com to the hard disk, and continue to execute vxsys.com in the DOS system to complete the installation of the VxWorks6.6 boot loader in the hard disk boot sector. After completing the above steps and restarting the target machine, you can successfully enter the real-time operating system VxWorks6.6.
[0050] The above steps must be repeated when booting the real-time operating system on each target machine. This method is difficult and cumbersome for people who are not familiar with the DOS system.
[0051] Combine the following Figure 1-Figure 4 The present invention describes a booting method, device and electronic device for a real-time operating system in Legacy mode.
[0052] The following takes a computer executing the booting method of a real-time operating system in the Legacy mode provided by the present invention as an example to describe the technical solution of the present invention in detail.
[0053] Figure 1 This is one of the flow charts of the booting method of the real-time operating system in the Legacy mode provided by the present invention.
[0054] The execution subject of the boot method of the real-time operating system in the Legacy mode provided by the present invention can be an electronic device, a component in the electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited by the present invention.
[0055] Reference Figure 1 The boot method of the real-time operating system in the Legacy mode provided by the present invention includes:
[0056] Step 110: Generate a boot file and an image file using an integrated development environment IDE application;
[0057] Step 120: Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered. The U disk boot disk is written with a DOS toolbox during the preparation process. The DOS toolbox is an application that supports starting the pure DOS mode.
[0058] Step 130: When entering the PE operating system, create a new partition in the hard disk of the target machine and format the hard disk;
[0059] Step 140: When the target machine is installing the VxWorks operating system for the first time, the boot file, the image file, and the target program file are written into the formatted hard disk respectively;
[0060] Step 150, restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0061] Step 160: In the case of entering the pure DOS mode, based on the received first command, check the partition status of the hard disk, where the first command is used to confirm whether the partition of the hard disk has been defined;
[0062] Step 170: After confirming that the hard disk partitions have been defined, install the boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0063] Step 180: Restart the target machine and run the VxWorks operating system based on the hard disk.
[0064] In step 110, a boot file named bootrom.sys and an image file named VxWorks are generated on the target machine using a collaborative simulation environment WorkBench provided by an integrated development environment (IDE) tool.
[0065] Among them, the boot file is the system file of the Vxworks operating system, and the image file is a file type that stores the contents of the computer hard disk.
[0066] Before compiling the program, configure the boot project and virtual IP address (VIP) project according to your own needs in the collaborative simulation environment WorkBench.
[0067] In step 120, the USB boot disk is made by using the Micro PE Toolbox. The DOS Toolbox needs to be included when making the USB flash disk. The Micro PE Toolbox is a tool software for making USB boot disks, which is simple and easy to use. The DOS Toolbox is a tool that adds pure DOS mode boot support to operating systems above Windows 2000.
[0068] In step 130, insert the USB boot disk into the target machine and boot the target machine from the USB disk, and select "Micro PE Toolbox" to enter the PE operating system.
[0069] In the PE operating system, use the DiskGenius tool to create a new partition and format the hard disk partition. DiskGenius is a hard disk partition and data recovery software.
[0070] In some embodiments, step 130 may include:
[0071] Delete all partitions in the hard disk and convert the partition table type to the master boot record MBR;
[0072] After creating a new partition, set the file system format of the new partition to FAT16 and the memory size of the new partition to less than 4G;
[0073] And perform 8-sector alignment on the new partition and save the changes.
[0074] In actual execution, delete all partitions in the target machine's hard disk, convert the partition table type to Master Boot Record (MBR); create a new partition, select the file system format as FAT16, the size is less than 4G, align to 8 sectors, and save the changes.
[0075] MBR is the first sector of a hard disk that uses an MBR partition table, that is, the 0th cylinder, 0th head, 1st sector of the C / H / S address, also called the MBR sector. FAT16 is used to indicate that the file system uses 16 bits of space to represent each sector configuration file.
[0076] In step 140 , the boot file bootrom.sys, the image file VxWorks, and the target program files (vxload.com and vxsys.com) are copied to the hard disk formatted in step 130 .
[0077] In step 150, restart and boot from the USB disk, select the maxdos toolbox, and enter the pure DOS mode. The maxdos toolbox is a powerful multimedia file processing software, which can help users easily edit, transcode, crop and merge files, whether audio, video, picture or document, and also supports batch processing, so that users can efficiently process a large number of files.
[0078] In step 160, enter the fdisk command in pure DOS mode, and set and check the active partition according to the options. After confirmation, exit fdisk. The fdisk command is the first command.
[0079] The main function of the fdisk command is to operate and manage the partition information of the disk. Generally, the disk is partitioned and mounted according to the actual situation.
[0080] In some embodiments, after step 160, the method further includes:
[0081] Based on the received second command, it is determined whether the files written in the formatted hard disk are complete, and the second command is used to display all files and subdirectories under the current directory or the specified directory.
[0082] In actual execution, according to the drive letter checked in step 160, a command (e.g., c:) is entered in the DOS command box to switch to the hard disk. Then the dir command can be used to check whether the files copied in step 140 are complete.
[0083] The dir command is the second command. The dir command is a commonly used command in a real-time operating system and is used to display all files and subdirectories in the current directory or a specified directory.
[0084] In step 170, vxsys.com in the target program file (eg, vxsys c:) is executed to complete the installation of the boot loader of the VxWorks operating system in the boot sector of the hard disk.
[0085] In step 180, the VxWorks operating system can be successfully entered by restarting and entering from the hard disk.
[0086] In some embodiments, after step 180, the method includes:
[0087] Export the partition boot record and back it up to the target folder.
[0088] Use the BOOTICE sector tool in the PE operating system to export the partition boot record for the convenience of subsequent installation. Re-enter the PE system on the target machine, open the BOOTICE sector tool in the system, select the correct physical disk and target partition in the tool, select the "Backup partition boot record (pbr)" option and name the partition boot record as pbr.bin, and save it to the specified target folder.
[0089] BOOTICE is a boot sector maintenance tool used to install, repair, backup, and restore the MBR or PBR of a disk.
[0090] In some embodiments, when the target machine is not installing the VxWorks operating system for the first time, when entering the PE operating system, after step 180, the method includes:
[0091] Write the boot file and image file separately into the formatted hard disk;
[0092] Based on the partition boot record, restart the target machine and run the VxWorks operating system based on the hard disk.
[0093] If this is not the first time you install the VxWorks6.6 operating system on the target machine, you can use the pbr file backed up in the last step to complete the installation of the Wind River boot loader in the hard disk partition. The specific steps are as follows:
[0094] Steps 110 to 130 in the above embodiment are repeated.
[0095] Then copy the bootrom.sys file and the VxWorks image file to the hard disk.
[0096] Use the sector gadget BOOTICE and pbr.bin file in the PE operating system to restore the target machine hard disk partition boot record. Open the sector gadget BOOTICE in the system, select the correct physical disk and target partition in the tool, select the "Restore pbr" option, and select the pbr.bin file exported above.
[0097] Restart and enter from the hard disk to successfully enter the VxWorks operating system.
[0098] In some embodiments, the version of the VxWorks operating system is VxWorks6.6.
[0099] The booting method of the real-time operating system in the Legacy mode provided by the present invention utilizes the DiskGenius tool in the PE operating system to create and format the hard disk partition, and does not need to utilize the DOS system to format and partition the hard disk; utilizes the BOOTICE tool to back up the hard disk partition boot record that is successfully booted for the first time, and then on the target machine afterwards, directly completes the installation of the VxWorks6.6 boot loader in the hard disk boot sector by using the backed-up hard disk partition boot record, thereby avoiding the steps of setting the active partition in the DOS system and using vxsys to install the VxWorks6.6 boot loader.
[0100] Except for the first booting of VxWorks6.6 on the target machine, other installations can directly use the pbr.bin file exported for the first time to set the boot program for the hard disk partition. Visual tools can be used to complete all operations throughout the process, avoiding the use of DOS system and command line, thereby simplifying the boot steps and allowing users to boot the real-time operating system at a faster, easier to understand and master speed.
[0101] Figure 2 This is the second flow chart of the booting method of the real-time operating system in the Legacy mode provided by the present invention.
[0102] Reference Figure 2 The present invention is divided into two aspects: installing the VxWorks 6.6 operating system on the target machine for the first time and installing the VxWorks 6.6 operating system on the target machine not for the first time.
[0103] Scenario 1: If you are installing the VxWorks 6.6 operating system on the target machine for the first time, follow these steps:
[0104] (1) Use the IDE tool WorkBench on the target machine to generate a boot file named bootrom.sys and an image file named VxWorks.
[0105] Before compiling the program, configure the boot project and VIP project in WorkBench according to your needs.
[0106] (2) Use the Micro PE toolbox to complete the creation of the USB boot disk. The DOS toolbox needs to be included when creating the USB boot disk.
[0107] (3) Insert the USB flash drive into the target machine and boot the target machine from the USB flash drive. Select "Micro PE Toolbox" to enter the PE operating system.
[0108] (4) In the PE operating system, use the DiskGenius tool to create a new partition and format the partition.
[0109] The operation steps are: delete all partitions of the target machine's hard disk, convert the partition table type to MBR; create a new partition, select the file system format as FAT16, the size is less than 4G, align to 8 sectors, and save the changes.
[0110] (5) Copy the bootrom.sys file, the VxWorks image file, and the target program files (vxload.com file and vxsys.com file) to the hard disk that has been formatted in step (4).
[0111] (6) Restart and boot from the USB disk, select the maxdos toolbox, and enter pure DOS mode.
[0112] (7) Enter the fdisk command in DOS mode, and set and check the active partition according to the options. Confirm that everything is correct and exit fdisk by pressing ESC.
[0113] (8) According to the drive letter checked in step (7), enter a command (for example, c:) in the DOS command box to switch to the hard disk.
[0114] (9) You can use the dir command to check whether the files copied in step (5) are complete.
[0115] (10) Execute the vxsys.com file (for example, vxsys c:) to complete the installation of the VxWorks6.6 boot loader in the boot sector of the hard disk.
[0116] (11) Restart and enter from the hard disk to successfully enter the VxWorks operating system.
[0117] (12) Use the BOOTICE sector tool in the PE operating system to export the partition boot record to facilitate subsequent installation. Re-enter the PE system on the target machine, open the BOOTICE sector tool in the system, select the correct physical disk and target partition in the tool, select the "Backup pbr" option and name the partition boot record as pbr.bin, and save it to the specified folder.
[0118] Scenario 2: If this is not the first time to install the VxWorks6.6 operating system on the target machine, you can use the pbr file backed up in the last step above to complete the installation of the Wind River boot loader in the hard disk partition. The specific steps are as follows:
[0119] (1) Execute steps (1) to (4) in scenario 1.
[0120] (2) Copy the boot file bootrom.sys and the image file VxWorks to the hard disk.
[0121] (3) Use the sector gadget BOOTICE and pbr.bin file in the PE system to restore the target machine hard disk partition boot record. Open the sector gadget BOOTICE in the system, select the correct physical disk and target partition in the tool, select the "Restore pbr" option, and select the pbr.bin file exported above.
[0122] (4) Restart and enter from the hard disk to successfully enter the VxWorks operating system.
[0123] The boot device of the real-time operating system in the Legacy mode provided by the present invention is described below. The boot device of the real-time operating system in the Legacy mode described below and the boot method of the real-time operating system in the Legacy mode described above can correspond to each other.
[0124] Figure 3 Schematic diagram of the structure of the boot device of the real-time operating system in the Legacy mode provided by the present invention. Figure 3 The boot device of the real-time operating system in the Legacy mode provided by the present invention comprises:
[0125] The first processing module 310 is used to:
[0126] Generate boot files and image files using the integrated development environment IDE application;
[0127] Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode;
[0128] The second processing module 320 is used to:
[0129] In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk;
[0130] When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk;
[0131] The third processing module 330 is used to:
[0132] Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0133] In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined;
[0134] Installation module 340 for:
[0135] When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0136] The operation module 350 is used to:
[0137] Restart the target machine and run the VxWorks operating system based on the hard disk.
[0138] The boot device of the real-time operating system in the Legacy mode provided by the present invention completes the partitioning and formatting of the hard disk of the target machine by using a visual tool, and only needs to use the DOS system to complete the installation of the real-time operating system boot loader in the hard disk boot sector when the real-time operating system is installed for the first time. When the real-time operating system is subsequently installed again on other target hosts, the DOS system can be separated and the visual tool can be used throughout the process, thereby simplifying the boot steps of the real-time operating system and avoiding operations on the DOS system as much as possible.
[0139] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the boot method of the real-time operating system in the Legacy mode, and the method includes:
[0140] Generate boot files and image files using the integrated development environment IDE application;
[0141] Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode;
[0142] In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk;
[0143] When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk;
[0144] Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0145] In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined;
[0146] When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0147] Restart the target machine and run the VxWorks operating system based on the hard disk.
[0148] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0149] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the boot method of the real-time operating system in the Legacy mode provided by the above methods, the method comprising:
[0150] Generate boot files and image files using the integrated development environment IDE application;
[0151] Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode;
[0152] In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk;
[0153] When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk;
[0154] Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0155] In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined;
[0156] When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0157] Restart the target machine and run the VxWorks operating system based on the hard disk.
[0158] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the boot method of the real-time operating system in the Legacy mode provided by the above methods is implemented, and the method comprises:
[0159] Generate boot files and image files using the integrated development environment IDE application;
[0160] Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode;
[0161] In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk;
[0162] When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk;
[0163] Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software;
[0164] In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined;
[0165] When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk;
[0166] Restart the target machine and run the VxWorks operating system based on the hard disk.
[0167] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0168] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0169] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A boot method for a real-time operating system in Legacy mode, characterized in that: include: Generate boot files and image files using the integrated development environment IDE application; Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode; In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk; When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk; Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software; In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined; When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk; Restart the target machine and run the VxWorks operating system based on the hard disk.
2. The boot method of a real-time operating system in Legacy mode according to claim 1, characterized in that: The step of creating a new partition in the hard disk of the target machine and formatting the hard disk comprises: Deleting all partitions in the hard disk and converting the partition table type to a master boot record (MBR); When the new partition is created, the file system format corresponding to the new partition is set to FAT16, and the memory size of the new partition is set to be less than 4G; And perform 8-sector alignment on the new partition and save the changes.
3. The boot method of a real-time operating system in Legacy mode according to claim 1, characterized in that: In the case of entering the pure DOS mode, after checking the partition status of the hard disk based on the received first command, the method further includes: Based on the received second command, it is determined whether the files written in the formatted hard disk are complete, wherein the second command is used to display all files and subdirectories under the current directory or a specified directory.
4. The boot method of a real-time operating system in Legacy mode according to claim 1, characterized in that: After restarting the target machine and running the VxWorks operating system based on the hard disk, the method includes: Export the partition boot record and back up the partition boot record to a target folder.
5. The boot method of a real-time operating system in Legacy mode according to claim 4, characterized in that: In the case that the target machine is not installing the VxWorks operating system for the first time, when entering the PE operating system, after creating a new partition in the hard disk of the target machine and formatting the hard disk, the method includes: Writing the boot file and the image file into the formatted hard disk respectively; Based on the partition boot record, the target machine is restarted, and based on the hard disk, the VxWorks operating system is run.
6. The booting method of a real-time operating system in Legacy mode according to claim 4, characterized in that: The version of the VxWorks operating system is VxWorks6.
6.
7. A boot device for a real-time operating system in Legacy mode, characterized in that: include: The first processing module is used for: Generate boot files and image files using the integrated development environment IDE application; Based on the prepared U disk boot disk, when the target machine is started, the PE operating system is entered, wherein the U disk boot disk is written with a DOS toolbox during the preparation process, and the DOS toolbox is an application program that supports starting a pure DOS mode; The second processing module is used for: In the case of entering the PE operating system, creating a new partition in the hard disk of the target machine and formatting the hard disk; When the VxWorks operating system is installed on the target machine for the first time, the boot file, the image file and the target program file are respectively written into the formatted hard disk; The third processing module is used for: Restart the USB boot disk and enter the pure DOS mode through the multimedia file processing software; In the case of entering the pure DOS mode, based on the received first command, checking the partition status of the hard disk, wherein the first command is used to confirm whether the partition of the hard disk has been defined; Install modules for: When confirming that the partitions of the hard disk have been defined, installing a boot loader of the VxWorks operating system in the boot sector of the hard disk; Run modules for: Restart the target machine and run the VxWorks operating system based on the hard disk.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the booting method of the real-time operating system in the legacy mode as claimed in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the booting method of the real-time operating system in the legacy mode as claimed in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the booting method of the real-time operating system in the legacy mode as claimed in any one of claims 1 to 6 is implemented.
