CN102880487B - A kind of method of one-touch burning firmware of network card - Google Patents

A kind of method of one-touch burning firmware of network card Download PDF

Info

Publication number
CN102880487B
CN102880487B CN201210333453.7A CN201210333453A CN102880487B CN 102880487 B CN102880487 B CN 102880487B CN 201210333453 A CN201210333453 A CN 201210333453A CN 102880487 B CN102880487 B CN 102880487B
Authority
CN
China
Prior art keywords
mac address
burning
text
eeprom
txt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210333453.7A
Other languages
Chinese (zh)
Other versions
CN102880487A (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.)
Dawning Information Industry Beijing Co Ltd
Dawning Information Industry Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201210333453.7A priority Critical patent/CN102880487B/en
Publication of CN102880487A publication Critical patent/CN102880487A/en
Application granted granted Critical
Publication of CN102880487B publication Critical patent/CN102880487B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of method of one-touch burning firmware of network card, the burning tool utilizing manufacturer to provide, by burning boot? the order of code and config option, comprising MAC Address writes in an autoexec, often perform once this autoexec simultaneously, does MAC Address just add 1, thus realizes the boot of network interface card? code is identical with config option, and the MAC Address of each network interface card is different.As long as the method strikes a key, then more new capital of whole firmware will complete automatically, and the convenient and swift raising being beneficial to production efficiency, avoids the maloperation of direct labor.

Description

