Electronic device and method for acquiring data during abnormal operation of electronic device

The electronic device and method allow for data acquisition from non-volatile memory by activating specific volatile memory areas and deactivating others during abnormal operation, addressing issues with damaged storage or processor cores, thus ensuring data recovery and system functionality.

WO2024186049A1PCT designated stage expired Publication Date: 2024-09-12SAMSUNG ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2024/002599
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-02-28
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

Electronic devices face operational abnormalities due to damaged storage areas in volatile memory or malfunctioning processor cores, preventing the loading of programs and data from non-volatile memory.

Method used

An electronic device and method that identify a designated boot mode during abnormal operation, activate specific storage areas of volatile memory, and deactivate others, allowing data from non-volatile memory to be loaded and processed even when some cores are damaged, enabling data acquisition during abnormal operation.

Benefits of technology

Enables the acquisition of programs and data from non-volatile memory even when volatile memory storage areas are partially damaged or processor cores are malfunctioning, facilitating data recovery and system operation in abnormal conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024002599_12092024_PF_FP_ABST
    Figure KR2024002599_12092024_PF_FP_ABST
Patent Text Reader

Abstract

An electronic device according to various embodiments of the present disclosure comprises a volatile memory, a non-volatile memory for storing instructions, and at least one processor operatively connected to the volatile memory and the non-volatile memory, wherein the instructions, when executed by the at least one processor, induces the electronic device to: identify a designated boot mode on the basis of a boot request during abnormal operation; on the basis of an input from an external electronic device connected to the electronic device in the designated boot mode, activate at least some area among storage areas of the volatile memory and deactivate other areas excluding the at least some area among the storage areas of the volatile memory; determine whether the at least some area is operating normally; and, on the basis of the at least some area operating normally, load the data stored in the non-volatile memory onto the at least some area and process same, and other embodiments may also be possible.
Need to check novelty before this filing date? Find Prior Art

Description

Methods for obtaining data during abnormal operation of electronic devices and electronic devices

[0001] Various embodiments of the present disclosure relate to electronic devices and methods of operating the same, and to methods of obtaining data during abnormal operation in an electronic device.

[0002] As information and communication technology advances, various functions are being integrated into communication devices or electronic devices. Electronic devices include a central processing unit (CPU) and memory, which can execute programs stored in the memory. The CPU may include a processor. The memory may include volatile or non-volatile memory.

[0003] The processor of an electronic device can load at least one program and / or data stored in a non-volatile memory (e.g., non-volatile memory) into a storage area of ​​a volatile memory (e.g., random access memory) and execute or process them. For example, the processor of the electronic device can load system software stored in a non-volatile memory into a storage area of ​​a volatile memory at boot time and execute an operating system (OS) (e.g., Android system). When the processor of the electronic device includes multiple cores, one of the multiple cores performs booting, and at least some of the multiple cores can load at least one program and / or data stored in a non-volatile memory into a storage area of ​​a volatile memory and execute or process them.

[0004] If a portion of the storage area of ​​the volatile memory of an electronic device becomes corrupted, preventing the processor from loading programs and / or data stored in non-volatile memory into the corrupted storage area of ​​the volatile memory, the electronic device may operate abnormally. If a portion of the processor of an electronic device (e.g., at least some of the cores among multiple cores) becomes corrupted, the electronic device may operate abnormally due to the inability of the corrupted cores to operate.

[0005] According to an embodiment of the present disclosure, an electronic device may include a volatile memory, a non-volatile memory storing instructions, and at least one processor operatively connected to the volatile memory and the non-volatile memory. When executed by the at least one processor, the instructions may cause the electronic device to identify a specified boot mode based on a boot request during abnormal operation. When executed by the at least one processor, the instructions may cause the electronic device to activate at least a portion of a storage area of ​​the volatile memory and deactivate other areas of the storage area of ​​the volatile memory excluding the at least a portion of the storage area based on an input from an external electronic device connected to the electronic device in the specified boot mode. When executed by the at least one processor, the instructions may cause the electronic device to identify whether the at least a portion of the area is operating normally. The instructions according to one embodiment, when executed by the at least one processor, may cause the electronic device to load and process data stored in the non-volatile memory into the at least some area based on normal operation of the at least some area.

[0006] According to one embodiment of the present disclosure, a method for acquiring data during abnormal operation of an electronic device may include an operation of identifying a specified boot mode based on a boot request during the abnormal operation of the electronic device. According to one embodiment, the method may include an operation of receiving an input from an external electronic device connected to the electronic device in the specified boot mode. According to one embodiment, the method may include an operation of activating at least a portion of a storage area of ​​the volatile memory based on the input from the external electronic device and deactivating other areas of the storage area of ​​the volatile memory excluding the at least a portion of the storage area. According to one embodiment, the method may include an operation of identifying whether the at least a portion of the area is operating normally. According to one embodiment, the method may include an operation of loading data stored in the non-volatile memory into the at least a portion of the area based on normal operation of the at least a portion of the area.

[0007] According to one embodiment of the present disclosure, a non-volatile storage medium storing commands is provided, wherein the commands are configured to cause the electronic device to perform at least one operation when executed by the electronic device, wherein the at least one operation may include: an operation of identifying a designated boot mode based on a boot request during an abnormal operation of the electronic device; an operation of receiving an input from an external electronic device connected to the electronic device in the designated boot mode; an operation of activating at least a portion of a storage area of ​​the volatile memory based on the input from the external electronic device and deactivating other areas of the storage area of ​​the volatile memory excluding the at least a portion of the storage area; an operation of identifying whether the at least a portion of the area is operating normally; and an operation of loading data stored in the non-volatile memory into the at least a portion of the area based on the normal operation of the at least a portion of the area.

[0008] According to one embodiment of the present disclosure, an electronic device and a method for acquiring data during abnormal operation in an electronic device can be provided, which enable acquisition of a program and / or data stored in a non-volatile memory even when a storage area of ​​a volatile memory is partially damaged and the electronic device operates abnormally.

[0009] According to one embodiment of the present disclosure, an electronic device capable of obtaining a program and / or data stored in a non-volatile memory even when some of a plurality of cores of a processor are damaged and the electronic device is not operating normally, and a method for obtaining data during abnormal operation in the electronic device can be provided.

[0010] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned can be clearly understood by a person having ordinary skill in the art to which the present disclosure belongs from the description below.

[0011] FIG. 1 is a block diagram of an electronic device within a network environment according to one embodiment.

[0012] Figure 2 is a block diagram of an electronic device according to one embodiment.

[0013] FIG. 3 is a flowchart illustrating an operation of loading data by operating in a specified boot mode during abnormal operation in an electronic device according to one embodiment.

[0014] FIG. 4 is a diagram showing the configuration and operation of an AP, DRAM, and UFS of an electronic device according to one embodiment.

[0015] FIG. 5a is a diagram showing an address configuration of a DRAM according to one embodiment.

[0016] FIG. 5b is a diagram showing examples of RANKs when the DRAM according to one embodiment is 8G bytes.

[0017] FIG. 5c is a diagram showing an example of the configuration of each RANK when the DRAM according to one embodiment is 8G bytes.

[0018] FIG. 6 is a diagram illustrating an example of transmitting a message to an electronic device to activate a first storage area of ​​a DRAM from an external electronic device according to one embodiment.

[0019] FIG. 7 is a diagram illustrating an example of transmitting data of a UFS to an external electronic device using an activated first storage area of ​​a DRAM in an electronic device according to one embodiment.

[0020] FIG. 8 is a diagram illustrating an example of displaying information associated with a specified boot mode in an electronic device according to one embodiment.

[0021] In connection with the description of the drawings, the same or similar reference numerals may be used for identical or similar components.

[0022] The terms used in this document are used only to describe specific embodiments and may not be intended to limit the scope of other embodiments. The singular expression may include the plural expression unless the context clearly indicates otherwise. All terms used herein, including technical or scientific terms, may have the same meaning as commonly understood by those of ordinary skill in the art of the present invention. Terms defined in commonly used dictionaries may be interpreted as having the same or similar meaning in the context of the relevant technology, and shall not be interpreted in an idealized or overly formal sense unless explicitly defined in this document. In some cases, even if a term is defined in this document, it cannot be interpreted to exclude embodiments of the present invention.

[0023] FIG. 1 is a block diagram of an electronic device (101) within a network environment (100) according to one embodiment.

[0024] Referring to FIG. 1, in a network environment (100), an electronic device (101) may communicate with an electronic device (102) via a first network (198) (e.g., a short-range wireless communication network), or may communicate with at least one of an electronic device (104) or a server (108) via a second network (199) (e.g., a long-range wireless communication network). According to one embodiment, the electronic device (101) may communicate with the electronic device (104) via the server (108). According to one embodiment, the electronic device (101) may include a processor (120), a memory (130), an input module (150), an audio output module (155), a display module (160), an audio module (170), a sensor module (176), an interface (177), a connection terminal (178), a haptic module (179), a camera module (180), a power management module (188), a battery (189), a communication module (190), a subscriber identification module (196), or an antenna module (197). In some embodiments, the electronic device (101) may omit at least one of these components (e.g., the connection terminal (178)), or may have one or more other components added. In some embodiments, some of these components (e.g., the sensor module (176), the camera module (180), or the antenna module (197)) may be integrated into one component (e.g., the display module (160)).

[0025] The processor (120) may control at least one other component (e.g., a hardware or software component) of the electronic device (101) connected to the processor (120) by executing, for example, software (e.g., a program (140)), and may perform various data processing or calculations. According to one embodiment, as at least a part of the data processing or calculation, the processor (120) may store a command or data received from another component (e.g., a sensor module (176) or a communication module (190)) in a volatile memory (132), process the command or data stored in the volatile memory (132), and store the resulting data in a non-volatile memory (134). According to one embodiment, the processor (120) may include a main processor (121) (e.g., a central processing unit or an application processor) or a secondary processor (123) (e.g., a graphics processing unit, a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor) that can operate independently or together therewith. For example, if the electronic device (101) includes a main processor (121) and a secondary processor (123), the secondary processor (123) may be configured to use less power than the main processor (121) or to be specialized for a specified function. The secondary processor (123) may be implemented separately from the main processor (121) or as a part thereof.

[0026] The auxiliary processor (123) may control at least a part of functions or states associated with at least one component (e.g., a display module (160), a sensor module (176), or a communication module (190)) of the electronic device (101), for example, on behalf of the main processor (121) while the main processor (121) is in an inactive (e.g., sleep) state, or together with the main processor (121) while the main processor (121) is in an active (e.g., application execution) state. In one embodiment, the auxiliary processor (123) (e.g., an image signal processor or a communication processor) may be implemented as a part of another functionally related component (e.g., a camera module (180) or a communication module (190)). In one embodiment, the auxiliary processor (123) (e.g., a neural network processing unit) may include a hardware structure specialized for processing artificial intelligence models. The artificial intelligence models may be generated through machine learning. This learning can be performed, for example, on the electronic device (101) itself where the artificial intelligence model is executed, or can be performed through a separate server (e.g., server (108)). The learning algorithm can include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but is not limited to the examples described above. The artificial intelligence model can include multiple artificial neural network layers.The artificial neural network may be one of a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q-network, or a combination of two or more of the above, but is not limited to the examples described above. In addition to, or alternatively to, a hardware structure, an artificial intelligence model may include a software structure.

[0027] The memory (130) can store various data used by at least one component (e.g., processor (120) or sensor module (176)) of the electronic device (101). The data can include, for example, software (e.g., program (140)) and input data or output data for commands related thereto. The memory (130) can include volatile memory (132) or non-volatile memory (134).

[0028] 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).

[0029] The input module (150) can receive commands or data to be used in a component of the electronic device (101) (e.g., a processor (120)) from an external source (e.g., a user) of the electronic device (101). The input module (150) can include, for example, a microphone, a mouse, a keyboard, a key (e.g., a button), or a digital pen (e.g., a stylus pen).

[0030] The audio output module (155) can output audio signals to the outside of the electronic device (101). The audio output module (155) can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as multimedia playback or recording playback. The receiver can be used to receive incoming calls. According to one embodiment, the receiver can be implemented separately from the speaker or as part of the speaker.

[0031] The display module (160) can visually provide information to an external party (e.g., a user) of the electronic device (101). The display module (160) may include, for example, a display, a holographic device, or a projector and a control circuit for controlling the device. According to one embodiment, the display module (160) may include a touch sensor configured to detect a touch, or a pressure sensor configured to measure the intensity of a force generated by the touch.

[0032] The audio module (170) can convert sound into an electrical signal, or vice versa, convert an electrical signal into sound. According to one embodiment, the audio module (170) can acquire sound through the input module (150), output sound through the sound output module (155), or an external electronic device (e.g., electronic device (102)) (e.g., speaker or headphone) directly or wirelessly connected to the electronic device (101).

[0033] The sensor module (176) can detect the operating status (e.g., power or temperature) of the electronic device (101) or the external environmental status (e.g., user status) and generate an electrical signal or data value corresponding to the detected status. According to one embodiment, the sensor module (176) can 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, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0034] The interface (177) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (101) with an external electronic device (e.g., the electronic device (102)). In one embodiment, 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.

[0035] The connection terminal (178) may include a connector through which the electronic device (101) may be physically connected to an external electronic device (e.g., electronic device (102)). According to one embodiment, the connection terminal (178) may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0036] A haptic module (179) can convert electrical signals into mechanical stimuli (e.g., vibration or movement) or electrical stimuli that a user can perceive through tactile or kinesthetic sensations. According to one embodiment, the haptic module (179) can include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

[0037] The camera module (180) can capture still images and videos. According to one embodiment, the camera module (180) may include one or more lenses, image sensors, image signal processors, or flashes.

[0038] The power management module (188) can manage power supplied to the electronic device (101). According to one embodiment, the power management module (188) can be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

[0039] A battery (189) may power at least one component of the electronic device (101). In one embodiment, the battery (189) may include, for example, a non-rechargeable primary battery, a rechargeable secondary battery, or a fuel cell.

[0040] The communication module (190) may support the establishment of a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device (101) and an external electronic device (e.g., electronic device (102), electronic device (104), or server (108)), and the performance of communication through the established communication channel. The communication module (190) may operate independently from the processor (120) (e.g., application processor) and may include one or more communication processors that support direct (e.g., wired) communication or wireless communication. According to one embodiment, the communication module (190) may include a wireless communication module (192) (e.g., 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) (e.g., a local area network (LAN) communication module, or a power line communication module). Among these communication modules, the corresponding communication module can communicate with an external electronic device (104) via a first network (198) (e.g., a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network (199) (e.g., a long-range communication network such as a legacy cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., a LAN or WAN)). These various types of communication modules can be integrated into a single component (e.g., a single chip) or implemented as multiple separate components (e.g., multiple chips). The wireless communication module (192) can verify or authenticate the electronic device (101) within a communication network such as the first network (198) or the second network (199) by using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module (196).

[0041] The wireless communication module (192) can support 5G networks and next-generation communication technologies following the 4G network, such as NR access technology (new radio access technology). The NR access technology can support high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and connection of multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency communications)). The wireless communication module (192) can support, for example, a high-frequency band (e.g., mmWave band) to achieve a high data transmission rate. The wireless communication module (192) can support various technologies for securing performance in a high-frequency band, such as beamforming, massive multiple-input and multiple-output (MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beam-forming, or large scale antenna. The wireless communication module (192) can support various requirements specified in the electronic device (101), an external electronic device (e.g., the electronic device (104)), or a network system (e.g., the second network (199)). According to one embodiment, the wireless communication module (192) may support a peak data rate (e.g., 20 Gbps or more) for eMBB realization, a loss coverage (e.g., 164 dB or less) for mMTC realization, or a U-plane latency (e.g., 0.5 ms or less for downlink (DL) and uplink (UL), or 1 ms or less for round trip) for URLLC realization.

[0042] The antenna module (197) can transmit or receive signals or power to or from an external device (e.g., an external electronic device). According to one embodiment, the antenna module (197) may include an antenna including a radiator formed of a conductor or a conductive pattern formed on a substrate (e.g., a PCB). According to one embodiment, the antenna module (197) may include a plurality of antennas (e.g., an array antenna). 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), may be selected from the plurality of antennas, for example, by the communication module (190). A signal or power may be transmitted or received between the communication module (190) and an external electronic device via the selected at least one antenna. According to some embodiments, in addition to the radiator, another component (e.g., a radio frequency integrated circuit (RFIC)) may be additionally formed as a part of the antenna module (197).

[0043] In one embodiment, the antenna module (197) may form a mmWave antenna module. In one embodiment, the mmWave antenna module may include a printed circuit board, an RFIC disposed on or adjacent to a first side (e.g., a bottom side) of the printed circuit board and capable of supporting a designated high-frequency band (e.g., a mmWave band), and a plurality of antennas (e.g., an array antenna) disposed on or adjacent to a second side (e.g., a top side or a side side) of the printed circuit board and capable of transmitting or receiving signals in the designated high-frequency band.

[0044] At least some of the above components can be interconnected and exchange signals (e.g., commands or data) with each other via a communication method between peripheral devices (e.g., a bus, GPIO (general purpose input and output), SPI (serial peripheral interface), or MIPI (mobile industry processor interface)).

[0045] According to one embodiment, commands or data may be transmitted or received between the electronic device (101) and an external electronic device (104) via a server (108) connected to a second network (199). Each of the external electronic devices (102 or 104) may be the same or a different type of device as the electronic device (101). According to one embodiment, all or part of the operations executed in the electronic device (101) may be executed in one or more of the external electronic devices (102, 104, or 108). For example, when the electronic device (101) is to perform a certain function or service automatically or in response to a request from a user or another device, the electronic device (101) may, instead of or in addition to executing the function or service itself, request one or more external electronic devices to perform the function or at least a part of the service. One or more external electronic devices that receive the request may execute at least a portion of the requested function or service, or an additional function or service related to the request, and transmit the result of the execution to the electronic device (101). The electronic device (101) may process the result as is or additionally and provide it as at least a portion of a response to the request. For this purpose, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used, for example. The electronic device (101) may provide an ultra-low latency service by using distributed computing or mobile edge computing, for example. In another embodiment, the external electronic device (104) may include an Internet of Things (IoT) device. The server (108) may be an intelligent server utilizing machine learning and / or a neural network. According to one embodiment, the external electronic device (104) or the server (108) may be included in the second network (199).The electronic device (101) can be applied to intelligent services (e.g., smart home, smart city, smart car, or healthcare) based on 5G communication technology and IoT-related technology.

[0046] Figure 2 is a block diagram of an electronic device according to one embodiment.

[0047] Referring to FIG. 2, an electronic device (201) according to an embodiment (e.g., the electronic device (101) of FIG. 1) may include a processor (220), a volatile memory (231), a non-volatile memory (232), a display (260), and an interface (277). The electronic device (201) according to an embodiment is not limited thereto and may further include various components or may be configured by excluding some of the components. The electronic device (201) according to an embodiment may further include all or part of the electronic device (101) illustrated in FIG. 1.

[0048] A processor (220) according to one embodiment (e.g., processor (120) of FIG. 1) may include an application processor (AP) and / or a central processing unit (CPU). A processor (220) according to one embodiment may include a plurality of cores (e.g., cores 0 to 8 or other numbers of cores).

[0049] A processor (220) according to one embodiment may identify a boot request. A processor (220) according to one embodiment may identify a boot request based on a power key or a key input designated in association with a boot request. A processor (220) according to one embodiment may also identify a boot request based on a power key or a key input designated in association with a boot request and an external device connection via an interface (277).

[0050] According to an embodiment, the processor (220) may activate a designated core based on the identification of a boot request. According to an embodiment, the processor (220) may activate a core (e.g., core 0) designated to perform a boot operation among a plurality of cores (e.g., core 0 to core 8 or another number of cores). According to an embodiment, the designated core may be a core set to operate with the highest priority when the electronic device (201) is powered on among the plurality of cores included in the processor (220), and may be designated as one (e.g., core 0 or another core) among the plurality of cores (e.g., core 0 to core 8).

[0051] According to an embodiment, a processor (220) may identify a designated boot mode (e.g., an abnormal (or emergency) boot mode) (e.g., a user data recovery mode) while a designated core is activated. According to an embodiment, the processor (220) may identify the designated boot mode before an operating system (OS) (e.g., an Android system) is started through a boot loader that is executed based on the activation of the designated core. The boot loader according to an embodiment may include a conditional statement (if statement) for identifying the designated boot mode. The conditional statement for identifying the designated boot mode according to an embodiment may include a conditional statement for identifying whether there is a designated input (e.g., input of a specific key or combination of keys) for operating in the designated boot mode, or may include a conditional statement for identifying a defect (or fault) in the volatile memory (231).

[0052] In one embodiment, the processor (220) may identify the designated boot mode if the designated input for operating in the designated boot mode while the designated core is activated is present, and may identify the normal boot mode (e.g., normal (or usual) boot mode) if the designated input for operating in the designated boot mode while the designated core is activated is absent. In one embodiment, the processor (220) may perform at least one test for identifying the defect (or fault) of the volatile memory (231) if the boot loader includes a conditional statement for identifying the defect (or fault) of the volatile memory (231). For example, a program (or service) for performing at least one test for identifying the defect (or fault) of the volatile memory (231) may be stored in an internal memory (not shown) of the processor (220). In one embodiment, the processor (220) may, as part of an operation of testing the volatile memory (231), check whether an appropriate operating margin is secured for each of the multiple DDR frequencies when the volatile memory (231) performs DDR (double data rate) training. In one embodiment, the processor (220) may, as part of an operation of testing the volatile memory (231), set the entire DDR region for each of the multiple DDR frequencies after the DDR training of the volatile memory (231) is completed, and verify the operation of the channels and cells of the volatile memory (231). In one embodiment, the processor (220) may, as part of an operation of testing the volatile memory (231), perform a READ / WRITE test and a REFRESH test on the volatile memory (231).According to an embodiment, the processor (220) may identify a designated boot mode if a test result of the volatile memory (231) indicates a defect (or fault) in the volatile memory (231), and may identify a normal boot mode (e.g., a normal (or usual) boot mode) if a defect (or fault) in the volatile memory (231) does not exist. Based on the identification of the normal boot mode, the processor (220) according to an embodiment may perform a normal boot and start the OS to perform an operation. Based on the OS being started by the normal boot, the processor (220) according to an embodiment may perform an overall operation related to the operation of the electronic device (201) by using at least some or all of the plurality of cores. The processor (220) according to an embodiment may turn on or off each of the plurality of cores, and may perform an operation of processing a single thread by using a single core, or an operation of processing multi-threads by using a plurality of cores. According to one embodiment, a processor (220) can move a thread task being performed through any core to another core and perform it.

[0053] According to an embodiment, a processor (220) may identify an external electronic device (e.g., electronic device (102)) connected to an electronic device (201) based on the identification of a specified boot mode and wait for input from the external electronic device. According to an embodiment, a processor (220) may perform a connection (e.g., USB connection) between an electronic device (201) and the external electronic device using an interface (277) (e.g., a USB interface, a micro USB switch integrated chip (MUIC), or a power delivery integrated chip (PDIC)) based on the identification of a specified boot mode and wait for input based on a specified communication protocol (e.g., a USB communication protocol) from the external electronic device.

[0054] According to one embodiment, the processor (220) may be configured to disable at least one core other than a designated core based on an input (e.g., a command or information) from an external electronic device connected to the electronic device (201) in a designated boot mode, activate at least a portion of a storage area of ​​a volatile memory (231) (e.g., a designated first storage area (or a specific storage area)) (hereinafter also referred to as a 'first storage area'), and deactivate other areas (e.g., a second storage area other than the designated first storage area) (hereinafter also referred to as a 'second storage area') excluding at least a portion of the storage area of ​​the memory (231). According to an embodiment, the processor (220) may receive a command (or information) for disabling at least one core other than a designated core from an external electronic device connected to the electronic device (201) in a designated boot mode, and a command (or information) for activating a designated first storage area (or a specific storage area) among storage areas of a volatile memory (231) and disabling the remaining second storage areas other than the first storage area. The command (or information) for disabling at least one core other than the designated core according to an embodiment may include a multi-threaded task prohibition command. According to an embodiment, based on the multi-threaded task prohibition command, the processor (220) may process threads using a single core in a time-sharing manner instead of a multi-threaded task. According to an embodiment, the processor (220) may reduce the probability of using a memory-corrupted area compared to when using multiple cores by prohibiting a multi-threaded task in a designated boot mode (e.g., a boot mode for recovering user data due to memory corruption).

[0055] A command (or information) for disabling at least one other core other than a designated core according to an embodiment may include a command for adjusting a MAX Core Size Parameter on the processor from a plurality (e.g., a plurality) to 1. A command (or information) for activating a designated first storage area (or a specific storage area) according to an embodiment and disabling the remaining second storage areas other than the first storage area may include information for turning on a Bank, Row, or Column corresponding to the first storage area (e.g., providing power to a Bank, Row, or Column corresponding to the first storage area) and turning off a Bank, Row, or Column corresponding to the remaining second storage areas other than the first storage area (e.g., cutting off power to a Bank, Row, or Column corresponding to the first storage area). According to one embodiment, a command (or information) for activating a designated first storage area (or a specific storage area) and deactivating the remaining second storage areas other than the first storage area may include information (or an address (e.g., 0x300000 to 0x5FFFFF)) of a first storage area to be activated among the storage areas of a volatile memory (23) and information of a non-volatile memory (232) to be transmitted to an external electronic device through the first storage area. For example, the information of the non-volatile memory (232) to be acquired through the first storage area may include data area information of a UFS (unix file system).

[0056] According to an embodiment, the processor (220) can identify whether the first storage area of ​​the activated volatile memory (231) is operating normally through a designated core. In order to identify whether the first storage area of ​​the activated volatile memory (231) is operating normally, the processor (220) can load information (or values) of a designated storage unit (e.g., 1 MB or 1 column) among the information of the data area of ​​the non-volatile memory (232) into each storage unit of the first storage area of ​​the volatile memory (231) and compare whether the information (or values) loaded into each storage unit of the first storage area of ​​the volatile memory (231) are identical. According to an embodiment, the processor (220) can identify that the first storage area of ​​the volatile memory (231) is operating normally when the information (or values) loaded into each storage unit of the first storage area of ​​the volatile memory (231) are identical. According to one embodiment, the processor (220) may identify that the first storage area of ​​the volatile memory (231) is not operating normally if the information (or values) loaded into each storage unit of the first storage area of ​​the volatile memory (231) are not identical. According to one embodiment, the processor (220) may terminate the booting process if the first storage area of ​​the volatile memory (231) is not operating normally. According to one embodiment, the processor (220) may identify whether another storage area of ​​the volatile memory (231) is operating normally based on the identification of a new booting request after the booting process is terminated and operate.

[0057] According to one embodiment, the processor (220) may load and process information of a data area of ​​a non-volatile memory (232) into an activated first storage area of ​​a volatile memory (231) based on normal operation of the activated first storage area. According to one embodiment, the processor (220) may transmit information of a data area of ​​a non-volatile memory (232) loaded into an activated first storage area of ​​a volatile memory (231) to an external electronic device connected to the electronic device (201).

[0058] A volatile memory (231) according to an embodiment (e.g., a volatile memory (132) of FIG. 1) may include a RAM (e.g., a dynamic random access memory (DRAM)). The volatile memory (231) according to an embodiment may provide a storage area for performing operations in the processor (220). The volatile memory (231) according to an embodiment may include a controller (or a control circuit or a control IC) and firmware, and may allocate a storage area to be used by the processor (220) among the entire storage areas of the volatile memory (231) through the controller. The controller of the volatile memory (231) according to an embodiment may allocate a first storage area of ​​the volatile memory (231) to be used by a specified core in a specified boot mode.

[0059] A nonvolatile memory (232) according to an embodiment (e.g., nonvolatile memory (134) of FIG. 1) may include a flash memory (e.g., NAND flash memory). The nonvolatile memory (232) according to an embodiment may store data to be stored for a long period of time in the electronic device (201). The nonvolatile memory (232) according to an embodiment may store UFS data. The nonvolatile memory (232) according to an embodiment may include a controller (or a control circuit or a control IC) and firmware, and may manage the flow of data (e.g., storage, movement, or deletion) through the controller.

[0060] An interface (277) according to an embodiment (e.g., interface (177) of FIG. 1) may support one or more designated protocols that may be used to directly or wirelessly connect the electronic device (201) with an external electronic device (e.g., electronic device (102)). According to an embodiment, the interface (277) may include a universal serial bus (USB) interface, and may further include a high definition multimedia interface (HDMI), an SD card interface, or an audio interface. According to an embodiment, the electronic device (201) may further include a connector that allows the electronic device (201) to be physically connected with the external electronic device (e.g., electronic device (102)). According to an embodiment, the connector may include a USB connector, and may further include an HDMI connector, an SD card connector, or an audio connector (e.g., a headphone connector).

[0061] A display (260) according to an embodiment (e.g., display module (160) of FIG. 1) may visually provide information to an external device (101) (e.g., a user). The display (260) according to an embodiment may display an OS operation screen according to a normal boot mode and information related to operations after the OS is operated based on the control of the processor (220). The display (260) according to an embodiment may display information related to a specified boot mode in a specified boot mode. For example, the information related to the specified boot mode may include an abnormal boot mode warning message and / or a message related to user data recovery according to the abnormal boot mode. The processor (220) according to an embodiment may display an abnormal boot mode warning message including phrases such as “Operating in boot mode due to a memory defect” and / or “Downloading a binary not provided by us may cause a fatal error in the set, and any defect / failure caused by this may not be eligible for free service” on the display (260) in the specified boot mode. According to one embodiment, the processor (220) may display an abnormal boot mode warning message on the display (260) including a phrase such as “Operating in abnormal boot mode for user data recovery” in a specified boot mode.

[0062] An electronic device (101 of FIG. 1 or 201 of FIG. 2) according to one embodiment may include a volatile memory (132 of FIG. 1 or 231 of FIG. 2), a non-volatile memory (134 of FIG. 1 or 232 of FIG. 2) storing commands, and at least one processor (120 of FIG. 1 or 220 of FIG. 2) operatively connected to the volatile memory and the non-volatile memory. The commands according to one embodiment, when executed by the at least one processor, may cause the electronic device to identify a specified boot mode based on a boot request during an abnormal operation. The commands according to one embodiment, when executed by the at least one processor, may cause the electronic device to activate at least a portion of the storage area of ​​the volatile memory (e.g., a first storage area) based on an input from an external electronic device connected to the electronic device in the specified boot mode and to deactivate other areas (e.g., a second storage area other than the first storage area) of the storage area of ​​the volatile memory excluding the at least some area. The commands according to one embodiment, when executed by the at least one processor, may cause the electronic device to identify whether the at least some area is operating normally. The commands according to one embodiment, when executed by the at least one processor, may cause the electronic device to load and process data stored in the non-volatile memory into the at least some area based on the normal operation of the at least some area.

[0063] According to one embodiment, the at least one processor may include a plurality of cores. According to one embodiment, the instructions, when executed by the at least one processor, may cause the electronic device to activate a designated core among the plurality of cores based on the boot request and to identify the designated boot mode using the activated designated core.

[0064] The instructions according to one embodiment, when executed by the at least one processor, may cause the electronic device to receive information for disabling multi-threaded tasks from the external electronic device based on the designated boot mode, and to disable cores other than the designated core among the plurality of cores upon receiving the information for disabling multi-threaded tasks.

[0065] The instructions according to one embodiment may be configured to cause the electronic device, when executed by the at least one processor, to identify a designated boot mode based on a designated input for operating in the designated boot mode with the designated core activated, and to identify a normal boot mode in the absence of a designated input for operating in the designated boot mode with the designated core activated.

[0066] The instructions according to one embodiment, when executed by the at least one processor, may cause the electronic device to receive information about at least a portion of a storage area of ​​the volatile memory to be activated from the external electronic device.

[0067] According to one embodiment, the electronic device further includes an interface, and the instructions, when executed by the at least one processor, cause the electronic device to transmit the data loaded in the at least a portion of the area to the external electronic device connected through the interface.

