CN102541587B - Method for installing Linux operating system in loongson platform - Google Patents

Method for installing Linux operating system in loongson platform Download PDF

Info

Publication number
CN102541587B
CN102541587B CN201110377577.0A CN201110377577A CN102541587B CN 102541587 B CN102541587 B CN 102541587B CN 201110377577 A CN201110377577 A CN 201110377577A CN 102541587 B CN102541587 B CN 102541587B
Authority
CN
China
Prior art keywords
operating system
initrd
installation
environment
file
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.)
Active
Application number
CN201110377577.0A
Other languages
Chinese (zh)
Other versions
CN102541587A (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 Standard Software Co Ltd
Original Assignee
China Standard Software Co Ltd
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 Standard Software Co Ltd filed Critical China Standard Software Co Ltd
Priority to CN201110377577.0A priority Critical patent/CN102541587B/en
Publication of CN102541587A publication Critical patent/CN102541587A/en
Application granted granted Critical
Publication of CN102541587B publication Critical patent/CN102541587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for installing a Linux operating system in a loongson platform, which is compatible with mouse operation and capable improving friendliness, usability and controllability of processes of installing the Linux operating system in the loongson platform effectively. The method includes steps of building an initrd installation environment in the loongson platform by the busybox, realizing graphical user interfaces by GTK Direct FB (graphical toolkit direct frame buffer) and creating partitions dynamically by Libparted, manufacturing initrd.gz built by the kernel and the busybox and burn images of the operating system into a disc, starting and loading the kernel and the initrd.gz in the disc in the loongson platform through a PMON (process monitor), then accessing the installing environment, running the graphic installation programs automatically, writing the image of the operating system in the disc into the partitions of the disc automatically after a user selects an installation mode, and finally writing system configuration information in.

Description

The method of installing Linux operating system in loongson platform
Technical field
The present invention relates to LINUX operation system technology field, relate in particular to the method for a kind of LINUX of installation operating system under Godson platform.
Background technology
At present under X86 platform, the installation of LINUX operating system distribution version is all the installation interface based on friendly, easy-to-use and easy expansion, and current under Godson platform the mounting means of LINUX operating system include:
1, based on terminal pattern, user manually step by step input command operating system mirror image is write in disk;
2, based on terminal pattern, under terminal, there is corresponding character prompting, user can only pass through keyboard mutuality, but does not need to input the required order of installation process.
Above mounting means relatively limits to, loaded down with trivial details, extendability is lower, easy-to-use also bad with friendly, so also need there is the mounting means under similar X86 platform at Godson platform, allow user only need to complete installation process by mouse clicking operation and friendly easy-to-use interface.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method of installing Linux operating system in loongson platform, when avoiding installing operating system, and loaded down with trivial details, not easy-to-use installation process, thus make simple, the easy-to-use and tool friendly of installation process.
According to above-mentioned object, the invention provides a kind of method of installing Linux operating system in loongson platform, comprise the steps: step 1, under Godson platform, by busybox, build initrd environment; Step 2, in initrd environment, build GTK DirectFB compiling of application environment; Step 3, in initrd environment, write booting script, installation process script, in GTK DirectFB compiling of application environment, write code and realize figure installation procedure, the library file in the binary file that figure installation procedure is compiled into, this figure installation procedure resource requirement file and GTK DirectFB compiling of application environment is integrated in initrd.gz file; Step 4, operating system nucleus is become to CD with initrd.gz file and the imprinting of operating system mirror image, to complete LINUX operating system installation dish; Step 5, CD is put into CD-ROM drive, after computer installation reads, by PMON order, the operating system nucleus in CD and initrd.gz file are loaded in internal memory, then can enter and in initrd environment, remove to carry out booting script, booting script calls figure installation procedure, and figure installation procedure is carried out installation process script and installed.
Preferably, in described step 3, in initrd environment, writing booting script is specially: the chromatic number that language, font and Framebuffer figure are set.
Preferably, in described step 3, in initrd environment, writing installation process script is specially: realize the format of disk partition, the write operation of operating system mirror image and the required configuration file of installation process.
Preferably, described step 2 is specially: DirectFB, GLIB, ATK, Cairo, Pango, GTK are transplanted at Godson platform, through compiling to build GTK DirectFB compiling of application environment.
Preferably, in described step 5, figure installation procedure is carried out installation process script and concrete steps are installed are comprised: user selects mounting means; By libparted storehouse, Shell script and configuration file, realize deletion and the establishment of subregion in mounting means; Operating system mirror image is write in disk partition; Writing system configuration information, will install in selected disk partition writing system BootLoader file, and according to different types, startup item writing system be started in configuration file; Wherein, described mounting means comprises: cover whole disk and install, cover single subregion installation and install at remaining space; The whole disk of described covering is installed, and refers to first all subregions of disk are deleted, and then creates new subregion as system partitioning; The single subregion of described covering is installed, and refers to using user-selected subregion as system partitioning; Described in remaining space installation, refer at remaining space and create new subregion as system partitioning; Described system partitioning, refers to the disk partition that operating system mirror image will write.
The invention has the beneficial effects as follows: first the present invention becomes CD by operating system nucleus with initrd.gz and the imprinting of operating system mirror image that busybox generates, then by operating system nucleus and initrd.gz in PMON loaded disc, in initrd.gz booting script, move GTK DirectFB installation interface, user is by friendly interface prompt, only need mouse clicking operation to complete whole installation process, the installation of complete operation system that so just can be simple, easy-to-use.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of building of installing Linux operating system in loongson platform initrd.gz environment of the present invention;
Fig. 2 is the embodiment process flow diagram of installing Linux operating system in loongson platform of the present invention.
Embodiment
The present invention has disclosed a kind of method of installing Linux operating system in loongson platform, and the method comprises the following steps:
Step 1, under Godson platform, by busybox, build initrd environment; Wherein, Busybox is the software of integrated more than 100 the most frequently used LINUX orders and instrument, by setting configuration file and compilation process wherein, can generate initrd; Initrd is exactly a disk with internal memory simulation, is the installable file system of standard kernel file understanding;
Step 2, in initrd environment, build GTK DirectFB compiling of application environment; Wherein, GTK is graphical control storehouse, and provide Hardware graphics acceleration, input equipment that DirectFB is a lightweight are processed and abstract shape library; GTK DirectFB is the shape library that GTK storehouse shows based on Framebuffer on basis, DirectFB storehouse;
Step 3, in initrd environment, write booting script, installation process script, in GTK DirectFB compiling of application environment, write code and realize figure installation procedure, the library file in the binary file that figure installation procedure is compiled into, this figure installation procedure resource requirement file and GTK DirectFB compiling of application environment is integrated in initrd.gz file;
Step 4, operating system nucleus is become to CD with initrd.gz file and the imprinting of operating system mirror image, to complete LINUX operating system installation dish;
Step 5, CD is put into CD-ROM drive, after computer installation reads, by PMON order, the operating system nucleus in CD and initrd.gz file are loaded in internal memory, then can enter and in initrd environment, remove to carry out booting script, booting script calls figure installation procedure, and figure installation procedure is carried out installation process script and installed; Wherein PMON order, is the BIOS of the Godson machine bootloader that holds concurrently, and bootloader is boot loader, is similar to grub or lilo in x86; Operating system nucleus is the core of an operating system, and it is in charge of process, internal memory, device driver, file and the network system of system, certainly performance and the stability of fixing system; Booting script in initrd, is execution script at first when operating system nucleus starts to initrd environment, and the chromatic number of language, resolution etc. can be set in this script, then will carry out the figure installation procedure of GTK DirectFB; And installation process script is can remove execution script by figure installation procedure in installation process, this script can format subregion, operating system mirror image be write to startup file of disk, write operation system etc.
In an example of the present invention, during the kylin Godson version LINUX of user installation company winning a bid operating system, the fixing disc of making can be put into CD-ROM drive, then by operating system nucleus and initrd.gz in PMON order loaded disc, can automatically move graphical installation procedure afterwards, then user is as long as complete installation process according to figure step and prompting.
Refer to shown in Fig. 1, the present invention carries out the process flow diagram of building of installing Linux operating system in loongson platform initrd environment.
Step 101 generates initrd environment through compiling by busybox under Godson platform;
Step 102 is transplanted directFB, GLIB, ATK, Cairo, Pango, GTK under Godson platform, through compiling, builds GTK DirectFB compiling of application environment, ready for writing figure installation procedure;
Step 103 is write code and is realized figure installation procedure in GTK DirectFB compiling of application environment;
Step 104, the library file in the binary file that figure installation procedure is compiled into, this figure installation procedure resource requirement file and GTK DirectFB compiling of application environment is integrated in initrd.gz file;
Step 105 is write booting script in initrd environment, and the chromatic number of language, font and Framebuffer figure etc. is set.
Step 106 is write installation process script in initrd environment, realizes the format of disk partition, the write operation of operating system mirror image and the required configuration file of installation process.
Operating system nucleus is become to CD with initrd.gz file and the imprinting of operating system mirror image, to complete LINUX operating system installation dish.When fixing disc is positioned in the CD-ROM drive that computing machine can read, refer to shown in Fig. 2, the present invention carries out the embodiment process flow diagram of installing Linux operating system in loongson platform.According to the following step, carry out:
Step 201 also automatically can enter initrd environment by the operating system nucleus in PMON order loaded disc and initrd.gz to internal memory.Order for example as follows:
load?/dev/fs/iso9660@cd0/vmLINUX
initrd?/dev/fs/iso9660@cd0/initrd.gz
g?console=tty?rdinit=/sbin/init
Step 202, user is pointed out and is operated by installation interface, and this step comprises: user selects mounting means; By libparted storehouse, Shell script and configuration file, realize deletion and the establishment of subregion in mounting means; Operating system mirror image is write in disk partition; Writing system configuration information, will install in selected disk partition writing system BootLoader file, and according to different types, startup item writing system be started in configuration file.Wherein, described mounting means comprises: cover whole disk and install, cover single subregion installation and install at remaining space; The whole disk of described covering is installed, and refers to first all subregions of disk are deleted, and then creates new subregion as system partitioning; The single subregion of described covering is installed, and refers to using user-selected subregion as system partitioning; Described in remaining space installation, refer at remaining space and create new subregion as system partitioning; Described system partitioning, refers to the disk partition that operating system mirror image will write.
So, can be simply, effectively, easily land used completes the installation of LINUX operating system under Godson platform.
Certainly; the present invention also can have other various embodiments; do not deviating under the prerequisite of spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes or distortion, but this corresponding change or distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (5)

1. a method for installing Linux operating system in loongson platform, is characterized in that, comprises the steps:
Step 1, under Godson platform, by busybox, build initrd environment;
Step 2, in initrd environment, build GTK DirectFB compiling of application environment;
Step 3, in initrd environment, write booting script, installation process script, in GTK DirectFB compiling of application environment, write code and realize figure installation procedure, library file in the binary file that figure installation procedure is compiled into, this figure installation procedure resource requirement file and GTK DirectFB compiling of application environment is integrated in initrd.gz file, wherein, GTK DirectFB is the shape library that GTK storehouse shows based on Framebuffer on basis, DirectFB storehouse;
Step 4, operating system nucleus is become to CD with initrd.gz file and the imprinting of operating system mirror image, to complete LINUX operating system installation dish;
Step 5, CD is put into CD-ROM drive, after computer installation reads, by PMON order, the operating system nucleus in CD and initrd.gz file are loaded in internal memory, then can enter and in initrd environment, remove to carry out booting script, booting script calls figure installation procedure, and figure installation procedure is carried out installation process script and installed;
The concrete steps of installation process comprise:
User selects mounting means;
By libparted storehouse, Shell script and configuration file, realize deletion and the establishment of subregion in mounting means;
Operating system mirror image is write in disk partition;
Writing system configuration information, will install in selected disk partition writing system BootLoader file, and according to different types, startup item writing system be started in configuration file.
2. the method for installing Linux operating system in loongson platform according to claim 1, is characterized in that, writes booting script and be specially in described step 3 in initrd environment: the chromatic number that language, font and Framebuffer figure are set.
3. the method for installing Linux operating system in loongson platform according to claim 1, it is characterized in that, in described step 3, in initrd environment, write installation process script and be specially: realize the format of disk partition, the write operation of operating system mirror image and the required configuration file of installation process.
4. the method for installing Linux operating system in loongson platform according to claim 1, is characterized in that, described step 2 is specially:
DirectFB, GLIB, ATK, Cairo, Pango, GTK are transplanted at Godson platform, through compiling to build GTK DirectFB compiling of application environment.
5. the method for installing Linux operating system in loongson platform according to claim 1, is characterized in that, wherein, described mounting means comprises: cover whole disk and install, cover single subregion installation and install at remaining space; The whole disk of described covering is installed, and refers to first all subregions of disk are deleted, and then creates new subregion as system partitioning; The single subregion of described covering is installed, and refers to using user-selected subregion as system partitioning; Described in remaining space installation, refer at remaining space and create new subregion as system partitioning; Described system partitioning, refers to the disk partition that operating system mirror image will write.
CN201110377577.0A 2011-11-23 2011-11-23 Method for installing Linux operating system in loongson platform Active CN102541587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110377577.0A CN102541587B (en) 2011-11-23 2011-11-23 Method for installing Linux operating system in loongson platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110377577.0A CN102541587B (en) 2011-11-23 2011-11-23 Method for installing Linux operating system in loongson platform

Publications (2)

Publication Number Publication Date
CN102541587A CN102541587A (en) 2012-07-04
CN102541587B true CN102541587B (en) 2014-04-09

Family

ID=46348557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110377577.0A Active CN102541587B (en) 2011-11-23 2011-11-23 Method for installing Linux operating system in loongson platform

Country Status (1)

Country Link
CN (1) CN102541587B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819430B (en) * 2012-07-06 2016-05-04 中科方德软件有限公司 A kind of device and method of realizing serial communication interface under linux environment
CN102902554B (en) * 2012-09-04 2016-09-21 中标软件有限公司 A kind of LINUX installation method of operating system of Loongson platform
CN103049295A (en) * 2012-12-25 2013-04-17 中标软件有限公司 Network installation method for Linux operating systems with godson platforms
WO2016054523A1 (en) * 2014-10-03 2016-04-07 Avery Dennison Customizable food freshness printer startup wizard
CN108614732B (en) * 2016-12-09 2021-07-09 中标软件有限公司 Method for quickly mapping hardware equipment of operating system under dynamic foreground of Loongson platform
CN107563025B (en) * 2017-08-18 2021-08-20 北京东土军悦科技有限公司 Verification platform management method and device
CN113157282A (en) * 2021-03-31 2021-07-23 惠州华阳通用电子有限公司 Method for generating burn image file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2388210A (en) * 2002-02-04 2003-11-05 Cedemo Ltd Apparatus for remote boot up of a malfunctioning computer
CN101038551A (en) * 2006-03-16 2007-09-19 南京大学 Method for implementing the start of Linux operation system in mobile hard disk
CN102147741A (en) * 2011-03-18 2011-08-10 浪潮电子信息产业股份有限公司 Method for rapidly installing linux operating system by using mobile hard disc

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2388210A (en) * 2002-02-04 2003-11-05 Cedemo Ltd Apparatus for remote boot up of a malfunctioning computer
CN101038551A (en) * 2006-03-16 2007-09-19 南京大学 Method for implementing the start of Linux operation system in mobile hard disk
CN102147741A (en) * 2011-03-18 2011-08-10 浪潮电子信息产业股份有限公司 Method for rapidly installing linux operating system by using mobile hard disc

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于龙芯2E多处理器平台的虚拟机群系统;康炜等;《计算机工程》;20080531;第34卷(第10期);全文 *
康炜等.基于龙芯2E多处理器平台的虚拟机群系统.《计算机工程》.2008,第34卷(第10期),

Also Published As

Publication number Publication date
CN102541587A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541587B (en) Method for installing Linux operating system in loongson platform
JP3349417B2 (en) System to install host machine code application
JP4199923B2 (en) Mobile device application installation method
US8407396B2 (en) Providing block data access for an operating system using solid-state memory
US8185884B2 (en) System and method for offline updation of software in virtual machine (VM) images
CN102567051B (en) Method and device for preparing graphical installation system of Loongson platform
US8387045B2 (en) Cloning image creation using virtual machine environment
KR100952251B1 (en) Servicing a component base software product
CN102207896B (en) Virtual machine crash file generation techniques
US20080082976A1 (en) Usage of virtualization software for shipment of software products
EP0901073A1 (en) Method for automatically installing and transferring data to a computer disk drive
US8387032B1 (en) Captive runtime deployment
WO2012155631A1 (en) Method and apparatus for constructing cross-platform software running environment
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
Smyth Android Studio 2.2 Development Essentials-Android 7 Edition
US6507948B1 (en) Method, system, and program for generating batch files
JP2015503165A (en) Method and system for patching virtual images
JP2021536652A (en) Virtual machine management methods and equipment for cloud platforms
CN102023857B (en) ServiceOS-based multi-platform application program service management method and system
KR20120113160A (en) Device and method for executing android applications on general purpose operating systems, and computer readable recording medium for the same
US7610577B1 (en) Method for developing platform independent launchable applications
CN101655804A (en) Method and device for building virtual operating system
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN112379867B (en) Embedded operating system, method and storage medium based on modular development
CN113821219A (en) Method and system for realizing application program containerization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant