CN104461644A - Method of burning EC (embedded controller) firmware in made-in-China computer platforms - Google Patents

Method of burning EC (embedded controller) firmware in made-in-China computer platforms Download PDF

Info

Publication number
CN104461644A
CN104461644A CN201410786314.9A CN201410786314A CN104461644A CN 104461644 A CN104461644 A CN 104461644A CN 201410786314 A CN201410786314 A CN 201410786314A CN 104461644 A CN104461644 A CN 104461644A
Authority
CN
China
Prior art keywords
burning
sector
flash
file
firmware
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
CN201410786314.9A
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 Chaoyue Numerical Control Electronics Co Ltd
Original Assignee
Shandong Chaoyue Numerical Control Electronics 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 Chaoyue Numerical Control Electronics Co Ltd filed Critical Shandong Chaoyue Numerical Control Electronics Co Ltd
Priority to CN201410786314.9A priority Critical patent/CN104461644A/en
Publication of CN104461644A publication Critical patent/CN104461644A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method of burning EC (embedded controller) firmware in made-in-China computer platforms. The method includes: adding a functional interface FlashEC to an EC code to upwardly receive an ACPI (advanced configuration and power interface) command and to downwardly operate a SPIFLASH (serial peripheral interface flash) according to such command; adding a copy function to the EC code, finding an on-chip memory from an EC on-chip RAM (random access memory), copying a functional interface function from the FLASH to the EC on-chip RAM, and after copying, and directly redirecting to a FlashEC entry of the EC on-chip RAM to perform execution; running a burn application program running in an EFIShell environment to communicate with an EC, interact with FlashEC () of the EC, read binary files of the EC, transmit commands and data and transmit the data to the FlashEC. The method has the advantages that software burning tools can be used in mobile disks to burn the ECs under the EFIShell environments of the made-in-China computer platforms, the trouble of disassembly is omitted, and time of burning the EC firmware is greatly saved.

Description

