US 12,436,774 B2
Method, apparatus and computer-readable medium for program loading
Zhenghao Gu, Beijing (CN); Shijian Ge, Beijing (CN); Xiang Shen, Beijing (CN); Xiaobo Yan, Beijing (CN); Jingjie Zhu, Beijing (CN); Bo Zhang, Beijing (CN); Yongsu Zhang, Beijing (CN); Yu Zhang, Beijing (CN); and Jian Wang, Beijing (CN)
Assigned to Beijing Youzhuju Network Technology Co., Ltd., Beijing (CN)
Filed by Beijing Youzhuju Network Technology Co., Ltd., Beijing (CN)
Filed on Jul. 18, 2024, as Appl. No. 18/777,354.
Application 18/777,354 is a continuation of application No. PCT/CN2023/070732, filed on Jan. 5, 2023.
Claims priority of application No. 202210055209.2 (CN), filed on Jan. 18, 2022.
Prior Publication US 2024/0370272 A1, Nov. 7, 2024
Int. Cl. G06F 9/4401 (2018.01)
CPC G06F 9/4401 (2013.01) 20 Claims
OG exemplary drawing
 
1. A method for program loading, the method being implemented at an electronic device, wherein a preconfigured bin file is stored in a flash memory of the electronic device, the method comprising:
loading the bin file at a program loading speed that is a first speed, the bin file comprising a configuration parameter for adjusting the program loading speed;
adjusting the program loading speed to a second speed based on the configuration parameter in the bin file; the second speed being faster than the first speed;
loading a first-stage bootloader (FSBL) at the program loading speed which is adjusted to the second speed;
wherein the adjusting the program loading speed to a second speed based on the configuration parameter in the bin file comprises:
obtaining a port physical layer (PHY) register configuration parameter, a flash memory adaptation parameter, and a serial peripheral interface (SPI) clock rate parameter in the bin file;
adjusting a board-level wiring PHY register configuration in the flash memory based on the PHY register configuration parameter; and
enabling a quad SPI (QSPI) mode of an SPI based on the flash memory adaptation parameter to cause the program loading speed to reach the second speed, or adjusting a clock rate of the SPI in the flash memory based on the SPI clock rate parameter to cause the program loading speed to reach the second speed, or enabling the QSPI mode of the SPI based on the flash memory adaptation parameter and adjusting the clock rate of the SPI in the flash memory based on the SPI clock rate parameter, to cause the program loading speed to reach the second speed.