CN1936856A - Method for measuring internal memory using self-starting microoperation system - Google Patents
Method for measuring internal memory using self-starting microoperation system Download PDFInfo
- Publication number
- CN1936856A CN1936856A CN 200510104126 CN200510104126A CN1936856A CN 1936856 A CN1936856 A CN 1936856A CN 200510104126 CN200510104126 CN 200510104126 CN 200510104126 A CN200510104126 A CN 200510104126A CN 1936856 A CN1936856 A CN 1936856A
- Authority
- CN
- China
- Prior art keywords
- internal storage
- internal
- storer
- bios
- testing
- 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
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
This invention discloses an inner memorizer testing method by using self-startup micro operation system. It includes the following steps: integrate a inner memorizer testing program into a self-startup micro operation system and combine this system with a computer whose inner memorizer is being tested; BIOS startup and the micro operation system becomes the controller; move the BIOS code of the memory medium to certain regions of the inner memorizer; enter the protected mode of the inner memorizer testing and initialize certain part of the register; select testing program to test the inner memorizer.
Description
Technical field
The present invention relates to a kind of method that the internal storage of computer system is tested, particularly a kind of method of utilizing self-starting micro OS testing inner storer.
Background technology
Internal storage is one of important composition parts of computer system, and whether its work normally is directly connected to performance of computer systems.Therefore,, promptly can cause the system read-write mistake, cause data to omit or lose, thereby bring great loss and puzzlement to the user in case internal storage breaks down or its inner some small wrong generation.Therefore, regular internal storage in the computer system is tested then seems particularly important.
At present, the testing staff when doing internal storage test often at operating system (Operating System, be called for short: utilize a memory test program that the address space of internal system storer is carried out reading and writing data or data access after OS) starting, thereby reach the purpose that internally deposits into the row test.Test has significant limitation but this known internal storage testing method is for internal storage.That is: generally, described memory test program must depend on a certain operating system, that is to say that test procedure must could carry out the internal memory detection algorithm internal storage is tested behind os starting, and existing any operating system itself all needs to take a part of internal memory space, but, therefore will certainly cause the imperfection of internal storage test because present internal-memory detection method still can't be grasped the accessibility (promptly being difficult to know the zone of the internal storage that the system of being operated takies) of that part of internal memory space that the system of being operated takies comprehensively.For example: under dos operating system during the testing inner storer, the internal memory space of the 64K byte that is taken at first by dos operating system can not be detected when test fully, and this will cause the imperfection of testing; And for the Windows operating system environment, can visit during test and detected be virtual internal storage, and specified real physical internal storer be actually visit less than; For (SuSE) Linux OS, because the internal memory space that linux system takies is divided into user (user) space and kernel (core) space, when testing inner storer under (SuSE) Linux OS, memory headroom about nearly 1G byte is taken by system kernel, can't conduct interviews and tests it at all.Therefore, in sum, how can reduce the shared internal memory space of operating system or know the internal memory address space that system program is shared, become a great problem of being badly in need of solution in the industry.
Summary of the invention
In order to solve problem and the defective in the above-mentioned known technology, the object of the present invention is to provide a kind of method of utilizing self-starting micro OS testing inner storer, it uses in the internal storage testing process of computer system, this method may further comprise the steps: integrate in internal storage test procedure to the self-starting micro OS, and this micro OS is combined with the computer system with internal memory to be measured; After computer system BIOS starts, give micro OS with system's control and take over; Automatically the bios code of storage medium is moved to the appointed area of internal system storer by bios program; Search the boot sector of hard disk in the system and carry out necessary bootup process by bios program; The go forward side by side initializing set of segment register of line correlation of the protected mode that makes system enter internal storage test; And call the internal storage test procedure, to carry out the internal memory detection algorithm internal storage is tested.
According to the method for testing inner storer of the present invention, wherein also comprise the steps: before system enters the protected mode of described memory test, to load a GDT Global Descriptor Table in advance.
According to the method for testing inner storer of the present invention, wherein also comprised the steps: before calling described internal storage test procedure, scavenge system video displaying contents, and create the abnormality processing handle.
Method according to testing inner storer of the present invention, the wherein said bios code of storage medium being moved to the appointed area of internal system storer automatically by bios program is that the code of 0x7c00 section in the internal storage is moved to the 0x9000 place, then code in the hard disk is transplanted to the 0x10000 place.
According to the method for testing inner storer of the present invention, wherein said relevant segment register comprises CS, DS, ES, FS, five kinds of segment registers of GS.
Method according to testing inner storer of the present invention, wherein said internal memory detection algorithm is by write specific numerical value in all physics address spaces in internal storage, and then read this numerical value and compare, thereby realize the various internal memory detection algorithms of internal storage test with former numerical value.
In sum, the invention has the advantages that:
A kind of method of utilizing self-starting micro OS testing inner storer of the present invention, when having broken away from internal storage test in the past to imperfection and the difficult controllability of the dependence of well-known operations system and the memory test that causes thus, it is by customization one self-starting micro OS, and with after this self-starting micro OS and the integration of internal storage test procedure, install or be attached to computer system, with the purpose that realizes internal storage in the system is detected with internal memory to be measured.Because this self-starting micro OS in customization procedure, can increase and delete the program of unnecessary detection system hardware arbitrarily according to tester's needs.For example, if do not need to detect PCI (Peripheral Component Interconnect technology) equipment, then can only keep the internal storage test procedure, and need not to carry out other unnecessary test job, thereby make this self-starting micro OS install or be attached in the computer system and after the oneself starts, the internal memory space that its system program takies is minimum, has improved the test specification of internal storage greatly.And because the zone of can the initialization system program shared internal storage of method of testing of the present invention, program is placed in the memory address space that the tester is familiar with, thereby make the tester in the testing process of internal memory, realized integral monitoring and full test basically to internal storage.
Description of drawings
Fig. 1 is a kind of steps flow chart synoptic diagram that utilizes the method for self-starting micro OS testing inner storer of the present invention.
Wherein, description of reference numerals is as follows:
Step 100 is integrated in internal storage test procedure to the self-starting micro OS, and this micro OS is combined with the computer system with internal memory to be measured
After step 200 computer system BIOS starts, give micro OS with system's control and take over
Step 300 is moved the bios code of storage medium to the appointed area of internal system storer automatically by bios program
Step 400 is searched the boot sector of hard disk in the system by bios program and is carried out necessary bootup process
Step 500 is loaded a GDT Global Descriptor Table in advance in system
The go forward side by side initializing set of segment register of line correlation of the protected mode that step 600 makes system enter internal storage test
Step 700 scavenge system video displaying contents is also created the abnormality processing handle
Step 800 is called the internal storage test procedure, to carry out the internal memory detection algorithm internal storage is tested
Embodiment
Below, will elaborate to preferred implementation of the present invention in conjunction with the accompanying drawings.
Please refer to Fig. 1, this figure is a kind of steps flow chart synoptic diagram that utilizes the method for self-starting micro OS testing inner storer of the present invention.As shown in the figure, a kind of method of utilizing self-starting micro OS testing inner storer of the present invention is used in the internal storage testing process of computer system, and this method may further comprise the steps:
Integrate in internal storage test procedure to the self-starting micro OS, and with this micro OS (with mounting means) combine with the computer system with internal memory to be measured (step 100);
After computer system BIOS starts, give micro OS with system's control and take over (step 200);
Automatically the bios code of storage medium is moved appointed area (step 300) by bios program to the internal system storer, wherein automatically the bios code of storage medium being moved to the appointed area of internal system storer by bios program can be the code (512 byte) of 0x7c00 section in the internal storage to be moved automatically by bios program (purpose of doing like this is in order to allow the test code of micro OS not conflict mutually with system bios to the 0x9000 place, certainly this position is not necessarily just at the 0x9000 place, also can lean on the back, but get used to this), and then code in the hard disk is transplanted to 0x100000 (or the above position of 1M) locates, need to prove herein, if we forward bios code in internal storage 0x9000 place loading, so Sheng Xia memory headroom can return the user to use, and wherein the shared memory address space scope of user program can be 0x07E00 to 0x9FFFF;
Search the boot sector of hard disk in the system and carry out necessary bootup process (step 400) by bios program, in this step, system bios is with first sector (512 byte) loading internal storer of the disk checked, and be placed on 0x9020 section place (this is the conventional way of BIOS), if latter two byte of this sector is " 55 AA ", a Here it is so boot sector, this disk is a bootable dish just.The program that common this size is 512 bytes just is called boot (Boot), and how it moves in order to program that boot sector loads, and the position of indication operation.If latter two byte of this sector is not " 55 AA ", system bios will be checked next disc driver so, until finding bootable disk.
Finish that basic bios code is moved and necessary bootup process after (mainly being the operation of setting the protected mode of internal storage test), in system, load a GDT (English full name: Global Descriptor Table (step 500) Global Describtor Table) in advance, must load this GDT Global Descriptor Table enter the protected mode of internal storage test in system before, its objective is in order to allow system testing program under protected mode, visit memory address space greater than the 1M byte;
Make system enter the protected mode of internal storage test (so that the code of testing inner storer can be placed in the above memory address space of 1M byte; so that enter the substance test stage of follow-up internal storage) initializing set (step 600) of the segment register of the line correlation of going forward side by side; wherein Xiang Guan segment register comprises CS; DS; ES; FS; five kinds of segment registers of GS; for example; can set code segment register CS=10h at this; setting data segment register DS=18h and setting additional data segment register ES=18h; additional data segment register FS=18h and additional data segment register GS=18h; in order to the data segment of extended register (in 8086/8088 microprocessor; four kinds of registers of depositing sector address are specially arranged; be respectively code segment CS; data segment DS, stack segment SS and additional sections ES; FS and GS register.Every kind of segment register can be stipulated the start address of a section, and each section has purposes separately, and code segment is deposited the program of current operation, and data segment is deposited the used data of current working procedure.If used the string manipulation instruction in the program, then its source operand leaves in the data segment.Stack segment has defined the location of storehouse, storehouse is a kind of data structure, it has opened up a more special memory block, and visit this zone with the principle that last in, first out, additional sections is the data segment that adds, it is an auxiliary data field, and for the string manipulation instruction, it is the zone that destination operand is deposited.When the user when programming, should be placed on the each several part of program in the section of regulation by afore mentioned rules);
Scavenge system video displaying contents (English full name: Clear Video Display), and create abnormality processing handle (id number of a string numerical value form) (step 700);
Call the internal storage test procedure, to carry out the internal memory detection algorithm internal storage is tested (step 800), wherein said internal memory detection algorithm can be by write specific numerical value in all physics address spaces in internal storage, and then read this numerical value and compare with former numerical value, thereby realize the various internal memory detection algorithms of internal storage test, known internal memory detection algorithm is a lot, now simply introduces following three kinds:
1, the position line (Address line) detection algorithm: the address wire at internal storage is tested, with 2
uAs the address, in the address, write fixed value successively, read out then and the initial value contrast, identical newspaper passes through (PASS), otherwise, report break down (FAIL).
2, Walk 0 (a kind of internal storage detection algorithm): get the internal storage sector address and write 0, read then and 0 comparison, identical newspaper passes through (PASS), otherwise, report break down (FAIL).
3, Walk 1 (a kind of internal storage detection algorithm): get the internal storage sector address and write 1, read then and 1 comparison, identical newspaper passes through (PASS), otherwise, report break down (FAIL).
Though preferred implementation of the present invention openly as above, is not in order to limit the present invention.Those skilled in the art will appreciate that under the situation that does not break away from the disclosed scope and spirit of the present invention of appending claims of the present invention that variation of being made and modification all belong in the scope of claims of the present invention.Please refer to appending claims about the protection domain that the present invention defined.
Claims (6)
1, a kind of method of utilizing self-starting micro OS testing inner storer, it uses in the internal storage testing process of computer system, and this method may further comprise the steps:
Integrate in internal storage test procedure to the self-starting micro OS, and this micro OS is combined with the computer system with internal memory to be measured;
After described computer system BIOS starts, give described micro OS with system's control and take over;
Automatically the bios code of storage medium is moved to the appointed area of internal system storer by bios program;
Search the boot sector of hard disk in the system and carry out necessary bootup process by described bios program;
The go forward side by side initializing set of segment register of line correlation of the protected mode that makes system enter internal storage test; And
Call the internal storage test procedure, described internal storage is tested to carry out the internal memory detection algorithm.
2, the method for testing inner storer as claimed in claim 1 is characterized in that, also comprises the steps:
Before system enters the protected mode of described memory test, load a GDT Global Descriptor Table in advance.
3, the method for testing inner storer as claimed in claim 1 is characterized in that, also comprises the steps:
Before calling described internal storage test procedure, scavenge system video displaying contents, and create the abnormality processing handle.
4, the method for testing inner storer as claimed in claim 1, it is characterized in that, the described bios code of storage medium being moved to the appointed area of internal system storer automatically by bios program is that the code of 0x7c00 section in the internal storage is moved to the 0x9000 place, then code in the hard disk is transplanted to the 0x10000 place.
5, the method for testing inner storer as claimed in claim 1 is characterized in that, described relevant segment register comprises CS, DS, ES, FS, five kinds of segment registers of GS.
6, the method for testing inner storer as claimed in claim 1, it is characterized in that, described internal memory detection algorithm is by write specific numerical value in all physics address spaces in internal storage, and then read this numerical value and compare, thereby realize the various internal memory detection algorithms of internal storage test with former numerical value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510104126 CN1936856A (en) | 2005-09-19 | 2005-09-19 | Method for measuring internal memory using self-starting microoperation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510104126 CN1936856A (en) | 2005-09-19 | 2005-09-19 | Method for measuring internal memory using self-starting microoperation system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1936856A true CN1936856A (en) | 2007-03-28 |
Family
ID=37954367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200510104126 Pending CN1936856A (en) | 2005-09-19 | 2005-09-19 | Method for measuring internal memory using self-starting microoperation system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1936856A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101470649B (en) * | 2007-12-26 | 2011-03-09 | 英业达股份有限公司 | Automatic reboot test method |
CN101639797B (en) * | 2008-07-30 | 2011-05-04 | 鸿富锦精密工业(深圳)有限公司 | Memory detection circuit |
CN102930903A (en) * | 2012-10-26 | 2013-02-13 | 华为技术有限公司 | Memory testing method and device |
CN105843719A (en) * | 2016-04-19 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Embedded server testing method |
-
2005
- 2005-09-19 CN CN 200510104126 patent/CN1936856A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101470649B (en) * | 2007-12-26 | 2011-03-09 | 英业达股份有限公司 | Automatic reboot test method |
CN101639797B (en) * | 2008-07-30 | 2011-05-04 | 鸿富锦精密工业(深圳)有限公司 | Memory detection circuit |
CN102930903A (en) * | 2012-10-26 | 2013-02-13 | 华为技术有限公司 | Memory testing method and device |
CN102930903B (en) * | 2012-10-26 | 2015-09-09 | 华为技术有限公司 | A kind of internal storage testing method and equipment |
CN105843719A (en) * | 2016-04-19 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Embedded server testing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8370835B2 (en) | Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device | |
US7366887B2 (en) | System and method for loading programs from HDD independent of operating system | |
US10621112B2 (en) | System and method of identifying a device driver | |
US7917689B2 (en) | Methods and apparatuses for nonvolatile memory wear leveling | |
US7689802B2 (en) | Controlling memory access in a multi-booting system | |
US20120117367A1 (en) | Electronic apparatus and booting method thereof | |
US8180930B2 (en) | Information processing device, and device initialization method in the information processing device | |
CN101201776A (en) | Method for integrating and testing platform of multiple operating systems | |
US20060136690A1 (en) | Storage device having independent storage areas and password protection method thereof | |
WO2016177067A1 (en) | Mobile phone memory expanding method and terminal | |
US7861074B2 (en) | Electronic systems using flash memory modules as main storage and related system booting methods | |
US20140372710A1 (en) | System and method for recovering from an unexpected shutdown in a write-back caching environment | |
US20090013167A1 (en) | Computer device, method for booting the same, and booting module for the same | |
US20060288197A1 (en) | Identifying an operating system associated with a boot path | |
US8806146B2 (en) | Method and system to accelerate address translation | |
CN1936856A (en) | Method for measuring internal memory using self-starting microoperation system | |
US10620867B2 (en) | System and method for performing wear leveling at a non-volatile firmware memory | |
JP2015114750A (en) | Examination program, information processing device, and information processing method | |
US20080235436A1 (en) | Storage access control | |
CN111930575B (en) | Firmware acquisition method and device and electronic equipment | |
US7293207B2 (en) | Method for testing memory in a computer system utilizing a CPU with either 32-bit or 36-bit memory addressing | |
US20090259835A1 (en) | System and method for tracking and recording system configurations of electronic devices | |
US9489255B2 (en) | Dynamic array masking | |
CN111694580A (en) | Method and device for upgrading and initializing storage device and electronic device | |
KR101120956B1 (en) | Portable multi-platform booting systems and architectures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |