CN107145345B - Method for updating media access control address based on serial port - Google Patents

Method for updating media access control address based on serial port Download PDF

Info

Publication number
CN107145345B
CN107145345B CN201710260234.3A CN201710260234A CN107145345B CN 107145345 B CN107145345 B CN 107145345B CN 201710260234 A CN201710260234 A CN 201710260234A CN 107145345 B CN107145345 B CN 107145345B
Authority
CN
China
Prior art keywords
serial port
firmware
mainboard
updating
control platform
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
CN201710260234.3A
Other languages
Chinese (zh)
Other versions
CN107145345A (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.)
Kunshan Byosoft Electronic Technology Co ltd
Original Assignee
Kunshan Byosoft Electronic 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 Kunshan Byosoft Electronic Technology Co ltd filed Critical Kunshan Byosoft Electronic Technology Co ltd
Priority to CN201710260234.3A priority Critical patent/CN107145345B/en
Publication of CN107145345A publication Critical patent/CN107145345A/en
Application granted granted Critical
Publication of CN107145345B publication Critical patent/CN107145345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for updating a media access control address based on a serial port, which comprises the following steps: (1) the control platform is connected with the mainboard through a serial port line; (2) the firmware of the mainboard is configured with a corresponding serial port; (3) and the control platform opens the updating software, responds to the firmware request of the mainboard through the serial port and automatically updates the MAC address. The invention has the beneficial effects that: the invention can effectively reduce hardware cost, improve production efficiency, save startup time and reduce labor cost.

Description

Method for updating media access control address based on serial port
Technical Field
The invention relates to the technical field of computer production, in particular to a method for updating a media access control address based on a serial port.
Background
The computer internet technology is developed to the present, and the production process is continuously improved. However, when the motherboards are produced in the factory at present, the media access control addresses (MAC addresses) on each motherboard still need to be manually written under the DOS by using batch files, and a larger manufacturer needs to boot up to the lower side of the DOS to be written by using a code scanner. The former needs to be started to DOS for manual writing, which wastes time and labor cost; the latter is costly.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a method for updating media access control addresses based on a serial port, which can effectively reduce hardware cost and improve production efficiency.
In order to solve the technical problem, the invention provides a method for updating a media access control address based on a serial port, which comprises the following steps:
(1) The control platform is connected with the mainboard through a serial port line;
(2) The firmware of the mainboard is configured with a corresponding serial port;
(3) And the control platform opens the updating software, responds to the firmware request of the mainboard through the serial port and automatically updates the MAC address.
Preferably, in the step (2), the configuration of the corresponding serial port by the firmware specifically includes:
(21) Starting up to a designated program, initializing a serial port Boot to an UpDateMAC function, sending a BYOMS instruction to the control platform through the serial port, and requesting to write an MAC address;
(22) After the mainboard receives the MAC address through the serial port, the MAC address is stored in a module FV in firmware appointed by the firmware, and the firmware sends an ending instruction through the serial port;
(23) starting up the computer next time, calling a designated program UpDateMAC by firmware, reading AN L AN PCI configuration Space, acquiring AN MAC IOBase, and acquiring the first six BYTE values in the IO Space through the IOBase;
(24) and judging whether the six values are full FF or full 00, if so, calling a program specified by the LAN to update the MAC address, and if not, directly returning without updating.
Preferably, in the step (3), the control platform receives a command sent by the serial port, and judges whether the command is a BYMS; if the serial port is BYMS, capturing MAC addresses stored on the computer, sequentially arranging the MAC addresses in a Buffer, and sending a first group of MAC addresses to the serial port; if the command is BOME, the sending is finished, the Buffer pointer jumps to the next group of MAC addresses, and the command sent by the serial port is waited to be received.
The invention has the beneficial effects that: the invention can effectively reduce hardware cost, improve production efficiency, save startup time and reduce labor cost.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention.
Fig. 2 is a schematic diagram of the system architecture of the present invention.
Detailed Description
As shown in fig. 1 and 2, a method for updating a media access control address based on a serial port includes the following steps:
(1) The control platform is connected with the mainboard through a serial port line;
(2) The firmware of the mainboard is configured with a corresponding serial port;
(3) And the control platform opens the updating software, responds to the firmware request of the mainboard through the serial port and automatically updates the MAC address.
The mainboard sends a request command, the control platform receives the command and sends the MAC to the mainboard. After the mainboard receives the MAC, the content is stored in FV.
In the step (2), the configuration of the corresponding serial port by the firmware specifically comprises:
(21) Starting up to a designated program, initializing a serial port Boot to an UpDateMAC function, sending a BYOMS instruction to the control platform through the serial port, and requesting to write an MAC address;
(22) After the mainboard receives the MAC address through the serial port, the MAC address is stored in a module FV in firmware appointed by the firmware, and the firmware sends an ending instruction through the serial port;
(23) starting up the computer next time, calling a designated program UpDateMAC by firmware, reading AN L AN PCI configuration Space, acquiring AN MAC IOBase, and acquiring the first six BYTE values in the IO Space through the IOBase;
(24) and judging whether the six values are full FF or full 00, if so, calling a program specified by the LAN to update the MAC address, and if not, directly returning without updating.
In the step (3), the control platform receives a command sent by the serial port and judges whether the command is a BYMS; if the serial port is BYMS, capturing MAC addresses stored on the computer, sequentially arranging the MAC addresses in a Buffer, and sending a first group of MAC addresses to the serial port; if the command is BOME, the sending is finished, the Buffer pointer jumps to the next group of MAC addresses, and the command sent by the serial port is waited to be received.
The invention saves hardware cost, saves startup time, improves production efficiency and reduces labor cost.
While the invention has been shown and described with respect to the preferred embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the scope of the invention as defined in the following claims.

Claims (2)

1. A method for updating media access control address based on serial port is characterized by comprising the following steps:
(1) The control platform is connected with the mainboard through a serial port line;
(2) The firmware of the mainboard is configured with a corresponding serial port; the firmware configuration corresponding serial port specifically comprises the following steps:
(21) Starting up to a designated program, initializing a serial port Boot to an UpDateMAC function, sending a BYOMS instruction to the control platform through the serial port, and requesting to write an MAC address;
(22) After the mainboard receives the MAC address through the serial port, the MAC address is stored in a module FV in firmware appointed by the firmware, and the firmware sends an ending instruction through the serial port;
(23) starting up the computer next time, calling a designated program UpDateMAC by firmware, reading the L AN PCI configuration Space, acquiring MACIOBase, and acquiring the first six BYTE values in the IO Space through the IOBase;
(24) judging whether the six values are full FF or full 00, if so, calling a program specified by the L AN to update the MAC address, and if not, directly returning without updating;
(3) And the control platform opens the updating software, responds to the firmware request of the mainboard through the serial port and automatically updates the MAC address.
2. The method for updating media access control address based on serial port as claimed in claim 1, wherein in step (3), the control platform receives the command sent from the serial port, and determines whether the command is a BYOMS; if the serial port is BYMS, capturing MAC addresses stored on the computer, sequentially arranging the MAC addresses in a Buffer, and sending a first group of MAC addresses to the serial port; if the command is BOME, the sending is finished, the Buffer pointer jumps to the next group of MAC addresses, and the command sent by the serial port is waited to be received.
CN201710260234.3A 2017-04-20 2017-04-20 Method for updating media access control address based on serial port Active CN107145345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710260234.3A CN107145345B (en) 2017-04-20 2017-04-20 Method for updating media access control address based on serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710260234.3A CN107145345B (en) 2017-04-20 2017-04-20 Method for updating media access control address based on serial port

Publications (2)

Publication Number Publication Date
CN107145345A CN107145345A (en) 2017-09-08
CN107145345B true CN107145345B (en) 2020-07-28

Family

ID=59774879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710260234.3A Active CN107145345B (en) 2017-04-20 2017-04-20 Method for updating media access control address based on serial port

Country Status (1)

Country Link
CN (1) CN107145345B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185934A (en) * 2011-04-27 2011-09-14 深圳Tcl新技术有限公司 System and method for writing MAC (media access control) address
CN102880487A (en) * 2012-09-10 2013-01-16 曙光信息产业(北京)有限公司 Method for programming NIC (network interface card) firmware with one click
CN103914324A (en) * 2013-01-08 2014-07-09 海尔集团公司 Method for automatically burning firmware of embedded equipment, and system thereof
CN104954502A (en) * 2014-03-31 2015-09-30 研祥智能科技股份有限公司 MAC address updating method in production line and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5539725A (en) * 1995-01-31 1996-07-23 International Business Machines Corp. Port address resolution device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185934A (en) * 2011-04-27 2011-09-14 深圳Tcl新技术有限公司 System and method for writing MAC (media access control) address
CN102880487A (en) * 2012-09-10 2013-01-16 曙光信息产业(北京)有限公司 Method for programming NIC (network interface card) firmware with one click
CN103914324A (en) * 2013-01-08 2014-07-09 海尔集团公司 Method for automatically burning firmware of embedded equipment, and system thereof
CN104954502A (en) * 2014-03-31 2015-09-30 研祥智能科技股份有限公司 MAC address updating method in production line and system thereof

Also Published As

Publication number Publication date
CN107145345A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
US9563442B2 (en) Baseboard management controller and method of loading firmware
US9727507B2 (en) USB device remote control method and system
US20130007289A1 (en) Remote control system and remote control method of the same
WO2020233058A1 (en) Code download method and apparatus, and electronic device and computer storage medium
CN107368343B (en) Terminal starting method based on android system, terminal and storage medium
CN111831309A (en) Upgrading method, device, equipment and medium for multiple MCUs (micro control units) in Wifi (wireless fidelity) of Internet of things
CN110851165A (en) Method and device for automatically acquiring BIOS drive and upgrading, computer equipment and storage medium
CN108536452B (en) Embedded device, system software upgrading method, system and terminal thereof
CN112198820B (en) Interrupt service implementation method, device, equipment and storage medium
CN112181467B (en) Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN107145345B (en) Method for updating media access control address based on serial port
US20170199733A1 (en) Method for terminal to update operating system, terminal and system
CN113778581A (en) Page loading method, electronic equipment and storage medium
CN112506539A (en) Firmware updating method and device, electronic equipment and storage medium
CN115664953B (en) Resource allocation method and related device of external equipment
KR20150072963A (en) Multisystem, and method of booting the same
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN107066277B (en) Method for updating universal unique identification code based on serial port
CN107562440B (en) Eeprom version updating method and device
CN1228718C (en) Method of preventing overwrite of MAC address of peripheral terminal in DMI data
CN106681761B (en) Interactive upgrading method and system
CN112632032B (en) Data migration method and device, storage medium and terminal equipment
CN115185553A (en) Method for updating device firmware of user and related device
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
JP2003108513A (en) Hardware chain pull

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 210032 Building 501-505, Dongchuang Science and Technology Center, No. 1 Hongfeng Road, Jinqian East Road Enterprise Science and Technology Park, Kunshan City, Suzhou City, Jiangsu Province

Applicant after: Kunshan one hundred Ao Electronic Technology Co., Ltd.

Address before: Room 1602, Qianqiandong Road Science and Technology Plaza, Kunshan City, Suzhou City, Jiangsu Province

Applicant before: Kunshan one hundred Ao Electronic Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant