[go: up one dir, main page]

CN103905631B - Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof - Google Patents

Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof Download PDF

Info

Publication number
CN103905631B
CN103905631B CN201210589901.XA CN201210589901A CN103905631B CN 103905631 B CN103905631 B CN 103905631B CN 201210589901 A CN201210589901 A CN 201210589901A CN 103905631 B CN103905631 B CN 103905631B
Authority
CN
China
Prior art keywords
chip
modem
kernel
oemsbl
download
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210589901.XA
Other languages
Chinese (zh)
Other versions
CN103905631A (en
Inventor
张志平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201210589901.XA priority Critical patent/CN103905631B/en
Publication of CN103905631A publication Critical patent/CN103905631A/en
Application granted granted Critical
Publication of CN103905631B publication Critical patent/CN103905631B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种移动终端中MODEM芯片及LINUX芯片统一下载的方法,其包括以下步骤:微型化内核LK根据指令进入快速启动FASTBOOT模式;微型化内核LK获得MODEM芯片的OEMSBL中存储的标识;以及微型化内核LK根据标识判断进行MODEM镜像下载或进行LINUX镜像下载。本发明的移动终端中MODEM芯片及LINUX芯片统一下载的方法,通过FASTBOOT工具下载安卓系统的LINUX芯片的同时下载MODEM部分的镜像,且开发者只需下载一套工具,就可以完成对所有镜像的升级操作,缩短了开发周期,从而提高开发效率,有利于批量生产。本发明还提出一种移动终端。

The invention discloses a method for unified downloading of a MODEM chip and a LINUX chip in a mobile terminal, which comprises the following steps: the miniaturized kernel LK enters a fast boot FASTBOOT mode according to an instruction; the miniaturized kernel LK obtains the logo stored in the OEMSBL of the MODEM chip; And the miniaturized kernel LK judges to download the MODEM image or the LINUX image according to the identification. The method for unified downloading of the MODEM chip and the LINUX chip in the mobile terminal of the present invention downloads the mirror image of the MODEM part while downloading the LINUX chip of the Android system through the FASTBOOT tool, and the developer only needs to download a set of tools to complete all mirror images. The upgrade operation shortens the development cycle, thereby improving development efficiency and facilitating mass production. The invention also proposes a mobile terminal.

Description

移动终端及其MODEM及LINUX芯片统一下载的方法Method for Unified Downloading of Mobile Terminal and Its Modem and LINUX Chip

技术领域technical field

本发明涉及移动通信技术领域,特别涉及一种移动终端及其MODEM芯片及LINUX芯片统一下载的方法。The invention relates to the technical field of mobile communication, in particular to a method for unified downloading of a mobile terminal and its MODEM chip and LINUX chip.

背景技术Background technique

在安卓手机中fastboot是一种比recovery更底层的刷机模式。fastboot是一种线刷,就是使用USB数据线连接手机的一种刷机模式。相对于某些系统(如小米)卡刷来说,线刷更安全可靠。recovery是一种卡刷,就是将刷机包放在sd卡上,然后在recovery中刷机的模式。Fastboot使用方法是用数据线连接手机和电脑,手机重启切换到工程模式,然后在PC端使用android开发包自带的fastboot命令烧写。通常烧写安卓系统中的FLASH的系统区、用户区和启动BOOT分区的三个分区镜像,编译源码时*.img文件(即相关的生成镜像)会生成在out/target/product/xxxx/(谷歌的安卓镜像的生成目录)目录中,只有针对某硬件的编译才能生成启动BOOT分区。有时也烧写recover.img(安卓系统中的恢复分区),recover.img是烧机模式使用的系统。In Android phones, fastboot is a lower-level flashing mode than recovery. Fastboot is a kind of wire flashing, which is a flashing mode that uses a USB data cable to connect the mobile phone. Compared with some systems (such as Xiaomi) card swiping, wire swiping is safer and more reliable. Recovery is a card brushing mode, which is to put the flashing package on the SD card, and then flash the machine in recovery. The way to use Fastboot is to connect the mobile phone and computer with a data cable, restart the mobile phone and switch to engineering mode, and then use the fastboot command that comes with the android development kit to burn on the PC side. Usually, the three partition images of FLASH system area, user area and startup BOOT partition in the Android system are programmed. When compiling the source code, the *.img file (that is, the related generated image) will be generated in out/target/product/xxxx/( Google's Android image generation directory) directory, only the compilation for a certain hardware can generate the boot partition. Sometimes recover.img (the recovery partition in the Android system) is also burned. recover.img is the system used in the burn mode.

目前高通7X27系列平台的手机有2个主ARM芯片,一个是用于控制安卓系统的linux芯片,另一个是处理启动引导流程及网络协议呼叫功能的芯片,即MODEM芯片。目前高通平台在开发阶段主要是通过ANDROID提供的FASTBOOT的工具接口提供对android的linux方数据的下载,通过高通的QPST(一个针对高通芯片开发的传输软件)工具实现对MODEM芯片的下载,这样开发人员需要根据自己的开发要求对不同的生成软件使用不同的生成工具,这样给开发带来了很大的不方便性。如果开发人员升级一套完整的软件,就需要先通过QPST工具升级MODEM芯片的镜像,当MODEM芯片的镜像升级完成后,需要切换到FASTBOOT的下载模式下,再分别下载BOOT、SYSTEM及DATA等镜像。工厂下载时也需要2套接口,它使用可视化工具在下载MODEM镜像时调用到平台提供的QPST包装的下载接口(通过DIAG命令传递数据包),调用的是QPST的包装工具接口下载android的linux方镜像。At present, the mobile phone of Qualcomm 7X27 series platform has two main ARM chips, one is the linux chip used to control the Android system, and the other is the chip that handles the boot process and network protocol call function, that is, the MODEM chip. At present, in the development stage of the Qualcomm platform, the download of the android linux data is mainly provided through the FASTBOOT tool interface provided by ANDROID, and the download of the MODEM chip is realized through the QPST (a transmission software developed for Qualcomm chips) tool of Qualcomm. Personnel need to use different generation tools for different generation software according to their own development requirements, which brings great inconvenience to development. If the developer upgrades a complete set of software, he needs to first upgrade the image of the MODEM chip through the QPST tool. After the image upgrade of the MODEM chip is completed, he needs to switch to the download mode of FASTBOOT, and then download the images of BOOT, SYSTEM, and DATA respectively. . The factory download also needs 2 sets of interfaces. It uses the visualization tool to call the QPST package download interface provided by the platform when downloading the MODEM image (passing the data package through the DIAG command), and calls the QPST package tool interface to download the android linux method. mirror image.

通过android提供的FASTBOOT的工具接口提供对AP端数据的下载,通过高通的QPST工具实现对MODEM芯片的下载,这样开发人员需要根据自己的开发要求对不同的生成软件使用不同的生成工具,这样给开发人员和工厂制作工具的开发人员带来了很大的不方便性。Download AP data through the FASTBOOT tool interface provided by android, and download MODEM chips through Qualcomm’s QPST tool. In this way, developers need to use different generation tools for different generation software according to their own development requirements. A great inconvenience to developers and developers of factory-made tools.

发明内容Contents of the invention

本发明的目的旨在至少解决所述技术缺陷之一。The aim of the present invention is to solve at least one of said technical drawbacks.

为此,本发明的一个目的在于提出在一种移动终端中MODEM芯片及LINUX芯片统一下载的方法,该方法可以通过FASTBOOT工具下载安卓系统的LINUX芯片的同时下载MODEM部分的镜像,开发效率高。For this reason, an object of the present invention is to propose the method for unified downloading of MODEM chip and LINUX chip in a kind of mobile terminal, this method can download the mirror image of MODEM part while downloading the LINUX chip of Android system through FASTBOOT tool, and development efficiency is high.

本发明的另一个目的在于提出一种移动终端。Another object of the present invention is to provide a mobile terminal.

为达上述目的,本发明第一方面的实施例提出了一种移动终端中MODEM芯片及LINUX芯片统一下载的方法,包括以下步骤:微型化内核LK根据指令进入快速启动FASTBOOT模式;所述微型化内核LK获得MODEM芯片的OEMSBL中存储的标识;以及所述微型化内核LK根据所述标识判断进行MODEM镜像下载或进行LINUX镜像下载。For reaching above-mentioned purpose, the embodiment of the first aspect of the present invention has proposed a kind of method for the unified download of MODEM chip and LINUX chip in the mobile terminal, comprises the following steps: miniaturization kernel LK enters fast start FASTBOOT pattern according to order; Described miniaturization The kernel LK obtains the identifier stored in the OEMSBL of the MODEM chip; and the miniaturized kernel LK judges to download the MODEM image or the LINUX image according to the identifier.

根据本发明实施例的移动终端中MODEM芯片及LINUX芯片统一下载的方法,通过FASTBOOT工具下载安卓系统的LINUX芯片的同时下载MODEM部分的镜像,从而使开发者在开发阶段专注开发,缩短开发周期,此外,通过统一下载的方法,使开发者只需下载一套工具,就可以完成对所有镜像的升级操作,从而提高开发效率,有利于批量生产。According to the method for unified downloading of the MODEM chip and the LINUX chip in the mobile terminal according to the embodiment of the present invention, download the mirror image of the MODEM part while downloading the LINUX chip of the Android system through the FASTBOOT tool, so that the developer can focus on development during the development stage, shorten the development cycle, In addition, through the unified download method, developers only need to download a set of tools to complete the upgrade operation of all images, thereby improving development efficiency and facilitating mass production.

本发明第二方面的实施例提出了一种移动终端,所述移动终端的微型化内核LK根据指令进入快速启动FASTBOOT模式,并在进入所述快速启动FASTBOOT模式后,所述微型化内核LK获得MODEM芯片的OEMSBL中存储的标识,以及所述微型化内核LK根据所述标识判断进行MODEM镜像下载或进行LINUX镜像下载。The embodiment of the second aspect of the present invention proposes a mobile terminal, the miniaturized kernel LK of the mobile terminal enters the fast boot FASTBOOT mode according to the instruction, and after entering the fast boot FASTBOOT mode, the miniaturized kernel LK obtains The identifier stored in the OEMSBL of the MODEM chip, and the miniaturized kernel LK judges to download the MODEM image or the LINUX image according to the identifier.

根据本发明实施例的移动终端,可以通过FASTBOOT工具下载安卓系统的LINUX芯片的同时下载MODEM部分的镜像,从而缩短开发周期。此外,通过统一下载的方法,使开发者只需下载一套工具,就可以完成对所有镜像的升级操作,从而提高开发效率,有利于批量生产。According to the mobile terminal of the embodiment of the present invention, the image of the MODEM part can be downloaded while the LINUX chip of the Android system is downloaded through the FASTBOOT tool, thereby shortening the development cycle. In addition, through the unified download method, developers only need to download a set of tools to complete the upgrade operation of all images, thereby improving development efficiency and facilitating mass production.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明所述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The stated and/or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1为根据本发明实施例的移动终端中MODEM芯片及LINUX芯片统一下载的方法的流程图;Fig. 1 is the flow chart of the method for unified downloading of MODEM chip and LINUX chip in the mobile terminal according to the embodiment of the present invention;

图2为根据本发明的实施例在LK中进入FASTBOOT模式的处理步骤图;以及Fig. 2 is a processing step diagram of entering the FASTBOOT mode in LK according to an embodiment of the present invention; and

图3为根据本发明的实施例在FASTBOOT模式下载MODEM镜像及LINUX镜像的流程图。Fig. 3 is the flowchart of downloading MODEM image and LINUX image in FASTBOOT mode according to an embodiment of the present invention.

具体实施方式detailed description

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

下文的公开提供了许多不同的实施例或例子用来实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。当然,它们仅仅为示例,并且目的不在于限制本发明。此外,本发明可以在不同例子中重复参考数字和/或字母。这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。此外,本发明提供了的各种特定的工艺和材料的例子,但是本领域普通技术人员可以意识到其他工艺的可应用于性和/或其他材料的使用。另外,以下描述的第一特征在第二特征之“上”的结构可以包括第一和第二特征形成为直接接触的实施例,也可以包括另外的特征形成在第一和第二特征之间的实施例,这样第一和第二特征可能不是直接接触。The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and arrangements of specific examples are described below. Of course, they are only examples and are not intended to limit the invention. Furthermore, the present invention may repeat reference numerals and/or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed. In addition, various specific process and material examples are provided herein, but one of ordinary skill in the art will recognize the applicability of other processes and/or the use of other materials. Additionally, configurations described below in which a first feature is "on" a second feature may include embodiments where the first and second features are formed in direct contact, and may include additional features formed between the first and second features. For example, such that the first and second features may not be in direct contact.

在本发明的描述中,需要说明的是,除非另有规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是机械连接或电连接,也可以是两个元件内部的连通,可以是直接相连,也可以通过中间媒介间接相连,对于本领域的普通技术人员而言,可以根据具体情况理解上述术语的具体含义。In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, or it can be two The internal communication of each element may be directly connected or indirectly connected through an intermediary. Those skilled in the art can understand the specific meanings of the above terms according to specific situations.

参照下面的描述和附图,将清楚本发明的实施例的这些和其他方面。在这些描述和附图中,具体公开了本发明的实施例中的一些特定实施方式,来表示实施本发明的实施例的原理的一些方式,但是应当理解,本发明的实施例的范围不受此限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。These and other aspects of embodiments of the invention will become apparent with reference to the following description and drawings. In these descriptions and drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited by this limit. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

下面参考附图描述根据本发明实施例的提出的移动终端中MODEM芯片及LINUX芯片统一下载的方法。The method for unified downloading of the MODEM chip and the LINUX chip in the mobile terminal proposed according to the embodiment of the present invention will be described below with reference to the accompanying drawings.

如图1所示,本发明提出的移动终端中MODEM芯片及LINUX芯片统一下载的方法,包括以下步骤:As shown in Figure 1, the method for unified downloading of MODEM chip and LINUX chip in the mobile terminal that the present invention proposes comprises the following steps:

步骤S101,微型化内核LK根据指令进入快速启动FASTBOOT模式。Step S101, the miniaturized kernel LK enters the fast boot mode according to the instruction.

微型化内核LK为高通平台进入LINUX操作系统前的一种BOOTLOADER模式,也叫LITTLEKERNEL,可以理解的是微型化的内核主要用于引导流程及下载、充电及点初始LCD的LOGO标识。其中,微型化内核LK根据指令进入快速启动FASTBOOT模式,其中,指令包括热键指令或代码中设置的模式切换指令,例如热键为DOWN键。The miniaturized kernel LK is a BOOTLOADER mode before the Qualcomm platform enters the LINUX operating system, also called LITTLEKERNEL. It can be understood that the miniaturized kernel is mainly used for booting process and downloading, charging, and the LOGO logo of the initial LCD. Wherein, the miniaturized kernel LK enters the fast boot FASTBOOT mode according to the instruction, wherein the instruction includes a hotkey instruction or a mode switching instruction set in the code, for example, the hotkey is a DOWN key.

具体地,微型化内核LK进入FASTBOOT模式的处理过程,如图2所示,包括如下步骤:Specifically, the process for the miniaturized kernel LK to enter the FASTBOOT mode, as shown in Figure 2, includes the following steps:

步骤S201,运行aboot_init函数。Step S201, run the aboot_init function.

步骤S202,判断“DetecthotkeyIf(KEY==DOWN)”如果检测到按下热键DOWN键,则执行步骤S205,否则执行步骤S203。Step S202, judging "DetecthotkeyIf(KEY==DOWN)", if it is detected that the hotkey DOWN key is pressed, then execute step S205, otherwise execute step S203.

步骤S203,确定选用FLASH(FlashMemory,闪存)还是EMMC(EmbeddedMultiMediaCard,嵌入式存储卡)。In step S203, it is determined to select FLASH (FlashMemory, flash memory) or EMMC (EmbeddedMultiMediaCard, embedded memory card).

步骤S204,判断“GetrebootmodeIf(mode==FASTBOOT-MODE)”。如果是,则执行步骤S205,否则进入内核心。Step S204, judge "GetrebootmodeIf(mode==FASTBOOT-MODE)". If yes, execute step S205, otherwise enter the inner core.

在进入aboot_init函数时,Rebootmode通过sharememory接口读modemcore的设定,高通平台中以此判断是否需要进fastbootmode,fastbootmode是一种被动模式,等待USBhost发送command并做相应处理。它是通过移动终端(例如为手机)内部的fastboot服务接受命令的方式来实现的。When entering the aboot_init function, Rebootmode reads the modemcore settings through the sharememory interface, and the Qualcomm platform judges whether to enter fastbootmode based on this. Fastbootmode is a passive mode, waiting for the USBhost to send a command and do corresponding processing. It is realized by accepting commands through the fastboot service inside the mobile terminal (for example, a mobile phone).

步骤S205,进入FASTBOOT模式。Step S205, enter the FASTBOOT mode.

步骤S102,微型化内核LK获得MODEM芯片的OEMSBL中存储的标识。Step S102, the miniaturized kernel LK obtains the identifier stored in the OEMSBL of the MODEM chip.

OEMSBL为MODEM芯片的一种启动BOOT,用于在控制之前进行下载等功能的切换,在MODEM芯片的OEMSBL的BOOT中设置有未下载时的FLAG标识。在执行完步骤S101后,即进入FASTBOOT模式,微型化内核LK获得MODEM芯片的OEMSBL中存储的标识。OEMSBL is a kind of startup BOOT of the MODEM chip, which is used to switch functions such as downloading before control. The BOOT of the OEMSBL of the MODEM chip is provided with a FLAG mark when it is not downloaded. After step S101 is executed, the FASTBOOT mode is entered, and the miniaturized kernel LK obtains the identifier stored in the OEMSBL of the MODEM chip.

步骤S103,微型化内核LK根据标识判断进行MODEM镜像下载或进行LINUX镜像下载。Step S103, the miniaturized kernel LK judges to download the MODEM image or the LINUX image according to the identification.

在本发明的一个实施例中,进行MODEM镜像下载进一步包括:微型化内核LK将下载信息发送至OEMSBL;OEMSBL根据下载信息进行MODEM镜像下载;以及OEMSBL在下载完成之后更新标识。其中,下载信息包括大小SIZE信息、分区参数信息和数据信息,下载信息是从微型化内核LK中获取的。In an embodiment of the present invention, downloading the MODEM image further includes: the miniaturized kernel LK sends the download information to the OEMSBL; the OEMSBL downloads the MODEM image according to the download information; and the OEMSBL updates the identification after the download is completed. Wherein, the download information includes SIZE information, partition parameter information and data information, and the download information is obtained from the miniaturized kernel LK.

在本发明进一步地实施例中,微型化内核LK通过共享内存将下载信息发送至OEMSBL。OEMSBL根据分区参数信息将数据信息写入至对应的分区,并更新偏移地址。其中,OEMSBL通过FLASH中的PROGRAM_IMG函数将数据信息写入至对应的分区。如果写入完成,就进入完成状态,否则微型化内核LK继续向OEMSBL发送下载信息,直至MODEM镜像下载结束。In a further embodiment of the present invention, the miniaturized kernel LK sends the download information to the OEMSBL through the shared memory. OEMSBL writes the data information into the corresponding partition according to the partition parameter information, and updates the offset address. Among them, OEMSBL writes data information to the corresponding partition through the PROGRAM_IMG function in FLASH. If the writing is completed, it enters the completion state, otherwise the miniaturized kernel LK continues to send download information to the OEMSBL until the download of the MODEM mirror image is completed.

下面结合图描述本发明的实施例在FASTBOOT模式下载MODEM镜像及LINUX镜像的过程。Describe the process of downloading the MODEM mirror image and the LINUX mirror image in the FASTBOOT mode in the embodiment of the present invention below in conjunction with figure.

如图3所示,本发明的实施例在FASTBOOT模式下载MODEM镜像及LINUX镜像的过程包括以下步骤:As shown in Figure 3, the embodiment of the present invention downloads the process of MODEM image and LINUX image in FASTBOOT mode and comprises the following steps:

步骤S301,从共享内存中的下载进入的标识区写入未下载时的标识,例如标识为0XAAA5555。Step S301, write the identifier when not downloaded from the identifier area in the shared memory where the download is entered, for example, the identifier is 0XAAA5555.

步骤S302,CMD_FLASH(接受FLASH命令)。Step S302, CMD_FLASH (accepts the FLASH command).

步骤S303,判断“IF(DOWNIMAGE==MEDOM)”,通过设定的数组判定是否进入了MODEM镜像的下载。如果是,执行步骤S304,否则执行步骤S310。Step S303, judging "IF(DOWNIMAGE==MEDOM)", and judging whether the download of the MODEM image has entered through the set array. If yes, execute step S304, otherwise execute step S310.

步骤S304,进入MODEM镜像的下载流程。Step S304, enter into the download process of the MODEM image.

步骤S305,通过共享内存传递下载信息给OEMBSL,改变标记等待OEMSBL的BOOT下载这个SIZE的数据完成。Step S305, transfer the download information to the OEMBSL through the shared memory, change the flag and wait for the BOOT of the OEMSBL to download the data of this SIZE to complete.

步骤S306,OEMSBL得到LK的下载信息,并将一些状态标志复位。Step S306, OEMSBL obtains the download information of LK, and resets some status flags.

步骤S307,通过FLASH的PROGRAM_IMG函数将数据写入对应的分区,并将偏移地址下移,等待数据的接收完成。Step S307, write the data into the corresponding partition through the PROGRAM_IMG function of FLASH, move the offset address down, and wait for the completion of data reception.

步骤S308,“IF(*DATA==END)”,判断是否循环写入完成。如果是则执行步骤S311,否则执行步骤S309。Step S308, "IF(*DATA==END)", judge whether the cyclic writing is completed. If yes, execute step S311, otherwise execute step S309.

步骤S309,通过共享内存传递下一次的下载信息给OEMBSL,改变标识等待OEMSBL的BOOT下载这个SIZE的数据完成,返回步骤S306。Step S309, transmit the next download information to OEMBSL through the shared memory, change the identification and wait for the BOOT of OEMSBL to download the data of this SIZE to complete, and return to step S306.

步骤S310,继续之前ANDROID默认的对BOOTSYSTEM及DATA等镜像的下载方式。Step S310 , continuing the default way of downloading images such as BOOTSYSTEM and DATA by ANDROID.

步骤S311,完成。Step S311, complete.

具体地,当移动终端例如手机开机进入到LK模式中,即系统开始运行,微型化内核LK通过热键及代码中设置的模式切换指令进入FASTBOOT模式。写入前先要在OEMSBL的BOOT中设置未下载时的FLAG标识,以判断下载的阶段,微型化内核LK通过共享内存传递SIZE和分区参数及要写入分区的数据给OEMBSL,改变标识等待OEMSBL的BOOT下载这个SIZE的数据完成,OEMSBL得到LK的下载信息,例如大小SIZE信息、分区参数信息及数据信息,并将一些状态标志复位,通过FLASH的PROGRAM_IMG等可以对FLASH读写的操作函数将数据写入对应的分区,并将偏移地址下移,等待数据的接收完成,然后在LK这边判断是否写入完成,如果写入完成,就进入完成状态,否则就再次通过共享内存传递下一次的下载信息给OEMBSL,改变标识等待OEMSBL的BOOT下载这个SIZE的数据完成。Specifically, when a mobile terminal such as a mobile phone is powered on and enters the LK mode, that is, the system starts to run, the miniaturized kernel LK enters the FASTBOOT mode through the hotkey and the mode switching command set in the code. Before writing, set the FLAG flag when it is not downloaded in the BOOT of OEMSBL to judge the downloading stage. The miniaturized kernel LK transmits the SIZE and partition parameters and the data to be written to the partition to OEMBSL through the shared memory, and changes the flag to wait for OEMSBL After the BOOT downloads the data of this SIZE, OEMSBL obtains the download information of LK, such as size information, partition parameter information and data information, and resets some status flags. The data can be read and written to FLASH through the operation function of FLASH PROGRAM_IMG and so on. Write to the corresponding partition, and move the offset address down, wait for the completion of the data reception, and then judge whether the writing is completed on the LK side, if the writing is completed, enter the completion state, otherwise pass the next time through the shared memory Send the download information to OEMBSL, change the logo and wait for the BOOT of OEMSBL to download the data of this SIZE to complete.

本发明实施例的移动终端中MODEM芯片及LINUX芯片统一下载的方法采用扩展功能的FASTBOOT下载方式,扩展了FASTBOOT下载的功能,加入判断是否是下载MODEM的某一个镜像,如果不是,继续ANDROID默认的对android的linux方下载的流程,如果是,将加入的镜像的数据及大小通过共享内存通过分段的方式循环通过共享内存传递给MEDOM的OEMSBL,使其通过写入FLASH函数写入到MODEM的镜像中,从而可以同时下载MODEM部分的镜像,如AMSS(即MODEM芯片控制方的主镜像)、CEFS及OEMSBL的代码等。The method for unified downloading of the MODEM chip and the LINUX chip in the mobile terminal of the embodiment of the present invention adopts the FASTBOOT download mode of the extended function, expands the function of the FASTBOOT download, and joins to judge whether it is to download a certain image of the MODEM, if not, continue the ANDROID default For the downloading process of the linux side of android, if it is, the data and size of the added image will be passed to the OEMSBL of MEDOM through the shared memory in a segmented manner through the shared memory, so that it can be written to the MODEM by writing the FLASH function In the mirror image, the mirror image of the MODEM part can be downloaded at the same time, such as AMSS (ie, the main mirror image of the modem chip controller), CEFS and OEMSBL codes, etc.

根据本发明实施例的移动终端中MODEM芯片及LINUX芯片统一下载的方法,通过FASTBOOT工具下载安卓系统的LINUX芯片的同时下载MODEM部分的镜像,从而使开发者在开发阶段专注开发,缩短开发周期,此外,通过统一下载的方法,使开发者只需下载一套工具,就可以完成对所有镜像的升级操作,从而提高开发效率,有利于批量生产。According to the method for unified downloading of the MODEM chip and the LINUX chip in the mobile terminal according to the embodiment of the present invention, download the mirror image of the MODEM part while downloading the LINUX chip of the Android system through the FASTBOOT tool, so that the developer can focus on development during the development stage, shorten the development cycle, In addition, through the unified download method, developers only need to download a set of tools to complete the upgrade operation of all images, thereby improving development efficiency and facilitating mass production.

下面对根据本发明进一步实施例的移动终端进行描述。A mobile terminal according to a further embodiment of the present invention will be described below.

本发明实施例的移动终端具有微型化内核LK,移动终端的微型化内核LK根据指令进入快速启动FASTBOOT模式,并在进入快速启动FASTBOOT模式后,微型化内核LK获得MODEM芯片的OEMSBL中存储的标识,以及微型化内核LK根据标识判断进行MODEM镜像下载或进行LINUX镜像下载。The mobile terminal in the embodiment of the present invention has a miniaturized kernel LK, and the miniaturized kernel LK of the mobile terminal enters the fast boot FASTBOOT mode according to the instruction, and after entering the fast boot FASTBOOT mode, the miniaturized kernel LK obtains the logo stored in the OEMSBL of the MODEM chip , and the miniaturized kernel LK judges to download the MODEM image or the LINUX image according to the identification.

在本发明的一个实施例中,指令包括热键指令或代码中设置的模式切换指令。In one embodiment of the present invention, the instruction includes a hotkey instruction or a mode switching instruction set in the code.

在本发明的一个实施例中,微型化内核LK用于将下载信息发送至OEMSBL,并根据下载信息进行MODEM镜像下载,其中,OEMSBL在下载完成之后更新所述标识。其中,下载信息包括大小SIZE信息、分区参数信息和数据信息,其中,下载信息是从微型化内核LK中获取的。In one embodiment of the present invention, the miniaturized kernel LK is used to send the download information to the OEMSBL, and perform MODEM image download according to the download information, wherein the OEMSBL updates the identification after the download is completed. The download information includes SIZE information, partition parameter information and data information, wherein the download information is obtained from the miniaturized kernel LK.

进一步地,微型化内核LK通过共享内存将下载信息发送至OEMSBL。OEMSBL根据分区参数信息将数据信息写入至对应的分区,并更新偏移地址。具体地,OEMSBL通过FLASH中的PROGRAM_IMG函数将数据信息写入至对应的分区。Further, the miniaturized kernel LK sends the download information to the OEMSBL through the shared memory. OEMSBL writes the data information into the corresponding partition according to the partition parameter information, and updates the offset address. Specifically, OEMSBL writes data information into corresponding partitions through the PROGRAM_IMG function in FLASH.

在本发明的一个实施例中,微型化内核LK还用于继续向OEMSBL发送下载信息,直至MODEM镜像下载结束。In one embodiment of the present invention, the miniaturized kernel LK is also used to continue sending download information to the OEMSBL until the download of the MODEM image is completed.

具体地,当移动终端例如手机开机进入到LK模式中,即系统开始运行,微型化内核LK通过热键及代码中设置的模式切换指令进入FASTBOOT模式。写入前先要在OEMSBL的BOOT中设置未下载时的FLAG标识,以判断下载的阶段,微型化内核LK通过共享内存传递SIZE和分区参数及要写入分区的数据给OEMBSL,改变标识等待OEMSBL的BOOT下载这个SIZE的数据完成,OEMSBL得到LK的下载信息,例如大小SIZE信息、分区参数信息及数据信息,并将一些状态标志复位,通过FLASH的PROGRAM_IMG等可以对FLASH读写的操作函数将数据写入对应的分区,并将偏移地址下移,等待数据的接收完成,然后在LK这边判断是否写入完成,如果写入完成,就进入完成状态,否则就再次通过共享内存传递下一次的下载信息给OEMBSL,改变标识等待OEMSBL的BOOT下载这个SIZE的数据完成。Specifically, when a mobile terminal such as a mobile phone is powered on and enters the LK mode, that is, the system starts to run, the miniaturized kernel LK enters the FASTBOOT mode through the hotkey and the mode switching command set in the code. Before writing, set the FLAG flag when it is not downloaded in the BOOT of OEMSBL to judge the downloading stage. The miniaturized kernel LK transmits the SIZE and partition parameters and the data to be written to the partition to OEMBSL through the shared memory, and changes the flag to wait for OEMSBL After the BOOT downloads the data of this SIZE, OEMSBL obtains the download information of LK, such as size information, partition parameter information and data information, and resets some status flags. The data can be read and written to FLASH through the operation function of FLASH PROGRAM_IMG and so on. Write to the corresponding partition, and move the offset address down, wait for the completion of the data reception, and then judge whether the writing is completed on the LK side, if the writing is completed, enter the completion state, otherwise pass the next time through the shared memory Send the download information to OEMBSL, change the logo and wait for the BOOT of OEMSBL to download the data of this SIZE to complete.

根据本发明实施例的移动终端可以通过FASTBOOT工具下载安卓系统的LINUX芯片的同时下载MODEM部分的镜像,从而缩短开发周期。此外,通过统一下载的方法,使开发者只需下载一套工具,就可以完成对所有镜像的升级操作,从而提高开发效率,有利于批量生产。The mobile terminal according to the embodiment of the present invention can download the image of the MODEM part while downloading the LINUX chip of the Android system through the FASTBOOT tool, thereby shortening the development cycle. In addition, through the unified download method, developers only need to download a set of tools to complete the upgrade operation of all images, thereby improving development efficiency and facilitating mass production.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对所述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。在本发明中,术语“多个”是指两个或两个以上。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. In the present invention, the term "plurality" means two or more.

尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. and modifications, the scope of the invention is defined by the appended claims and their equivalents.

Claims (16)

1. MODEM chip and the unified method downloaded of LINUX chip in a mobile terminal, it is characterised in that, comprise the following steps:
Miniatureization kernel LK enters according to instruction and starts FASTBOOT pattern fast;
Described miniatureization kernel LK obtains in the OEMSBL of MEDOM chip the mark stored; And
Described miniatureization kernel LK carries out MODEM image download according to described mark judgement or carries out LINUX image download.
2. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 1, it is characterised in that, described instruction comprises in hot key instruction or code the pattern switching command arranged.
3. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 1, it is characterised in that, described in carry out MEDOM image download, comprise further:
Download Info is sent to OEMSBL by described miniatureization kernel LK;
Described OEMSBL carries out MODEM image download according to described Download Info; And
Described OEMSBL upgrades described mark after downloading completes.
4. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 3, it is characterized in that, described Download Info comprises size SIZE information, partitioned parameters information and data information, and wherein, described Download Info obtains from described miniatureization kernel LK.
5. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 4, it is characterised in that, Download Info is sent to OEMSBL by shared drive by described miniatureization kernel LK.
6. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 4, it is characterised in that, described data information is write to the subregion of correspondence by described OEMSBL according to partitioned parameters information, and upgrades skew address.
7. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 6, it is characterised in that, described data information is write to the subregion of correspondence by described OEMSBL by the PROGRAM_IMG function in FLASH.
8. MODEM chip and the unified method downloaded of LINUX chip in mobile terminal as claimed in claim 6, it is characterised in that, also comprise:
Described miniatureization kernel LK continues to send Download Info to described OEMSBL, until MODEM image download terminates.
9. a mobile terminal, it is characterized in that, the miniatureization kernel LK of described mobile terminal enters according to instruction and starts FASTBOOT pattern fast, and after entering described quick startup FASTBOOT pattern, described miniatureization kernel LK obtains in the OEMSBL of MODEM chip the mark stored, and described miniatureization kernel LK carries out MODEM image download according to described mark judgement or carries out LINUX image download.
10. mobile terminal as claimed in claim 9, it is characterised in that, described instruction comprises in hot key instruction or code the pattern switching command arranged.
11. mobile terminals as claimed in claim 9, it is characterized in that, described miniatureization kernel LK is for being sent to OEMSBL by Download Info, and carries out MODEM image download according to described Download Info, wherein, described OEMSBL upgrades described mark after downloading completes.
12. mobile terminals as claimed in claim 11, it is characterised in that, described Download Info comprises size SIZE information, partitioned parameters information and data information, and wherein, described Download Info obtains from described miniatureization kernel LK.
13. mobile terminals as claimed in claim 12, it is characterised in that, Download Info is sent to OEMSBL by shared drive by described miniatureization kernel LK.
14. mobile terminals as claimed in claim 12, it is characterised in that, described OEMSBL is used for described data information being write to the subregion of correspondence according to partitioned parameters information, and upgrades skew address.
15. mobile terminals as claimed in claim 14, it is characterised in that, described OEMSBL is used for described data information being write to the subregion of correspondence by the PROGRAM_IMG function in FLASH.
16. mobile terminals as claimed in claim 14, it is characterised in that, described miniatureization kernel LK also sends Download Info for continuing to described OEMSBL, until MODEM image download terminates.
CN201210589901.XA 2012-12-31 2012-12-31 Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof Expired - Fee Related CN103905631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210589901.XA CN103905631B (en) 2012-12-31 2012-12-31 Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210589901.XA CN103905631B (en) 2012-12-31 2012-12-31 Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof

Publications (2)

Publication Number Publication Date
CN103905631A CN103905631A (en) 2014-07-02
CN103905631B true CN103905631B (en) 2016-06-01

Family

ID=50996782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210589901.XA Expired - Fee Related CN103905631B (en) 2012-12-31 2012-12-31 Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof

Country Status (1)

Country Link
CN (1) CN103905631B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484211B (en) * 2014-12-29 2017-07-28 广东欧珀移动通信有限公司 The method and device of shared image file
CN106663016A (en) * 2015-05-15 2017-05-10 华为技术有限公司 Upgrade method, apparatus and device for terminal device
CN104965746B (en) * 2015-07-23 2019-07-12 小米科技有限责任公司 The method and device of quick start
CN112181506B (en) * 2020-09-29 2024-04-19 美唐科技(江苏)有限公司 Software downloading system based on double 1860 system terminals and downloading method thereof
CN114327657B (en) * 2021-12-28 2023-06-16 福建新大陆支付技术有限公司 Large mirror image division downloading and signature verification method based on Fastboot and storage medium thereof
CN115134667B (en) * 2022-06-28 2024-05-31 深圳创维-Rgb电子有限公司 Method, device, equipment and computer-readable storage medium for burning key in television
CN115543454B (en) * 2022-08-19 2024-11-29 荣耀终端有限公司 A control method and device for electronic equipment
CN115390864B (en) * 2022-09-29 2025-06-27 展讯通信(上海)有限公司 Data processing method and device in flashing, readable storage medium, and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593122A (en) * 2009-06-24 2009-12-02 中兴通讯股份有限公司 A startup method and device for an embedded system
CN102045703A (en) * 2009-10-14 2011-05-04 三竹资讯股份有限公司 Device and method for providing mobile device to download compatible software
EP2512064A1 (en) * 2010-01-08 2012-10-17 Huawei Technologies Co., Ltd. Data configuration method and apparatus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996642B2 (en) * 2002-04-02 2006-02-07 International Business Machines Corporation Adapter, converted data storage device and method of operation of a converted data storage device
US20090133014A1 (en) * 2007-11-16 2009-05-21 Nokia Corporation Methods, apparatuses and computer program product for automatic download of software dependencies on installation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593122A (en) * 2009-06-24 2009-12-02 中兴通讯股份有限公司 A startup method and device for an embedded system
CN102045703A (en) * 2009-10-14 2011-05-04 三竹资讯股份有限公司 Device and method for providing mobile device to download compatible software
EP2512064A1 (en) * 2010-01-08 2012-10-17 Huawei Technologies Co., Ltd. Data configuration method and apparatus

Also Published As

Publication number Publication date
CN103905631A (en) 2014-07-02

Similar Documents

Publication Publication Date Title
CN103905631B (en) Mobile terminal and the unified method downloaded of MODEM and LINUX chip thereof
CN102232304B (en) Method, system and terminal for system upgrade between mobile communication terminals
CN102902556B (en) The multistage boot load method of a kind of embedded equipment
CN103853586B (en) Method of realizing wireless card driver in UEFI (unified extensible firmware interface) layer
CN103761088A (en) Multiple operation system switching method applicable to ARM (advanced risc machine) framework mobile equipment
CN102646043A (en) Mobile terminal software upgrading method, upgrading device and mobile terminal
CN103399761A (en) Firmware burn method and firmware burn device
JP2009544095A (en) OTA-capable mobile terminal program update system and method
US20060136899A1 (en) Method for programming/updating software using USB OTG
CN105718281A (en) Touch screen firmware upgrading method and device
WO2015074435A1 (en) Method and apparatus for updating firmware of mobile terminal
CN103019755B (en) The wireless program method for down loading of multi-CPU in embedded system
CN104050006A (en) Updating system and updating method of FPGA
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
KR100642045B1 (en) System and method for downloading multimedia programs from a host processor to a multimedia processor
CN103840968A (en) Version updating method, version updating device and terminal equipment
CN109471651B (en) Firmware upgrading method, gateway equipment and firmware upgrading system
KR100632405B1 (en) Wireless Transmit / Receive Method for Dynamic Sensor Node Reconfiguration in Wireless Sensor Networks
CN104158709B (en) A kind of optical module knows method for distinguishing and ports-Extending equipment
CN110908690A (en) An online upgrade method for multiple BMU applications based on CAN bus
CN107168750A (en) A kind of firmware upgrade guard method and system
CN101753672B (en) System and method for rapidly repairing wireless terminal
CN116820841A (en) Starting method, device, equipment, medium and product of terminal equipment
CN104423984A (en) Online upgrading method and online upgrading system
CN104423997A (en) Remote base station version installing method and remote base station version installing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160601

CF01 Termination of patent right due to non-payment of annual fee