WO2021162367A1 - 전자 장치 및 전자 장치의 초기화 방법 - Google Patents

전자 장치 및 전자 장치의 초기화 방법 Download PDF

Info

Publication number
WO2021162367A1
WO2021162367A1 PCT/KR2021/001589 KR2021001589W WO2021162367A1 WO 2021162367 A1 WO2021162367 A1 WO 2021162367A1 KR 2021001589 W KR2021001589 W KR 2021001589W WO 2021162367 A1 WO2021162367 A1 WO 2021162367A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
mode
booting
memory
initialization
Prior art date
Application number
PCT/KR2021/001589
Other languages
English (en)
French (fr)
Inventor
김병철
김기석
김민규
오재민
이상현
Original Assignee
삼성전자 주식회사
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 삼성전자 주식회사 filed Critical 삼성전자 주식회사
Publication of WO2021162367A1 publication Critical patent/WO2021162367A1/ko
Priority to US17/885,216 priority Critical patent/US11953983B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/34Microprocessors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2201/00Electronic components, circuits, software, systems or apparatus used in telephone systems
    • H04M2201/36Memories

Definitions

  • This document relates to an electronic device, and more particularly, to an initialization method after recording a software binary in the electronic device.
  • a portable electronic device represented by a smart phone can be equipped with various functions.
  • the electronic device may store various software in a memory, and software binaries (or system software) such as a boot loader, an operating system, and a device driver may be written or flashed in a predetermined area of the memory.
  • the software binary may be initially recorded in the memory of the electronic device during a process of the electronic device, and thereafter, the user may update the software binary by using an update tool in another device connected to the electronic device.
  • a reboot process is required.
  • a conventional electronic device boots in a recovery mode for system initialization after recording software binaries, and then reboots in a normal mode.
  • An electronic device includes a memory and a processor operatively connected to the memory, wherein the processor records a software binary received from an external device in a download mode in the memory, and the When the download mode is terminated, if a predetermined software binary exists among the software binaries recorded in the memory, booting is performed in the normal mode using the boot loader, and if the predetermined software binary does not exist, the It may be configured to perform booting in a recovery mode using a boot loader.
  • the initialization method of an electronic device includes an operation of recording a software binary received from an external device in a memory in a download mode, and when the download mode is terminated, a predetermined software binary among the software binaries recorded in the memory is If there is, booting in the normal mode using the boot loader, and if the predetermined software binary does not exist, booting in the recovery mode using the boot loader. can do.
  • an efficient initialization method when an electronic device records a software binary in a memory, an efficient initialization method may be provided.
  • FIG. 1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure
  • FIG. 2 illustrates an electronic device and an external device executing a flash tool according to various embodiments of the present disclosure.
  • FIG. 3 is a block diagram of an electronic device according to various embodiments of the present disclosure.
  • FIG. 4 illustrates a build system of software binaries according to various embodiments.
  • FIG. 5 illustrates an operation in a download mode of an electronic device according to various embodiments of the present disclosure.
  • FIG. 6 illustrates a booting method of an electronic device according to various embodiments of the present disclosure.
  • FIG. 7 is a flowchart of a method of initializing an electronic device according to various embodiments of the present disclosure.
  • FIG. 8 is a flowchart of a method of initializing an electronic device according to various embodiments of the present disclosure
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199
  • the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120 , a memory 130 , an input device 150 , a sound output device 155 , a display device 160 , an audio module 170 , and a sensor module ( 176 , interface 177 , haptic module 179 , camera module 180 , power management module 188 , battery 189 , communication module 190 , subscriber identification module 196 , or antenna module 197 . ) may be included. In some embodiments, at least one of these components (eg, the display device 160 or the camera module 180 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components may be implemented as one integrated circuit. For example, the sensor module 176 (eg, a fingerprint sensor, an iris sensor, or an illuminance sensor) may be implemented while being embedded in the display device 160 (eg, a display).
  • the sensor module 176 eg, a fingerprint sensor, an iris sensor, or an illuminance sensor
  • the processor 120 for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be loaded into the volatile memory 132 , process commands or data stored in the volatile memory 132 , and store the resulting data in the non-volatile memory 134 .
  • software eg, a program 140
  • the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 .
  • the volatile memory 132 may be loaded into the volatile memory 132 , process commands or data stored in the volatile memory 132 , and store the resulting data in the non-volatile memory 134 .
  • the processor 120 includes a main processor 121 (eg, a central processing unit or an application processor), and a secondary processor 123 (eg, a graphics processing unit, an image signal processor) that can be operated independently or in conjunction with the main processor 121 . , a sensor hub processor, or a communication processor). Additionally or alternatively, the auxiliary processor 123 may be configured to use less power than the main processor 121 or to be specialized for a designated function. The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .
  • a main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphics processing unit, an image signal processor
  • the auxiliary processor 123 may be configured to use less power than the main processor 121 or to be specialized for a designated function.
  • the auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .
  • the auxiliary processor 123 may be, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display device 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the coprocessor 123 eg, an image signal processor or a communication processor
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176 ) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto.
  • the memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input device 150 may receive a command or data to be used by a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 .
  • the input device 150 may include, for example, a microphone, a mouse, a keyboard, or a digital pen (eg, a stylus pen).
  • the sound output device 155 may output a sound signal to the outside of the electronic device 101 .
  • the sound output device 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback, and the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.
  • the display device 160 may visually provide information to the outside (eg, a user) of the electronic device 101 .
  • the display device 160 may include, for example, a display, a hologram device, or a projector and a control circuit for controlling the corresponding device.
  • the display device 160 may include a touch circuitry configured to sense a touch or a sensor circuit (eg, a pressure sensor) configured to measure the intensity of a force generated by the touch. there is.
  • the audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input device 150 , or an external electronic device (eg, a sound output device 155 ) connected directly or wirelessly with the electronic device 101 . The sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • an external electronic device eg, a sound output device 155
  • the sound may be output through the electronic device 102 (eg, a speaker or a headphone).
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more designated protocols that may be used for the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • HDMI high definition multimedia interface
  • USB universal serial bus
  • SD card interface Secure Digital Card
  • the connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 388 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication through the established communication channel.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a local area network (LAN) communication module, or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : It may include a local area network (LAN) communication module, or a power line communication module.
  • a corresponding communication module is a first network 198 (eg, a short-range communication network such as Bluetooth, WiFi direct, or IrDA (infrared data association)) or a second network 199 (eg, a cellular network, the Internet, or It may communicate with an external electronic device via a computer network (eg, a telecommunication network such as a LAN or WAN).
  • a computer network eg, a telecommunication network such as a LAN or WAN.
  • These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other.
  • the wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 .
  • the electronic device 101 may be identified and authenticated.
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module may include one antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 197 may include a plurality of antennas. In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, RFIC
  • other than the radiator may be additionally formed as a part of the antenna module 197 .
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the electronic devices 102 and 104 may be the same or a different type of the electronic device 101 .
  • all or a part of operations executed in the electronic device 101 may be executed in one or more of the external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 may perform the function or service itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • the one or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 .
  • the electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing, distributed computing, or client-server computing technology may be used.
  • the electronic device may have various types of devices.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a wearable device e.g., a smart bracelet
  • a home appliance device e.g., a home appliance
  • first”, “second”, or “first” or “second” may simply be used to distinguish the component from other such components, and refer to those components in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as, for example, logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • Various embodiments of the present document include one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101).
  • a machine eg, electronic device 101
  • the processor eg, the processor 120
  • the device eg, the electronic device 101
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term is used in cases where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • the method according to various embodiments disclosed in this document may be provided as included in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a device-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play StoreTM) or on two user devices (eg, It can be distributed (eg downloaded or uploaded) directly, online between smartphones (eg: smartphones).
  • a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
  • each component eg, a module or a program of the above-described components may include a singular or a plurality of entities.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.
  • FIG. 2 illustrates an electronic device and an external device executing a flash tool according to various embodiments of the present disclosure.
  • the electronic device 200 is a portable electronic device such as a smart phone or a tablet PC, and may include at least some of the configuration and/or functions of the electronic device 101 of FIG. 1 .
  • the electronic device 200 includes one or more memories, and the memories include a main memory (eg, volatile memory 132 of FIG. 1 ) and storage (eg, non-volatile memory 134 of FIG. 1 ). may include.
  • the electronic device 200 may store various software binaries in the storage.
  • the software binary may include system software such as a bootloader, a kernel, an operating system, and a device driver.
  • the software binaries may be recorded in one area of the storage.
  • being able to be written may mean being flashed to an area of storage and maintained as long as the same or different software binaries are not written to or corrupted in the same storage area.
  • the electronic device 200 may store (or record) various software binaries, and each of the software binaries may be stored in separate partitions.
  • the electronic device 200 may record software binaries in a predetermined mode.
  • an operation mode for recording software binaries is defined as a download mode.
  • the electronic device 200 receives the software binary from the external device 290 connected by wire or wirelessly and writes it in the memory by operating in the download mode when a part of the manufacturing process of the electronic device 200 or software (or firmware) is updated. can do.
  • the external device 290 is a device capable of executing a flash tool, and the type of the external device 290 is not limited.
  • the external device 290 may be a computer device used in the manufacturing process, and when the user makes the software binary, the external device 290 .
  • 290 may be a personal computer (PC).
  • a printed board assembly (PBA) is completed through a surface mount technology (SMT) process on, for example, a printed circuit board (PCB) in a manufacturing process of the electronic device 200
  • SMT surface mount technology
  • PCB printed circuit board
  • the user executes the flash tool on the external device 290 (eg, PC) to download updated software binaries from an external server, and connects the electronic device 200 by wire or wirelessly to the electronic device ( 200), updated software binaries can be written to the memory.
  • the external device 290 eg, PC
  • the electronic device 200 after recording (or flashing) a software binary in the download mode, the electronic device 200 must go through booting to initialize the system.
  • the electronic device 200 may boot in a normal mode or a recovery mode.
  • the electronic device 200 In order to use a function, such as an application, of the electronic device 200, the electronic device 200 must be booted in the normal mode. That is, even if the electronic device 200 is booted in the recovery mode after recording the software binary, in order to actually use the function of the electronic device 200, a reboot is required in the normal mode.
  • FIG. 3 is a block diagram of an electronic device 300 according to various embodiments.
  • the electronic device 300 includes a processor 310 , a memory 320 , an interface 330 , and a display 340 , and even if some of the illustrated components are omitted or replaced, various Embodiments may be implemented.
  • the electronic device 300 may include at least some of the configuration and/or functions of the electronic device of FIG. 1 .
  • the display 340 may display an image and may be implemented as a touch screen.
  • the display 340 may output a predetermined image to each mode (or state), and a progress bar indicating progress in each mode. ) can be displayed.
  • the interface 330 may support connection to an external device (eg, the external device 290 of FIG. 2 ).
  • the interface 330 may include a universal serial bus (USB) interface, and the electronic device 300 may be connected to an external device through a USB port to receive various data (eg, software binaries).
  • USB universal serial bus
  • the electronic device 300 includes one or more memories 320 , and the memory 320 may include a main memory and a storage.
  • the main memory may be configured as a volatile memory such as dynamic random access memory (DRAM), static RAM (SRAM), or synchronous dynamic RAM (SDRAM).
  • the storage may include at least one of one time programmable ROM (OTPROM), PROM, EPROM, EEPROM, mask ROM, flash ROM, flash memory, hard drive, or solid state drive (SSD).
  • OTPROM time programmable ROM
  • PROM PROM
  • EPROM EPROM
  • EEPROM EEPROM
  • flash ROM flash memory
  • flash memory hard drive
  • SSD solid state drive
  • the processor 310 is operatively, functionally, with each component of the electronic device 300 such as the display 340, the interface 330, and the memory 320, And/or it may be electrically connected, and may be a configuration capable of performing calculations or data processing related to control and/or communication of each component.
  • the processor 310 may include at least some of the configuration and/or functions of the processor 120 of FIG. 1 .
  • the functions that the processor 310 can perform are not limited, but in this document, after the download mode is terminated, various methods for booting into a normal mode or a recovery mode using a bootloader are provided. Embodiments will be described. Operations of the processor 310 to be described later may be performed by loading instructions stored in the memory 320 (eg, storage).
  • the processor 310 may receive a software binary from an external device (eg, the external device 290 of FIG. 2 ) in the download mode and write it to the memory 320 (eg, storage).
  • the electronic device 300 is connected to an external device through the interface 330 and the external device executes a flash tool, or a hard key (eg, a volume key, an end key) of the electronic device 300 .
  • the download mode may be executed when a predetermined input is received.
  • the download mode may be executed when a software binary is recorded in a manufacturing process of the electronic device 300 or when a software binary is updated in a use process of the electronic device 300 .
  • the software binary may include system software such as a bootloader, a kernel, an operating system, and a device driver.
  • the electronic device may divide the memory 320 into a plurality of partitions, and each software binary may be recorded in each partition.
  • the processor 310 may perform a booting process using a boot loader.
  • the bootloader may be a program for finishing tasks necessary for a kernel to start properly and finally starting the operating system while being executed before the operating system is started.
  • the boot loader cannot use the file system, but can access a specific partition or address area of the memory 320 to execute software binaries recorded in the partition or address area.
  • the booting method of the bootloader may include a normal booting and a recovery booting.
  • the normal booting may be initializing the operating system so that applications of the electronic device 300 can be used by operating normally.
  • the recovery boot cannot use applications, but may be a boot used for system setting, factory reset, and the like.
  • the processor 310 may perform a normal boot or a recovery boot based on a flag indicating a boot mode.
  • the processor 310 may check whether a predetermined software binary exists among the software binaries recorded in the memory 320 .
  • the predetermined software binary may be a software binary recording initialization options to be processed at the time of first booting.
  • initialization options to be processed at boot time can be recorded in misc.bin, but the options may be recorded in other software binaries.
  • a software binary recording initialization options to be processed during booting may be generated using a binary generation tool (or generator) at a build time of the software binary.
  • a flag indicating the boot mode in the download mode may be set as a default to the recovery mode, and the processor 310 records the initialization option to be processed at the time of booting. misc.bin) is recorded in the memory 320 , the flag may be changed to a normal mode (or skip recovery mode).
  • the boot loader can determine which software binaries are being written to the partition of the memory 320 when sequentially writing the software binaries to the memory 320, and the software binaries that record initialization options to be processed during booting are You can change the flag by making sure it is written to a specific partition.
  • a predetermined software binary eg, misc.bin, a software binary for recording initialization options to be processed during booting
  • the processor 310 uses the boot loader to You can boot in normal mode.
  • the processor 310 may perform initialization options recorded in a corresponding software binary while performing normal booting.
  • the initialization option may include resizing a predetermined partition, for example, resizing a user data partition (eg, /data).
  • the memory 320 (eg, storage) of the electronic device 300 may be divided into a plurality of partitions, and a user data partition in which user data including various applications is stored may be set.
  • the processor 310 may resize the user data partition based on the capacity of the memory 320 of the electronic device 300 .
  • the user data partition may be resized to 256 GB, and if the storage capacity of the memory 320 is 512 GB, the user data partition may be resized to 512 GB. Accordingly, the size of the user data partition may be appropriately set according to the storage capacity.
  • the initialization option may further include various initialization commands.
  • the initialization command may include delete_apn_change, and in this case, the processor 310 may initialize or delete an apn-related file.
  • Examples of the initialization command that can be written to the predetermined software binary are not limited thereto, and various initialization commands that can be performed in the recovery mode may be included.
  • the processor 310 may delete the initialization option recorded in the corresponding software binary (eg, misc.bin). Accordingly, when rebooting, the recorded initialization options may not be executed.
  • booting in the recovery mode using the boot loader can be performed.
  • the processor 310 may resize or format the user data partition in the recovery mode, and may perform an initialization command included in a customer software customization (CSC) image.
  • initialization commands of the CSC image may exist in cache.img (/cache/recovery/command).
  • the processor 310 may reboot into the normal mode.
  • FIG. 4 illustrates a build system of software binaries according to various embodiments.
  • the illustrated build system 430 may be a system for generating a predetermined binary (eg, misc.bin, a software binary that records initialization options to be processed during booting) for general boot initialization according to various embodiments. .
  • a predetermined binary eg, misc.bin, a software binary that records initialization options to be processed during booting
  • a user initialization binary 411 for a user binary in which initialization options are recorded and a process initialization binary 412 for a process binary may be generated on the build system, respectively.
  • the build system (or the developer of the software binary) generates a process initialization binary 412 containing initialization options (eg, command 1) to be written by the electronic device in the manufacturing process of the electronic device, and the use of the electronic device.
  • a user initialization binary 411 including initialization options (eg, command 1, command 2) to be used may be generated.
  • the user initialization binary 411 may further include an initialization command (eg, command 2, customer service customization (CSC)) not used in the manufacturing process compared to the process initialization binary 412 . .
  • CSC customer service customization
  • the process initialization binary 412 and the user initialization binary 411 may be included in a software binary that records initialization options to be processed during booting for general boot initialization. It is possible to separate initialization commands for each type of software binary (eg, process binary and user binary), and implement a binary generator in consideration of scalability.
  • Binaries that record initialization options can be packaged with other binaries. (420) At this time, the process binary and the user binary may be packaged separately.
  • the build system 430 generates a software binary including final other binary images and binaries in which initialization options are recorded, for example, misc.bin, which is the process initialization binary 412 and the user initialization binary 411. can do. (435)
  • FIG. 5 illustrates an operation in a download mode of an electronic device according to various embodiments of the present disclosure.
  • the electronic device (eg, the electronic device 300 of FIG. 3 ) operates in a download mode during a part of a manufacturing process of the electronic device or when software is updated, and an external device (eg, the electronic device 300 of FIG. 3 ) connected by wire or wirelessly 2, it is possible to receive the software binary from the external device 290) and write it to the memory.
  • an external device eg, the electronic device 300 of FIG. 3
  • the external device may receive a software binary to be recorded in the electronic device from the external server by using the flash tool 530 .
  • the flash tool 530 may include a binary (eg, misc.bin) 520 in which initialization options are recorded.
  • the flash tool 530 may receive various software binaries including system software such as a bootloader, a kernel, an operating system, and a device driver.
  • the electronic device When the electronic device is connected to an external device through an interface, it may operate in a download mode ( 540 ), and in the download mode, an operation other than an operation of receiving a software binary from a flash tool of the external device and writing it to the memory may not be performed. have.
  • the electronic device may display a progress bar indicating the progress of the download mode on the display.
  • FIG. 6 illustrates a booting method of an electronic device according to various embodiments of the present disclosure.
  • the electronic device may record the software binary received from the external device in the memory in the download mode. (610)
  • the electronic device may receive a software binary from an external device (eg, the external device of FIG. 2 ) in the download mode and record it in a memory (eg, storage).
  • a software binary from an external device (eg, the external device of FIG. 2 ) in the download mode and record it in a memory (eg, storage).
  • a flash tool e.g., a flash tool
  • a hard key e.g. volume key, end key
  • the electronic device does not execute other functions in the download mode, and an image indicating the download mode may be displayed on the display.
  • the electronic device may check whether a predetermined software binary exists among the software binaries recorded in the memory.
  • the predetermined software binary is a software binary (eg, misc.bin) including an initialization option at boot time, and the boot loader sets a flag indicating the boot mode when the corresponding software binary is recorded in a specific partition to normal mode or recovery. It can be changed by skip mode.
  • the electronic device when a software binary including an initialization option is recorded during booting, the electronic device may boot in the normal mode.
  • the electronic device may perform initialization options recorded in the corresponding software binary while booting in the normal mode.
  • the initialization option may include resizing a predetermined partition, and may further include various initialization commands.
  • the electronic device may output a predetermined screen and execute various applications according to a user input.
  • the electronic device may boot in the recovery mode.
  • the processor may perform resizing or formatting of the user data partition in the recovery mode, and may perform an initialization command included in a customer software customization (CSC) image.
  • CSC customer software customization
  • the electronic device may reboot into the normal mode.
  • the initialization options are not executed during the normal booting process because the software binary including the initialization option is not recorded during booting.
  • the electronic device may output a predetermined screen and execute various applications according to a user input.
  • the electronic device 300 includes a memory 320 and a processor 310 operatively connected to the memory 320 , and the processor 310 is configured to operate in a download mode.
  • a software binary received from an external device is recorded in the memory 320, and when the download mode is terminated, when a predetermined software binary exists among the software binaries recorded in the memory 320, using a bootloader When booting is performed in the normal mode and the predetermined software binary does not exist, it may be configured to perform booting in a recovery mode using the boot loader.
  • the processor 310 may be configured to select either the normal mode or the recovery mode based on a flag indicating a boot mode when booting is started using the boot loader. have.
  • the processor 310 when the predetermined software binary is recorded in the memory 320 in the download mode, the processor 310 sets a flag indicating the boot mode to be changed to a recovery mode skip.
  • the processor 310 may be configured to reboot in the normal mode when the recovery mode booting is completed.
  • the predetermined software binary may be a software binary including an initialization option at boot time.
  • the initialization option includes resizing a predetermined partition
  • the processor 310 is configured to resize the predetermined partition based on the capacity of the memory 320 during booting in the normal mode.
  • the determined partition may be a user data partition.
  • the initialization option may include an initialization command that may be performed in the recovery mode, and the processor 310 may be configured to execute the initialization command during booting into the normal mode.
  • the processor 310 may be configured to delete the initialization option from among the predetermined software binaries when the execution of the initialization option is completed.
  • it may further include an interface 330 supporting data connection with the external device, and receive the software binary from the external device through the interface 330 in the download mode.
  • FIG. 7 is a flowchart of a method of initializing an electronic device according to various embodiments of the present disclosure.
  • the electronic device may initiate a download mode.
  • the download mode may be executed when the software binary is recorded in the manufacturing process of the electronic device or when the software binary is updated using a flash tool in the process of using the electronic device.
  • the electronic device may record the software binary in the memory in the download mode.
  • the software binary may include system software such as a bootloader, a kernel, an operating system, and a device driver.
  • the memory may be divided into a plurality of partitions, and each software binary It can be written to a partition.
  • the electronic device may determine whether a predetermined software binary exists among the software binaries recorded in the memory.
  • the predetermined software binary may be a software binary recording initialization options to be processed at the time of first booting.
  • initialization options to be processed at boot time can be recorded in misc.bin, but the options may be recorded in other software binaries.
  • the electronic device may change a flag indicating a boot mode to normal booting (or skip recovery mode).
  • a software binary eg, misc.bin
  • normal booting or skip recovery mode
  • the electronic device may maintain a flag indicating a boot mode as a recovery mode determined as a default.
  • the electronic device may end the download mode.
  • the electronic device may determine whether the flag indicating the booting mode is the normal booting mode.
  • the electronic device may perform normal booting using a bootloader.
  • the electronic device may perform initialization options recorded in the corresponding software binary while booting in the normal mode.
  • the initialization option may include resizing a predetermined partition, and may further include various initialization commands.
  • the electronic device may perform recovery boot using a boot loader.
  • the electronic device may perform an initialization command included in a customer software customization (CSC) image while booting into the recovery mode.
  • CSC customer software customization
  • the electronic device may reboot to the normal mode when recovery booting is completed.
  • FIG. 8 is a flowchart of a method of initializing an electronic device according to various embodiments of the present disclosure
  • FIG. 8 illustrates an operation after the download mode ends when the electronic device (eg, the electronic device 300 of FIG. 3 ) records a software binary recording initialization options in the memory in the download mode.
  • the electronic device eg, the electronic device 300 of FIG. 3
  • the electronic device may check whether a software binary recording initialization options exists, and may initiate normal booting using a boot loader.
  • the electronic device may check initialization options recorded in the software binary (eg, misc.bin).
  • the electronic device may determine whether the initialization option includes resizing of a predetermined partition (eg, a user data partition).
  • a predetermined partition eg, a user data partition
  • the electronic device may resize the user data partition based on the memory capacity of the electronic device. For example, if the memory storage capacity is 256 GB, the user data partition may be resized to 256 GB, and if the memory storage capacity is 512 GB, the user data partition may be resized to 512 GB. Accordingly, the size of the user data partition may be appropriately set according to the storage capacity.
  • the electronic device may identify initialization commands recorded in the software binary (eg, misc.bin).
  • the software binary eg, misc.bin
  • the electronic device may perform the initialization commands.
  • the initialization command may include delete_apn_change, and in this case, the electronic device may initialize or delete an apn-related file.
  • Examples of the initialization command that can be written to the predetermined software binary are not limited thereto, and various initialization commands that can be performed in the recovery mode may be included.
  • the electronic device may complete normal booting.
  • various applications may be executed according to a user input.
  • the initialization method of the electronic device 300 includes an operation of recording a software binary received from an external device in the memory 320 in a download mode, and writing in the memory 320 when the download mode ends.
  • booting in the normal mode is performed using the boot loader, and when the predetermined software binary does not exist, a recovery mode is performed using the boot loader. ) to perform booting.
  • the method may further include selecting one of the normal mode and the recovery mode based on a flag indicating a boot mode.
  • the method may further include changing a flag indicating the booting mode to a recovery mode skip.
  • the method may further include performing a reboot in the normal mode when the recovery mode booting is completed.
  • the predetermined software binary may be a software binary including an initialization option at boot time.
  • the initialization option includes resizing a predetermined partition, and the operation of booting in the normal mode is based on the capacity of the memory 320 based on the predetermined capacity of the partition during booting in the normal mode. This may include a resizing operation.
  • the determined partition may be a user data partition.
  • the initialization option includes an initialization command that can be performed in the recovery mode
  • the booting in the normal mode includes executing the initialization command while booting in the normal mode. can do.
  • the method may further include deleting the initialization option from among the predetermined software binaries when the execution of the initialization option is completed.
  • the operation of writing the software binary received from the external device in the memory 320 in the download mode may include the operation of receiving the software binary from the external device connected through the interface 330 . .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