[0068] The instructions according to one embodiment, when executed by the at least one processor, may cause the electronic device to load values ​​of a designated storage unit stored in the non-volatile memory into areas of the designated storage unit of at least some area of ​​the volatile memory, compare whether the values ​​loaded into the areas of the designated storage unit of the at least some area of ​​the volatile memory are identical to each other, and identify that the at least some area of ​​the volatile memory is operating normally when the values ​​loaded into the areas of the designated storage unit are identical to each other.

[0069] The instructions according to one embodiment, when executed by the at least one processor, may cause the electronic device to receive a virtual address of at least some area from which data stored in the non-volatile memory is to be loaded from the external electronic device based on normal operation of the at least some area, activate a physical address of the at least some area using the virtual address, and load data stored in the non-volatile memory using the physical address of the at least some area.

[0070] The instructions according to one embodiment, when executed by the at least one processor, may cause the electronic device to identify a virtual address of the at least some area based on normal operation of the at least some area, activate a physical address of the at least some area using the virtual address, and load data stored in the non-volatile memory using the physical address of the at least some area.

[0071] According to one embodiment, the volatile memory may include DRAM.

[0072] According to one embodiment, the non-volatile memory may include NAND flash memory.

[0073] According to one embodiment, the interface may include a USB interface.

[0074] According to one embodiment, the electronic device further comprises a display (160 of FIG. 1 or 260 of FIG. 2), and the instructions, when executed by the at least one processor, may cause the electronic device to display a screen associated with the designated boot mode in the designated boot mode on the display. Information associated with the designated boot mode according to one embodiment may include a message warning of an abnormal boot mode and / or a message associated with user data recovery according to the abnormal boot mode.

[0075] FIG. 3 is a flowchart illustrating an operation of loading data by operating in a specified boot mode during abnormal operation in an electronic device according to one embodiment.

[0076] Referring to FIG. 3, a processor (220) (e.g., processor (120) of FIG. 1) of an electronic device (201) (e.g., electronic device (101) of FIG. 1) according to one embodiment may perform at least one operation among operations 310 to 360.

[0077] In operation 310, the processor (220) according to an embodiment may activate a designated core based on identification of a boot request. The processor (220) according to an embodiment may identify a boot request based on a power key or a key input designated in association with the boot request. The processor (220) according to an embodiment may also identify a boot request based on a power key or a key input designated in association with the boot request and an external device connection through the interface (277). The processor (220) according to an embodiment may activate a core (e.g., core 0) designated to perform a boot operation among a plurality of cores (e.g., cores 0 to 8 or any other number of cores) based on identification of the boot request.

[0078] In operation 320, the processor (220) according to an embodiment may identify a designated boot mode (e.g., an abnormal (or emergency) boot mode) (e.g., a user data recovery mode) while a designated core is activated. The processor (220) according to an embodiment may identify whether the designated boot mode is in effect before the operating system (OS) (e.g., an Android system) is started through a boot loader that is executed based on the activation of the designated core. The boot loader according to an embodiment may include a conditional statement (if statement) for identifying the designated boot mode. The conditional statement for identifying the designated boot mode according to an embodiment may include a conditional statement for identifying whether there is a designated input (e.g., a specific key or a combination of keys input) for operating in the designated boot mode, or may include a conditional statement for identifying a defect (or fault) in the volatile memory (231).

[0079] In one embodiment, the processor (220) may include a conditional statement for identifying whether a boot loader has a designated input for operating in a designated boot mode, and if the designated input for operating in the designated boot mode with the designated cores enabled is present, the processor may identify the designated boot mode, and if the designated input for operating in the designated boot mode with the designated cores enabled is absent, the processor may identify a normal boot mode (e.g., a normal (or usual) boot mode).

[0080] According to an embodiment, the processor (220) may perform at least one test to identify a defect (or fault) in the volatile memory (231) when the boot loader includes a conditional statement for identifying a defect (or fault) in the volatile memory (231). For example, a program (or service) for performing at least one test to identify a defect (or fault) in the volatile memory (231) may be stored in an internal memory (not shown) of the processor (220). According to an embodiment, as part of an operation of testing the volatile memory (231), the processor (220) may check whether an appropriate operating margin is secured for each of several DDR (double data rate) frequencies when the volatile memory (231) performs DDR (double data rate) training. According to an embodiment, as part of an operation of testing a volatile memory (231), after DDR training of the volatile memory (231) is completed, the processor (220) may set the entire DDR region for each of several DDR frequencies and verify the operation of the channels and cells of the volatile memory (231). According to an embodiment, the processor (220) may perform a READ / WRITE test and a REFRESH test on the volatile memory (231) as part of an operation of testing the volatile memory (231). According to an embodiment, if a defect (or fault) exists in the volatile memory (231) as a result of the test of the volatile memory (231), the processor (220) may identify a designated boot mode, and if a defect (or fault) does not exist in the volatile memory (231), the processor (220) may identify a normal boot mode (e.g., a normal (or usual) boot mode). Based on the identification of the normal boot mode, the processor (220) may perform a normal boot and start the OS to perform an operation.According to an embodiment, the processor (220) may perform overall operations related to the operation of the electronic device (201) by using at least some or all of the plurality of cores based on the OS being started by a normal boot. According to an embodiment, the processor (220) may turn on or off each of the plurality of cores, and may perform an operation of processing a single thread by using a single core or an operation of processing multiple threads by using the plurality of cores. According to an embodiment, the processor (220) may move a thread task being performed by a certain core to another core and perform it.

[0081] In operation 330, the processor (220) according to an embodiment may identify an external electronic device (e.g., electronic device (102)) connected to the electronic device (201) based on the identification of a specified boot mode and wait for input from the external electronic device. The processor (220) according to an embodiment may perform a connection (e.g., USB connection) between the electronic device (201) and the external electronic device using an interface (277) (e.g., USB interface, micro USB switch integrated chip (MUIC), or power delivery integrated chip (PDIC)) based on the identification of a specified boot mode and wait for input based on a specified communication protocol (e.g., USB communication protocol) from the external electronic device.

[0082] In operation 340, the processor (220) according to an embodiment may be configured to disable at least one other core other than a designated core based on an input (e.g., a command or information) from an external electronic device connected to the electronic device (201) in a designated boot mode, activate a designated first storage area (or a specific storage area) among storage areas of the volatile memory (231), and disable a second storage area other than the designated first storage area. The processor (220) according to an embodiment may receive a command (or information) for disabling at least one other core other than a designated core from an external electronic device connected to the electronic device (201) in a designated boot mode, and a command (or information) for activating a designated first storage area (or a specific storage area) among storage areas of the volatile memory (231), and deactivating the remaining second storage areas other than the first storage area. The command (or information) for disabling at least one other core other than a designated core according to an embodiment may include a multi-threaded task disable command. For example, based on a multi-threading task disable command, the processor (220) may process threads in a time-sharing manner through a single core. In one embodiment, a command (or information) for disabling at least one other core other than the designated core may include a command for adjusting the MAX Core Size Parameter on the processor from a plurality of values ​​(e.g., multiple values) to 1.According to an embodiment, a command (or information) for activating a designated first storage area (or a specific storage area) and deactivating the remaining second storage areas other than the first storage area may include information for turning on a Bank, Row, or Column corresponding to the first storage area (e.g., providing power to a Bank, Row, or Column corresponding to the first storage area) and turning off a Bank, Row, or Column corresponding to the remaining second storage areas other than the first storage area (e.g., cutting off power to a Bank, Row, or Column corresponding to the first storage area). According to an embodiment, a command (or information) for activating a designated first storage area (or a specific storage area) and deactivating the remaining second storage areas other than the first storage area may include information (or an address (e.g., 0x300000 to 0x5FFFFF)) of a first storage area to be activated among the storage areas of the volatile memory (23) and information of a nonvolatile memory (232) to be transmitted to an external electronic device through the first storage area. For example, information of non-volatile memory (232) to be acquired through the first storage area may include data area information of UFS (unix file system).

