CN105138367B - A kind of method of upgrade-system kernel image - Google Patents

A kind of method of upgrade-system kernel image Download PDF

Info

Publication number
CN105138367B
CN105138367B CN201510524589.XA CN201510524589A CN105138367B CN 105138367 B CN105138367 B CN 105138367B CN 201510524589 A CN201510524589 A CN 201510524589A CN 105138367 B CN105138367 B CN 105138367B
Authority
CN
China
Prior art keywords
file
upgrade
partition holding
kernel image
file destination
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
CN201510524589.XA
Other languages
Chinese (zh)
Other versions
CN105138367A (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.)
HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510524589.XA priority Critical patent/CN105138367B/en
Publication of CN105138367A publication Critical patent/CN105138367A/en
Application granted granted Critical
Publication of CN105138367B publication Critical patent/CN105138367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of method of upgrade-system kernel image, applied to embedded device, comprise the following steps:Step S1, a random memory unit is provided, to load a source file;Step S2, one converting unit is provided, to by a system partition holding in being mapped as a file destination in random memory unit;Step S3, instructed using system copies and source file is copied to file destination;Step S4, file destination is converted to matching system partition holding form, and writing system partition holding by converting unit.The beneficial effects of the present invention are realized by one converting unit of offer source file being copied into system partition holding by system command, overcome the problem of upgrade-system kernel image file needs special programming operation into equipment in the prior art.

Description

A kind of method of upgrade-system kernel image
Technical field
The present invention relates to system application field, more particularly to the method for kind upgrade-system kernel image.
Background technology
(preserving into disk file form) be present in the form of a file on other computers in the kernel of many operating systems, It is exactly so-called " image file ".The kernel image file of this operating system is finally that the system of target device to be burnt to is deposited Store up in subregion.Following steps are used to the kernel image file of upgrading operation system in prior art:The first step, operating system The server that is formed from computer of kernel image file be loaded into the internal memory of target device;Second step, in device memory Operating system nucleus image file the operation system of target device is arrived by the command program (erasing, write-in) of special (or customization) In system partition holding.But this upgrading mode person of needing to use has suitable professional knowledge, for being unfamiliar with programming technique User for operate unusual inconvenience.
The content of the invention
For above mentioned problem existing for upgrading operation system kernel image in the prior art, one kind is now provided and aims at liter A kind of method of level upgrade-system kernel image simple to operate.
Concrete technical scheme is as follows:
A kind of method of upgrade-system kernel image, applied to embedded device, comprises the following steps:
Step S1, a random memory unit is provided, to load a source file;
Step S2, a converting unit is provided, a system partition holding to be mapped as in the random memory unit One file destination;
Step S3, instructed using system copies and the source file is copied to the file destination;
The file destination is converted to the matching system partition holding form by step S4, described converting unit, and is write Enter the system partition holding.
Preferably, in the step S1, there is provided a host computer, for the source file to be transmitted to the random storage list Member.
Preferably, in the step S1, the source file is a system image file.
Preferably, in the step S2, the system partition holding is located on a flash chip.
Preferably, in the step S2, the converting unit by the metadata of the file destination be loaded onto it is described with In machine memory cell, the data of the file destination are remained in the system partition holding, and in the random storage list The initial address of the data of file destination and end address described in the system partition holding are indicated in member.
Preferably, in the step S3, there is provided a detection module is to detect the instruction of user's input, if the instruction Meet that preparatory condition is then ignored.
Preferably, the preparatory condition is that the instruction is Rename file or creaties directory.
Preferably, the data space-consuming of the file destination is identical with the size of the system partition holding.
Preferably, the converting unit is based on (SuSE) Linux OS.
Preferably, in the step S2, there is provided a searching modul, the specific bit of the data for searching the file destination Put.
Above-mentioned technical proposal has the following advantages that or beneficial effect:Source file is led to by providing a converting unit and realizing Cross system command and be copied into system partition holding, overcome upgrade-system kernel image file in the prior art needs into equipment The problem of special programming operation.
Brief description of the drawings
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.However, appended accompanying drawing be merely to illustrate and Illustrate, and be not meant to limit the scope of the invention.
Fig. 1 is the flow chart of the embodiment of the method for a upgrade-system kernel image of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the present invention can phase Mutually combination.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
Technical scheme includes the method for a upgrade-system kernel image.
As shown in figure 1, a kind of method of upgrade-system kernel image, applied to embedded device, comprises the following steps:
Step S1, a random memory unit is provided, to load a source file;
Step S2, one converting unit is provided, to by a system partition holding in being mapped as a mesh in random memory unit Mark file;
Step S3, instructed using system copies and source file is copied to file destination;
Step S4, file destination is converted to matching system partition holding form, and writing system storage point by converting unit Area.
In above-mentioned technical proposal, source file is loaded by random memory unit, and system is stored by converting unit Subregion is mapped as file destination in random memory unit, and it is laggard that source file is copied into file destination by system copies order File destination is converted into matching system partition holding form by one step by converting unit, and file destination writing system is deposited Subregion is stored up, it is achieved thereby that need not program, the operation of upgrade-system kernel image, operation are completed using only system copies order It is simple and convenient.
In a kind of preferably embodiment, in step S1, there is provided a host computer, for source file to be transmitted to depositing at random Storage unit.In further preferred embodiment, host computer can be computer.
As a kind of preferable embodiment, random memory unit can be a RAM chip, or RAM chip group.
In a kind of preferably embodiment, in step S1, source file is a system image file.
In a kind of preferably embodiment, in step S2, system partition holding is located on a flash chip.
In a kind of preferably embodiment, in step s 2, converting unit by the metadata of file destination be loaded onto with In machine memory cell, the data of file destination are remained in system partition holding, and system is indicated in random memory unit The initial address of the data of file destination and end address in partition holding.
As a kind of preferred embodiment, file destination can be named as OS.IMG.Further, can be by the text of file destination In the storage of part name information and random memory unit.
In a kind of preferably embodiment, in step S3, there is provided a detection module is detecting the finger of user's input Order, ignore if instruction meets preparatory condition.
In a kind of preferably embodiment, preparatory condition is to instruct as Rename file or create directory.
As a kind of preferred embodiment, operational order is if deleting file or re-create file then in step s3 Perform respective operations.
In a kind of preferably embodiment, the data space-consuming of file destination and the size phase of system partition holding Together.
As a kind of preferred embodiment, system partition holding can be to allocate the one of address and size in advance on flash chip Block region.
In a kind of preferably embodiment, converting unit is based on (SuSE) Linux OS.
In a kind of preferably embodiment, in step S2, there is provided a searching modul, for searching the data of file destination Specified location.
Illustrated below with a kind of specific embodiment, be the embodiment based on (SuSE) Linux OS in converting unit Under, source file is transmitted to random memory unit, random memory unit by a host computer and starts to add by the source file received Carry, system partition holding is mapped as the file destination in random memory unit by converting unit, by random memory unit Source file is copied in file destination using system copies order, further changed file destination by conversion unit After form for matching system partition holding, by file destination writing system partition holding, it is achieved thereby that passing through system copies Order system kernel image file writing system partition holding, overcome upgrade-system kernel image file in the prior art and arrive The problem of special programming operation is needed in equipment.
Above-mentioned technical proposal has the following advantages that or beneficial effect:Source file is led to by providing a converting unit and realizing Cross system command and be copied into system partition holding, overcome upgrade-system kernel image file in the prior art needs into equipment The problem of special programming operation.
Preferred embodiments of the present invention are the foregoing is only, not thereby limit embodiments of the present invention and protection model Enclose, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content Scheme obtained by equivalent substitution and obvious change, should be included in protection scope of the present invention.

