CN105468425B - The production method that a kind of built-in Linux operating system starts SD card - Google Patents

The production method that a kind of built-in Linux operating system starts SD card Download PDF

Info

Publication number
CN105468425B
CN105468425B CN201610007848.6A CN201610007848A CN105468425B CN 105468425 B CN105468425 B CN 105468425B CN 201610007848 A CN201610007848 A CN 201610007848A CN 105468425 B CN105468425 B CN 105468425B
Authority
CN
China
Prior art keywords
card
linux
built
operating system
subregion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610007848.6A
Other languages
Chinese (zh)
Other versions
CN105468425A (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.)
Yunnan Minzu University
Original Assignee
Yunnan Minzu University
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 Yunnan Minzu University filed Critical Yunnan Minzu University
Priority to CN201610007848.6A priority Critical patent/CN105468425B/en
Publication of CN105468425A publication Critical patent/CN105468425A/en
Application granted granted Critical
Publication of CN105468425B publication Critical patent/CN105468425B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the production methods that a kind of built-in Linux operating system starts SD card comprising following steps:According to mirror image and subregion distribution map, subregion preplanning is carried out to SD card, planning obtains multiple sectors and FAT32 subregions;SD card is inserted on the computer for be equipped with (SuSE) Linux OS and carries out subregion, FAT32 subregions are marked off by FDISK partitioning tools, and be formatted to it;The order provided by (SuSE) Linux OS, will run in image file programming to SD card necessary to a built-in Linux operating system in SD card;Copy the various image files for needing to flush in solid-state memory to FAT32 subregions.The startup SD card made using the present invention can easily carry out brush machine operation in the case where embedded Linux system is thoroughly destroyed or no condition is connected to computer.

Description

