Method for upgrading system of electronic device

The invention provides a method for upgrading a system of an electronic device. The method comprises the steps: (A) acquiring a digital signature of a new system which is used for upgrading a current system of the electronic device, wherein the digital signature of the new system comprises a file name of the new system and hardware description information on hardware supported by the new system; (B) acquiring a file name of the current system of the electronic device and hardware information on the electronic device; (C) comparing the file name of the new system with the file name of the current system, and comparing the hardware description information with the hardware information on the electronic device; (D) upgrading the current system to the new system according to comparison results. According to the method, the applicability of the new system to the electronic device is judged through the digital signature of the new system, so that the security during the upgrading of the system of the electronic device can be guaranteed.