A kind of method of one-touch burning firmware of network card
Technical field
The present invention relates to a kind of method of burning firmware of network card, be specifically related to a kind of method of one-touch burning firmware of network card.
Background technology
The major function introduction of network interface card firmware: first network interface card firmware is made up of bootcode and config config option, bootcode is used for initialization network interface card and enters into an original operating state, then can revise config config option to reach and the demand selecting to reach us is configured to the several functions of some configurable selections of network interface card, in addition, a very important config option (MAC Address) of network interface card is included in config option.
Based on above situation, usual network interface card manufacturer all can provide a burning tool(if the executable file under dos operating system is as replication tool), the firmware(carrying out burning network interface card by keying in order comprises bootcode and config config option).
But these instruments often need to key in a lot of complicated order and parameter, for very numerous and diverse, inefficiency direct labor, and easily make mistakes, especially the MAC Address that MAC Address relates to the more and each input of the number that will input can not repeat, but often direct labor easily inputs MAC Address by mistake, adopt method of the present invention then can avoid these problems.
Some technician also can write some batch processings to comprise the order that those upgrade firmware at present, but MAC Address is then still needed to key in manually, because MAC Address is longer, it is six sections, every section is again two sexadecimal numbers, middle also have colon to separate as 00:10:18:D3:01:01, keys in efficiency low, and easily cause maloperation.
Write now burn recording MAC address and usually have three kinds of methods: first, generate the method for random number as MAC Address, second, our MAC Address scheme of writing of artificial key entry, 3rd, electron scanning rifle is had to scan MAC Address bar-code schemes, the first scheme, although the probability producing the MAC Address that random number duplicates is very little, but still still likely produce the MAC Address of repetition, once MAC Address repeats, clash, network interface card will be caused normally to use, second method manually keys in MAC Address easily because maloperation causes MAC Address to repeat, network interface card is caused normally to use, the third method, if need the MAC Address of burning many especially, corresponding bar code is also just many especially, operate consuming time many, and easily maloperation, heavy industry waste a lot of time back and forth, inefficiency.
Summary of the invention
For the deficiencies in the prior art, the invention provides a kind of method of one-touch burning firmware of network card, as long as the method strikes a key, then more new capital of whole firmware will complete automatically, and the convenient and swift raising being beneficial to production efficiency, avoids the maloperation of direct labor.
The solution of the present invention adopts following technical proposals to realize:
A method for one-touch burning firmware of network card, its improvements are, described method comprises the steps:
The first step: make DOS boot disk;
Second step: replication tool tool is put in described DOS boot disk;
3rd step: newly-built autoexec;
4th step: newly-built deposit MAC Address variable need to change field text, newly-built deposit fill order step text, newly-builtly deposit burning and cross the text of MAC Address and newly-builtly deposit the text that the number of EEPROM is crossed in burning;
5th step: initialize is to the text depositing MAC Address variable field;
6th step: need read the value of MAC Address variable the text of change field and form complete MAC Address from depositing MAC Address variable, the order of config option and renewal network interface card firmware, to config option, is write in the text depositing fill order step by assignment;
7th step: by complete for each for MAC Address variable field burning rear automatically add 1 and be saved in deposit MAC Address variable need change field text in, the MAC Address of burning is saved in and deposits burning and cross in the text of MAC Address, total EEPROM number of burning is saved in and deposits burning and cross in the text of the number of EEPROM;
8th step: perform autoexec under dos operating system;
9th step: after the EEPROM more renewed, key in 1 under DOS prompt after, carriage return then starts the firmware of another network interface card of burning EEPROM; The firmware of the different network interface card EEPROM of circulation burning like this.
Wherein, described 3rd step, described autoexec 1.bat represents.
Wherein, in described 4th step, MAC Address is made up of variable field and fixed field, described in deposit MAC Address variable and need to change the text of field and represent with temp.txt; The described text depositing fill order step represents with config.txt; Describedly deposit the text that burning crosses MAC Address and represent with BCM5709S_MAC_ALL.TXT; Describedly deposit the text that burning crosses the number of EEPROM and represent with EEPROM_count.txt.
Wherein, in described 6th step, complete MAC Address comprises variable field and fixed field; Described variable field and MAC Address variable field.
The described text depositing fill order step supplies firmware burning routine call.
Wherein, in described 7th step, described in deposit text that burning crosses the number of EEPROM for inquiry.
Explanation to MAC fixed field a: MAC Address forms by six sections, X0X1:X2X3:X4X5:X6X7:X8X9:X10X11, such as: if need different MAC Address quantity to be 16, then only need select X0 ~ X11 (totally 12 16 system numbers) wherein any one indications make variable and go to change it, then can there be 16 kinds of MAC Address (field of MAC Address is 16 systems entirely), and other 11 sexadecimal numbers are not made and are changed, if need to write 256 MAC Address, as long as then change two sexadecimal numbers, it is exactly said fixed field that all the other 10 16 system numbers do not make what change, this fixed field is not do not allow to change, just do not need in practice to write so much MAC Address, in order to writing conveniently and the regular consideration of MAC Address of program, fix these sexadecimal numbers.
Compared with the prior art, the beneficial effect that the present invention reaches is:
The method of a kind of one-touch burning firmware of network card (firmware) provided by the invention, the convenient and swift raising being beneficial to production efficiency, and the maloperation of direct labor can be avoided.
Method of the present invention is by the automatic regular change of the present invention due to MAC Address, and is automatic burning, thus avoids the maloperation that much may occur, can greatly enhance productivity, thus can bring a lot of economic benefit.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of one-touch burning firmware of network card method provided by the invention.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
Method of the present invention is the replication tool tool utilizing the provider of network card chip to provide, by the order of burning bootcode and config option, comprising MAC Address writes in an autoexec, often perform once this autoexec simultaneously, MAC Address just adds 1, thus the bootcode realizing network interface card is identical with config option, and the MAC Address of each network interface card is different.
After difficult point of the present invention is to realize the firmware of the complete network card chip of each burning, need MAC Address to add 1, use to next network card chip, because DOS finishes drilling, composition notebook file is more difficult.For the BCM5709S of Broadcom company, this concrete implementation step of inventing is described; although the concrete methods of realizing of other network interface cards can not be identical with code; but substantially use for reference thought of the present invention and partial code, all should in the protection domain of this invention.
For the BCM5709S of Broadcom company, as shown in Figure 1, concrete steps are as follows for the flow process of one-touch burning firmware of network card method provided by the invention:
The first step: make DOS boot disk; Because the replication tool tool of the burning firmware that the provider of most of network card chip provides is based on dos operating system.
Second step: replication tool tool is put in described DOS boot disk: such as the burning tool that the BCM5709S model network interface card of Broadcom provides is " diag " file, then this file is put in DOS boot disk.
3rd step: newly-built autoexec, as 1.bat.
4th step: newly-built text temp.txt deposits the field that MAC Address variable needs to change, the number of temp.txt is determined according to the MAC Address figure place needing to change; A newly-built text config.txt deposits the commands steps that all needs perform again; A newly-built text BCM5709S_MAC_ALL.TXT deposits the MAC Address of burning in order to inquiry, and a newly-built text just deposits the number of the EEPROM of burning;
MAC Address is become by six sections of hexadecimal arrays: XX:XX:XX:XX:XX:XX.In fact 12 sexadecimal numbers can be regarded as.We can be changed into example with three sexadecimal numbers now, and thought of the present invention is described.3 sexadecimal numbers can produce the individual different MAC Address of 16*16*16=4096 altogether, for the network interface card of two network interface, the optional one section of sexadecimal number of same network interface card indicates port numbers, with 01,02 two ports distinguishing same network interface card, so just always have 8192 MAC Address.The present invention adopts the variable and fixed field of MAC Address as follows:
The 00:10:18:DX:01:XX eth0 of a network interface card (indicate), leftmost X D02, middle X D01, rightmost X D00 variable indicates, and automatically adds 1 and reaches MAC Address and automatically add 1, meet 16 to enter 1 by the value of each D00.
The 00:10:18:DX:02:XX eth1 of a network interface card (indicate), wherein identical with eth0 of X.Then the MAC Address of the network interface card of two ports is:
Eth0:00:10:18:D%D02%:01:%D01%%D00%; Eth0 refers to No. 0 network interface card, and some network interface card has two-way network interface, and eth0 then represents the 0th road network mouth;
Eth1:00:10:18:D%D02%:02:%D01%%D00%; Eth1 refers to No. 1 network interface card, and some network interface card has two-way network interface, and eth0 then represents the 1st road network mouth;
5th step: initialize is to the text depositing MAC Address variable field, as said in the 4th step, the present invention is described, newly-built 3 temp.txt documents according to 3 sexadecimal numbers are variable, temp1.txt, temp2.txt, temp3.txt deposit D00 respectively, D01, the value of D02 variable, as temp1.txt, temp2.txt, temp3.txt deposit 0.
6th step: need read the value of MAC Address variable the text temp.txt of change field and form complete MAC Address from depositing MAC Address variable, assignment is to config option, being write with the order upgrading network interface card firmware by config option deposits in the text config.txt of fill order step, performs for firmware burning routine call.Be described as follows:
The several assignment deposited by temp1.txt are to D00 variable;
The several assignment deposited by temp2.txt are to D01 variable;
The several assignment deposited by temp3.txt are to D02 variable;
By old config.txt file erase to write new content;
The filling address that the FW writing EEPROM upgrades, FW and firmware Firmware writes a Chinese character in simplified form;
Write FWbootCode more newer command;
Managerial grid NCSIFW more newer command;
The expression of MAC0 variable, nvmcfg is the order of network card configuration, and 1 represents first option configuration; /
Xdiag-rcconfig.txt/* upgrades the order of FW (comprising bootcode and NCSIFW), the tool that xdiag provides for network interface card manufacturer,-rc represents from text to read in execution, the order of different network interface card manufacturer can be different, but method is similar, there is the corresponding interface calling text, if do not had, then the order of execution is write inside 1.bat batch processing together.
Importantly how to realize batch processing and MAC Address automatically add 1*/.
7th step: by complete for each for MAC Address variable field burning rear automatically add 1 and be saved in deposit MAC Address variable need change field text temp.txt in, the MAC Address of burning is saved in and deposits burning and cross in the text BCM5709S_MAC_ALL.TXT of MAC Address, total EEPROM number of burning is saved in and deposits burning and cross in the text EEPROM_count.txt of the number of EEPROM in order to inquiry.Be described as follows:
stringsnum=readEEPROM_count.txt,1
stringsEEPROM_num=add%num%,1
delEEPROM_count.txt
StringswriteEEPROM_count.txt, %EEPROM_num%/* records the number */step1 of burning EEPROM:
The value that stringscontent1=readtemp1.txt, 1/* read D00 in order to code below automatically add 1*/
Ensuing code thought is: whether the value judging content1 is 15 (i.e. hexadecimal F), then adds 1 then write back to temp1.txt if not F, then jumps to and terminates end field, if F then jumps to step2.
The thought adding 1 is if current variate-value is 0 ~ 9, then directly use stringscon1=add%content1%, 1, then with order stringswritetemp1.txt, the value of con1 writes back in temp1.txt and goes by %con1%, go if B then writes back in temp1.txt by A, go if C then writes back in temp1.txt by B, go if D then writes back in temp1.txt by C, go if E then writes back in temp1.txt by D, if E, then write back in temp1.txt by F and go, the method write back is:
Setcon1=B/* if B, C, D, E then once analogize write C, D, E, F*/
stringswritetemp1.txt,%con1%
step2:
stringscontent2=readtemp2.txt,1
Ensuing code thought is: by con1 assignment 0, allows content2 add with carry 1 simultaneously.Utilize stringswritetemp1.txt, %con1% order writes back to temp1.txt by 0, simultaneously to content2 carry, need to determine whether 15 (i.e. hexadecimal F) to content2 before carry, if not F, then add 1 and then write back to temp2.txt, then jump to and terminate end field, if F then jumps to step3.The thought adding 1 is followed in step1.
step3:
stringscontent3=readtemp3.txt,1
Ensuing code thought is: write 0 in temp2.txt, method is as step1, step2, simultaneously to Content3 carry, need to determine whether 15 (i.e. hexadecimal F) to content3 before carry, if not F, then add 1 and then write back to temp3.txt, then jump to and terminate end field, if F then jumps to exit, because we configured to use only 3 temp documents represent three variablees, F adds 1, obtain then carry, just need four, certain four bit variables also can do, thought is the same with the present invention, just this example is for 3 bit mac address variable, therefore when the 3rd needs carry just should report error again, go beyond the scope, if 4 bit mac address variable, then the 4th needs carry Times error, the like.
8th step: perform autoexec under dos operating system: after finishing writing 1.bat, as long as perform 1.bat under DOS at every turn, method is carriage return key in 1 under DOS prompt after, and batch processing can get back to DOS prompt after performing and being over;
9th step: after the EEPROM more renewed, key in 1 under DOS prompt after, carriage return then starts the firmware of another network interface card of burning EEPROM; The firmware of the different network interface card EEPROM of circulation burning like this.
The method is first burnt in EEPROM by MAC Address, and then MAC Address adds 1 automatically, and can take first MAC Address to be added 1, is then written to the method for going in EEPROM, and just the initial value of three temp.txt files arranges difference.
Three temp.txt files can change a temp.txt file into, and a temp.txt file divides three row to deposit Two Variables, namely may correspond to different variablees when reading and write according to line number read-write.
This discovery is more clearly due to what introduce, also append key code, outside thought is easy to be used, code also may be used, and also likely occurs that other people realize according to thought C language code of the present invention simultaneously, is then compiled into the executable file under DOS with compiler, we can't see their source code, like this, be difficult to what the thought code knowing others, thus also do not know that they have invaded right of the present invention.
Change into after the implementation method that MAC Address in the present invention adds 1 automatically can be absorbed and used and add 2, the change adding 3 grades or MAC Address has the method for other particular laws.MAC Address adds the enumeration methodology that in fact 1 can be extended to more a kind of MAC Address of regular changes, A adds 1 and becomes B, owing in batch processing being substantially all the character types used, do not have integer and calculate the function adding 1, thus the way enumerated is adopted, if before adding 1 be A, B after then adding 1, if before adding 1 be B, C after then adding 1, for the MAC Address of regular change, this enumeration methodology can be used for instructing other implementation method to accomplish MAC Address automatically according to the MAC Address span change that we need, this situation also should be protected.
One-touch burning firmware of network card method provided by the invention, after the EEPROM of the complete network interface card of each renewal, MAC Address adds 1 automatically, the operation that the EEPROM firmware that after forming batch processing, operating in a key can complete network interface card upgrades, the convenient and swift raising being beneficial to production efficiency, and avoid the maloperation of direct labor.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit, although with reference to above-described embodiment to invention has been detailed description, those of ordinary skill in the field are to be understood that: still can modify to the specific embodiment of the present invention or equivalent replacement, and not departing from any amendment of spirit and scope of the invention or equivalent replacement, it all should be encompassed in the middle of right of the present invention.