The production method that a kind of built-in Linux operating system starts SD card
Technical field
The invention belongs to field of computer technology, and in particular to a kind of built-in Linux operating system starts the system of SD card Make method.
Background technology
One typical built-in Linux hardware system is protected with solid-state memories such as the flash memories being welded on pcb board It deposits built-in Linux operating system and starts the various image files and file system needed.If embedded Linux system goes out Failure is showed, or has needed to upgrade the entire software systems of built-in Linux, then programming built-in Linux is needed again to operate System starts the various image files needed and file system.Currently used way is that embedded device is made to enter brush machine mould Formula is connected to computer by data line, then carries out brush machine by special software.This needs embedded device that can also enter To brush machine pattern, simultaneously conditional pass data line and computer are attached.But if embedded Linux system be thoroughly destroyed or Person does not have condition to be connected to computer, then cannot easily carry out brush machine operation, need depot repair or brushed after disassembling Machine operates.
Invention content
In order to solve the above problem of the existing technology, the present invention provides a kind of built-in Linux operating systems to open The production method of dynamic SD card, the startup SD card made using the present invention can be thoroughly destroyed in embedded Linux system or In the case of there is no condition to be connected to computer, brush machine operation is easily carried out.
To achieve the above object, the technical solution adopted in the present invention is:A kind of built-in Linux operating system startup SD The production method of card comprising following steps:According to mirror image and subregion distribution map, subregion preplanning is carried out to SD card, is planned To multiple sectors and FAT32 subregions;SD card is inserted on the computer for be equipped with (SuSE) Linux OS and carries out subregion, is passed through FDISK partitioning tools mark off FAT32 subregions, and are formatted to it;The order provided by (SuSE) Linux OS, will It is run in image file programming to SD card necessary to a built-in Linux operating system in SD card;Needs are flushed to Various image files in solid-state memory copy FAT32 subregions to.
Further, it is to the detailed process of SD card progress subregion preplanning:First sector of SD card is set, first Partition table, initial position and size of the partition table for record partitioning are preserved in a sector;N is set again since second sector A sector runs image file necessary to a built-in Linux operating system for being stored in SD card;The quantity of n by The size of SD card and the occupied sector number of each image file determine;One FAT32 subregion is set after the n-th+2 sectors, FAT32 subregions are for preserving the image file flushed on PCB solid-state memories.
Further, the image file necessary to one built-in Linux operating system of operation in SD card includes The Ramdisk mirror images of Bootloader mirror images, linux kernel mirror image, device tree mirror image and root file system.
Further, second sector is greater than or equal to the sector number between the initial position of FAT32 subregions The required sector of Ramdisk mirror images of Bootloader mirror images, linux kernel mirror image, device tree mirror image and root file system Number.
Further, it would be desirable to which the mode that the image file flushed in solid-state memory copies FAT32 subregions to is:It is logical It crosses file copy mode and carries out direct copying.
Due to using the technology described above, beneficial effects of the present invention are:The present invention in SD card by establishing one point Then area is flushed to from SD card by newest mirror image in subregion in system by the newest mirror-image copies of refreshing to the subregion, this Sample is just not necessarily to connect computer, and brush machine can be also carried out in the case where system before is totally disrupted.Utilize the startup SD card Go refresh built-in Linux operating system when it is easy to use, in the environment of cannot connect PC machine, the startup can be used SD card.In addition, the initial position of the subregion one by one in SD card can freely specify so that programming is used as starting in SD card using Linux system mirror image size it is unrestricted.
Description of the drawings
Fig. 1 is the flow chart for the production method that built-in Linux operating system of the present invention starts SD card;
Fig. 2 is mirror image and subregion distribution map.
Specific implementation mode
Technical scheme of the present invention is described in detail with reference to the accompanying drawings and examples.
The embedded Linux system of the overwhelming majority can be transferred through SD card startup now, but due to the access speed of SD card Slower and pluggable characteristic so that final linux system does not operate in SD card generally, but operates in pcb board On solid-state memory on.The consequence done so is again so that the refreshing of linux system is inconvenient.It through the invention can be by brush machine In the mirror image programming to SD card of program and brush machine, it is on the solid-state memory on pcb board to refresh by starting from SD card System software so that the operation of brush machine greatly simplifies.
As shown in Figure 1, the present invention provides the production method that a kind of built-in Linux operating system starts SD card, packet Include following steps:
S1, SD card progress subregion preplanning is planned and obtains multiple fans according to mirror image as shown in Figure 2 and subregion distribution map Area and FAT32 subregions, detailed process are:
First sector of SD card is set, partition table is preserved in first sector, partition table rises for record partitioning Beginning position and size.
N sector is set again since second sector, for preserving Bootloader mirror images, linux kernel mirror image, setting It is required that Ramdisk mirror images of standby tree mirror image and root file system etc. run a built-in Linux operating system institute in SD card Image file.Wherein, the quantity of n is determined by the size and the occupied sector number of each image file of SD card.
One FAT32 subregion is set after the n-th+2 sectors, and FAT32 subregions flush to PCB solid-state storages for preserving Image file on device.
S2, it SD card is inserted on the computer for be equipped with (SuSE) Linux OS carries out subregion, pass through FDISK partitioning tools FAT32 subregions are marked off, and it is formatted.
Further, second sector is greater than or equal to the sector number between the initial position of FAT32 subregions The required sector of Ramdisk mirror images of Bootloader mirror images, linux kernel mirror image, device tree mirror image and root file system Number.If carrying out simple subregion and format manipulation, the starting of the subregion of FAT32 to SD card by Windows operating system Position cannot specify, and second sector is fewer to the sector number between FAT32 subregions initial position, therefore can cause to burn FAT32 subregions can be override by writing the mirror image in SD card.The present invention carries out subregion using (SuSE) Linux OS to SD card, The initial position of FAT32 subregions can be arbitrarily designated, to avoid the above problem.
S3, the DD orders provided by (SuSE) Linux OS are by Bootloader mirror images, linux kernel mirror image, device tree In the Ramdisk mirror image programmings to SD card of mirror image and root file system.Using (SuSE) Linux OS can direct programming SD card, Without needing to write special programming software as Windows operating system.
S4, the various image files for needing to flush in solid-state memory are copied directly to by file copy mode FAT32 subregions.
It obtains starting SD card using the production method provided by the invention for starting SD card.When embedded Linux system needs When refreshing whole system software, system is made to be started using SD card is started.Due to starting the relevant mirror image of programming in SD card, Therefore the startup SD card obtained can start a built-in Linux operating system.After starting Deng the embedded Linux system, The mirror image of the refreshing in FAT32 subregions can be flushed in solid-state memory by starting the brush machine program in SD card, from Without connecting computer, the even system on solid-state memory can also carry out normal brush machine after being totally disrupted.And it uses After this startup SD card is taken at family, the mirror image of newest refreshing can also be copied to SD card by way of file copy On FAT32 subregions, brush machine is then carried out, does not need special software in the whole process, it is very easy to use.
The present invention is not limited to above-mentioned preferred forms, and those skilled in the art can obtain under the inspiration of the present invention Other various forms of products, however, make any variation in its shape or structure, it is every that there is same as the present application or phase Approximate technical solution, is within the scope of the present invention.

Claims (3)