[0083] In operation 350, the processor (220) according to an embodiment can identify whether the first storage area of ​​the activated volatile memory (231) is operating normally through a designated core. In order to identify whether the first storage area of ​​the activated volatile memory (231) is operating normally, the processor (220) according to an embodiment can load information (or values) of a designated storage unit (e.g., 1 MB or 1 column) among the information of the data area of ​​the non-volatile memory (232) into each storage unit of the first storage area of ​​the volatile memory (231) and compare whether the information (or values) loaded into each storage unit of the first storage area of ​​the volatile memory (231) are identical. The processor (220) according to an embodiment can identify that the first storage area of ​​the volatile memory (231) is operating normally when the information (or values) loaded into each storage unit of the first storage area of ​​the volatile memory (231) are identical. According to one embodiment, the processor (220) may identify that the first storage area of ​​the volatile memory (231) is not operating normally if the information (or values) loaded into each storage unit of the first storage area of ​​the volatile memory (231) are not identical. According to one embodiment, the processor (220) may terminate the booting process if the first storage area of ​​the volatile memory (231) is not operating normally. According to one embodiment, the processor (220) may identify whether another storage area of ​​the volatile memory (231) is operating normally based on the identification of a new booting request after the booting process is terminated and operate.

[0084] In operation 360, the processor (220) according to one embodiment may load and process information of a data area of ​​a non-volatile memory (232) into an activated first storage area of ​​a volatile memory (231) based on normal operation of the activated first storage area. The processor (220) according to one embodiment may transmit information of a data area of ​​a non-volatile memory (232) loaded into an activated first storage area of ​​a volatile memory (231) to an external electronic device connected to the electronic device (201).

[0085] In one embodiment, a method for acquiring data during an abnormal operation of an electronic device (101 of FIG. 1 or 201 of FIG. 2) may include an operation of identifying a specified boot mode based on a boot request during the abnormal operation of the electronic device. In one embodiment, the method may include an operation of receiving an input from an external electronic device connected to the electronic device in the specified boot mode. In one embodiment, the method may include an operation of activating at least a portion of a storage area of ​​the volatile memory (132 of FIG. 1 or 231 of FIG. 2) based on the input from the external electronic device and deactivating other areas of the storage area of ​​the volatile memory excluding the at least a portion of the storage area. In one embodiment, the method may include an operation of identifying whether the at least a portion of the area is operating normally. In one embodiment, the method may include an operation of loading data stored in the non-volatile memory (134 of FIG. 1 or 232 of FIG. 2) into the at least a portion of the area based on the normal operation of the at least a portion of the area.

[0086] The method according to one embodiment may include activating a designated core among a plurality of cores of the electronic device based on the boot request and identifying the designated boot mode using the designated core.

[0087] According to one embodiment, the method may include an operation of receiving information for disabling multi-threaded tasks from the external electronic device based on the specified boot mode, and an operation of disabling cores other than the specified core among the plurality of cores based on the reception of the information for disabling multi-threaded tasks.

[0088] The method according to one embodiment may include an operation of identifying a specified boot mode based on a specified input for operating in the specified boot mode while the specified core is activated.

[0089] The method according to one embodiment may include an operation of identifying a normal boot mode if there is no designated input for operating in the designated boot mode while the designated core is activated.

[0090] The method according to one embodiment may include receiving information about at least a portion of the storage area of ​​the volatile memory to be activated from the external electronic device.

[0091] The method according to one embodiment may include an operation of transmitting the data loaded in at least some of the areas to the external electronic device connected via an interface.

[0092] According to one embodiment, the method may include an operation of loading a value of a designated storage unit stored in the non-volatile memory into each of the areas of the designated storage unit of at least a portion of the volatile memory, an operation of comparing whether the values ​​loaded into each of the areas of the designated storage unit of the at least a portion of the volatile memory are identical to each other, and an operation of identifying the at least a portion of the volatile memory as operating normally when the values ​​loaded into each of the areas of the designated storage unit are identical to each other.

[0093] The method according to one embodiment may include an operation of receiving a virtual address of at least some area from which data stored in the non-volatile memory is to be loaded from the external electronic device based on normal operation of at least some area, an operation of activating a physical address of the at least some area using the virtual address, and an operation of loading the data stored in the non-volatile memory using the physical address of the at least some area.

[0094] The method according to one embodiment may include an operation of identifying a virtual address of at least some of the areas based on normal operation of at least some of the areas, an operation of activating a physical address of at least some of the areas using the virtual address, and an operation of loading data stored in the non-volatile memory using the physical address of at least some of the areas.

[0095] In the method according to one embodiment, the volatile memory may include DRAM, and the non-volatile memory may include NAND flash memory.

[0096] In the method according to one embodiment, the interface may include a USB interface.

[0097] The method according to one embodiment may include an operation of displaying information associated with the specified boot mode on the display of the electronic device in the specified boot mode. In the method according to one embodiment, the information associated with the specified boot mode may include a message warning of an abnormal boot mode and / or a message associated with user data recovery according to the abnormal boot mode.

[0098] FIG. 4 is a diagram showing the configuration and operation of an AP, DRAM, and UFS of an electronic device according to one embodiment.

[0099] Referring to FIG. 4, an AP (420) according to an embodiment (e.g., the processor (120) of FIG. 1 or the processor (220) of FIG. 2) may include first to eighth cores (421 to 428). The AP (420) according to an embodiment may control cores (422 to 428) other than the first core (421) to be deactivated based on identification of a specified boot mode (e.g., an abnormal (or emergency) boot mode) (e.g., a user data recovery mode) through the first core (421).

[0100] According to one embodiment, the first core (421) of the AP (420) may control the controller (441) of the DRAM (431) (e.g., the volatile memory (132) of FIG. 1 or the volatile memory (231) of FIG. 2) to drive firmware in a designated boot mode. According to one embodiment, the first core (421) may transmit a command (or information) to the controller (441) to activate a designated first storage area (or a specific storage area) (44) among the entire storage area (442) and to deactivate the remaining second storage areas other than the designated first storage area (44). A command (or information) for activating a first storage area (44) (e.g., 0x300000 to 0x5FFFFF) and deactivating a second storage area according to an embodiment may include information for turning on a Bank, Row, or Column corresponding to the first storage area (44) (e.g., providing power to a Bank, Row, or Column corresponding to the first storage area) and turning off a Bank, Row, or Column corresponding to the remaining second storage areas other than the first storage area (e.g., cutting off power to a Bank, Row, or Column corresponding to the first storage area). For example, the second storage area may be an area including a bad (or defective) area (40). According to one embodiment, a controller (441) may drive firmware to turn on a Bank, Row, or Column corresponding to a first storage area (44) (e.g., provide power to a Bank, Row, or Column corresponding to the first storage area) and turn off a Bank, Row, or Column corresponding to a second storage area other than the first storage area (44) (e.g., cut off power to a Bank, Row, or Column corresponding to the first storage area) based on a command (or information) from a first core (421).

[0101] According to an embodiment, the first core (421) of the AP (420) may control the controller (451) of the UFS (432) (e.g., the non-volatile memory (134) of FIG. 1 or the non-volatile memory (232) of FIG. 2) to run firmware in a specified boot mode. According to an embodiment, the first core (421) may transmit a command (or information) to the controller (451) to move data (45) stored in the storage area (452) of the UFS (432) to the first storage area (44). According to an embodiment, the controller (451) may move data (45) stored in the storage area (452) of the UFS (432) to the first storage area (44) based on the command (or information) from the first core (421).

[0102] According to an embodiment, the first core (421) of the AP (420) can obtain data from the UFS (432) moved to the first storage area (44). According to an embodiment, the first core (421) of the AP (420) can control to transmit the data from the UFS (432) obtained through the first storage area (44) to an external electronic device (e.g., the electronic device (102) of FIG. 1) connected to the electronic device (201).

[0103] FIG. 5a is a diagram showing an address configuration of a DRAM according to one embodiment.

[0104] Referring to FIG. 5A, each storage space of the entire storage area (442) of a DRAM (431) (e.g., the volatile memory (132) of FIG. 1 or the volatile memory (231) of FIG. 2) according to an embodiment may be identified based on channel, RANK, BANK, ROW, and COLUMN units and may have a physical address using a channel ID, RANK ID, BANK ID, ROW ID, and COLUMN ID. The controller (441) of the DRAM (431) according to an embodiment may allocate and use a virtual address corresponding to each physical address using a lookup table (TLB lookup).

