The invention discloses a power distribution terminal upgrading method,
system and device based on an SD card and a medium. The method specifically comprises the steps of generating an incremental
package of a
Linux kernel and / or a root
file system, calculating a hash value file of the incremental
package, and generating a block chain
certificate with a
timestamp; encrypting and packaging the incremental
package, the hash value file and the block chain
certificate into a container
mirror image, performing
digital signature to form an
upgrade package, and writing the
upgrade package into an SD card; after it is detected that the SD card is inserted, mounting a boot partition, analyzing
metadata of an
upgrade package, and setting an upgrade flag bit and an upgrade operation type of Boot; and performing
digital signature verification, hash value
file verification and block chain
certificate verification on the upgrade package in the SD card, if the
verification is passed, backing up user parameters to the encrypted
storage area, and restarting to enter the
Recovery OS to complete replacement upgrade of the
Linux kernel and / or the root
file system. According to the method, safe, efficient and flexible upgrading of the
operating system of the power distribution
automation terminal is achieved, the
rollback function is achieved, and the upgrading risk and cost are effectively reduced.