1. the production method that a kind of built-in Linux operating system starts SD card comprising following steps:
According to mirror image and subregion distribution map, subregion preplanning is carried out to SD card, planning obtains multiple sectors and FAT32 subregions;
SD card is inserted on the computer for be equipped with (SuSE) Linux OS and carries out subregion, is marked off by FDISK partitioning tools FAT32 subregions, and it is formatted;
The order provided by (SuSE) Linux OS, will run necessary to a built-in Linux operating system in SD card In image file programming to SD card;
Copy the various image files for needing to flush in solid-state memory to FAT32 subregions;
To SD card carry out subregion preplanning detailed process be:First sector of SD card is set, is preserved in first sector Partition table, initial position and size of the partition table for record partitioning;
N sector is set again since second sector, a built-in Linux operating system is run for being stored in SD card Necessary image file;The quantity of n is determined by the size and the occupied sector number of each image file of SD card;
One FAT32 subregion is set after the n-th+2 sectors, and FAT32 subregions flush to PCB solid-state memories for preserving Image file;
The image file necessary to one built-in Linux operating system of operation in SD card includes Bootloader mirrors The Ramdisk mirror images of picture, linux kernel mirror image, device tree mirror image and root file system.
2. the production method that a kind of built-in Linux operating system as described in claim 1 starts SD card, it is characterised in that: Second sector is greater than or equal to Bootloader mirror images, Linux to the sector number between the initial position of FAT32 subregions The required sector number of Ramdisk mirror images of kernel mirror image, device tree mirror image and root file system.
3. the production method that a kind of built-in Linux operating system as claimed in claim 1 or 2 starts SD card, feature exist In:It is by the mode for needing to flush to the image file in solid-state memory and copying to FAT32 subregions:Pass through file copy mode Carry out direct copying.
CN201610007848.6A 2016-01-07 2016-01-07 The production method that a kind of built-in Linux operating system starts SD card Expired - Fee Related CN105468425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610007848.6A CN105468425B (en) 2016-01-07 2016-01-07 The production method that a kind of built-in Linux operating system starts SD card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610007848.6A CN105468425B (en) 2016-01-07 2016-01-07 The production method that a kind of built-in Linux operating system starts SD card

Publications (2)

Publication Number Publication Date
CN105468425A CN105468425A (en) 2016-04-06
CN105468425B true CN105468425B (en) 2018-10-23

Family

ID=55606163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610007848.6A Expired - Fee Related CN105468425B (en) 2016-01-07 2016-01-07 The production method that a kind of built-in Linux operating system starts SD card

Country Status (1)

Country Link
CN (1) CN105468425B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106384052A (en) * 2016-08-26 2017-02-08 浪潮电子信息产业股份有限公司 Method for realizing BMC U-boot trusted boot control
CN106598780A (en) * 2016-11-22 2017-04-26 深圳中科讯联科技股份有限公司 System backup and recovery method and device
CN106844228B (en) * 2017-01-20 2020-01-07 深圳英飞拓科技股份有限公司 Method and device for realizing partition management of lightweight SD card
CN109215171A (en) * 2018-08-20 2019-01-15 深圳市长龙铁路电子工程有限公司 A kind of storage method of cab signaling equipment data record
CN113535255A (en) * 2021-06-07 2021-10-22 山东泰物信息技术有限公司 Method for asynchronously updating embedded linux firmware based on cryptographic algorithm

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344854A (en) * 2008-08-22 2009-01-14 四川长虹电器股份有限公司 Method for upgrading embedded type Linux equipment through SD card
CN102520778A (en) * 2011-12-09 2012-06-27 山东大学 One-key reset method suitable for embedded Linux operating system
CN102693144A (en) * 2012-05-25 2012-09-26 惠州Tcl移动通信有限公司 Method for upgrading capacitive screen firmware used for Android mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101344854A (en) * 2008-08-22 2009-01-14 四川长虹电器股份有限公司 Method for upgrading embedded type Linux equipment through SD card
CN102520778A (en) * 2011-12-09 2012-06-27 山东大学 One-key reset method suitable for embedded Linux operating system
CN102693144A (en) * 2012-05-25 2012-09-26 惠州Tcl移动通信有限公司 Method for upgrading capacitive screen firmware used for Android mobile terminal

Also Published As

Publication number Publication date
CN105468425A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105468425B (en) The production method that a kind of built-in Linux operating system starts SD card
EP3000059B1 (en) Managing data in a storage system
US10203975B2 (en) Virtual machine template management
CN105593829B (en) Method, system and the medium of file system object are excluded from original image backup
CN102096616B (en) Logical object data duplication method and related device
CN102331943B (en) System and method for updating storage on line
DE102008015034A1 (en) Memory card, memory card system, method for controlling a host, and method for operating a memory card
JP2014126989A (en) Control device, control method, and program
WO2016090836A1 (en) Method and apparatus for starting embedded system
KR100980174B1 (en) Adaptive booting from mass storage device
JP2007249573A (en) Storage system for issuing optimum i/o command to automatically expandable volume and its control method
US20140236892A1 (en) Systems and methods for virtual machine backup process by examining file system journal records
WO2016188037A1 (en) Version burning method, system and terminal, and computer storage medium
CN103744710A (en) Installation method and system of operating systems
TW201629785A (en) Management controller
US7958344B2 (en) Method for adjusting set-up default value of bios and mainboard using the same method
CN111158858B (en) Cloning method and device of virtual machine and computer readable storage medium
US8239428B2 (en) Method for copying data from source hard drive to target hard drive
US11176089B2 (en) Systems and methods for implementing dynamic file systems
CN107544865A (en) A kind of quick available method and apparatus of Backup Data
US9183128B2 (en) Device controller for a memory device
JP2005182812A (en) System and method for storing image file in computer system
WO2020107469A1 (en) Application processing method and apparatus and storage medium
KR20170037017A (en) Memory Upgrade System And Method
US10705827B2 (en) Method for updating system information of a computer device

Legal Events

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

Granted publication date: 20181023

Termination date: 20200107