Claims (1)

1. a method for one-touch burning firmware of network card, is characterized in that, described method comprises the steps:
The first step: make DOS boot disk;
Second step: replication tool tool is put in described DOS boot disk;
3rd step: newly-built autoexec;
4th step: newly-built deposit MAC Address variable need to change field text, newly-built deposit fill order step text, newly-builtly deposit burning and cross the text of MAC Address and newly-builtly deposit the text that the number of EEPROM is crossed in burning;
5th step: initialize is to the text depositing MAC Address variable field;
6th step: need read the value of MAC Address variable the text of change field and form complete MAC Address from depositing MAC Address variable, the order of config option and renewal network interface card firmware, to config option, is write in the text depositing fill order step by assignment;
7th step: by complete for each for MAC Address variable field burning rear automatically add 1 and be saved in deposit MAC Address variable need change field text in, the MAC Address of burning is saved in and deposits burning and cross in the text of MAC Address, total EEPROM number of burning is saved in and deposits burning and cross in the text of the number of EEPROM;
8th step: perform autoexec under dos operating system;
9th step: after the EEPROM more renewed, key in 1 under DOS prompt after, carriage return then starts the firmware of another network interface card of burning EEPROM; The firmware of the different network interface card EEPROM of circulation burning like this;
Described 3rd step, described autoexec 1.bat represents;
In described 4th step, MAC Address is made up of variable field and fixed field, described in deposit MAC Address variable and need to change the text of field and represent with temp.txt; The described text depositing fill order step represents with config.txt; Describedly deposit the text that burning crosses MAC Address and represent with BCM5709S_MAC_ALL.TXT; Describedly deposit the text that burning crosses the number of EEPROM and represent with EEPROM_count.txt;
In described 6th step, complete MAC Address comprises variable field and fixed field; Described variable field and MAC Address variable field;
The described text depositing fill order step supplies firmware burning routine call;
In described 7th step, described in deposit text that burning crosses the number of EEPROM for inquiry.
CN201210333453.7A 2012-09-10 2012-09-10 A kind of method of one-touch burning firmware of network card Active CN102880487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210333453.7A CN102880487B (en) 2012-09-10 2012-09-10 A kind of method of one-touch burning firmware of network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210333453.7A CN102880487B (en) 2012-09-10 2012-09-10 A kind of method of one-touch burning firmware of network card

