The invention provides an over-the-air technology (OTA) upgrading method based on a Linux platform. The method comprises the following steps: 1, enabling a
set top box to receive and read upgrading information, storing the upgrading information in a specified file, and restarting the
set top box after storage; 2, entering u-boot, mounting a yaffs
file system, reading a parameter file to a memory, storing, and
jumping to a
loader program; 3, executing the upgrading operation; and 4, restarting the
set top box. In the invention, the upgrading safety is fully considered, the power breakdown condition is closely considered, the supported platform range is wide, and the program to be upgraded can be comprehensively satisfied by means of a bottom-layer upgrading method. Because of the use of the yaffs
file system, Nand Flash is better supported. A full range of C codes is convenient for implantation. By using the
macro switching
control option, the adjustable and controllable upgrading and the flexible operating process are realized. By fully utilizing the advantages of Linux, shell can be used for finishing complicated functions.