다양한 실시예에 따른 전자 장치는, 메모리, 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고, 상기 프로세서는, 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 상기 메모리에 기록하고, 상기 다운로드 모드가 종료 되는 경우, 상기 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하고, 및 상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하도록 설정될 수 있다. 그 외에 다양한 실시예가 가능하다.

Description

전자 장치 및 전자 장치의 초기화 방법
본 문서는 전자 장치에 관한 것이며, 보다 상세하게는 전자 장치에 소프트웨어 바이너리를 기록한 이후의 초기화 방법에 관한 것이다.
이동통신 및 하드웨어/소프트웨어 기술의 발달에 따라, 스마트폰으로 대표되는 휴대용 전자 장치(이하, 전자 장치)는 다양한 기능들을 탑재할 수 있게 되었다. 전자 장치는 메모리에 다양한 소프트웨어를 저장할 수 있으며, 부트로더, 운영 체제, 장치 드라이버 등의 소프트웨어 바이너리(또는 시스템 소프트웨어)는 메모리의 소정 영역에 기록 또는 플래시 될 수 있다.
소프트웨어 바이너리는 전자 장치의 공정 과정에서 전자 장치의 메모리에 최초 기록될 수 있으며, 이 후 사용자가 전자 장치와 연결된 다른 장치에서 업데이트 툴을 이용해서 소프트웨어 바이너리를 업데이트 할 수 있다. 이와 같은 시스템 소프트웨어의 최초 기록 또는 업데이트 이후 전자 장치를 사용하기 위해서는 다시 부팅 과정을 거쳐야 한다.
종래의 전자 장치는 소프트웨어 바이너리를 기록한 이후 시스템 초기화를 위해, 리커버리 모드(recovery mode)로 부팅하고, 이 후 일반 모드(normal mode)로 재부팅을 수행한다.
이와 같은 리커버리 모드 부팅으로 인해 최초 부팅 시까지 시간이 소요되게 되므로, 많은 전자 장치를 생상하는 공정 과정에서는 많은 시간 상의 비용이 발생할 수 있다.
본 문서의 다양한 실시예들은 상기와 같이 전자 장치가 소프트웨어 바이너리를 메모리에 기록한 경우, 시간 상의 비용을 감소 시킬 수 있는 효율적인 초기화 방법을 제공함에 그 목적이 있다.
다양한 실시예에 따른 전자 장치는, 메모리, 및 상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고, 상기 프로세서는, 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 상기 메모리에 기록하고, 상기 다운로드 모드가 종료 되는 경우, 상기 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하고, 및 상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하도록 설정될 수 있다.
다양한 실시예에 따른 전자 장치의 초기화 방법은, 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 메모리에 기록하는 동작, 상기 다운로드 모드가 종료 되는 경우, 상기 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하는 동작, 및 상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하는 동작을 포함할 수 있다.
본 문서의 다양한 실시예에 따르면, 전자 장치가 소프트웨어 바이너리를 메모리에 기록한 경우에, 효율적인 초기화 방법을 제공할 수 있다.
도 1은 다양한 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 장치 및 플래시 툴(flash tool)을 실행하는 외부 장치를 도시한 것이다.
도 3은 다양한 실시예에 따른 전자 장치의 블록도이다.
도 4는 다양한 실시예에 따른 소프트웨어 바이너리의 빌드 시스템(build system)을 도시한 것이다.
도 5는 다양한 실시예에 따른 전자 장치의 다운로드 모드의 동작을 도시한 것이다.
도 6은 다양한 실시예에 따른 전자 장치의 부팅 방법을 도시한 것이다.
도 7은 다양한 실시예에 따른 전자 장치의 초기화 방법의 흐름도이다.
도 8은 다양한 실시예에 따른 전자 장치의 초기화 방법의 흐름도이다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블럭도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 장치(150), 음향 출력 장치(155), 표시 장치(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 표시 장치(160) 또는 카메라 모듈(180))가 생략되거나, 하나 이상의 다른 구성 요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들은 하나의 통합된 회로로 구현될 수 있다. 예를 들면, 센서 모듈(176)(예: 지문 센서, 홍채 센서, 또는 조도 센서)은 표시 장치(160)(예: 디스플레이)에 임베디드된 채 구현될 수 있다
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)을 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 로드하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서), 및 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 추가적으로 또는 대체적으로, 보조 프로세서(123)은 메인 프로세서(121)보다 저전력을 사용하거나, 또는 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 표시 장치(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성 요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 장치(150)는, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 장치(150)은, 예를 들면, 마이크, 마우스, 키보드, 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 장치(155)는 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 장치(155)는, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있고, 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
표시 장치(160)는 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 표시 장치(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 표시 장치(160)는 터치를 감지하도록 설정된 터치 회로(touch circuitry), 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 센서 회로(예: 압력 센서)를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 장치(150)를 통해 소리를 획득하거나, 음향 출력 장치(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102)) (예: 스피커 또는 헤드폰))를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)이 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)은, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(388)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성 요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108))간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi direct 또는 IrDA(infrared data association) 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 셀룰러 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부 전자 장치와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성 요소(예: 단일 칩)으로 통합되거나, 또는 서로 별도의 복수의 구성 요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 및 인증할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 하나의 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC)이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))를 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부 전자 장치들(102, 104, or 108) 중 하나 이상의 외부 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치 (예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나","A 또는 B 중 적어도 하나,""A, B 또는 C," "A, B 및 C 중 적어도 하나,"및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체 는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, '비일시적'은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory (CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두개의 사용자 장치들(예: 스마트폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.
도 2는 다양한 실시예에 따른 전자 장치 및 플래시 툴(flash tool)을 실행하는 외부 장치를 도시한 것이다.
다양한 실시예에 따르면, 전자 장치(200)는 스마트폰, 태블릿 PC 등 휴대용 전자 장치로써, 도 1의 전자 장치(101)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.
다양한 실시예에 따르면, 전자 장치(200)는 하나 이상의 메모리를 포함하고, 메모리는 메인 메모리(예: 도 1의 휘발성 메모리(132)) 및 스토리지(예: 도 1의 비휘발성 메모리(134))를 포함할 수 있다. 전자 장치(200)는 스토리지에 다양한 소프트웨어 바이너리(software binary)를 저장할 수 있다. 예를 들어, 소프트웨어 바이너리는 부트로더(bootloader), 커널(kernel), 운영 체제(operating system), 장치 드라이버 등의 시스템 소프트웨어를 포함할 수 있다,
다양한 실시예에 따르면, 소프트웨어 바이너리 들은 스토리지의 일 영역에 기록될 수 있다. 여기서 또는 이하에서, 기록될 수 있다는 것은 스토리지의 일 영역에 플래시(flash) 되어, 동일한 스토리지 영역에 동일한 또는 다른 소프트웨어 바이너리를 쓰거나 손상되지 않는 한 유지되는 것을 의미할 수 있다.
다양한 실시예에 따르면, 전자 장치(200)는 다양한 소프트웨어 바이너리를 저장(또는 기록)할 수 있으며, 각각의 소프트웨어 바이너리는 서로 구분되는 파티션(partition)에 저장될 수 있다.
다양한 실시예에 따르면, 전자 장치(200)는 소프트웨어 바이너리들을 정해진 모드에서 기록할 수 있다. 이하에서, 소프트웨어 바이너리들을 기록하기 위한 동작 모드는 다운로드 모드(download mode)라고 정의하기로 한다. 전자 장치(200)는 전자 장치(200)의 제조 공정의 일부 또는 소프트웨어(또는 펌웨어) 업데이트 시에 다운로드 모드로 동작하여, 유선 또는 무선으로 연결된 외부 장치(290)로부터 소프트웨어 바이너리를 수신하여 메모리에 기록할 수 있다.
다양한 실시예에 따르면, 외부 장치(290)는 플래시 툴(flash tool)을 실행할 수 있는 장치로써, 외부 장치(290)의 종류에는 정함이 없다. 예를 들어, 전자 장치(200)의 제조 공정 과정에서 최초 소프트웨어 바이너리를 기록하는 경우에 외부 장치(290)는 제조 공정에서 사용되는 컴퓨터 장치일 수 있고, 사용자에 의해 소프트웨어 바이너리를 하는 경우에 외부 장치(290)는 PC(personal computer)일 수 있다.
다양한 실시예에 따르면, 전자 장치(200)의 제조 공정에서 예를 들어, PCB(printed circuit board)에 SMT(surface mount technology) 공정을 거쳐 PBA(Printed Board Assembly)가 완성된 이후, 소프트웨어 바이너리들을 메모리에 기록할 수 있다.
다양한 실시예에 따르면, 사용자는 플래시 툴을 외부 장치(290)(예: PC)에서 실행하여 외부 서버로부터 업데이트 된 소프트웨어 바이너리들을 다운로드 하고, 유선 또는 무선으로 전자 장치(200)를 연결하여 전자 장치(200)의 메모리에 업데이트 된 소프트웨어 바이너리들을 기록할 수 있다.
다양한 실시예에 따르면, 전자 장치(200)는 다운로드 모드에서 소프트웨어 바이너리를 기록(또는 flash)한 후, 시스템을 초기화 하기 위해 부팅을 거쳐야 한다. 전자 장치(200)는 일반 모드(normal mode) 또는 리커버리 모드(recovery mode)로 부팅할 수 있는데, 전자 장치(200)의 어플리케이션 등 기능을 사용하기 위해서는 일반 모드로 부팅되어야 한다. 즉, 전자 장치(200)가 소프트웨어 바이너리를 기록한 후 리커버리 모드로 부팅 하더라도 실제 전자 장치(200)의 기능을 사용하기 위해서는 일반 모드로 재부팅이 필요하다.
이하에서는, 전자 장치(200)가 외부 장치(290)로부터 수신한 소프트웨어 바이너리를 메모리에 기록한 후, 시스템의 초기화를 효율적으로 하기 위한 다양한 실시예들에 대해 설명하기로 한다.
도 3은 다양한 실시예에 따른 전자 장치(300)의 블록도이다.
도 3을 참조 하면, 전자 장치(300)는 프로세서(310), 메모리(320), 인터페이스(330), 및 디스플레이(340)를 포함하며, 도시된 구성 중 일부가 생략 또는 치환되더라도 본 문서의 다양한 실시예들을 구현할 수 있다. 전자 장치(300)는 도 1의 전자 장치의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.
다양한 실시예에 따르면, 디스플레이(340)는 영상을 표시할 수 있고, 터치 스크린으로 구현될 수 있다. 전자 장치(300)가 다운로드 모드, 일반 부팅, 리커버리 부팅 중인 경우, 디스플레이(340)는 각 모드(또는 상태)에 정해진 이미지를 출력할 수 있고, 각 모드에서의 진행 상황 나타내는 프로그레스 바(progress bar)를 표시할 수 있다.
다양한 실시예에 따르면, 인터페이스(330)는 외부 장치(예: 도 2의 외부 장치(290))와의 연결을 지원할 수 있다. 예를 들어, 인터페이스(330)는 USB(universal serial bus) 인터페이스를 포함할 수 있고, 전자 장치(300)는 외부 장치와 USB 포트를 통해 연결되어 다양한 데이터(예: 소프트웨어 바이너리)를 수신할 수 있다.
다양한 실시예에 따르면, 전자 장치(300)는 하나 이상의 메모리(320)를 포함하며, 메모리(320)는 메인 메모리(main memory) 및 스토리지(storage)를 포함할 수 있다. 메인 메모리는 DRAM(dynamic random access memory), SRAM(static RAM), 또는 SDRAM(synchronous dynamic RAM) 등 휘발성 메모리로 구성될 수 있다. 스토리지(storage)는 OTPROM(one time programmable ROM), PROM, EPROM, EEPROM, mask ROM, flash ROM, 플래시 메모리, 하드 드라이브, 또는 솔리드 스테이트 드라이브 (SSD) 중 적어도 하나를 포함할 수 있다. 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리들은 스토리지에 기록(또는 flash)될 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 디스플레이(340), 인터페이스(330), 메모리(320) 등 전자 장치(300)의 각 구성요소들과 작동적으로(operatively), 기능적으로(functionally), 및/또는 전기적으로(electrically) 연결되어, 각 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 수행할 수 있는 구성일 수 있다. 프로세서(310)는 도 1의 프로세서(120)의 구성 및/또는 기능 중 적어도 일부를 포함할 수 있다.
프로세서(310)가 수행할 수 있는 기능에는 정함이 없으나, 본 문서에서는 다운로드 모드의 종료 후 부트로더(bootloader)를 이용하여 일반 모드(normal mode) 또는 리커버리 모드(recovery mode)로 부팅을 수행하기 위한 다양한 실시예들에 대해 설명하기로 한다. 후술하는 프로세서(310)의 동작들은 메모리(320)(예: 스토리지)에 저장된 인스트럭션(instruction)들을 로딩(loading)함으로써 수행될 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 다운로드 모드에서 소프트웨어 바이너리를 외부 장치(예: 도 2의 외부 장치(290))로부터 수신하여 메모리(320)(예: 스토리지)에 기록할 수 있다. 예를 들어, 전자 장치(300)가 인터페이스(330)를 통해 외부 장치와 연결되고 외부 장치가 플래시 툴(flash tool)을 실행하거나, 전자 장치(300)의 하드 키(예: 볼륨 키, 종료 키)에 대해 정해진 입력이 수신되는 경우에 다운로드 모드가 실행될 수 있다.
다양한 실시예에 따르면, 다운로드 모드는 전자 장치(300)의 제조 공정에서 소프트웨어 바이너리를 기록하는 경우 또는 전자 장치(300)의 사용 과정에서 소프트웨어 바이너리를 업데이트 하는 경우에 실행될 수 있다. 소프트웨어 바이너리는 부트로더(bootloader), 커널(kernel), 운영 체제(operating system), 장치 드라이버 등의 시스템 소프트웨어를 포함할 수 있다. 전자 장치는 메모리(320)를 복수의 파티션으로 구분할 수 있고, 각각의 소프트웨어 바이너리는 각 파티션에 기록될 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 다운로드 모드에서 소프트웨어 바이너리들이 메모리(320)에 모두 기록되는 경우, 부트로더를 이용하여 부팅 과정을 수행할 수 있다. 부트로더(bootloader)는 운영 체제(operating system)가 시동되기 이전에 미리 실행되면서 커널(kernel)이 올바르게 시동되기 위해 필요한 작업들을 마무리 하고 최종적으로 운영 체제를 시동시키기 위한 프로그램일 수 있다. 부트로더는 파일 시스템을 사용할 수 없으나, 메모리(320)의 특정 파티션 또는 주소 영역에 액세스 하여 해당 파티션 또는 주소 영역에 기록된 소프트웨어 바이너리를 실행할 수 있다.
다양한 실시예에 따르면, 부트로더의 부팅 방식은 일반 부팅 및 리커버리 부팅을 포함할 수 있다. 여기서, 일반 부팅은 운영 체제가 정상적으로 동작하여 전자 장치(300)의 어플리케이션들을 사용할 수 있도록 초기화 하는 것일 수 있다. 리커버리 부팅은 어플리케이션들을 사용할 수는 없으나, 시스템 설정, 공장 초기화 등에 사용되는 부팅일 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 부팅 모드를 지시하는 플래그(flag)에 기초하여, 일반 부팅 또는 리커버리 부팅을 수행할 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 다운로드 모드가 종료되는 경우, 메모리(320)에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 지 확인할 수 있다. 여기서, 미리 정해진 소프트웨어 바이너리는 첫 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리 일 수 있다. 예를 들어, misc.bin에 부팅 시 처리할 초기화 옵션을 기록할 수 있으나, 다른 소프트웨어 바이너리에 해당 옵션이 기록될 수도 있다.
다양한 실시예에 따르면, 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리는 소프트웨어 바이너리의 빌드 타임(build time)에 바이너리 생성 툴(또는 generator)를 이용하여 생성된 것일 수 있다.
다양한 실시예에 따르면, 다운로드 모드에서 부팅 모드를 지시하는 플래그(flag)는 리커버리 모드로 디폴트로 설정될 수 있고, 프로세서(310)는 상기 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리(예: misc.bin)가 메모리(320)에 기록되는 경우, 상기 플래그를 일반 모드(또는 리커버리 모드 스킵)으로 변경할 수 있다. 부트로더는 소프트웨어 바이너리를 순차적으로 메모리(320)에 기록할 때 어떤 소프트웨어 바이너리가 메모리(320)의 파티션에 기록되고 있는 지 판단할 수 있으며, 상기 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리가 특정 파티션에 기록되는지 확인하여 플래그를 변경할 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 미리 정해진 소프트웨어 바이너리(예: 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리, misc.bin)가 메모리(320)에 기록된 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행할 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 일반 부팅을 수행 중에 해당 소프트웨어 바이너리에 기록된 초기화 옵션들을 수행할 수 있다. 여기서, 초기화 옵션은 정해진 파티션의 리사이징을 포함할 수 있으며, 예를 들어, 사용자 데이터 파티션(예: /data)의 리사이징을 포함할 수 있다. 전자 장치(300)의 메모리(320)(예: 스토리지)는 복수의 파티션으로 구분될 수 있고, 다양한 어플리케이션들을 포함하는 사용자 데이터가 저장되는 사용자 데이터 파티션이 설정될 수 있다. 프로세서(310)는 전자 장치(300)의 메모리(320)의 용량에 기초하여 사용자 데이터 파티션을 리사이징 할 수 있다. 예를 들어, 메모리(320) 스토리지의 용량이 256GB라면 사용자 데이터 파티션을 256GB로 리사이징 하고, 메모리(320) 스토리지의 용량이 512GB라면 사용자 데이터 파티션을 512GB로 리사이징 할 수 있다. 이에 따라, 스토리지의 용량에 따라 적절하게 사용자 데이터 파티션의 크기가 설정될 수 있다.
다양한 실시예에 따르면, 초기화 옵션은 다양한 초기화 커맨드(command)들을 더 포함할 수 있다. 예를 들어, 초기화 커맨드는 delete_apn_change를 포함할 수 있으며, 이 경우 프로세서(310)는 apn 관련 파일을 초기화 또는 삭제할 수 있다. 정해진 소프트웨어 바이너리에 기록될 수 있는 초기화 커맨드의 예는 이에 한정되지 않으며, 리커버리 모드에서 수행될 수 있는 다양한 초기화 커맨드들이 포함될 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 정해진 소프트웨어 바이너리에 기록된 초기화 옵션의 실행이 완료되는 경우, 해당 소프트웨어 바이너리(예: misc.bin)에 기록된 초기화 옵션을 삭제할 수 있다. 이에 따라, 재부팅 시에는 기록 되었던 초기화 옵션들이 실행되지 않을 수 있다.
상기와 같이, 일반 부팅 중에도 장치의 초기화와 관련된 다양한 동작들을 수행할 수 있기 때문에, 리커버리 부팅 후 일반 모드로 재부팅 하는 것과 비교할 때 시간을 줄일 수 있다.
다양한 실시예에 따르면, 미리 정해진 소프트웨어 바이너리(예: 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리, misc.bin)가 메모리(320)에 기록되지 않은 경우, 부트로더를 이용하여 리커버리 모드로 부팅을 수행할 수 있다. 리커버리 모드로 부팅되는 경우, 프로세서(310)는 리커버리 모드에서 사용자 데이터 파티션의 리사이징 또는 포맷을 수행하고, CSC(customer software customization) 이미지에 포함된 초기화 커맨드를 수행할 수 있다. 여기서, CSC 이미지의 초기화 커맨드들은 cache.img(/cache/recovery/command)에 존재할 수 있다.
다양한 실시예에 따르면, 프로세서(310)는 리커버리 모드에서 초기화 커맨드들이 모두 수행되는 경우, 일반 모드로 재부팅 할 수 있다.
도 4는 다양한 실시예에 따른 소프트웨어 바이너리의 빌드 시스템(build system)을 도시한 것이다.
도시된 빌드 시스템(430)은 다양한 실시예에 따른 일반 부팅 초기화를 위한 정해진 바이너리(예: 예: 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리, misc.bin)를 생성하기 위한 시스템 일 수 있다.
도 4를 참조 하면, 빌드 시스템 상에서 초기화 옵션을 기록한 유저 바이너리를 위한 유저 초기화 바이너리(411)와 공정 바이너리를 위한 공정 초기화 바이너리(412)가 각각 생성될 수 있다. 예를 들어, 빌드 시스템(또는 소프트웨어 바이너리의 개발자)은 전자 장치의 제조 공정에서 전자 장치에서 기록할 초기화 옵션(예: command 1)을 포함하는 공정 초기화 바이너리(412)를 생성하고, 전자 장치의 사용 중 업데이트 시 사용될 초기화 옵션(예: command 1, command 2)을 포함하는 유저 초기화 바이너리(411)를 생성할 수 있다. 다양한 실시예에 따르면, 유저 초기화 바이너리(411)는 공정 초기화 바이너리(412)와 비교하여, 제조 공정에서는 사용되지 않는 초기화 커맨드(예: command 2, CSC(customer service customization))를 더 포함할 수 있다.
공정 초기화 바이너리(412) 및 유저 초기화 바이너리(411)는 일반 부팅 초기화를 위해 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리에 포함될 수 있다. 소프트웨어 바이너리의 타입(예: 공정 바이너리 및 유저 바이너리) 별로 초기화 커맨드를 분리하고, 확장성을 고려하여 바이너리 generator를 구현할 수 있다.
초기화 옵션을 기록한 바이너리는 다른 바이너리들과 함께 패키징 될 수 있다. (420) 이 때, 공정 바이너리 및 유저 바이너리는 별도로 패키징 될 수 있다.
빌드 시스템(430)은 최종 다른 바이너리 이미지들과 초기화 옵션이 기록된 바이너리들, 예를 들어 상기 공정 초기화 바이너리(412) 및 상기 유저 초기화 바이너리(411)인 misc.bin, 이 포함된 소프트웨어 바이너리를 생성할 수 있다. (435)
도 5는 다양한 실시예에 따른 전자 장치의 다운로드 모드의 동작을 도시한 것이다.
다양한 실시예에 따르면, 전자 장치(예: 도 3의 전자 장치(300))는 전자 장치의 제조 공정의 일부 또는 소프트웨어 업데이트 시에 다운로드 모드로 동작하여, 유선 또는 무선으로 연결된 외부 장치(예: 도 2의 외부 장치(290))로부터 소프트웨어 바이너리를 수신하여 메모리에 기록할 수 있다.
외부 장치는 플래시 툴(530)을 이용하여 전자 장치에 기록할 소프트웨어 바이너리를 외부 서버로부터 수신할 수 있다. 이 때, 플래시 툴(530)은 초기화 옵션이 기록된 바이너리(예: misc.bin)(520)를 포함할 수 있다. 플래시 툴(530)은 그 외에 부트로더(bootloader), 커널(kernel), 운영 체제(operating system), 장치 드라이버 등 시스템 소프트웨어를 포함하는 다양한 소프트웨어 바이너리를 수신할 수 있다.
전자 장치는 인터페이스를 통해 외부 장치와 연결되는 경우 다운로드 모드로 동작할 수 있고(540), 다운로드 모드에서는 외부 장치의 플래시 툴로부터 소프트웨어 바이너리를 수신하여 메모리에 기록하는 동작 외에 다른 동작은 수행하지 않을 수 있다. 전자 장치는 디스플레이에 다운로드 모드의 진행 상황을 나타내는 프로그레스 바를 표시할 수 있다.
도 6은 다양한 실시예에 따른 전자 장치의 부팅 방법을 도시한 것이다.
다양한 실시예에 따르면, 전자 장치는 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 메모리에 기록할 수 있다. (610)
다양한 실시예에 따르면, 전자 장치는 다운로드 모드에서 소프트웨어 바이너리를 외부 장치(예: 도 2의 외부 장치)로부터 수신하여 메모리(예: 스토리지)에 기록할 수 있다. 예를 들어, 전자 장치가 인터페이스를 통해 외부 장치와 연결되고 외부 장치가 플래시 툴(flash tool)을 실행하거나, 전자 장치의 하드 키(예: 볼륨 키, 종료 키)에 대해 정해진 입력이 수신되는 경우에 다운로드 모드가 실행될 수 있다. 전자 장치는 다운로드 모드에서 다른 기능들을 실행하지 않으며, 디스플레이에는 다운로드 모드를 지시하는 이미지가 표시될 수 있다.
다양한 실시예에 따르면, 전자 장치는 다운로드 모드가 종료되는 경우, 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 지 확인할 수 있다. 여기서, 미리 정해진 소프트웨어 바이너리는 부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리(예: misc.bin)이며, 부트로더는 해당 소프트웨어 바이너리가 특정 파티션에 기록된 경우, 부팅 모드를 지시하는 플래그를 일반 모드 또는 리커버리 모드 스킵으로 변경할 수 있다.
다양한 실시예에 따르면, 전자 장치는 부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리가 기록된 경우, 일반 모드로 부팅을 수행할 수 있다. (620) 전자 장치는 일반 모드로 부팅 수행 중에 해당 소프트웨어 바이너리에 기록된 초기화 옵션들을 수행할 수 있다. 여기서, 초기화 옵션은 정해진 파티션의 리사이징을 포함할 수 있으며, 다양한 초기화 커맨드(command)들을 더 포함할 수 있다. 일반 부팅이 완료되면 전자 장치는 정해진 화면을 출력하고, 사용자 입력에 따라 다양한 어플리케이션들을 실행할 수 있다. (630)
다양한 실시예에 따르면, 전자 장치는 부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리가 기록되지 않은 경우, 리커버리 모드로 부팅을 수행할 수 있다. (640) 리커버리 모드로 부팅되는 경우, 프로세서는 리커버리 모드에서 사용자 데이터 파티션의 리사이징 또는 포맷을 수행하고, CSC(customer software customization) 이미지에 포함된 초기화 커맨드를 수행할 수 있다.
다양한 실시예에 따르면, 전자 장치는 리커버리 모드 부팅이 완료 되면, 일반 모드로 재부팅 할 수 있다. (650) 이 경우, 부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리가 기록되지 않았기 때문에 일반 부팅 과정에서 초기화 옵션들은 실행되지 않는다. 전자 장치는 일반 부팅이 완료되면 전자 장치는 정해진 화면을 출력하고, 사용자 입력에 따라 다양한 어플리케이션들을 실행할 수 있다. (660)
다양한 실시예에 따른 전자 장치(300)는, 메모리(320), 및 상기 메모리(320)와 작동적으로(operatively) 연결되는 프로세서(310)를 포함하고, 상기 프로세서(310)는, 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 상기 메모리(320)에 기록하고, 상기 다운로드 모드가 종료 되는 경우, 상기 메모리(320)에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하고, 및 상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 프로세서(310)는, 상기 부트로더를 이용하여 부팅을 개시하는 경우, 부팅 모드를 지시하는 플래그에 기초하여 상기 일반 모드 또는 상기 리커버리 모드 중 어느 하나를 선택하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 프로세서(310)는, 상기 다운로드 모드에서 상기 정해진 소프트웨어 바이너리가 상기 메모리(320)에 기록되는 경우, 상기 부팅 모드를 지시하는 플래그를 리커버리 모드 스킵(skip)로 변경하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 프로세서(310)는, 상기 리커버리 모드 부팅이 완료되는 경우, 상기 일반 모드로 재부팅을 수행하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 미리 정해진 소프트웨어 바이너리는, 부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리일 수 있다.
다양한 실시예에 따르면, 상기 초기화 옵션은 정해진 파티션의 리사이징을 포함하고, 상기 프로세서(310)는, 상기 일반 모드로 부팅 중에 상기 정해진 파티션의 용량을 상기 메모리(320)의 용량에 기초하여 리사이징 하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 정해진 파티션은 사용자 데이터 파티션일 수 있다.
다양한 실시예에 따르면, 상기 초기화 옵션은 상기 리커버리 모드에서 수행될 수 있는 초기화 커맨드를 포함하고, 상기 프로세서(310)는, 상기 일반 모드로 부팅 중에 상기 초기화 커맨드를 실행하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 프로세서(310)는, 상기 초기화 옵션의 실행이 완료되는 경우, 상기 미리 정해진 소프트웨어 바이너리 중 상기 초기화 옵션을 삭제하도록 설정될 수 있다.
다양한 실시예에 따르면, 상기 외부 장치와 데이터 연결을 지원하는 인터페이스(330)를 더 포함하고, 상기 다운로드 모드에서 상기 인터페이스(330)를 통해 상기 외부 장치로부터 상기 소프트웨어 바이너리를 수신할 수 있다.
도 7은 다양한 실시예에 따른 전자 장치의 초기화 방법의 흐름도이다.
동작 710에서, 전자 장치(예: 도 3의 전자 장치(300))는 다운로드 모드를 개시할 수 있다. 다운로드 모드는 전자 장치의 제조 공정에서 소프트웨어 바이너리를 기록하는 경우 또는 전자 장치의 사용 과정에서 플래시 툴(flash tool)을 이용해 소프트웨어 바이너리를 업데이트 하는 경우에 실행될 수 있다.
동작 720에서, 전자 장치는 다운로드 모드에서 소프트웨어 바이너리를 메모리에 기록할 수 있다. 소프트웨어 바이너리는 부트로더(bootloader), 커널(kernel), 운영 체제(operating system), 장치 드라이버 등의 시스템 소프트웨어를 포함할 수 있다, 메모리는 복수의 파티션으로 구분될 수 있고, 각각의 소프트웨어 바이너리는 각 파티션에 기록될 수 있다.
동작 730에서, 전자 장치는 다운로드 모드가 종료되는 경우, 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 지 확인할 수 있다. 여기서, 미리 정해진 소프트웨어 바이너리는 첫 부팅 시 처리할 초기화 옵션을 기록하고 있는 소프트웨어 바이너리 일 수 있다. 예를 들어, misc.bin에 부팅 시 처리할 초기화 옵션을 기록할 수 있으나, 다른 소프트웨어 바이너리에 해당 옵션이 기록될 수도 있다.
초기화 옵션이 기록된 소프트웨어 바이너리(예: misc.bin)가 기록된 경우, 동작 740에서, 전자 장치는 부팅 모드를 지시하는 플래그(flag)를 일반 부팅(또는 리커버리 모드 스킵)으로 변경할 수 있다.
초기화 옵션이 기록된 소프트웨어 바이너리(예: misc.bin)가 기록되지 않은 경우, 동작 750애서, 전자 장치는 부팅 모드를 지시하는 플래그를 디폴트로 결정된 리커버리 모드로 유지할 수 있다.
동작 760에서, 전자 장치는 외부 장치에서 수신되는 소프트웨어 바이너리의 기록이 완료되는 경우, 다운로드 모드를 종료할 수 있다.
동작 770에서, 전자 장치는 부팅 모드를 지시하는 플래그가 일반 부팅 모드인지 확인할 수 있다.
부팅 모드를 지시하는 플래그가 일반 부팅 모드(또는 리커버리 모드 스킵)인 경우, 동작 780에서, 전자 장치는 부트로더를 이용해 일반 부팅을 수행할 수 있다. 전자 장치는 일반 모드로 부팅 수행 중에 해당 소프트웨어 바이너리에 기록된 초기화 옵션들을 수행할 수 있다. 여기서, 초기화 옵션은 정해진 파티션의 리사이징을 포함할 수 있으며, 다양한 초기화 커맨드(command)들을 더 포함할 수 있다.
부팅 모드를 지시하는 플래그가 리커버리 모드인 경우, 동작 790에서, 전자 장치는 부트로더를 이용해 리커버리 부팅을 수행할 수 있다. 전자 장치는 리커버리 모드로 부팅 수행 중에 CSC(customer software customization) 이미지에 포함된 초기화 커맨드를 수행할 수 있다. 전자 장치는 리커버리 부팅이 완료되는 경우 일반 모드로 재부팅 할 수 있다.
도 8은 다양한 실시예에 따른 전자 장치의 초기화 방법의 흐름도이다.
도 8은 전자 장치(예: 도 3의 전자 장치(300))가 다운로드 모드에서 초기화 옵션을 기록하고 있는 소프트웨어 바이너리를 메모리에 기록한 경우, 다운로드 모드 종료 후의 동작을 도시하고 있다.
동작 810에서, 전자 장치는 다운로드 모드가 완료되면, 초기화 옵션을 기록하고 있는 소프트웨어 바이너리가 존재하는 지 확인하고, 부트로더를 이용해 일반 부팅을 개시할 수 있다.
동작 820에서, 전자 장치는 상기 소프트웨어 바이너리(예: misc.bin)에 기록된 초기화 옵션들을 확인할 수 있다.
동작 830에서, 전자 장치는 초기화 옵션이 정해진 파티션(예: 사용자 데이터 파티션)의 리사이징을 포함하는 지 확인할 수 있다.
초기화 옵션이 사용자 데이터 파티션의 리사이징을 포함하는 경우, 동작 840에서, 전자 장치는 전자 장치의 메모리의 용량에 기초하여 사용자 데이터 파티션을 리사이징 할 수 있다. 예를 들어, 메모리 스토리지의 용량이 256GB라면 사용자 데이터 파티션을 256GB로 리사이징 하고, 메모리 스토리지의 용량이 512GB라면 사용자 데이터 파티션을 512GB로 리사이징 할 수 있다. 이에 따라, 스토리지의 용량에 따라 적절하게 사용자 데이터 파티션의 크기가 설정될 수 있다.
동작 850에서, 전자 장치는 상기 소프트웨어 바이너리(예: misc.bin)에 기록된 초기화 커맨드들을 확인할 수 있다.
동작 860에서, 전자 장치는 상기 초기화 커맨드들을 수행할 수 있다. 예를 들어, 초기화 커맨드는 delete_apn_change를 포함할 수 있으며, 이 경우 전자 장치는 apn 관련 파일을 초기화 또는 삭제할 수 있다. 정해진 소프트웨어 바이너리에 기록될 수 있는 초기화 커맨드의 예는 이에 한정되지 않으며, 리커버리 모드에서 수행될 수 있는 다양한 초기화 커맨드들이 포함될 수 있다.
초기화 커맨드의 수행이 완료되거나, 상기 소프트웨어 바이너리에 기록된 초기화 커맨드가 없는 경우, 동작 870에서, 전자 장치는 일반 부팅을 완료할 수 있다. 일반 부팅이 완료 되면 사용자 입력에 따라 다양한 어플리케이션들이 실행될 수 있다.
다양한 실시예에 따른 전자 장치(300)의 초기화 방법은, 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 메모리(320)에 기록하는 동작, 상기 다운로드 모드가 종료 되는 경우, 상기 메모리(320)에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하는 동작, 및 상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하는 동작을 포함할 수 있다.
다양한 실시예에 따르면, 상기 부트로더를 이용하여 부팅을 개시하는 경우, 부팅 모드를 지시하는 플래그에 기초하여 상기 일반 모드 또는 상기 리커버리 모드 중 어느 하나를 선택하는 동작을 더 포함할 수 있다.
다양한 실시예에 따르면, 상기 다운로드 모드에서 상기 정해진 소프트웨어 바이너리가 상기 메모리(320)에 기록되는 경우, 상기 부팅 모드를 지시하는 플래그를 리커버리 모드 스킵(skip)로 변경하는 동작을 더 포함할 수 있다.
다양한 실시예에 따르면, 상기 리커버리 모드 부팅이 완료되는 경우, 상기 일반 모드로 재부팅을 수행하는 동작을 더 포함할 수 있다.
다양한 실시예에 따르면, 상기 미리 정해진 소프트웨어 바이너리는, 부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리일 수 있다.
다양한 실시예에 따르면, 상기 초기화 옵션은 정해진 파티션의 리사이징을 포함하고, 상기 일반 모드로 부팅을 수행하는 동작은, 상기 일반 모드로 부팅 중에 상기 정해진 파티션의 용량을 상기 메모리(320)의 용량에 기초하여 리사이징 하는 동작을 포함할 수 있다.
다양한 실시예에 따르면, 상기 정해진 파티션은 사용자 데이터 파티션일 수 있다.
다양한 실시예에 따르면, 상기 초기화 옵션은 상기 리커버리 모드에서 수행될 수 있는 초기화 커맨드를 포함하고, 상기 일반 모드로 부팅을 수행하는 동작은, 상기 일반 모드로 부팅 중에 상기 초기화 커맨드를 실행하는 동작을 포함할 수 있다.
다양한 실시예에 따르면, 상기 초기화 옵션의 실행이 완료되는 경우, 상기 미리 정해진 소프트웨어 바이너리 중 상기 초기화 옵션을 삭제하는 동작을 더 포함할 수 있다.
다양한 실시예에 따르면, 상기 다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 메모리(320)에 기록하는 동작은, 인터페이스(330)를 통해 연결된 외부 장치로부터 상기 소프트웨어 바이너리를 수신하는 동작을 포함할 수 있다.

Claims (15)

  1. 전자 장치에 있어서,
    메모리; 및
    상기 메모리와 작동적으로(operatively) 연결되는 프로세서를 포함하고,
    상기 프로세서는,
    다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 상기 메모리에 기록하고,
    상기 다운로드 모드가 종료 되는 경우, 상기 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하고, 및
    상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하도록 설정된 전자 장치.
  2. 제 1항에 있어서,
    상기 프로세서는,
    상기 부트로더를 이용하여 부팅을 개시하는 경우, 부팅 모드를 지시하는 플래그에 기초하여 상기 일반 모드 또는 상기 리커버리 모드 중 어느 하나를 선택하도록 설정된 전자 장치.
  3. 제 1항에 있어서,
    상기 프로세서는,
    상기 다운로드 모드에서 상기 정해진 소프트웨어 바이너리가 상기 메모리에 기록되는 경우, 상기 부팅 모드를 지시하는 플래그를 리커버리 모드 스킵(skip)로 변경하도록 설정된 전자 장치.
  4. 제 1항에 있어서,
    상기 프로세서는,
    상기 리커버리 모드 부팅이 완료되는 경우, 상기 일반 모드로 재부팅을 수행하도록 설정된 전자 장치.
  5. 제 1항에 있어서,
    상기 미리 정해진 소프트웨어 바이너리는,
    부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리인 전자 장치.
  6. 제 5항에 있어서,
    상기 초기화 옵션은 정해진 파티션의 리사이징을 포함하고,
    상기 프로세서는,
    상기 일반 모드로 부팅 중에 상기 정해진 파티션의 용량을 상기 메모리의 용량에 기초하여 리사이징 하도록 설정된 전자 장치.
  7. 제 6항에 있어서,
    상기 정해진 파티션은 사용자 데이터 파티션인 전자 장치.
  8. 제 5항에 있어서,
    상기 초기화 옵션은 상기 리커버리 모드에서 수행될 수 있는 초기화 커맨드를 포함하고,
    상기 프로세서는,
    상기 일반 모드로 부팅 중에 상기 초기화 커맨드를 실행하도록 설정된 전자 장치.
  9. 제 5항에 있어서,
    상기 프로세서는,
    상기 초기화 옵션의 실행이 완료되는 경우, 상기 미리 정해진 소프트웨어 바이너리 중 상기 초기화 옵션을 삭제하도록 설정된 전자 장치.
  10. 전자 장치의 초기화 방법에 있어서,
    다운로드 모드에서 외부 장치로부터 수신되는 소프트웨어 바이너리를 메모리에 기록하는 동작;
    상기 다운로드 모드가 종료 되는 경우, 상기 메모리에 기록된 소프트웨어 바이너리 중 미리 정해진 소프트웨어 바이너리가 존재하는 경우, 부트로더를 이용하여 일반 모드로 부팅을 수행하는 동작; 및
    상기 미리 정해진 소프트웨어 바이너리가 존재하지 않는 경우, 상기 부트로더를 이용하여 리커버리 모드(recovery mode)로 부팅을 수행하는 동작을 포함하는 방법.
  11. 제 10항에 있어서,
    상기 부트로더를 이용하여 부팅을 개시하는 경우, 부팅 모드를 지시하는 플래그에 기초하여 상기 일반 모드 또는 상기 리커버리 모드 중 어느 하나를 선택하는 동작을 더 포함하는 방법.
  12. 제 10항에 있어서,
    상기 다운로드 모드에서 상기 정해진 소프트웨어 바이너리가 상기 메모리에 기록되는 경우, 상기 부팅 모드를 지시하는 플래그를 리커버리 모드 스킵(skip)로 변경하는 동작을 더 포함하는 방법.
  13. 제 10항에 있어서,
    상기 미리 정해진 소프트웨어 바이너리는,
    부팅 시 초기화 옵션을 포함하는 소프트웨어 바이너리인 방법.
  14. 제 13항에 있어서,
    상기 초기화 옵션은 사용자 데이터 파티션의 리사이징을 포함하고,
    상기 일반 모드로 부팅을 수행하는 동작은,
    상기 일반 모드로 부팅 중에 상기 사용자 데이터 파티션의 용량을 상기 메모리의 용량에 기초하여 리사이징 하는 동작을 포함하는 방법.
  15. 제 13항에 있어서,
    상기 초기화 옵션은 상기 리커버리 모드에서 수행될 수 있는 초기화 커맨드를 포함하고,
    상기 일반 모드로 부팅을 수행하는 동작은,
    상기 일반 모드로 부팅 중에 상기 초기화 커맨드를 실행하는 동작을 포함하는 방법.
PCT/KR2021/001589 2020-02-10 2021-02-05 전자 장치 및 전자 장치의 초기화 방법 WO2021162367A1 (ko)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/885,216 US11953983B2 (en) 2020-02-10 2022-08-10 Electronic device and method for initializing electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020200015950A KR20210101690A (ko) 2020-02-10 2020-02-10 전자 장치 및 전자 장치의 초기화 방법
KR10-2020-0015950 2020-02-10

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/885,216 Continuation US11953983B2 (en) 2020-02-10 2022-08-10 Electronic device and method for initializing electronic device

Publications (1)

Publication Number Publication Date
WO2021162367A1 true WO2021162367A1 (ko) 2021-08-19

Family

ID=77292923

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/001589 WO2021162367A1 (ko) 2020-02-10 2021-02-05 전자 장치 및 전자 장치의 초기화 방법

Country Status (3)

Country Link
US (1) US11953983B2 (ko)
KR (1) KR20210101690A (ko)
WO (1) WO2021162367A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070008997A (ko) * 2005-07-14 2007-01-18 주식회사 팬택앤큐리텔 데이터의 보호 관리 및 응급 복구 기능을 갖는 휴대용단말기 및 그 방법
US20120291021A1 (en) * 2011-05-13 2012-11-15 Lsi Corporation Method and system for firmware upgrade of a storage subsystem hosted in a storage virtualization environment
US20160188430A1 (en) * 2014-12-26 2016-06-30 Kyocera Document Solutions Inc. Electronic Device and Firmware Recovery Program That Ensure Recovery of Firmware
KR20190105808A (ko) * 2018-03-06 2019-09-18 삼성전자주식회사 부팅을 수행하는 전자 장치와 이의 동작 방법
KR20190109979A (ko) * 2018-03-19 2019-09-27 삼성전자주식회사 전자 장치 및 전자 장치의 업데이트 제어 방법

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100541781B1 (ko) * 1997-01-31 2006-04-14 소니 가부시끼 가이샤 정보처리장치및방법
KR100608796B1 (ko) 2004-06-15 2006-08-08 엘지전자 주식회사 이동 통신 단말기의 바이너리 데이터 업그레이드 방법
US7730295B1 (en) * 2006-09-05 2010-06-01 Western Digital Technologies, Inc. Updating firmware of a peripheral device
US9886264B2 (en) 2014-12-09 2018-02-06 Xiaomi Inc. Method and device for upgrading firmware
CN104484200B (zh) 2014-12-09 2018-05-25 小米科技有限责任公司 对固件进行升级的方法及装置
US10810084B2 (en) * 2016-04-01 2020-10-20 Intel Corporation Update failure rebooting and recovery for a smart device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070008997A (ko) * 2005-07-14 2007-01-18 주식회사 팬택앤큐리텔 데이터의 보호 관리 및 응급 복구 기능을 갖는 휴대용단말기 및 그 방법
US20120291021A1 (en) * 2011-05-13 2012-11-15 Lsi Corporation Method and system for firmware upgrade of a storage subsystem hosted in a storage virtualization environment
US20160188430A1 (en) * 2014-12-26 2016-06-30 Kyocera Document Solutions Inc. Electronic Device and Firmware Recovery Program That Ensure Recovery of Firmware
KR20190105808A (ko) * 2018-03-06 2019-09-18 삼성전자주식회사 부팅을 수행하는 전자 장치와 이의 동작 방법
KR20190109979A (ko) * 2018-03-19 2019-09-27 삼성전자주식회사 전자 장치 및 전자 장치의 업데이트 제어 방법

Also Published As

Publication number Publication date
US20220382624A1 (en) 2022-12-01
US11953983B2 (en) 2024-04-09
KR20210101690A (ko) 2021-08-19

Similar Documents

Publication Publication Date Title
WO2019103396A1 (en) Method for configuring input interface and electronic device using same
WO2020085636A1 (en) Electronic device for displaying list of executable applications on split screen and operating method thereof
WO2020085704A1 (ko) 폴더블 전자 장치 및 그 콘텐츠의 다단 표시 방법
WO2019182335A1 (ko) 전자 장치 및 전자 장치의 업데이트 제어 방법
WO2020149520A1 (ko) 펌웨어 업데이트 방법, 이를 위한 전자 장치 및 저장 매체
WO2021060836A1 (ko) 어플리케이션 실행 방법 및 장치
WO2020141763A1 (ko) 전자 장치 및 그 폴더 구성 방법
WO2021054594A1 (en) Electronic device supporting connection with external device and power consumption reducing method when using electronic device in connection with external device
WO2021187818A1 (ko) 전자 장치 및 전자 장치의 테마를 부분적으로 운용하는 방법
WO2020122604A1 (en) Electronic device and method for displaying web content in augmented reality mode
WO2021060722A1 (en) Electronic device and method for controlling reset of control ic
WO2019039706A1 (ko) 전자 장치 및 그의 데이터 운용 방법
WO2021006574A1 (en) Method and apparatus for managing application
WO2021162367A1 (ko) 전자 장치 및 전자 장치의 초기화 방법
WO2019172659A1 (ko) 부팅을 수행하는 전자 장치와 이의 동작 방법
WO2020022774A1 (en) Method of controlling operation mode using electronic pen and electronic device for same
KR20210046426A (ko) 어플리케이션의 최적화 방법 및 이를 지원하는 전자 장치
WO2019160323A1 (ko) 어플리케이션과 관련된 데이터를 관리하기 위한 방법 및 그 전자 장치
WO2022154414A1 (ko) 전자 장치 및 전자 장치의 스토리지 운영 방법
WO2020190079A1 (en) Electronic device for searching for file information stored in external device and operation method thereof
WO2022149771A1 (ko) 전자 장치 및 이를 이용한 메모리 관리 방법
WO2020209561A1 (ko) 이종 운영체제를 실행하는 전자 장치 및 그 방법
WO2020116750A1 (en) Method and electronic device for initializing storage
WO2019083283A1 (en) ELECTRONIC IMAGE DISPLAY DEVICE AND ITS CONTROL METHOD
WO2021162388A1 (ko) 스토리지를 포함하는 전자 장치 및 이를 이용한 스토리지로 파일 시스템의 디스카드 커맨드 전달 방법

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21754027

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21754027

Country of ref document: EP

Kind code of ref document: A1