[0105] FIG. 5b is a diagram showing examples of RANKs when the DRAM according to one embodiment is 8G bytes.

[0106] Referring to FIG. 5b, the entire storage area (442) of a DRAM (431) (e.g., the volatile memory (132) of FIG. 1 or the volatile memory (231) of FIG. 2) according to one embodiment may include two sets of 4 RANKs (RANK0, RANK1, RANK2, RANK3) each having 1 GB in size when the size is 8 GB.

[0107] FIG. 5c is a diagram showing an example of the configuration of each RANK when the DRAM according to one embodiment is 8G bytes.

[0108] Referring to FIG. 5c, each RANK of a DRAM (431) (e.g., the volatile memory (132) of FIG. 1 or the volatile memory (231) of FIG. 2) according to an embodiment may include 8 BANKs of 128 MB. Each BANK according to an embodiment may include 128 ROWs and COLUMNs of IMB. When a command (or information) to activate 3 Mbytes of virtual addresses of 0x0300000 to 0x05FFFFF as the first storage area (44) is received, the controller (441) of the DRAM (431) according to an embodiment may activate a storage area (e.g., the first storage area) corresponding to a physical address of Channel ID 0, Rank ID 0, Bank ID 0, and Row IDs 3 to 5 of the entire storage area (442).

[0109] In the above FIGS. 5b and 5c, the case where the total storage area size of the DRAM (431) is 8 GB and the address of the first storage area (44) to be activated is 0x0300000 to 0x05FFFFF is described as an example, but the total storage area size of the DRAM (431) and the size of the first storage area (44) are not limited to the example described above, and may be designated as different sizes by those skilled in the art.

[0110] FIG. 6 is a diagram illustrating an example of transmitting a message to an electronic device to activate a first storage area of ​​a DRAM from an external electronic device according to one embodiment.

[0111] Referring to FIG. 6, an AP (420) (e.g., a processor (120) of FIG. 1 or a processor (220) of FIG. 2) of an electronic device (201) (e.g., an electronic device (101) of FIG. 1) according to an embodiment may receive a message (e.g., a PC program message) including a virtual address (e.g., 0x0300000 to 0x05FFFFF) of a first storage area (44) that is a target of activation among the entire storage area (442) of a DRAM (431) (e.g., a volatile memory (132) of FIG. 1 or a volatile memory (231) of FIG. 2)) from an external electronic device (602) (e.g., an external electronic device (102) of FIG. 1) (e.g., a PC)) while operating in a designated boot mode (610). In one embodiment, the processor (220) may automatically (e.g., automatically using a program) determine (or identify or obtain) the address of the first storage area (44) of the DRAM (431) instead of receiving the address (e.g., 0x300000 to 0x5FFFFF) of the first storage area (44) of the DRAM (431) from the external electronic device (602).

[0112] According to an embodiment, the first core (421) in the AP (220) of the electronic device (201) can calculate (620) a physical address (Channel ID 0, Rank ID 0, Bank ID 0, Row ID 3 to 5) from the virtual address of the first storage area (44). According to an embodiment, the first core (421) in the processor (220) of the electronic device (201) can transfer the calculated physical address to the controller (441) of the DRAM (431). According to an embodiment, the controller (441) of the DRAM (431) can activate (630) the first storage area (44) corresponding to the physical address of Channel ID 0, Rank ID 0, Bank ID 0, Row ID 3 to 5 of the entire storage area (442), and control the remaining second storage areas to be deactivated.

[0113] FIG. 7 is a diagram illustrating an example of transmitting data of a UFS to an external electronic device using an activated first storage area of ​​a DRAM in an electronic device according to one embodiment.

[0114] Referring to FIG. 7, an AP (420) (e.g., a processor (120) of FIG. 1 or a processor (220) of FIG. 2) of an electronic device (201) (e.g., an electronic device (101) of FIG. 1) according to an embodiment may control data (45) of a UFS (432) (e.g., a non-volatile memory (134) of FIG. 1 or a non-volatile memory (232) of FIG. 2) to be moved to a first storage area (44) of a DRAM (431) by using a designated core (e.g., a first core (421)) while operating in a designated boot mode. The AP (420) according to an embodiment may obtain data (45) moved to the first storage area (44) through the designated core. According to one embodiment, the AP (420) may transmit data obtained from the first storage area (44) through the first core (421) to an external electronic device (601) (e.g., the electronic device (102) of FIG. 1) connected to the electronic device (201) through an interface (677) (e.g., the interface (177) of FIG. 1 or the interface (277) of FIG. 2).

[0115] FIG. 8 is a diagram illustrating an example of displaying information associated with a specified boot mode in an electronic device according to one embodiment.

[0116] Referring to FIG. 8, the AP (420) of an electronic device (201) (e.g., the electronic device (101) of FIG. 1) according to one embodiment may display information associated with a specified boot mode on a display (260) in a specified boot mode. For example, the information associated with the specified boot mode may include a warning message associated with booting during an abnormal operation or a message associated with user data recovery according to an abnormal boot mode.

[0117] For example, a warning message associated with booting during abnormal operation may include a message informing that downloading a binary not provided by the manufacturer of the electronic device (201) may cause an error in the set, and that defects and failures resulting from this may not be eligible for free service. For example, a warning message associated with booting during abnormal operation may include a message confirming whether to continue downloading in a specified boot state during abnormal operation.

[0118] According to the various embodiments described above, when a normal booting using a processor (e.g., AP) and volatile memory (e.g., DRAM) is impossible due to minor hardware damage, the electronic device can perform booting during abnormal operation (designated boot mode) using a part of the AP and DRAM, thereby enabling data (e.g., data of the electronic device user) stored in non-volatile memory (e.g., flash memory) to be transferred and backed up to an external device.

[0119] Electronic devices according to various embodiments disclosed in this document may take various forms. Electronic devices may include, for example, portable communication devices (e.g., smartphones), computer devices, portable multimedia devices, portable medical devices, cameras, wearable devices, or home appliances. Electronic devices according to embodiments of the present disclosure are not limited to the aforementioned devices.

[0120] The various embodiments of the present disclosure and the terminology used therein are not intended to limit the technical features described in this document to specific embodiments, but should be understood to include various modifications, equivalents, or substitutes of the embodiments. In connection with the description of the drawings, similar reference numerals may be used for similar or related components. The singular form of a noun corresponding to an item may include one or more of the items, unless the context clearly indicates otherwise. In this document, each of the phrases "A or B," "at least one of A and B," "at least one of A or B," "A, B, or C," "at least one of A, B, and C," and "at least one of A, B, or C" can include any one of the items listed together in the corresponding phrase among those phrases, or all possible combinations thereof. Terms such as "first," "second," or "first" or "second" may be used merely to distinguish one component from another, and do not limit the components in any other respect (e.g., importance or order). When a component (e.g., a first component) is referred to as "coupled" or "connected" to another (e.g., a second component), with or without the terms "functionally" or "communicatively," it means that the component can be connected to the other component directly (e.g., wired), wirelessly, or through a third component.

[0121] The term "module" as used herein may include a unit implemented in hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit. A module may be an integral component, or a minimum unit or part of such a component that performs one or more functions. For example, according to one embodiment, a module may be implemented in the form of an application-specific integrated circuit (ASIC).

[0122] Various embodiments of the present disclosure may be implemented as software (e.g., a program (140)) including one or more commands stored in a storage medium (e.g., an internal memory (136) or an external memory (138)) readable by a machine (e.g., an electronic device (101)). For example, a processor (e.g., a processor (120)) of the machine (e.g., an electronic device (101)) may call at least one command among the one or more commands stored from the storage medium and execute it. This enables the machine to operate to perform at least one function according to the at least one command called. The one or more commands may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' simply means that the storage medium is a tangible device and does not contain signals (e.g., electromagnetic waves), and the term does not distinguish between cases where data is stored semi-permanently or temporarily on the storage medium.

[0123] According to one embodiment, the method according to the various embodiments disclosed in the present document may be provided as included in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or may be distributed online (e.g., downloaded or uploaded) via an application store (e.g., Play Store™) or directly between two user devices (e.g., smartphones). In the case of online distribution, at least a portion of the computer program product may be temporarily stored or temporarily generated in a machine-readable storage medium, such as the memory of a manufacturer's server, an application store's server, or an intermediary server.