Publications (2)

Publication Number Publication Date
CN102880487A CN102880487A (en) 2013-01-16
CN102880487B true CN102880487B (en) 2016-04-20

Family

ID=47481826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210333453.7A Active CN102880487B (en) 2012-09-10 2012-09-10 A kind of method of one-touch burning firmware of network card

Country Status (1)

Country Link
CN (1) CN102880487B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870814B (en) * 2016-09-23 2022-02-22 伊姆西Ip控股有限责任公司 Method and apparatus for content management batching
CN106506714B (en) * 2016-09-30 2019-12-17 深圳市和芯润德科技有限公司 Configuration method for USB-to-Ethernet network card and network equipment
CN106487947B (en) * 2016-11-03 2019-05-31 广州视源电子科技股份有限公司 A kind of MAC Address duplicate checking method and device
CN107145345B (en) * 2017-04-20 2020-07-28 昆山百敖电子科技有限公司 Method for updating media access control address based on serial port
CN108021412A (en) * 2017-12-19 2018-05-11 中天宽带技术有限公司 A kind of ONU burnings automated management system and method
CN108616382B (en) * 2018-03-07 2020-12-08 华为技术有限公司 Method and device for upgrading network card firmware, network card and equipment
CN111782282B (en) * 2020-06-24 2023-12-08 智车优行科技(北京)有限公司 Start program loading method and device, electronic equipment and storage medium
CN112073556B (en) * 2020-09-15 2021-11-09 成都申威科技有限责任公司 MAC address programming method for batch network cards, storage medium and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7496647B2 (en) * 2002-12-11 2009-02-24 Broadcom Corporation Personal inter-home media exchange network
CN100395727C (en) * 2003-12-30 2008-06-18 鸿富锦精密工业(深圳)有限公司 MAC address burning method
CN1696926A (en) * 2004-05-15 2005-11-16 鸿富锦精密工业(深圳)有限公司 MAC system of automatic assigning addresses and method
CN102508685A (en) * 2011-11-21 2012-06-20 浪潮电子信息产业股份有限公司 Method for quickly burning Firmware on blade server

