CN113076110A - Method, system and medium for solidifying capacity of memory chip - Google Patents

Method, system and medium for solidifying capacity of memory chip Download PDF

Info

Publication number
CN113076110A
CN113076110A CN202110259249.4A CN202110259249A CN113076110A CN 113076110 A CN113076110 A CN 113076110A CN 202110259249 A CN202110259249 A CN 202110259249A CN 113076110 A CN113076110 A CN 113076110A
Authority
CN
China
Prior art keywords
code
memory chip
mirror image
initialization
partition
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.)
Pending
Application number
CN202110259249.4A
Other languages
Chinese (zh)
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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110259249.4A priority Critical patent/CN113076110A/en
Publication of CN113076110A publication Critical patent/CN113076110A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Landscapes

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

Abstract

The invention discloses a method for solidifying the capacity of a memory chip, which comprises the following steps: adjusting the layout of codes in a memory chip, and dividing the codes in the memory chip into an initialization code partition and a function code partition; compiling the initialization code partition and the function code partition through a compiler to generate a first mirror image of the initialization code partition and a second mirror image of the function code partition; burning the first mirror image into the memory chip, and integrating the second mirror image into a memory; taking out the first mirror image from the storage chip, and starting the first mirror image for initialization; loading a file system in the first mirror image, and loading the second mirror image according to the file system; by the mode, the capacity in the memory chip can be fixed, and the resource waste is reduced during updating.

Description