Claims (8)

  1. A kind of 1. method of upgrade-system kernel image, applied to embedded device, it is characterised in that comprise the following steps:
    Step S1, a random memory unit is provided, to load a source file;The source file is a system image file;
    Step S2, one converting unit is provided, to by a system partition holding in being mapped as a mesh in the random memory unit Mark file;The metadata of the file destination is loaded onto in the random memory unit by the converting unit, by the target The data of file are remained in the system partition holding, and the system partition holding is indicated in the random memory unit Described in file destination data initial address and end address;
    Step S3, instructed using system copies and the source file is copied to the file destination;
    The file destination is converted to the matching system partition holding form by step S4, described converting unit, and writes institute State system partition holding.
  2. 2. the method for upgrade-system kernel image according to claim 1, it is characterised in that in the step S1, there is provided one Host computer, for the source file to be transmitted to the random memory unit.
  3. 3. the method for upgrade-system kernel image according to claim 1, it is characterised in that in the step S2, the system System partition holding is located on a flash chip.
  4. 4. the method for upgrade-system kernel image according to claim 1, it is characterised in that in the step S3, there is provided one Detection module is ignored to detect the instruction of user's input if the instruction meets preparatory condition.
  5. 5. the method for upgrade-system kernel image according to claim 4, it is characterised in that the preparatory condition is, described Instruct as Rename file or create directory.
  6. 6. the method for upgrade-system kernel image according to claim 1, it is characterised in that the data of the file destination account for It is identical with the size of the system partition holding with space.
  7. 7. the method for upgrade-system kernel image according to claim 1, it is characterised in that the converting unit is based on (SuSE) Linux OS.
  8. 8. the method for upgrade-system kernel image according to claim 1, it is characterised in that in the step S2, there is provided one Searching modul, the specified location of the data for searching the file destination.
CN201510524589.XA 2015-08-24 2015-08-24 A kind of method of upgrade-system kernel image Active CN105138367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510524589.XA CN105138367B (en) 2015-08-24 2015-08-24 A kind of method of upgrade-system kernel image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524589.XA CN105138367B (en) 2015-08-24 2015-08-24 A kind of method of upgrade-system kernel image

Publications (2)

Publication Number Publication Date
CN105138367A CN105138367A (en) 2015-12-09
CN105138367B true CN105138367B (en) 2018-04-06

Family

ID=54723724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524589.XA Active CN105138367B (en) 2015-08-24 2015-08-24 A kind of method of upgrade-system kernel image

Country Status (1)

Country Link
CN (1) CN105138367B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144946A (en) * 2018-07-24 2019-01-04 中国建设银行股份有限公司 A kind of document handling method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314355A (en) * 2010-07-08 2012-01-11 上海易狄欧电子科技有限公司 E-book reader and upgrade method thereof
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314355A (en) * 2010-07-08 2012-01-11 上海易狄欧电子科技有限公司 E-book reader and upgrade method thereof
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system

Also Published As

Publication number Publication date
CN105138367A (en) 2015-12-09

Similar Documents

Publication Publication Date Title
US9292217B2 (en) Logical volume space sharing
JP5149912B2 (en) Selective use of multiple disparate solid-state storage locations
KR102137761B1 (en) Heterogeneous unified memory section and method for manaing extended unified memory space thereof
TWI678618B (en) Method and apparatus for performing operations to namespaces of a flash memory device
CN108021510A (en) The method for operating the storage device being managed to multiple name space
CN106569738B (en) A kind of method and device for deleting cascade snapshot
JP2008198208A (en) Operation method for host data processing device, host data processing device, and data storage device
US20170206212A1 (en) Partial snapshot creation
US11010079B2 (en) Concept for storing file system metadata within solid-stage storage devices
US20120151125A1 (en) Data processing method for nonvolatile memory system
US20170075614A1 (en) Memory system and host apparatus
TWI710905B (en) Data storage device and method for loading logical-to-physical mapping table
US20160274819A1 (en) Memory system including host and a plurality of storage devices and data migration method thereof
CN110908927A (en) Data storage device and method for deleting name space thereof
CN102169460A (en) Method and device for managing variable length data
CN108228091B (en) Configuration data partition storage method and system and configuration data verification method and system
US11269771B2 (en) Storage device for improving journal replay, operating method thereof, and electronic device including the storage device
CN103106260A (en) Establishment method of role-oriented virtual file system
CN103218305A (en) Distribution method of memory space
WO2016106757A1 (en) Method for managing storage data, storage manager and storage system
CN105138367B (en) A kind of method of upgrade-system kernel image
CN110312986B (en) Opportunistic use of streams for storing data on solid state devices
KR101626218B1 (en) Block based page mapping method
CN106257401A (en) Data storage device
CN103177019B (en) Usb storage device and driving method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201127

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co., Ltd

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201210

Address after: 313028 Industrial Park, balidian Town, Huzhou City, Zhejiang Province

Patentee after: HUZHOU FENGYUAN AGRICULTURAL EQUIPMENT MANUFACTURE Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co., Ltd