The invention discloses an online upgrading method and device based on ZYNQ, relates to the technical field of ZYNQ online upgrading, and solves the problems that in the prior art, after ZYNQ
firmware upgrading fails, equipment crashes, and ZYNQ
firmware loading logic is unreasonable. The method comprises the steps that ZYNQ
firmware is designed into three parts, all the firmware achieve different functions, and all the firmware achieve different functions; the method comprises the following steps that: a ZYNQ firmware is divided into boot firmware, application program firmware and
backup program firmware which are respectively stored in an ROM (
Read Only Memory), after the ZYNQ is powered on, the firmware is searched and verified from an initial address of the ROM, the ZYNQ firmware is operated after the
verification is passed, the normal operation of a program is realized by loading the
backup program firmware after the application program firmware fails to be loaded, and when the firmware is upgraded, the application program firmware can be updated by loading the
backup program firmware. According to the method, only the running program firmware is subjected to coverage upgrading so as to ensure that the other program firmware is not damaged, and by using a multiple loading method, it can be ensured that in online upgrading, no matter whether the upgraded application firmware is damaged or not, loading can be carried out by skipping to the position of the correct firmware.