Method, system and medium for solidifying capacity of memory chip
Technical Field
The present invention relates to the field of firmware technologies, and in particular, to a method, a system, and a medium for solidifying capacity of a memory chip.
Background
With the progress of computer technology and diversification of end user requirements, the requirement for the capacity of the memory chip of the BIOS and the BMC is increasing, but in consideration of cost, the characteristic function is often sacrificed to control the size of the BIOS image. Even if the capacity of the memory chip of the BIOS is increased and the product is updated, the problems of manufacturer selection and stability verification are faced, and resources are consumed.
At present, the more functions of BIOS and BMC are required, the larger the capacity of the memory chip is, and basically, resources are wasted due to the fact that the BIOS and BMC are required to be reselected for each generation of products.
Disclosure of Invention
The invention mainly solves the problem that the more functions of the BIOS and the BMC are, the larger the capacities of the memory chips in the BIOS and the BMC are, and thus resources are wasted during updating.
In order to solve the technical problems, the invention adopts a technical scheme that: a method for solidifying the capacity of a memory chip is provided, which comprises the following steps:
adjusting the layout of codes in a memory chip, and dividing the codes in the memory chip into an initialization code partition and a function code partition;
compiling the initialization code partition and the function code partition through a compiler to generate a first mirror image of the initialization code partition and a second mirror image of the function code partition;
burning the first mirror image into the memory chip, and integrating the second mirror image into a memory;
taking out the first mirror image from the storage chip, and starting the first mirror image for initialization;
and loading the file system in the first mirror image, and loading the second mirror image according to the file system.
Preferably, the memory chip comprises a memory chip of a BIOS and a memory chip of a BMC; the memory includes a hard disk and a flash memory card.
Preferably, the step of dividing the code in the memory chip into an initialization code partition and a functional code partition further includes:
when the memory chip is the memory chip of the BIOS, the initializing code partition includes: CPU initialization code, memory initialization code, PCIe initialization code, input and output initialization code and file system code;
the functional code partitioning comprises: installation code, graphical code, system boot code, and custom code are created.
Preferably, the step of dividing the code in the memory chip into an initialization code partition and a function code partition further includes:
when the memory chip is the memory chip of the BMC, the initializing code partition includes: boot loader code, flash card controller driver code and first file system code;
the functional code partitioning comprises: system kernel code, file system code, and program code.
Preferably, the step of integrating the second image into the memory further comprises:
when the memory chip is the memory chip of the BIOS, integrating the second mirror image into an operating system of the hard disk;
and when the memory chip is a memory chip of the BMC, integrating the second mirror image into the flash memory card.
Preferably, the step of starting the first image for initialization further includes:
when the memory chip is the memory chip of the BIOS, taking the first mirror image out of the memory chip of the BIOS, executing the first mirror image, and performing an initialization process of the BIOS;
and when the memory chip is the memory chip of the BMC, taking the first mirror image out of the memory chip of the BMC, executing the first mirror image, and performing an initialization process of the BMC.
Preferably, the step of loading the file system in the first image and loading the second image through the file system further includes:
when the storage chip is the storage chip of the BIOS, loading the file system code in the first mirror image of the BIOS, and loading the second mirror image from the operating system of the hard disk by using a file system to enable the code in the second mirror image;
and when the memory chip is the memory chip of the BMC, loading the first file system code in the first mirror image of the BMC, and loading the second mirror image from the flash memory card by using the first file system, so that the code in the second mirror image can be enabled.
The present invention also provides a system for solidifying capacity of a memory chip, comprising: the device comprises a partition adjusting module, a compiling module, a burning integration module, an initialization module and a loading module;
the partition adjusting module is used for adjusting the layout of codes in a memory chip and dividing the codes in the memory chip into an initialization code partition and a function code partition;
the compiling module is used for compiling the initialization code partition and the function code partition and generating a first mirror image of the initialization code partition and a second mirror image of the function code partition;
the burning integration module is used for burning the first mirror image into the storage chip and integrating the second mirror image into a memory;
the initialization module is used for starting the first mirror image to initialize;
the loading module is used for loading the file system in the first mirror image and loading the second mirror image according to the file system.
As a further improvement of the system for solidifying the capacity of the memory chip, the initialization module comprises a BIOS initialization module and a BMC initialization module;
the BIOS initialization module is used for starting the first mirror image and executing an initialization process of the BIOS when the storage chip is a storage chip of the BIOS;
the BMC initialization module is used for starting the first mirror image and executing an initialization process of the BMC when the memory chip is a memory chip of the BMC.
The present invention also provides a computer readable storage medium, which stores a computer program, which, when executed by a processor, implements the steps of a method for solidifying the capacity of a memory chip as described above.
The invention has the beneficial effects that:
1. the method for solidifying the capacity of the memory chip can adjust the layout of codes in the memory chip according to the unused memory chip, only the initialization code is reserved in the memory chip, the functional code is stored in the memory, and the functional code in the memory is loaded through the initialization code in the memory chip, so that a large amount of memory space occupied by the functional code in the memory chip is reduced;
2. the system for solidifying the capacity of the memory chip can realize that the code layout in the memory is adjusted through the partition adjusting module, the mirror image of the functional code is placed in the memory through the burning integration module, the necessary mirror image of the initialization code is burnt to the memory chip, the capacity of the memory chip is fixed, when the function of the memory chip needs to be updated, the memory chip does not need to be replaced, only the functional code in the memory needs to be updated, the memory chip can be updated for many times, and the waste of resources is reduced;
3. the computer-readable storage medium can realize that different memories are selected according to the functions of the BMC or the BIOS, the memory is used for storing the mirror image of the functional code, and the function of the memory chip of the BIOS or the BMC is met by calling the functional code in the memory, so that the efficiency can be improved when a product is updated, and the waste of resources is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a method for solidifying the capacity of a memory chip according to embodiment 1 of the present invention;
fig. 2 is a schematic diagram of a system architecture for solidifying the capacity of a memory chip according to embodiment 2 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
It is noted that in the description of the present invention
BIOS (basic Input Output System) is a basic Input Output system;
bmc (baseboard Management controller) is a baseboard Management controller;
a TF Card (Trans-flash Card) is a flash memory Card, a kind of memory Card.
PCI-express (peripheral component interconnect express) is a high-speed serial computer expansion bus standard; PCIe belongs to high-speed serial point-to-point double-channel high-bandwidth transmission, connected devices distribute independent channel bandwidth and do not share bus bandwidth, and the PCIe mainly supports functions of active power management, error reporting, end-to-end reliable transmission, hot plug, quality of service (QOS) and the like.
The I/O Input/Output (Input/Output) is divided into two parts, namely an IO device and an IO interface. On a POSIX (POSIX) compatible system, for example, in a Linux system, there may be a plurality of modes for I/O operation, such as DIO (Direct I/O), AIO (Asynchronous I/O), Memory-Mapped I/O (Memory Mapped I/O), etc., different I/O modes have different implementation modes and performances, and different I/O modes may be selected according to situations in different applications.
The CPU (Central Processing Unit) is a central Processing unit.
In the description of the present invention, it should be noted that
The first file system code is a FAT32 file system code.
Example 1
An embodiment of the present invention provides a method for solidifying the capacity of a memory chip, referring to fig. 1, including the following steps:
s100, adjusting the layout of codes in a memory chip, and partitioning the codes in the memory chip;
the method comprises the following specific steps: adjusting codes in a memory chip, dividing necessary codes for initialization into one area, recording the area as an initialization code area, dividing functional codes into another area, and recording the area as a functional code area;
the memory chip comprises a memory chip of BIOS and a memory chip of BMC;
when the memory chip is a BIOS memory chip, the BIOS has the function of reading the file system on the hard disk, wherein the BIOS memory chip comprises a CPU initialization code, a memory initialization code, a PCIe initialization code, an I/O initialization code, a file system code, a set up code, a graphical code, an OS starting code, a system user self-defined code and the like;
the method comprises the steps of dividing a CPU initialization code, a memory initialization code, a PCIe initialization code, an I/O initialization code and a file system code into an initialization code partition, and dividing a set up code, a graphical code, an OS starting code and a system user self-defining code into a function code partition;
when the memory chip is a memory chip of the BMC, the BMC has a function of reading a file system on the TF card, wherein the memory chip of the BMC comprises a boot loader code, a system kernel code, a file system code, a user program code and the like;
wherein the file system code comprises a FAT32 file system code;
the FAT32 file system code in the boot loader code and the file system code is coded to an initialization code partition, and a TF card controller driver code is added to the initialization code partition;
the FAT32 file system code is used for reading the file system of the TF card content, and the TF card controller driver code is used for connecting the BMC and the TF card so as to acquire the content in the TF card;
the system kernel code, the file system code and the user program code are coded to the functional code partition;
s200, compiling the initialization code partition and the function code partition respectively through a compiler so as to generate a first mirror image of the initialization code partition and a second mirror image of the function code partition;
s300, burning the first mirror image into a memory chip, and integrating a second mirror image into a memory;
the memory comprises a TF card and a hard disk in the server;
when the memory chip is a BIOS memory chip, burning the first mirror image into the BIOS memory chip; integrating the second image into a hard disk operating system of the server;
when the storage chip is a storage chip of the BMC, the first mirror image is burnt into the storage chip of the BMC, and the second mirror image is integrated into a TF card of the server;
the integration mode of integrating into the TF card or the hard disk operating system is to store the second mirror image into the TF card or the hard disk operating system.
S400, taking out the first mirror image from the storage chip, and starting the first mirror image for initialization;
when the storage chip is a storage chip of the BIOS, taking out a first mirror image from the storage chip of the BIOS, and executing the first mirror image to perform an initialization process of the BIOS, wherein the initialization process specifically comprises the steps of initializing a CPU, initializing a memory, initializing PCIe, initializing I/O and the like;
and when the memory chip is the memory chip of the BMC, taking out the first mirror image from the memory chip of the BMC, executing the first mirror image, and performing an initialization process of the BMC, wherein the initialization process specifically comprises starting a boot loader, starting a TF card controller driver and the like.
S500, loading the file system in the first image, reading the second image from the memory by using the function of the file system, and loading the second image so as to enable the codes or programs in the function code partition in the second image.
The method comprises the following specific steps: when the storage chip is a BIOS storage chip, loading a file system code in a first mirror image of the BIOS storage chip, and loading a second mirror image from a hard disk operating system by using the file system through the file system code, so that codes such as a set up code, a graphical code, an OS starting code, a system user self-defined code and the like in the second mirror image are enabled;
when the memory chip is a memory chip of BMC, loading FAT32 file system code in a first mirror image of the memory chip of BMC, loading a second mirror image from the TF card by using the FAT32 file system through the FAT32 file system code, and enabling a loading program in the second mirror image.
Example 2
An embodiment of the present invention further provides a system for solidifying capacity of a memory chip, referring to fig. 2, including: the device comprises a partition adjusting module, a compiling module, a burning integration module, an initialization module and a loading module;
the partition adjusting module is used for adjusting the layout of codes in the memory chip according to the type of the memory chip and dividing the codes in the memory chip into an initialization code partition and a function code partition;
the compiling module is used for compiling the initialization code partition and the function code partition and generating a corresponding first mirror image and a second mirror image;
the burning integration module is used for burning the first mirror image into the memory chip and integrating the second mirror image into a memory;
the initialization module is used for starting the first mirror image for initialization;
the loading module is used for loading the file system in the first mirror image and loading the second mirror image according to the file system.
The initialization module comprises a BIOS initialization module and a BMC initialization module;
the BIOS initialization module is used for starting the first mirror image to execute an initialization process of the BIOS when the storage chip is the storage chip of the BIOS;
the BMC initialization module is used for starting the first mirror image to execute the initialization process of the BMC when the memory chip is the memory chip of the BMC
Based on the same inventive concept as the method in the foregoing embodiments, the present specification embodiment further provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for solidifying the capacity of the memory chip as disclosed in the foregoing.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of solidifying memory chip capacity, comprising the steps of:
adjusting the layout of codes in a memory chip, and dividing the codes in the memory chip into an initialization code partition and a function code partition;
compiling the initialization code partition and the function code partition through a compiler to generate a first mirror image of the initialization code partition and a second mirror image of the function code partition;
burning the first mirror image into the memory chip, and integrating the second mirror image into a memory;
taking out the first mirror image from the storage chip, and starting the first mirror image for initialization;
and loading the file system in the first mirror image, and loading the second mirror image according to the file system.
2. The method of claim 1, wherein the method further comprises: the memory chip comprises a BIOS memory chip and a BMC memory chip; the memory includes a hard disk and a flash memory card.
3. The method of claim 2, wherein the method further comprises: the step of dividing the code in the memory chip into an initialization code partition and a functional code partition further comprises:
when the memory chip is the memory chip of the BIOS, the initializing code partition includes: CPU initialization code, memory initialization code, PCIe initialization code, input and output initialization code and file system code;
the functional code partitioning comprises: installation code, graphical code, system boot code, and custom code are created.
4. A method of solidifying memory chip capacity according to claim 3, characterized in that: the step of dividing the code in the memory chip into an initialization code partition and a functional code partition further comprises:
when the memory chip is the memory chip of the BMC, the initializing code partition includes: boot loader code, flash card controller driver code and first file system code;
the functional code partitioning comprises: system kernel code, file system code, and program code.
5. The method of claim 2, wherein the method further comprises: the step of integrating the second image into memory further comprises:
when the memory chip is the memory chip of the BIOS, integrating the second mirror image into an operating system of the hard disk;
and when the memory chip is a memory chip of the BMC, integrating the second mirror image into the flash memory card.
6. The method of claim 2, wherein the method further comprises: the step of starting the first image for initialization further comprises:
when the memory chip is the memory chip of the BIOS, taking the first mirror image out of the memory chip of the BIOS, executing the first mirror image, and performing an initialization process of the BIOS;
and when the memory chip is the memory chip of the BMC, taking the first mirror image out of the memory chip of the BMC, executing the first mirror image, and performing an initialization process of the BMC.
7. The method of claim 4, wherein the method further comprises: the step of loading the file system in the first image and loading the second image through the file system further comprises:
when the storage chip is the storage chip of the BIOS, loading the file system code in the first mirror image of the BIOS, and loading the second mirror image from the operating system of the hard disk by using the file system to enable the code in the second mirror image;
and when the memory chip is the memory chip of the BMC, loading the first file system code in the first mirror image of the BMC, and loading the second mirror image from the flash memory card by using the first file system, so that the code in the second mirror image can be enabled.
8. A system for solidifying memory chip capacity, comprising: the device comprises a partition adjusting module, a compiling module, a burning integration module, an initialization module and a loading module;
the partition adjusting module is used for adjusting the layout of codes in a memory chip and dividing the codes in the memory chip into an initialization code partition and a function code partition;
the compiling module is used for compiling the initialization code partition and the function code partition and generating a first mirror image of the initialization code partition and a second mirror image of the function code partition;
the burning integration module is used for burning the first mirror image into the storage chip and integrating the second mirror image into a memory;
the initialization module is used for starting the first mirror image to initialize;
the loading module is used for loading the file system in the first mirror image and loading the second mirror image according to the file system.
9. The system for solidifying memory chip capacity of claim 8, wherein: the initialization module comprises a BIOS initialization module and a BMC initialization module;
the BIOS initialization module is used for starting the first mirror image and executing an initialization process of the BIOS when the storage chip is a storage chip of the BIOS;
the BMC initialization module is used for starting the first mirror image and executing an initialization process of the BMC when the memory chip is a memory chip of the BMC.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of a method of solidifying memory chip capacity of any one of claims 1 to 7.
CN202110259249.4A 2021-03-10 2021-03-10 Method, system and medium for solidifying capacity of memory chip Pending CN113076110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110259249.4A CN113076110A (en) 2021-03-10 2021-03-10 Method, system and medium for solidifying capacity of memory chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110259249.4A CN113076110A (en) 2021-03-10 2021-03-10 Method, system and medium for solidifying capacity of memory chip