Also Published As

Publication number Publication date
CN102880487A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN102880487B (en) A kind of method of one-touch burning firmware of network card
CN106951289A (en) A kind of online upgrading method, dsp controller and upgrade-system
US8949515B2 (en) Storage device and memory controller
CN105335411A (en) Method and system for data processing
US20030189929A1 (en) Electronic apparatus for assisting realization of storage area network system
US20220200798A1 (en) Key code data burning method, device, terminal equipment and readable storage medium
CN104916327A (en) Method and system of simultaneously burning multiple television KEY codes on line
CN105095287A (en) LSM (Log Structured Merge) data compact method and device
CN105988722B (en) Data storage method and embedded system
CN105912350A (en) Software adaption method and software adaption system compatible to a plurality of screen parameters
CN109697109A (en) A kind of method, system, device and the storage medium of Division identification conflict virtual machine
CN101398765A (en) Method for updating firmware and firmware updating device
CN109460240A (en) A kind of firmware programming component and firmware programming method, system and storage medium
CN102929795A (en) NandFlash bad block management method
KR20070006502A (en) Apparatus and method for storing data, and readable recording medium thereof
CN103617124B (en) Flash memory management method and device
CN104484685A (en) Method and system for issuing smart cards in batched mode
CN105373392A (en) DOS system based control method for digit number of character string of scanning sequence
CN107766519B (en) Method for visually configuring data structure
TWI333145B (en) Method for updating data in a flash rom
CN106775481A (en) Method for reading data and equipment
CN112363736A (en) Method, device and storage medium for burning product serial number
CN109614118B (en) SPI Flash firmware burning method and device
CN102109965B (en) Flash memory system, flash controller, computer system and analogy method
CN103425587A (en) Erasing method and erasing device for nonvolatile memory

Legal Events

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

Effective date of registration: 20220802

Address after: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee after: Dawning Information Industry (Beijing) Co.,Ltd.

Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Address before: 100193 No.36 Zhongguancun Software Park, No.8 Dongbeiwang West Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.

TR01 Transfer of patent right