A kind of method of home brewed computer platform burning EC firmware
Technical field
The present invention relates to EC firmware techniques field, be specifically related to a kind of method of home brewed computer platform burning EC firmware.
Technical background
Nowadays, the notebook of Domestic Platform starts slowly to rise.At use Godson, when the domestic CPU such as Shen Wei manufactures notebook, a chip being called EC can be used.EC chip is except CPU, outside the bridge of north and south, and an other important chip on mainboard.Use EC can do built-in keybad, touch pad, battery management, fan control, the functions such as power supply sequential.
In X86 computer industry, the software burning of EC is all carried out under DOS.But because domestic CPU can not run DOS system, so the software replication tool that EC manufacturer provides also cannot use.So can only the burning of choice for use cd-rom recorder or use debugging acid JTAG burning.Use cd-rom recorder burning, first will take casing apart, then take out the FLASH on mainboard, use corresponding cd-rom recorder to drive, coordinate cd-rom recorder to carry out programming.Use JTAG burning, first casing will be opened, debug machine and target mainboard are connected, then use the drive software of EC JTAG to carry out programming.No matter choice for use cd-rom recorder or select JTAG, when upgrading EC firmware, all invariably cannot will take machine apart, exposing mainboard, and then burning.The machine of tearing open needs to have gained some understanding to machine element, even if understand machine element, also the regular hour will be spent to take casing apart.So just cause the waste of manpower and unnecessary trouble.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention is in order to solve this trouble, write the software replication tool under a Domestic Platform, can under the EFI SHELL environment under Domestic Platform, software replication tool is placed in mobile disk burning is carried out to EC, so both eliminate the trouble of the machine of tearing open, and greatly save the time that burning EC firmware spends.
The present invention needs the realization of two parts function, and a part will add interface code (LPC communication communicates with SPI) in EC code, and another part will write a burning application tool under EFI SHELL.
The technical solution adopted in the present invention is:
A method for home brewed computer platform burning EC firmware, described method is included in EC code, adds functional interface FlashEC, up receives ACPI order, down according to command operation SPI FLASH;
A copy function is added in EC code, when program of writing with a brush dipped in Chinese ink is run, EC functional interface function can not operate in EC FLASH, so a slice internal memory will be found out in RAM on EC sheet, functional interface function to be copied to EC sheet in RAM from FLASH, after having copied, the FlashEC porch directly jumping into RAM on EC sheet performs;
Run a burning application program run in EFI Shell environment, be responsible for communicating with EC, mutual with the FashEC () in EC, be responsible for reading EC binary file, send order and send data, its data are passed to FlashEC.
Described data refer to EC firmware content.
Described order comprises chip erase command, sector check command, sector erasing order, page program command and dragging down with CS level, and CS level is drawn high.
In described method, the flow process of EC burning interface is:
1) EC is started;
2) programming pattern is entered;
3) forbid all interruptions of EC, copy on EC programming code all FLASH in RAM, and give programming code by program control power;
4) judged whether that order is sent to;
5) the finish command is judged whether;
6) when selecting no, fill order also repeats step 4;
7) when selecting to be, terminate.
The flow process of described burning application program is:
1) start, send FLASH device detection and receive orders, fetch equipment model;
2) read configuration file, determine the order code corresponding to command adapted thereto;
3) select printer function option: 1, download FLASH data, 2, fast programming FLASH, 3 programme FLASH entirely;
4) select 1, create message part, send order, and be saved in file, step 11)
5) select 2, open the file wanting burning, and file reading size, calculate the sector number that it takies, then verification also burning from first sector;
6) judge all whether all burning is complete in sector, in this way, then step 11)
7) as no, then carry out sector verification, judge that whether FLASH is consistent with file content, in this way, then repeat step 6);
8) as no, then carry out sector erasing, by Page Program, file content is burnt to current sector, then repeats step 6);
6) select 3, open the file wanting burning, and file reading size, calculate the sector number that it takies;
7) chip erase is carried out;
8) verification also burning from first sector;
9) judge all whether all burning is complete in sector, in this way, then step 11)
10) as no, by Page Program, file content is burnt to current sector, then repeats step 9);
11) EOP (end of program).
Beneficial effect of the present invention is: the present invention can under the EFI SHELL environment under Domestic Platform, software replication tool is placed in mobile disk burning is carried out to EC, so both eliminate the trouble of the machine of tearing open, and greatly save the time that burning EC firmware spends.
Accompanying drawing explanation
Fig. 1 is EC burning Interface Flowchart figure of the present invention;
Fig. 2 is burning application flows figure of the present invention.
Embodiment
With reference to the accompanying drawings, by embodiment, the present invention is further described:
A method for home brewed computer platform burning EC firmware, described method is included in EC code, adds functional interface FlashEC, up receives ACPI order, down according to command operation SPI FLASH; Because EC firmware leaves in SPI FLASH, so in EC code, add the code of operation SPI FLASH, comprise the erasing of chip, the verification of sector and page programming; Also to add interface (this program the uses 0x62/0x66 port) code held with HOST and communicate simultaneously.
In order to carry out the renewal of EC firmware smoothly, also to the code of this two parts function be copied on EC sheet in RAM from SPI FLASH, while this two parts function code can be allowed like this to run, not affecting the renewal of SPI FLASH.A copy function is added in EC code, when program of writing with a brush dipped in Chinese ink is run, EC functional interface function can not operate in EC FLASH, so a slice internal memory will be found out in RAM on EC sheet, functional interface function to be copied to EC sheet in RAM from FLASH, after having copied, the FlashEC porch directly jumping into RAM on EC sheet performs;
Run a burning application program run in EFI Shell environment, be responsible for communicating with EC, mutual with the FashEC () in EC, be responsible for reading EC binary file, send order and send data, its data are passed to FlashEC.
Described data refer to EC firmware content.
Described order comprises chip erase command, sector check command, sector erasing order, page program command and dragging down with CS level, and CS level is drawn high.
As shown in Figure 1, in described method, the flow process of EC burning interface is:
1) EC is started;
2) programming pattern is entered;
3) forbid all interruptions of EC, copy on EC programming code all FLASH in RAM, and give programming code by program control power;
4) judged whether that order is sent to;
5) the finish command is judged whether;
6) when selecting no, fill order also repeats step 4;
7) when selecting to be, terminate.
As shown in Figure 2, the flow process of described burning application program is:
1) start, send FLASH device detection and receive orders, fetch equipment model;
2) read configuration file, determine the order code corresponding to command adapted thereto;
3) select printer function option: 1, download FLASH data, 2, fast programming FLASH, 3 programme FLASH entirely;
4) select 1, create message part, send order, and be saved in file, step 11)
5) select 2, open the file wanting burning, and file reading size, calculate the sector number that it takies, then verification also burning from first sector;
6) judge all whether all burning is complete in sector, in this way, then step 11)
7) as no, then carry out sector verification, judge that whether FLASH is consistent with file content, in this way, then repeat step 6);
8) as no, then carry out sector erasing, by Page Program, file content is burnt to current sector, then repeats step 6);
6) select 3, open the file wanting burning, and file reading size, calculate the sector number that it takies;
7) chip erase is carried out;
8) verification also burning from first sector;
9) judge all whether all burning is complete in sector, in this way, then step 11)
10) as no, by Page Program, file content is burnt to current sector, then repeats step 9);
11) EOP (end of program).
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