Publications (1)

Publication Number Publication Date
CN113076110A true CN113076110A (en) 2021-07-06

Family

ID=76612224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110259249.4A Pending CN113076110A (en) 2021-03-10 2021-03-10 Method, system and medium for solidifying capacity of memory chip

Country Status (1)

Country Link
CN (1) CN113076110A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722089A (en) * 2005-02-01 2006-01-18 苏州超锐微电子有限公司 Method for storing and operating high-capacity Boot ROM mirror
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN102662691A (en) * 2012-03-16 2012-09-12 苏州优康通信设备有限公司 New method for self extending memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722089A (en) * 2005-02-01 2006-01-18 苏州超锐微电子有限公司 Method for storing and operating high-capacity Boot ROM mirror
CN101763279A (en) * 2010-01-15 2010-06-30 上海维宏电子科技有限公司 BootLoader architectural design method
CN102662691A (en) * 2012-03-16 2012-09-12 苏州优康通信设备有限公司 New method for self extending memory

Similar Documents

Publication Publication Date Title
RU2402804C2 (en) Method of booting host device from mmc/sd device, host device bootable from mmc/sd device and mmc/sd device from which host device may be booted
CN105745617B (en) Selective power management for pre-boot firmware updates
CN101120324B (en) Memory management device and method for setting reserve area in memory device
JPH05265919A (en) Method and device for dynamically constituting device driver of removable computer device resource
US20120254831A1 (en) Supporting hardware configuration changes in a uefi firmware component
CN109324991B (en) Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment
TW201227516A (en) System and method for facilitating wireless communication during a pre-boot phase of a computing device
CN111382095A (en) Method and apparatus for host to adapt to role changes of configurable integrated circuit die
CN112748948B (en) PCIe switch work mode updating method and related assembly
CN110119623A (en) A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM
CN111857840A (en) BIOS starting method and device
US20080059781A1 (en) Method and Apparatus for Efficiently Arranging Portable Executable (Pe) Images
CN113642006A (en) Safe starting method of dual-core relay protection system
US10838861B1 (en) Distribution of memory address resources to bus devices in a multi-processor computing system
CN116243996A (en) Service operation switching method and device, storage medium and electronic device
US20100169069A1 (en) Composite device emulation
CN110955624B (en) Hot plug method, device and system of PCIE equipment
CN113656076A (en) BIOS starting method and device based on hardware multiplexing channel
JP2002288104A (en) Computer system, and method and program for its resource assigning
CN113064610A (en) Method, device and medium for updating BIOS
WO2000067132A1 (en) Combination ata/linear flash memory device
CN113076110A (en) Method, system and medium for solidifying capacity of memory chip
CN108958837B (en) Method, system and medium for dynamically configuring ME firmware
CN116848519A (en) Method and device for generating hardware interface signal and electronic equipment
CN110825421A (en) Firmware upgrading method and system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination