Switch startup method, system, switch and medium based on EMMC

Through the switch startup method based on EMMC, the problem of long switch startup time in the prior art is solved, and the effect of quickly starting the switch is achieved.

CN119788514APending Publication Date: 2025-04-08深圳市三旺通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411928525.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-08

Smart Images

  • Figure CN119788514A_ABST
    Figure CN119788514A_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of network communication equipment, and discloses a switch startup method, system, switch and medium based on EMMC, wherein the method comprises: after the switch is initialized, the boot signal sent by the processor of the switch is detected; when the boot signal is detected, the system file in the embedded multimedia controller of the switch is read according to the preset startup parameters; and the switch is configured according to the system file to start the switch. After initialization, the boot signal is detected, and when it exists, the system file in the embedded multimedia controller is read according to the preset startup parameters, and then the switch is configured according to the system file to start the switch, thereby realizing the startup of the switch in the form of an embedded multimedia controller, greatly improving the reading and writing speed, and thus speeding up the startup speed of the switch.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication equipment, and in particular to an EMMC-based switch startup method, system, switch and medium. Background Art

[0002] With the rapid development of industrial Ethernet switches, more and more switch functions are being developed to meet the needs of different usage scenarios. The more functions a switch has, the more initialization steps it will take during startup, and the longer the startup time will be. The long startup time is not conducive to consumer use, and it also takes a lot of time to maintain and repair the product. At present, the commonly used switch startup methods include FLASH startup and EEPROM (Electrically Erasable ProgrammableRead-Only Memory), but both have low reading efficiency, which leads to longer startup time. Among them, FLASH is a non-volatile memory; EEPROM allows users to erase and reprogram data through electrical signals.

[0003] Therefore the prior art still needs to be improved and enhanced. Summary of the invention

[0004] The present application provides a switch startup method, system, switch and medium based on EMMC, aiming to solve the problem of long switch startup time in the prior art.

[0005] In a first aspect, an embodiment of the present application provides a switch startup method based on EMMC, comprising:

[0006] After the switch is initialized, a boot signal sent by a processor of the switch is detected;

[0007] When the boot signal is detected, reading a system file in the embedded multimedia controller of the switch according to preset startup parameters;

[0008] The switch is configured according to the system file to start the switch.

[0009] In some embodiments, the step of reading the system file in the embedded multimedia controller of the switch according to the preset startup parameters also includes:

[0010] Detect whether a startup parameter exists, and if so, determine whether to read the system file from the embedded multimedia controller, the flash memory chip or the programmable read-only memory according to the value of the startup parameter.

[0011] In some embodiments, the initializing operation on the switch also includes:

[0012] A hardware self-check program is executed to detect the normality of the operating system in the switch.

[0013] In some embodiments, reading the system file in the embedded multimedia controller of the switch according to the preset startup parameters includes:

[0014] When the startup parameter is a preset value, the kernel operating system and the configuration file of the switch are read and loaded from the embedded multimedia controller according to the preset startup parameter.

[0015] In some embodiments, configuring the switch according to the system file includes:

[0016] According to the target implementation function of the target device in the switch, and using the control signal in the system file, the register value of the target device is modified.

[0017] In some embodiments, after the switch is initialized, detecting a boot signal sent by a processor of the switch includes:

[0018] After acquiring the initial boot software from the cache chip of the switch, the initial boot software is used to guide the initialization operation of the target device in the switch;

[0019] It is detected whether the processor sends the guidance signal.

[0020] In some embodiments, the target device includes: one or more combinations of a physical layer chip, a data link layer chip, a flash memory chip, the embedded multimedia controller, a power supply device, and a real-time clock.

[0021] In a second aspect, an embodiment of the present application provides an EMMC-based switch startup system, including:

[0022] A detection module, configured to detect a boot signal sent by a processor of the switch after initializing the switch;

[0023] A reading module, configured to read a system file in the embedded multimedia controller of the switch according to preset startup parameters when the boot signal is detected;

[0024] A configuration module is used to configure the switch according to the system file to start the switch.

[0025] In a third aspect, an embodiment of the present application provides a switch, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the EMMC-based switch startup method as described above when executed by the processor.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the switch startup method based on EMMC as described above are implemented.

[0027] The present application provides an EMMC-based switch startup method, system, switch and medium. The method detects the boot signal sent by the processor after initializing the switch, and when the boot signal is detected, reads the system file from the embedded multimedia controller according to the preset startup parameters, and then configures the switch according to the system file to start the switch, thereby realizing rapid loading of the system file and reading of the program and configuration file in the system, thereby realizing the startup of the switch in the EMMC mode, and effectively improving the startup speed of the switch device. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A flow chart of the EMMC-based switch startup method provided in this application;

[0030] Figure 2 A flow chart of initialization operation and boot signal detection in the EMMC-based switch startup method provided in the present application;

[0031] Figure 3 A structural schematic diagram of the EMMC-based switch startup system provided in this application.

[0032] Reference numerals: 10: detection module; 20: reading module; 30: configuration module. DETAILED DESCRIPTION

[0033] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0034] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0035] Hereinafter, the terms "including", "having" and their cognates used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0036] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0037] The process of FLASH booting the switch is as follows:

[0038] 1. After the switch and other devices are powered on, they will perform a hardware self-check and globally reset key components.

[0039] 2. The main processor reads ROM (Read-Only Memory). ROM is usually used to store fixed system programs or data. The microcode loads the kernel operating system from FLASH.

[0040] 3. Load the operating system into RAM (Random Access Memory) DDR, and the operating system startup is completed; RAM is used to temporarily store running programs and data; DDR is a high-speed RAM technology that provides twice the data transfer rate at the same clock frequency by transmitting data on both the rising and falling edges of each clock cycle.

[0041] 4. The system will detect the configuration file from FLASH and load it into RAM if it exists.

[0042] 5. If there is no configuration file, the setup command will be started for interactive basic configuration.

[0043] The process of EEPROM booting the switch is as follows:

[0044] 1. First, after the device is powered on, it will perform a hardware self-check and globally reset key components.

[0045] 2. The main processor reads the ROM microcode and loads the kernel operating system from the EEPROM.

[0046] 3. Load the operating system into RAM DDR and the operating system startup is completed.

[0047] 4. The system will detect the configuration file from EEPROM and load it into RAM if it exists.

[0048] 5. If there is no configuration file, the setup command will be started for interactive basic configuration.

[0049] However, FLASH or EEPROM booting has the following disadvantages:

[0050] 1. The storage capacity of FLASH and EEPROM is relatively small. When used in some large three-layer core switches, multiple FLASH and / or EEPROM may be required to be used together, which poses many challenges in terms of cost budget and design difficulty.

[0051] 2. SPI (Serial Perripheral Interface) used by FLASH and EEPROM respectively is a high-speed full-duplex communication, QSPI (Quad SPI, four-wire half-duplex) and IIC (Inter-Integrated Circuit, integrated circuit bus). Although the maximum read rate of SPI is only tens of megabits based on current technical means; although the maximum read rate of QSPI can reach 320Mbit / s under ideal conditions, in actual applications, the maximum can only reach tens of megabits based on current technical means; IIC has a lower read rate than the first two, with a maximum of only 5Mbit / s, which is due to the use of push-pull drivers, eliminating pull-up resistors, thereby allowing higher data transmission rates. Among them, QSPI adds two data pins IO2 and IO3 compared to SPI.

[0052] Therefore, the reading speed of FLASH and EEPROM is relatively slow, which greatly prolongs the startup time of the switch.

[0053] However, EMMC (Embedded Multi-Media Controller) is an embedded storage device commonly used in mobile devices and embedded systems. EMMC itself has a large memory capacity. Currently used EMMCs have a capacity of 8GB. In addition, the reading rate of EMMC can reach 200-300 megabytes, which can load programs faster. Therefore, using EMMC to start can well solve the problem of programs that occupy a large amount of memory and can greatly shorten the startup time.

[0054] The present application provides a switch startup method, system, switch and medium based on EMMC. The switch startup method based on EMMC detects the boot signal sent by the processor after the switch is initialized, and when the boot signal is detected, the system file is read from the embedded multimedia controller according to the preset startup parameters, and the switch is configured according to the system file to start the switch, thereby realizing fast loading of the system file and reading of the program and configuration file in the system, thereby realizing the startup of the switch in the EMMC mode, and effectively improving the startup speed of the switch device.

[0055] The design of the switch startup method based on EMMC is described below through some specific embodiments.

[0056] See also Figure 1 , the embodiment of the present application provides a switch startup method based on EMMC, including steps S100-S300:

[0057] S100: After initializing the switch, detect the boot signal sent by the processor of the switch.

[0058] Among them, the switch in this application belongs to the three-layer switch of the EMMC core; the guiding signal is the command interaction signal CMD, and the main function of the CMD signal is used for device initialization and command transmission.

[0059] Exemplarily, after the switch is powered on, the key components in the switch are initialized to ensure that all hardware and software components of the device are in a correct initial state.

[0060] Then, after the MAC (Media Access Control) chip is initialized, it will detect the boot signal sent by the processor (eg, CPU) to detect whether the initialization is complete. The MAC chip is an important component in the network device and is responsible for the functions of the data link layer, such as sending and receiving frames.

[0061] It can be understood that in this application, the switch is initialized and the initialization is checked according to the boot signal to ensure that the switch can successfully complete the self-check, load the system files and configure other devices when it is started, so as to enter the normal working state. This ensures that the switch can quickly respond to and process network requests after startup.

[0062] For example, in one implementation method, the switch is initialized, and before that, the process further includes:

[0063] Execute the hardware self-test program to check the normality of the operating system in the switch.

[0064] Exemplarily, after the switch is powered on and before the switch is initialized, all key components will firstly be subjected to a hardware self-check to check whether they can work normally, and the normality of the operating system in the switch will be checked.

[0065] It is understood that the switch is able to function properly by performing hardware and software self-tests before initialization.

[0066] For example, in one implementation, see Figure 2 Step S100: After the switch is initialized, the boot signal sent by the processor of the switch is detected, including:

[0067] S110, after obtaining the initial boot software from the cache chip of the switch, use the initial boot software to boot the target device in the switch to perform an initialization operation;

[0068] S120: Detect whether the processor sends a guidance signal.

[0069] The target devices include: FLASH (ie cache chip) and EMMC.

[0070] Exemplarily, after the switch is powered on, the switch is initialized first, wherein the initialization is performed by the BOOT software (i.e., initial boot software) stored in the FLASH in the switch, and a series of configuration and preparation work is performed on the target devices in the switch to ensure that they can work normally. Among them, the BOOT software is a software specifically used to boot the system.

[0071] Then, during the EMMC startup process, after the MAC chip in the switch is initialized, the processor will continue to send a boot signal until the MAC chip starts loading the system file. Therefore, it is only necessary to detect the boot signal sent by the processor to detect whether the initialization is completed.

[0072] In another embodiment, the target device also includes: one or more combination devices of: PHY (Physical Layer) chip, MAC chip (data link layer chip), DDR (Double Data Rate) memory stick, EEPROM, PSE (Power Sourcing Equipment) and RTC (Real-Time Clock).

[0073] S200: When a boot signal is detected, read a system file in an embedded multimedia controller of the switch according to preset startup parameters.

[0074] Among them, the system file is a BIN file that is burned into the EMMC in advance with a burner. This file type is mainly used to store raw data without any formatting or encoding. Among them, the BIN file is a binary file format.

[0075] Exemplarily, when detecting the boot signal, if the boot signal is detected, the switch can be further started in which storage mode by setting the preset startup parameter. Then, according to the specific value of the preset startup parameter, it is decided to read the system file from the embedded multimedia controller of the switch.

[0076] It can be understood that in the present application, by determining to read the system file from the embedded multimedia controller of the switch according to the detected preset startup parameters, it is possible to provide a possibility for the startup mode.

[0077] For example, in one implementation method, the system file in the embedded multimedia controller of the switch is read according to the preset startup parameters, and the method also includes:

[0078] It is detected whether the startup parameter exists, and if it exists, it is determined whether to read the system file from the embedded multimedia controller, the flash memory chip or the programmable read-only memory according to the value of the startup parameter.

[0079] Exemplarily, when deciding which storage mode to start, the startup from EMMC can be controlled not only by setting the value in a specific register in the switch, that is, presetting the startup parameter, but also by setting the hardware mode of pull-up and pull-down on the resistor.

[0080] Then, the application takes setting preset startup parameters in a specific register as an example. After detecting the presence of a boot signal, it is further detected whether there are startup parameters in the register of the switch. If it is detected that there are startup parameters, it is determined to read the system file from the embedded multimedia controller, flash memory chip or programmable read-only memory based on the value of the startup parameter. For example, the value of the startup parameter can be set to 001, 010 or 100 (the specific value setting can be arbitrary, only three different values ​​need to correspond to three storage methods), and the system file is read from the embedded multimedia controller, flash memory chip or programmable read-only memory, so as to decide to start the switch from one of the three.

[0081] For example, in one implementation method, reading a system file in an embedded multimedia controller of a switch according to a preset startup parameter includes:

[0082] When the startup parameter is a preset value, the configuration files of the kernel operating system and the switch are read and loaded from the embedded multimedia controller according to the preset startup parameter.

[0083] The switch configuration file is mainly used to save the various settings of the switch, including but not limited to interface configuration, VLAN (virtual local area network) division, port security settings, routing information and QoS (quality of service) configuration, etc. In addition, the configuration file can be viewed and edited through the command-line interface (CLI), and uploaded or downloaded through protocols such as TFTP (Trivial File Transfer Protocol), FTP (File Transfer Protocol) or SCP (Secure Copy Protocol) to backup or restore the configuration.

[0084] Exemplarily, after detecting the presence of a boot signal, the value of the boot parameter is determined, and when the boot parameter is a preset value, such as "001", the MAC chip will first read the kernel operating system from the embedded multimedia controller, and then read and load the switch configuration file, such as web page display, PSE configuration, and interactive protocol files. For another example, - / etc / sysctl.conf: This is a common configuration file in Linux systems, which is used to define kernel parameters. Administrators can modify various kernel settings in this file, such as memory management, network stack, etc. - / boot / config-$(uname-r): This file records the configuration options enabled when the kernel is compiled, but it is usually not used for dynamic configuration.

[0085] The process of reading and loading the system file generally does not exceed 35 seconds, which is much shorter than other memory devices. The comparison of the time for the MCA chip to start from EMMC and FLASH is shown in Table 1. Due to the small capacity of EEPROM, no comparison is made.

[0086] Table 1

[0087] EMMC Startup FLSHA Startup VCS7549+VSC8512 VCS7549+VSC8512 BOOT initialization 15S 15S System file reading 30S 120S PHY and other related device configuration 10S 10S Total duration 55S 145S

[0088] Among them, VSC7549 is a multi-port Gigabit Ethernet switching chip, which is a CPU-integrated MAC chip; VSC8512 is a high-performance Gigabit Ethernet PHY chip. Both are network switching chips, and they are mainly used to build high-performance network switching equipment, such as three-layer switches.

[0089] S300. Configure the switch according to the system file to start the switch.

[0090] Exemplarily, after reading the system file, key components (i.e., target components) such as PHY chip, MAC chip, DDR memory bar, FLASH, EMMC, EEPROM, PSE chip and RTC in the switch are configured according to the system file so that the key components work normally to start the switch.

[0091] It can be understood that in this application, the switch is configured according to the system file read from the embedded multimedia controller to control the switch to start with the embedded multimedia controller, thereby greatly saving the startup time, improving the startup efficiency and user experience. From Table 1, it can be seen that the total time of the switch starting from EMMC saves 95S compared to FLASH startup.

[0092] For example, in one implementation method, configuring a switch according to a system file includes:

[0093] According to the target implementation function of the target device in the switch, and using the control signal in the system file, the register value of the target device is modified.

[0094] The control signals include SMI (Serial Management Interface) and IIC. SMI is an interface standard for system management in servers and network devices, mainly used to manage and monitor the status, performance and configuration of hardware devices.

[0095] Exemplarily, when configuring the switch, the control signal in the system file is used to modify the register value of the target device so that the target device in the switch can achieve the target function. For example, in order to achieve the port mapping function of PHY, the register value of PHY is set according to the register manual of the switch so that the bottom port order of PHY is consistent with the port order displayed by its upper application, thereby completing the configuration of PHY in the switch.

[0096] See also Figure 3 , the embodiment of the present application provides a switch startup system based on EMMC, including:

[0097] The detection module 10 is used to detect the boot signal sent by the processor of the switch after the switch is initialized; the reading module 20 is used to read the system file in the embedded multimedia controller of the switch according to the preset startup parameters when the boot signal is detected; the configuration module 30 is used to configure the switch according to the system file to start the switch.

[0098] Exemplarily, the EMMC-based switch startup system in the present application is applicable to the EMMC-based switch startup method, and then, the implementation process of the EMMC-based switch startup system is as follows:

[0099] First, after the switch is powered on, the target devices on the switch, such as PHY, flash memory chip, embedded multimedia controller and other key devices, are initialized. In addition, the command interaction signal CMD (Command Prompt, i.e., the boot signal) sent by the processor after successful initialization is detected.

[0100] Then, when the boot signal is detected, it is determined to read the system file from the EMMC of the switch according to the acquired startup parameters pre-set in the switch (ie, preset startup parameters).

[0101] Finally, the target device in the switch is configured according to the system file to control the target device to work normally, thereby controlling the startup of the switch.

[0102] It is understandable that compared with FLASH and EEPROM, EMMC has a very high reading rate, which can reach about 200Mbit / s, while FLASH and EEPROM are only tens of megabytes and a few megabytes, and the reading rate can determine the startup time of a device.

[0103] Moreover, compared with FLASH and EEPROM, EMMC also has a high-capacity storage space, which can store some programs and file systems that occupy a relatively large space, without the need to use multiple FLASH and EEPROM, thereby reducing the use of hardware devices in the design, thereby optimizing the hardware circuit and effectively reducing the design difficulty and hardware cost.

[0104] Then, in this application, by setting the control switch to start from EMMC, the system files are quickly loaded and the programs and configuration files in the system are read, so that the device can be quickly started to solve the problem that the three-layer core switch takes a long time to start in the past, ensuring that a lot of time is saved in equipment maintenance, field environment construction testing and fault restart. In addition, this system also has the characteristics of high capacity.

[0105] The present application also provides a switch. Exemplarily, the switch includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the switch to execute the functions of each module in the above-mentioned EMMC-based switch startup method or the above-mentioned EMMC-based switch startup system.

[0106] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. At least one. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0107] The memory may be, but is not limited to, a random access memory, a read-only memory, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory, etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0108] The present application also provides a computer-readable storage medium for storing the computer program used in the above switch. For example, the computer-readable storage medium may include but is not limited to: a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.

[0109] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0110] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0111] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0112] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A switch startup method based on EMMC, characterized in that: include: After the switch is initialized, a boot signal sent by a processor of the switch is detected; When the boot signal is detected, reading a system file in the embedded multimedia controller of the switch according to preset startup parameters; The switch is configured according to the system file to start the switch.

2. The switch startup method based on EMMC according to claim 1, characterized in that: The step of reading the system file in the embedded multimedia controller of the switch according to the preset startup parameters also includes: Detect whether a startup parameter exists, and if so, determine whether to read the system file from the embedded multimedia controller, the flash memory chip or the programmable read-only memory according to the value of the startup parameter.

3. The switch startup method based on EMMC according to claim 1, characterized in that: The initialization operation of the switch also includes: A hardware self-check program is executed to detect the normality of the operating system in the switch.

4. The switch startup method based on EMMC according to claim 1, characterized in that: The step of reading the system file in the embedded multimedia controller of the switch according to the preset startup parameters includes: When the startup parameter is a preset value, the kernel operating system and the configuration file of the switch are read and loaded from the embedded multimedia controller according to the preset startup parameter.

5. The switch startup method based on EMMC according to claim 1, characterized in that: The configuring the switch according to the system file includes: According to the target implementation function of the target device in the switch, and using the control signal in the system file, the register value of the target device is modified.

6. The switch startup method based on EMMC according to claim 1, characterized in that: After the switch is initialized, detecting a boot signal sent by a processor of the switch includes: After acquiring the initial boot software from the cache chip of the switch, the initial boot software is used to boot the target device in the switch to perform an initialization operation; It is detected whether the processor sends the guidance signal.

7. The switch startup method based on EMMC according to claim 6, characterized in that: The target device includes: one or more combinations of a physical layer chip, a data link layer chip, a flash memory chip, the embedded multimedia controller, a power supply terminal device and a real-time clock.

8. A switch startup system based on EMMC, characterized in that: include: A detection module, configured to detect a boot signal sent by a processor of the switch after initializing the switch; A reading module, configured to read a system file in the embedded multimedia controller of the switch according to preset startup parameters when the boot signal is detected; A configuration module is used to configure the switch according to the system file to start the switch.

9. A switch, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the EMMC-based switch startup method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the steps of the switch startup method based on EMMC as described in any one of claims 1 to 7 are implemented.