1. a method for home brewed computer platform burning EC firmware, is characterized in that: described method is included in EC code, adds functional interface FlashEC, up receives ACPI order, down according to command operation SPI FLASH; In EC code, add a copy function, EC sheet finds out a slice internal memory in RAM, copies to EC sheet in RAM by functional interface function from FLASH, after having copied, the FlashEC porch directly jumping into RAM on EC sheet performs; Run a burning application program run in EFI Shell environment, be responsible for communicating with EC, mutual with the FashEC () in EC, be responsible for reading EC binary file, send order and send data, its data are passed to FlashEC.
2. the method for a kind of home brewed computer platform burning EC firmware according to claim 1, is characterized in that: described data refer to EC firmware content.
3. the method for a kind of home brewed computer platform burning EC firmware according to claim 1, is characterized in that: described order comprises chip erase command, sector check command, sector erasing order, page program command and dragging down with CS level, and CS level is drawn high.
4. the method for a kind of home brewed computer platform burning EC firmware according to claim 1,2 or 3, it is characterized in that, in described method, the flow process of EC burning interface is:
1) EC is started;
2) programming pattern is entered;
3) forbid all interruptions of EC, copy on EC programming code all FLASH in RAM, and give programming code by program control power;
4) judged whether that order is sent to;
5) the finish command is judged whether;
6) when selecting no, fill order also repeats step 4;
7) when selecting to be, terminate.
5. the method for a kind of home brewed computer platform burning EC firmware according to claim 1,2 or 3, it is characterized in that, the flow process of described burning application program is:
1) start, send FLASH device detection and receive orders, fetch equipment model;
2) read configuration file, determine the order code corresponding to command adapted thereto;
3) select printer function option: 1, download FLASH data, 2, fast programming FLASH, 3 programme FLASH entirely;
4) select 1, create message part, send order, and be saved in file, step 11)
5) select 2, open the file wanting burning, and file reading size, calculate the sector number that it takies, then verification also burning from first sector;
6) judge all whether all burning is complete in sector, in this way, then step 11)
7) as no, then carry out sector verification, judge that whether FLASH is consistent with file content, in this way, then repeat step 6);
8) as no, then carry out sector erasing, by Page Program, file content is burnt to current sector, then repeats step 6);
6) select 3, open the file wanting burning, and file reading size, calculate the sector number that it takies;
7) chip erase is carried out;
8) verification also burning from first sector;
9) judge all whether all burning is complete in sector, in this way, then step 11)
10) as no, by Page Program, file content is burnt to current sector, then repeats step 9);
11) EOP (end of program).
CN201410786314.9A 2014-12-18 2014-12-18 Method of burning EC (embedded controller) firmware in made-in-China computer platforms Pending CN104461644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410786314.9A CN104461644A (en) 2014-12-18 2014-12-18 Method of burning EC (embedded controller) firmware in made-in-China computer platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410786314.9A CN104461644A (en) 2014-12-18 2014-12-18 Method of burning EC (embedded controller) firmware in made-in-China computer platforms

Publications (1)

Publication Number Publication Date
CN104461644A true CN104461644A (en) 2015-03-25

Family

ID=52907749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410786314.9A Pending CN104461644A (en) 2014-12-18 2014-12-18 Method of burning EC (embedded controller) firmware in made-in-China computer platforms

Country Status (1)

