Method for starting linux operating system under voic architecture and terminal
By adopting UEFI boot mode under the VOI architecture and utilizing iPXE and iSCSI technologies, the problem of terminal devices being unable to boot using the traditional BIOS mode is solved, resulting in faster boot times and a better boot experience.
Patent Information
- Application Number
- CN202211651306.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Some terminal devices cannot boot using the traditional BIOS mode due to hardware limitations, resulting in long boot times. Devices that do not support UEFI mode are at a competitive disadvantage.
Using UEFI boot mode, the boot files are downloaded via iPXE, the list of operating system image files is obtained via iSCSI, the UEFI bootloader and Linux kernel program are loaded, and the Linux operating system under the VOI architecture is booted.
It simplifies the boot process, shortens boot time, and provides a better boot experience. It is suitable for terminal devices that cannot use the traditional BIOS mode and supports UEFI mode boot.
Smart Images

Figure CN116069400B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of operating systems, in particular to a method for starting a Linux operating system under a VOI architecture and a terminal. BACKGROUND
[0002] In the existing cloud computer project, the client is implemented by using the IPXE technology in combination with iSCSI to start the network boot system, and the same is true for the Galaxy Kirin desktop operating system. The Galaxy Kirin desktop operating system is a domestic Linux operating system, which has good software and hardware compatibility and supports domestic CPUs such as Feiteng, Kunpeng, Hisilicon Kirin, Longxin, Shenwei, Haiguang and Zhaoxin and platforms such as Intel and AMD. For the cloud computer Linux version client, the current program function only supports the Legacy (traditional BIOS) mode to start the Galaxy Kirin desktop operating system. On the one hand, this is affected by market demand, and on the other hand, the program version is developed earlier and is not further maintained subsequently.
[0003] In the prior art, the Legacy (traditional BIOS) mode uses the Int13 interrupt to read the disk, and only 64 KB can be read each time, which is very inefficient. The entire startup process is relatively long, resulting in a long boot time. With the development of technology, many new computer terminals support the UEFI startup mode. Even some computers have abandoned the Legacy (traditional BIOS) mode and only support the UEFI mode, or due to hardware reasons, such as the motherboard not supporting the read and write of underlying instructions, the terminal does not support the Legacy (traditional BIOS) mode. Therefore, the terminal that only supports the Legacy (traditional BIOS) mode startup has certain competitive disadvantages. SUMMARY
[0004] The technical problem to be solved by the present application is to provide a method for starting a Linux operating system under a VOI architecture and a terminal, which solves the problem that some terminal devices cannot be started in the traditional startup mode due to hardware reasons.
[0005] To solve the above technical problems, a technical solution adopted by the present application is as follows:
[0006] A method for starting a Linux operating system under a VOI architecture, applied to a terminal, comprising the following steps:
[0007] S1, after booting, selecting to use the UEFI startup mode, using iPXE to download a startup boot file, and writing startup configuration information into a disk;
[0008] S2, using iPXE to obtain a list of operating system image files of a service end, selecting a system image from the list of operating system image files, obtaining and parsing an iSCSI disk path corresponding to the system image, and starting the system;
[0009] S3, loading a UEFI starter and a Linux kernel program, initializing the system, and completing starting of the Linux operating system under the VOI architecture.
[0010] To solve the above technical problems, another technical solution adopted by the present application is:
[0011] A terminal for starting a Linux operating system under a VOI architecture, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements each step in the method for starting the Linux operating system under the VOI architecture when executing the computer program.
[0012] The present application has the advantages of providing a method and a terminal for starting a Linux operating system under a VOI architecture, replacing a traditional BIOS mode, using a UEFI starting mode to start the Linux operating system, overcoming the problem that some terminal devices cannot use a Legacy (traditional BIOS) mode to start due to hardware reasons, simplifying the starting process, shortening the boot time, and bringing a better boot experience effect. Meanwhile, a UEFI system image file production method with strong portability is used, which provides technical reference experience for other Linux version operating systems supporting the UEFI starting mode. BRIEF DESCRIPTION OF DRAWINGS
[0013] Figure 1 A flowchart of the method for starting the Linux operating system under the VOI architecture according to an embodiment of the present application;
[0014] Figure 2 A flowchart of the method for starting the Linux operating system under the VOI architecture according to an embodiment of the present application;
[0015] Figure 3 A comparison chart of the Legacy (traditional BIOS) mode and the UEFI mode starting process of the method for starting the Linux operating system under the VOI architecture according to an embodiment of the present application;
[0016] Figure 4 A flowchart of the system image production process of the method for starting the Linux operating system under the VOI architecture according to an embodiment of the present application;
[0017] Figure 5 An image production starting interface of the method for starting the Linux operating system under the VOI architecture according to an embodiment of the present application;
[0018] Figure 6 The mirror uploading address information interface of a method for starting a Linux operating system under a VOI architecture according to an embodiment of the present application;
[0019] Figure 7 The mirror basic information interface of a method for starting a Linux operating system under a VOI architecture according to an embodiment of the present application;
[0020] Figure 8 The start configuration information reading flowchart of a method for starting a Linux operating system under a VOI architecture and a terminal according to an embodiment of the present application;
[0021] Figure 9 The architecture diagram of a terminal for starting a Linux operating system under a VOI architecture according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] To make the technical content, the achieved purposes and effects of the present application clear, the following will be described in detail in combination with the embodiments and the accompanying drawings.
[0023] Nomenclature:
[0024] VOI: a virtual operating system infrastructure, without any hardware virtualization layer, characterized by centralized storage and distributed computation.
[0025] PXE: a network boot technology developed by Intel Corporation, working in a Client / Server mode, allowing the client to download the boot image from the remote server through the network, and loading the installation file or the entire operating system, in the startup process, the terminal requires the DHCP server to allocate IP address, and then uses the TFTP or MTFTP protocol to download a start package to the local memory for execution, which completes the basic software setting of the terminal (client), thereby booting the terminal operating system pre-installed in the server, such as the window series, Linux series, etc.
[0026] iPXE: an extended version of PXE, with extensive protocol support, richer functions, better compatibility, not picky about network cards, and compatible with UEFI boot mode.
[0027] Legacy: traditional computer boot mode, also known as traditional BIOS, the entire running startup process is relatively complex, UEFI is a new computer boot mode, with better experience in boot speed, etc., as a replacement for the traditional mode Legacy (traditional BIOS), it is the development trend in the future.
[0028] iSCSI: Internet Small Computer System Interface, also known as IP-SAN, is a storage technology based on Internet and SCSI-3 protocol, which uses TCP / IP port 860 and 3260 as the communication channel. Through the exchange of SCSI commands between two computers using iSCSI protocol, computers can simulate SAN as local storage through high-speed local area network hub.
[0029] Galaxy Kirin desktop operating system: a domestic Linux operating system with good hardware and software compatibility, supporting Feiteng, Kunpeng, Hisilicon Kirin, Longxin, Shenwei, Haiguang, Zhaoxin and other domestic CPUs and Intel, AMD platforms.
[0030] Please refer to Figure 1 and Figure 2 The embodiment of the application provides a method for starting a Linux operating system under a VOI architecture, which is applied to a terminal and includes the following steps:
[0031] S1, after starting, select the UEFI startup mode, download the startup boot file using iPXE, and write the startup configuration information to the disk;
[0032] S2, use iPXE to obtain the operating system image file list of the server, select the system image from the operating system image file list, obtain and parse the iSCSI disk path corresponding to the system image, and then start the system;
[0033] S3, load the UEFI starter and Linux kernel program, initialize the system, and complete the startup of the Linux operating system under the VOI architecture.
[0034] From the above description, the beneficial effects of the application are that a method for starting a Linux operating system under a VOI architecture is provided, which replaces the traditional BIOS mode and uses the UEFI startup mode to start the Linux operating system, overcoming the problem that some terminal devices cannot use the Legacy (traditional BIOS) mode due to hardware reasons. Simplify the startup process, shorten the boot time, and bring better boot experience effect. At the same time, the UEFI system image file production method with strong portability is adopted, which provides technical reference experience for other Linux version operating systems supporting UEFI startup mode.
[0035] Further, before step S1, the terminal also includes: making a Linux operating system image supporting UEFI mode startup, and uploading it to the server.
[0036] From the above description, the terminal manufacturing system mirrors and uploads the server, so as to subsequently use iPXE to acquire the operation system mirror file list of the server, and select the system mirror from the operation system mirror file list.
[0037] Further, the terminal manufacturing supports the UEFI mode starting Linux operation system mirror, and specifically is:
[0038] The script program extracts the mirror information in the UEFI starting mode, and connects with the iSCSI server;
[0039] The iSCSI disk returned by the server is received, and the disk partition is created according to the information of the iSCSI disk, and the file system is initialized;
[0040] The related partition of UEFI is mounted, the local mirror data is copied into the iSCSI disk, the system parameter corresponding to UEFI is regenerated, and the uploading of the mirror is completed.
[0041] From the above description, a Linux operation system UEFI system mirror file manufacturing method with strong portability can be provided, and the Galaxy Kirin desktop operation system, cenos and ubuntu Linux operation system can be slightly modified to realize the corresponding functions.
[0042] Further, the step S3 further includes acquiring the starting configuration information written into the disk by iPXE, and specifically is:
[0043] The ioctl calling is initiated by the application program of VOI, the corresponding acpi reading interface is called from the bottom layer driving program, and the starting configuration information is returned by using the acpi reading interface.
[0044] From the above description, a Linux operation system UEFI mode general reading starting configuration information method can be provided.
[0045] Further, the loading UEFI starter of the step S3 specifically is: loading UEFI starter grubx64.efi; the step S3 further includes showing the starting list boot menu.
[0046] From the above description, the grubx64.efi starter is used to start and boot, and the starting list boot menu is shown in the starting link, so that better starting experience effect is brought.
[0047] Please refer to Figure 9Another embodiment of the present application provides a terminal for starting a Linux operating system under a VOI architecture, comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, characterized in that the processor implements the following steps when executing the computer program:
[0048] S1, selecting a UEFI starting mode after starting, downloading a starting boot file by using iPXE, and writing starting configuration information into a disk;
[0049] S2, acquiring an operating system image file list of a server by using iPXE, selecting a system image from the operating system image file list, acquiring and parsing an iSCSI disk path corresponding to the system image, and then starting the system;
[0050] S3, loading a UEFI starter and a Linux kernel program, initializing the system, and completing starting of the Linux operating system under the VOI architecture.
[0051] From the above description, it can be known that the present application has the beneficial effects that a terminal for starting a Linux operating system under a VOI architecture is provided, a UEFI starting mode is used to start the Linux operating system to replace a traditional BIOS mode, and the problem that some terminal devices cannot be started in a Legacy (traditional BIOS) mode due to hardware reasons is overcome.
[0052] Further, before step S1, the terminal further comprises the following steps: making a Linux operating system image supporting the UEFI mode starting, and uploading the Linux operating system image to a server.
[0053] From the above description, it can be known that the terminal makes a system image and uploads the system image to a server, so as to subsequently acquire an operating system image file list of a server by using iPXE, and select a system image from the operating system image file list.
[0054] Further, the terminal makes a Linux operating system image supporting the UEFI mode starting, and the Linux operating system image specifically comprises the following steps:
[0055] extracting an image information script program under the UEFI starting mode, and connecting with an iSCSI server;
[0056] receiving an iSCSI disk returned by the server, and creating a disk partition according to information of the iSCSI disk, and initializing a file system;
[0057] Mount the related partition of UEFI, copy the local mirror data into the iSCSI disk, regenerate the system parameters corresponding to UEFI, and complete the uploading of the mirror.
[0058] From the above description, a Linux operating system under UEFI system mirror file production method with strong portability can be provided, and the corresponding functions can be realized by slightly modifying the Galaxy Kirin desktop operating system, cenos and ubuntu Linux operating system.
[0059] Further, before step S3, the startup configuration information written into the disk by iPXE is also obtained, specifically:
[0060] The ioctl call is initiated by the application program of VOI, the corresponding acpi reading interface is called from the bottom layer driver, and the startup configuration information is returned by using the acpi reading interface.
[0061] From the above description, a Linux operating system UEFI mode general reading startup configuration information method can be provided.
[0062] Further, the loading UEFI starter in step S3 is specifically loading the UEFI starter grubx64.efi; and step S3 further includes displaying a startup list boot menu.
[0063] From the above description, grubx64.efi starter is used for booting and starting, and a startup list boot menu is displayed in the starting link, thereby bringing a better boot experience effect.
[0064] The above-mentioned VOI architecture Linux operating system startup method and terminal are particularly suitable for starting the Galaxy Kirin operating system under the architecture of a virtual operating system, and can overcome the problem that some terminal devices cannot use the Legacy (traditional BIOS) mode to start due to hardware reasons, which will be described below through a specific implementation manner.
[0065] Embodiment one
[0066] Please refer to Figures 1 to 3 The embodiment provides a VOI architecture Linux operating system startup method, which is particularly suitable for the Galaxy Kirin operating system and applied to a terminal, and includes the following steps:
[0067] S1, after booting, select to use the UEFI startup mode, download the startup boot file using iPXE, and write the startup configuration information into the disk.
[0068] Before step S1, the terminal also includes the following steps: making a Galaxy Kirin desktop operating system mirror supporting the UEFI mode startup, and uploading to a server, specifically:
[0069] Extracting the image information in the UEFI boot mode, and connecting with the iSCSI server;
[0070] Receiving the iSCSI disk returned by the server, and creating a disk partition and initializing a file system according to the information of the iSCSI disk;
[0071] Mounting the related partition of UEFI, copying the local image data into the iSCSI disk, regenerating the system parameters corresponding to UEFI, and completing the uploading of the image.
[0072] For the image making part, the embodiment provides a UEFI system image file making method with strong portability under a Linux operating system, which is not only suitable for the Galaxy Kirin desktop operating system involved in the embodiment, but also can realize corresponding functions by slightly modifying other Linux operating systems such as cenos and ubuntu.
[0073] The strong portability is specifically reflected in the image making shell script. The script is generally applicable to the system in the UEFI mode. Only the data copy command parameters may be different in different Linux operating systems. Therefore, when the shell script is transplanted to other Linux operating systems, only the data copy command in the shell script needs to be modified in the image making. Figure 4 That is, copying the local image data to the server iSCSI disk.
[0074] The whole system image making is completed by the shell script program in cooperation with the Linux version client, and an interface operation is provided for the user. Figures 5 to 7 The shell script program is responsible for the making of the image content, and the Linux version client is responsible for the display of the interface operation.
[0075] For the boot configuration information reading part, in the Legacy (traditional BIOS) boot mode, the iPXE writes the boot configuration information into the disk, and the Linux version client reads the boot configuration information through / dev / mem. However, for the UEFI mode, this method is not feasible, and therefore the embodiment provides a method for reading the boot configuration information in the UEFI mode of the Linux operating system, which is applicable to the UEFI mode of the Linux operating system. Figure 8 That is, the method is combined with the calling of the acpi system interface through ioctl. This method can be directly reused for other Linux operating systems such as cenos and ubuntu. The whole boot configuration information reading process is initiated by the upper application program, the ioctl device-level system call is used, and then the related acpi reading interface is called by the bottom driver to complete the reading and returning of the data.
[0076] S2, using iPXE, obtaining a list of operating system image files of a service end, selecting a system image from the list of operating system image files, obtaining and parsing an iSCSI disk path corresponding to the system image, and starting the system.
[0077] S3, loading a UEFI starter grubx64.efi and a Linux kernel program, displaying a boot list boot menu, initializing the system, and completing the starting of the Linux operating system under the VOI architecture.
[0078] Before step S3, the method further comprises obtaining the boot configuration information written into the disk by iPXE, and specifically comprises:
[0079] The VOI application program initiates an ioctl call, calls a corresponding acpi reading interface from the bottom layer driver program, and uses the acpi reading interface to return the boot configuration information.
[0080] Embodiment two
[0081] Please refer to Figure 9 A terminal for starting a Linux operating system under a VOI architecture, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and each step of the method for starting a Linux operating system under a VOI architecture in the above-mentioned embodiment one is implemented when the processor executes the computer program.
[0082] In summary, the method and the terminal for starting a Linux operating system under a VOI architecture provided by the application adopt a UEFI boot mode to start a Galaxy Kirin desktop operating system, and the starting process is completed by cooperation of iPXE, iSCSI, a service end, and a Kirin system image, so as to replace a traditional BIOS boot mode and solve the problem that some terminal devices cannot be started by the traditional boot mode due to hardware reasons.
[0083] It should be noted that, for the above-mentioned method embodiments, in order to facilitate description, they are all described as a series of action combinations, but those skilled in the art should know that the application is not limited by the described action sequence, because according to the application, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily essential to the application.
[0084] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0085] The above merely illustrates the embodiments of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, which are made by using the content of the present application specification and drawings, are also included in the patent protection scope of the present application.
Claims
1. A method for starting a Linux operating system under a VOI architecture, characterized in that, The application is applied to a terminal and comprises the following steps: S1, after starting, a UEFI starting mode is selected, a starting boot file is downloaded by using iPXE, and starting configuration information is written into a disk; S2, an operating system image file list of a server is acquired by using iPXE, a system image is selected from the operating system image file list, an iSCSI disk path corresponding to the system image is acquired and parsed, and then a system is started according to the starting configuration information in the disk; Before starting the system according to the starting configuration information in the disk, the following steps are included: An ioctl call is initiated by an application program of a VOI, a corresponding acpi reading interface is called from a bottom layer driver program, and starting configuration information is returned by using the acpi reading interface; S3, a UEFI starter and a Linux kernel program are loaded, the system is initialized, and starting of a Linux operating system under a VOI architecture is completed.
2. The method for starting Linux operating system under VOI architecture according to claim 1, characterized in that, Before step S1, the following steps are further included: A Linux operating system image supporting UEFI mode starting is made and uploaded to a server.
3. The method for starting Linux operating system under VOI architecture according to claim 2, characterized in that, The Linux operating system image supporting UEFI mode starting is made in the following way: A script program for extracting image information under a UEFI starting mode is connected with an iSCSI server; An iSCSI disk returned by the server is received, disk partitions are created according to information of the iSCSI disk, and a file system is initialized; A partition corresponding to UEFI is mounted, local image data is copied into the iSCSI disk, system parameters corresponding to UEFI are regenerated, and uploading of the image is completed.
4. The method for starting Linux operating system under VOI architecture according to claim 1, characterized in that, The UEFI starter loaded in step S3 is specifically a UEFI starter grubx64.efi; and step S3 further includes displaying a starting list boot menu.
5. A terminal for starting a Linux operating system under a VOI architecture, comprising a memory, a processor, and a computer program stored on the memory and capable of running on the processor, characterized in that, When the processor executes the computer program, the following steps are implemented: S1, after starting, a UEFI starting mode is selected, a starting boot file is downloaded by using iPXE, and starting configuration information is written into a disk; S2, an operating system image file list of a server is acquired by using iPXE, a system image is selected from the operating system image file list, an iSCSI disk path corresponding to the system image is acquired and parsed, and then a system is started according to the starting configuration information in the disk; Before starting the system according to the starting configuration information in the disk, the following steps are included: An ioctl call is initiated by an application program of a VOI, a corresponding acpi reading interface is called from a bottom layer driver program, and starting configuration information is returned by using the acpi reading interface; S3, a UEFI starter and a Linux kernel program are loaded, the system is initialized, and starting of a Linux operating system under a VOI architecture is completed.
6. The terminal for starting the Linux operating system under the VOI architecture according to claim 5, wherein, Before step S1, the following steps are further included:
7. The terminal for starting the Linux operating system under the VOI architecture according to claim 6, wherein, A Linux operating system image supporting UEFI mode starting is made and uploaded to a server. The Linux operating system image supporting UEFI mode starting is made in the following way: A script program for extracting image information under a UEFI starting mode is connected with an iSCSI server; Receiving the iSCSI disk returned by the service end, and creating a disk partition according to information of the iSCSI disk and initializing a file system; Mounting a related partition of UEFI, copying local image data into the iSCSI disk, regenerating system parameters corresponding to UEFI, and completing uploading of the image.
8. The terminal for starting the Linux operating system under the VOI architecture according to claim 5, wherein, The loading UEFI initiator in step S3 is specifically loading a UEFI initiator grubx64.efi; and step S3 further includes displaying a boot list boot menu.
Citation Information
Patent Citations
Method, device and system for deploying operating system
CN106484437A
Method and equipment for achieving diskless starting of bare equipment
CN112328312A