[0124] According to various embodiments, each component (e.g., a module or a program) of the above-described components may include a single or multiple entities. According to various embodiments, one or more components or operations of the aforementioned components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (e.g., a module or a program) may be integrated into a single component. In such a case, the integrated component may perform one or more functions of each of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. According to various embodiments, the operations performed by a module, program, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or one or more of the operations may be executed in a different order, omitted, or one or more other operations may be added.

[0125] According to one embodiment, a non-volatile storage medium storing commands is provided, wherein the commands are configured to cause the electronic device to perform at least one operation when executed by the electronic device, wherein the at least one operation may include: an operation of identifying a designated boot mode based on a boot request during an abnormal operation of the electronic device; an operation of receiving an input from an external electronic device connected to the electronic device in the designated boot mode; an operation of activating at least a portion of a storage area of ​​the volatile memory based on the input from the external electronic device and deactivating other areas of the storage area of ​​the volatile memory excluding the at least a portion of the area; an operation of identifying whether the at least a portion of the area is operating normally; and an operation of loading data stored in the non-volatile memory into the at least a portion of the area based on the normal operation of the at least a portion of the area.

[0126] And the embodiments of the present disclosure described in this specification and drawings are merely specific examples presented to easily explain the technical contents according to the embodiments of the present disclosure and to help understand the embodiments of the present disclosure, and are not intended to limit the scope of the embodiments of the present disclosure. Therefore, the scope of the various embodiments of the present disclosure should be interpreted as including all changes or modified forms derived based on the technical ideas of the various embodiments of the present disclosure in addition to the embodiments invented herein.

Claims

1. In an electronic device (101 of FIG. 1 or 201 of FIG. 2), Volatile memory (132 in Fig. 1 or 231 in Fig. 2); A nonvolatile memory (134 in FIG. 1 or 232 in FIG. 2) for storing commands; and At least one processor (120 of FIG. 1 or 220 of FIG. 2) operatively connected to the volatile memory and the non-volatile memory, The above instructions, when executed by the at least one processor, cause the electronic device to: Identify the specified boot mode based on the boot request during abnormal operation, In the above-mentioned boot mode, based on an input from an external electronic device connected to the electronic device, at least a portion of the storage area of ​​the volatile memory is activated and other areas except for the at least a portion of the storage area of ​​the volatile memory are deactivated, Identify whether at least some of the above areas are operating normally, and An electronic device that loads and processes data stored in the non-volatile memory into at least some of the areas based on normal operation of at least some of the areas.

2. In paragraph 1, wherein at least one of the processors comprises multiple cores, The above instructions, when executed by the at least one processor, cause the electronic device to: An electronic device that activates a designated core among the plurality of cores based on the boot request and identifies the designated boot mode using the activated designated core.

3. In paragraph 1 or 2, The above instructions, when executed by the at least one processor, cause the electronic device to: Receiving information for disabling multi-threaded operations from the external electronic device based on the above-mentioned specified boot mode, and An electronic device that disables cores other than the designated core among the plurality of cores based on receiving information for disabling the multi-threaded task.

4. In any one of paragraphs 1 to 3, The above instructions, when executed by the at least one processor, cause the electronic device to: Identifying a specified boot mode based on a specified input for operating in the specified boot mode while the specified core is activated, and An electronic device that identifies a normal boot mode when there is no designated input to operate in the designated boot mode while the designated core is activated.

5. In any one of paragraphs 1 to 4, The above instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to receive information about at least a portion of a storage area of ​​said volatile memory to be activated from said external electronic device.

6. In any one of paragraphs 1 to 5, Including more interfaces, The above instructions, when executed by the at least one processor, cause the electronic device to: An electronic device configured to transmit said data loaded into at least a portion of said area to said external electronic device connected via said interface.

7. In any one of paragraphs 1 to 6, The above instructions, when executed by the at least one processor, cause the electronic device to: Loading the values ​​of the designated storage units stored in the non-volatile memory into the areas of the designated storage units of at least some areas of the volatile memory, respectively; Compare whether the values ​​loaded into each of the areas of the designated storage unit of the at least some area of ​​the volatile memory are identical to each other, and An electronic device that identifies at least some areas of the volatile memory as operating normally when the values ​​loaded into each of the areas of the designated storage unit are identical to each other.

8. In any one of paragraphs 1 to 7, The above instructions, when executed by the at least one processor, cause the electronic device to: Receiving a virtual address of at least a portion of the area from which data stored in the non-volatile memory is to be loaded from the external electronic device based on normal operation of at least a portion of the area, and An electronic device that activates a physical address of at least a portion of the area using the virtual address and loads data stored in the non-volatile memory using the physical address of at least a portion of the area.

9. In any one of paragraphs 1 to 8, The above instructions, when executed by the at least one processor, cause the electronic device to: Identifying a virtual address of at least some of the above areas based on normal operation of at least some of the above areas, and An electronic device that activates a physical address of at least a portion of the area using the virtual address and loads data stored in the non-volatile memory using the physical address of at least a portion of the area.

10. In any one of paragraphs 1 to 9, Further comprising a display (160 in FIG. 1 or 260 in FIG. 2), The above instructions, when executed by the at least one processor, cause the electronic device to: To display information associated with the specified boot mode in the specified boot mode on the above display, An electronic device, wherein information associated with the above-mentioned boot mode includes a message warning of an abnormal boot mode and / or a message associated with user data recovery according to the abnormal boot mode.

11. In a method for acquiring data during abnormal operation in an electronic device (101 of FIG. 1 or 201 of FIG. 2), An action to identify a specified boot mode based on a boot request during an abnormal operation of the electronic device; An operation of receiving input from an external electronic device connected to the electronic device in the above-mentioned specified boot mode; An operation of activating at least a portion of a storage area of ​​the volatile memory (132 of FIG. 1 or 231 of FIG. 2) based on the input from the external electronic device and deactivating other areas of the storage area of ​​the volatile memory except for the at least a portion of the storage area; An operation for identifying whether at least some of the above areas are operating normally; and A method comprising loading data stored in the non-volatile memory (134 of FIG. 1 or 232 of FIG. 2) into at least some of the areas based on normal operation of at least some of the areas.

12. In paragraph 11, A method comprising: activating a designated core among a plurality of cores of the electronic device based on the boot request and identifying the designated boot mode using the designated core.

13. In paragraph 11 or 12, An operation for receiving information for disabling multi-threaded operations from the external electronic device based on the above-mentioned specified boot mode; and A method including an action of disabling cores other than the designated core among the plurality of cores based on receiving information for disabling the multi-threaded task.

14. In any one of paragraphs 11 to 13, An operation for identifying a specified boot mode based on a specified input for operating in the specified boot mode while the specified core is activated; and A method comprising the operation of identifying a normal boot mode if no designated input is present to operate in the designated boot mode while the designated core is activated.

15. In a nonvolatile storage medium storing commands, The above commands, when executed by an electronic device (101 of FIG. 1 or 201 of FIG. 2), are set to cause the electronic device to perform at least one operation, wherein the at least one operation is: An action to identify a specified boot mode based on a boot request during an abnormal operation of the electronic device; An operation of receiving input from an external electronic device connected to the electronic device in the above-mentioned specified boot mode; An operation of activating at least a portion of a storage area of ​​the volatile memory (132 of FIG. 1 or 231 of FIG. 2) based on the input from the external electronic device and deactivating other areas of the storage area of ​​the volatile memory except for the at least a portion of the storage area; An operation for identifying whether at least some of the above areas are operating normally; and A storage medium including an operation of loading data stored in the non-volatile memory (134 of FIG. 1 or 232 of FIG. 2) into at least some of the areas based on normal operation of at least some of the areas.

Citation Information

Patent Citations

  • Rom contents copy system

    JP1996110877A

  • Storage data access device

    JP2005157649A

  • Method and apparatus for initiating execution of anapplication processor in a clustered multiprocessorsystem

    KR1020020022089A

  • A Device and method for using for NAND flash memoryhave Multi boot lodor code

    KR1020060014320A

  • Test method of volatile memory device embedded electronic device

    KR1020170051124A