Country Link
CN (1) CN104461644A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607929A (en) * 2015-12-18 2016-05-25 合肥联宝信息技术有限公司 System and method for programming EC in computer device
CN107741855A (en) * 2017-09-05 2018-02-27 广东虹勤通讯技术有限公司 A kind of hardware program update method, computing device and readable storage medium storing program for executing
CN110333900A (en) * 2019-06-29 2019-10-15 沃太能源南通有限公司 A method of BOOT in upgrading single-chip microcontroller memory
CN112083880A (en) * 2020-08-20 2020-12-15 厦门市美亚柏科信息安全研究所有限公司 Mobile phone system file online modification method and device and storage medium
CN117931246A (en) * 2024-03-19 2024-04-26 天固信息安全***(深圳)有限公司 Method and device for upgrading EC firmware, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177709A1 (en) * 2004-02-07 2005-08-11 Lg Electronics Inc. Apparatus and method for updating firmware
CN1892587A (en) * 2005-07-08 2007-01-10 福菱电子股份有限公司 Insert-type controller and method for renewing fixer
CN102629212A (en) * 2012-04-28 2012-08-08 广东宝莱特医用科技股份有限公司 Method for indirectly programming to NANDFLASH based on J-LINK
CN202394528U (en) * 2011-11-25 2012-08-22 航天信息股份有限公司 Programming device for storage board
CN103677885A (en) * 2012-09-21 2014-03-26 厦门雅迅网络股份有限公司 ARM FLASH simple program programming method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050177709A1 (en) * 2004-02-07 2005-08-11 Lg Electronics Inc. Apparatus and method for updating firmware
CN1892587A (en) * 2005-07-08 2007-01-10 福菱电子股份有限公司 Insert-type controller and method for renewing fixer
CN202394528U (en) * 2011-11-25 2012-08-22 航天信息股份有限公司 Programming device for storage board
CN102629212A (en) * 2012-04-28 2012-08-08 广东宝莱特医用科技股份有限公司 Method for indirectly programming to NANDFLASH based on J-LINK
CN103677885A (en) * 2012-09-21 2014-03-26 厦门雅迅网络股份有限公司 ARM FLASH simple program programming method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HERMIONEWHN: "《Intel新EC FW升级说明_20140504》", 《百度文库》 *
SNOWFLYIN: "《NAND FLASH烧录说明(D2800)》", 《百度文库》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607929A (en) * 2015-12-18 2016-05-25 合肥联宝信息技术有限公司 System and method for programming EC in computer device
CN105607929B (en) * 2015-12-18 2019-02-19 合肥联宝信息技术有限公司 The system and method for burning is carried out to the EC in computer equipment
CN107741855A (en) * 2017-09-05 2018-02-27 广东虹勤通讯技术有限公司 A kind of hardware program update method, computing device and readable storage medium storing program for executing
CN110333900A (en) * 2019-06-29 2019-10-15 沃太能源南通有限公司 A method of BOOT in upgrading single-chip microcontroller memory
WO2021000535A1 (en) * 2019-06-29 2021-01-07 沃太能源南通有限公司 Method for upgrading boot in memory of single chip microcomputer
CN112083880A (en) * 2020-08-20 2020-12-15 厦门市美亚柏科信息安全研究所有限公司 Mobile phone system file online modification method and device and storage medium
CN112083880B (en) * 2020-08-20 2023-05-16 厦门市美亚柏科信息安全研究所有限公司 Mobile phone system file online modification method, device and storage medium
CN117931246A (en) * 2024-03-19 2024-04-26 天固信息安全***(深圳)有限公司 Method and device for upgrading EC firmware, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104461644A (en) Method of burning EC (embedded controller) firmware in made-in-China computer platforms
TWI465901B (en) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
CN102760090B (en) Debugging method and computer system
US8266611B2 (en) Hard disk drive with disk embedded DOS boot image and firmware download method
CN110618892B (en) Bug positioning method and device of solid state disk, electronic equipment and medium
CN105760191A (en) Embedded system equipment programming mass production method
KR20160049956A (en) Mobile divece and operating method thereof
TWI421686B (en) Data access method and system, storage medium controller and storage system
CN105579953A (en) Flexible bootstrap code architecture
CN102479121A (en) Method for realizing and testing redundant array of independent disks (RAID)
CN101169729A (en) Embedded type system and method for renewing application program
CN109614118B (en) SPI Flash firmware burning method and device
CN102736861B (en) Memory configuration method, Memory Controller and memorizer memory devices
CN110825421B (en) Firmware upgrading method, system and readable storage medium
CN105677429A (en) Program burning method, processor and electronic circuit
CN103294591A (en) Method for detecting crossing use of mobile storage equipment
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN103365685A (en) Super authority method and super authority device based on android
CN102200890B (en) Storage device for generating virtual disk-recording driver and method thereof
CN103136010A (en) Firmware update method and firmware update device capable of being used by firmware update method
CN100530093C (en) Method for resetting starting system
TWI454908B (en) Memory configuring method, memory controller and memory storage apparatus
CN108628619A (en) Method for updating program and device
JP2006293824A (en) Semiconductor device
CN102750167A (en) Method and device for starting application program and computer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325