Information processing device, control method, and program

The information processing device optimizes swap file generation and deletion based on startup mode, addressing the challenge of limited memory and storage capacity, thereby enhancing performance without additional costs.

JP7541893B2Active Publication Date: 2024-08-29CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020176265
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2024-08-29
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

Existing technologies face challenges in generating a swap file for an operating system (OS) that exceeds the image processing memory area size without increasing memory capacity, leading to higher costs due to the use of more expensive memory (DRAM) and increased storage needs.

Method used

An information processing device with a storage device having a first and second firmware area, a common area for swapping, and mechanisms for generating and deleting swap files based on startup mode, allowing performance improvement without increasing memory or storage capacity.

Benefits of technology

The solution enables improved performance by securing necessary swap space while reducing memory and storage capacity, maintaining operational efficiency without additional costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007541893000004
    Figure 0007541893000004
  • Figure 0007541893000002
    Figure 0007541893000002
  • Figure 0007541893000003
    Figure 0007541893000003
Patent Text Reader

Abstract

To provide an information processing device capable of improving performance without enlarging capacities of a memory and a storage, a control method, and a program.SOLUTION: An information processing device 10 comprises a CPU, and an eMMC including a std firmware storage region 301 which stores std firmware 506, a safe firmware storage region 302 which stores safe firmware 507, and a shared work region 305 used in normal start or update start by a loader 505. In the normal start, the CPU generates a swap file in the shared work region to validate swap. In the update start, when the swap file exists in the shared work region, the CPU deletes the swap file from the shared work region.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing apparatus, a control method, and a program, and more particularly to an information processing apparatus, a control method, and a program for controlling generation and switching of swap files in an information processing apparatus such as a digital multifunction peripheral. [Background technology]

[0002] In recent years, there has been a demand for compact digital multifunction devices that can be tightly integrated with digital multifunction devices for office use. To realize such compact products, it is necessary to reduce the memory and storage capacities and reduce hardware costs while still being able to integrate with the various functions of digital multifunction devices for office use. However, when attempting to run high-performance software that can be integrated with the functions of digital multifunction devices for office use on such small-capacity memory or storage, there is a problem in that it is difficult to secure sufficient memory space to be used.

[0003] 2. Description of the Related Art In an image forming apparatus such as a digital multifunction peripheral, a conventional technique for improving performance without increasing the memory capacity is disclosed in, for example, Patent Document 1.

[0004] In Patent Document 1, a swap file for the OS is generated using part of the memory area for image processing, and the swap file for the OS is backed up in storage. After that, when the memory area for image processing is used by the image processing device, the swap file for the OS is switched to the backed up swap file. [Prior art documents] [Patent documents]

[0005] Patent No. 6524928 Summary of the Invention [Problem to be solved by the invention]

[0006] However, in Patent Document 1, because a part of the image processing memory area is used to generate a swap file for the OS, it is not possible to generate a swap file for the OS that exceeds the size of the image processing memory area. For example, if the size of the image processing memory area is 1 GB, it is not possible to generate a swap file for the OS that is 2 GB. In such a case, if memory is added so that the image processing memory area is larger than 2 GB, it will be possible to generate a swap file for the OS, but this will lead to increased costs.

[0007] Another problem is that memory (DRAM) is generally more expensive than semiconductor memory devices (SSD and eMMC) and HDDs used as storage.

[0008] Furthermore, in Patent Document 1, the swap file for the OS is constantly backed up in the storage, which requires a large storage capacity, leading to increased costs.

[0009] SUMMARY OF THE PRESENT EMBODIMENTS Accordingly, an object of the present invention is to provide an information processing device, a control method, and a program that can improve performance without increasing the capacity of memory or storage. [Means for solving the problem]

[0010] The information processing device of claim 1 of the present invention is an information processing device comprising a storage device having a first area for storing a first firmware and a second area for storing a second firmware, wherein the storage device further has a common area to be used when booted using either the first or second firmware, and the information processing device is characterized in comprising a first startup means for starting the information processing device using the first firmware, a second startup means for starting the information processing device using the second firmware, a swap enabling means for generating a swap file in the common area and enabling swapping during startup by the first startup means, and a swap file deletion means for deleting the swap file from the common area if a swap file exists in the common area during startup by the second startup means. Effect of the Invention

[0011] According to the present invention, it is possible to improve performance without increasing memory or storage capacity. [Brief description of the drawings]

[0012] [Figure 1] 1 is a block diagram showing an example of a hardware configuration of an information processing device according to an embodiment of the present invention. [Diagram 2] 2 is a block diagram showing an example of a hardware configuration of a control unit of the information processing device. FIG. [Diagram 3] 1 is a diagram showing an example of a partition configuration of a system area of ​​an eMMC included in a control unit. [Figure 4] FIG. 11 is a diagram showing a mounting configuration table showing an example of a mounting method for each partition of the system area in the eMMC. [Diagram 5] 2 is a block diagram showing an example of a configuration of a firmware module included in the information processing device. FIG. [Figure 6] 11 is a flowchart of a process for generating and activating a swap file during normal boot-up of an information processing apparatus according to an embodiment of the present invention. [Figure 7A]11 is a flowchart of a swap file deletion process during firmware update in an embodiment of the present invention. [Figure 7B] This is a continuation of the flowchart of FIG. 7A. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, an embodiment of the present invention will be described in detail with reference to the attached drawings. Note that the following embodiment does not limit the present invention according to the claims, and not all of the combinations of features described in the present embodiment are necessarily essential to the solution of the present invention. Note that a digital multifunction peripheral (MFP) will be used as an example of an information processing device according to the embodiment. However, the scope of application is not limited to digital multifunction peripherals, and may be any information processing device.

[0014] <Description of the device> Fig. 1 is a block diagram showing an example of a hardware configuration of an information processing device 10 according to an embodiment of the present invention, and Fig. 2 is a block diagram showing an example of a hardware configuration of a control unit 120 of the information processing device 10.

[0015] The information processing apparatus 10 is connected to an external PC 170 and an external server 180 via a LAN 110. The information processing apparatus 10 also includes a control unit 120, an operation unit 130, a printer engine 140, a scanner engine 150, and an external power supply 160 inside.

[0016] The control unit 120 includes a CPU 210, a chipset 211, a RAM 212, an SRAM 213, a network I / F card (NIC) 214, an operation unit I / F 215, and a printer I / F 216. The control unit 120 further includes a scanner I / F 217, a semiconductor memory device (eMMC) 219, an embedded controller 280, an LED 290, and a flash ROM 291.

[0017] The control unit 120 including the CPU 210 controls the operation of the entire information processing device 10 .

[0018] The CPU 210 reads out a control program stored in the eMMC 219 and executes various control processes such as reading control, printing control, and firmware update control.

[0019] The eMMC 219 is used as a work area and a user data area.

[0020] The flash-ROM 291 is a read-only memory, and stores the BIOS, fixed parameters, etc. of the information processing device 10.

[0021] The RAM 212 is used as a temporary storage area such as a main memory or a work area for the CPU 210 .

[0022] The SRAM 213 is a non-volatile memory from which data is not lost even when the power is turned on again, and stores setting values ​​and image adjustment values ​​required by the information processing device 10.

[0023] The operation unit I / F 215 connects the operation unit 130 and the control unit 120 .

[0024] The operation unit 130 is composed of a liquid crystal display unit having a touch panel function, a keyboard, and the like.

[0025] The printer I / F 216 connects the printer engine 140 and the control unit 120 .

[0026] Printer engine 140 stores printer engine firmware 141 in an internal ROM (not shown). Image data to be printed by printer engine 140 is transferred from control unit 120 to printer engine 140 via printer I / F 216, and is printed on a recording medium by printer engine 140.

[0027] The scanner I / F 217 connects the scanner engine 150 and the control unit 120 .

[0028] The scanner engine 150 stores scanner engine firmware 151 in an internal ROM (not shown). The scanner engine 150 reads an image on a document to generate image data, and inputs the image data to the control unit 120 via the scanner I / F 217.

[0029] The NIC 214 connects the control unit 120 (information processing device 10) to the LAN 110. The NIC 214 transmits image data and information to an external device (e.g., an external server 180 or a PC 170) on the LAN 110, and receives update firmware and various information from the external device. In this embodiment, the external server 180 exists on the LAN 110, but is not limited to this as long as it is directly or indirectly connected to the information processing device 10. For example, the external server 180 may exist on the Internet connected to the LAN 110. In this embodiment, the user operates the information processing device 10 using the operation unit 130, but the information processing device 10 may be operated from a web browser (not shown) on the PC 170.

[0030] Chipset 211 is a series of related integrated circuits.

[0031] RTC270 is a Real Time Clock, a chip dedicated to timekeeping.

[0032] The external power source 160 cuts off the power supply to the control unit 120 when the control unit 120 transitions to sleep mode in response to an instruction from a control program in the eMMC 219, but during sleep mode, the Chipset 211 and the RTC 270 receive power from an internal battery (not shown) in the control unit 120. Therefore, the Chipset 211 and the RTC 270 can operate even during sleep mode, thereby enabling the information processing device 10 to return from sleep mode. On the other hand, during shutdown, no power is supplied to the Chipset 211 or the RTC 270, and therefore the Chipset 211 and the RTC 270 cannot operate.

[0033] The CPU 281 executes the software program of the Embedded Controller 280 and performs some of the control within the information processing device 10 .

[0034] The RAM 282 is a random access memory, and is used for storing programs and temporary data when the CPU 281 controls the information processing device 10 .

[0035] The LED 290 lights up as necessary and is used to notify the outside world of software or hardware abnormalities.

[0036] <Partition configuration> FIG. 3 is a diagram showing an example of a partition configuration of a system area 300 in the eMMC 219 included in the control unit 120. As shown in FIG.

[0037] As shown in FIG. 3, the system area 300 has seven partitions: a std firmware storage area 301, a safe firmware storage area 302, user data storage areas 303a and 303b, work areas 304a and 304b, and a shared work area 305.

[0038] The std firmware storage area 301 is a partition that stores normal boot firmware.

[0039] The safe firmware storage area 302 is a partition that stores update firmware for the normal startup firmware. For the sake of simplicity, the update firmware will be referred to as safe firmware and the normal startup firmware as std firmware.

[0040] The user data storage areas 303a and 303b are partitions for storing various types of user data, and the work areas 304a and 304b are partitions used as work areas for job execution and the like.

[0041] The shared work area 305 (common area) is a partition used as a work area shared between normal startup and update startup.

[0042] <Mounting configuration> FIG. 4 is a diagram showing a mounting configuration table 400 showing an example of a mounting method for each partition of the system area 300 in the eMMC 219. The eMMC 219 mounts and operates each partition in the system area 300 shown in FIG. 3 according to the startup mode. Here, the startup mode refers to a mode (first startup means) in which the information processing device 10 is normally started using the std firmware, and a mode (second startup means) in which the information processing device 10 is started for update using the safe firmware. Each of the startup modes has a function of switching between the startup modes, and the loader 505 starts the std firmware and the safe firmware according to the startup mode information stored in the SRAM 213. The information processing device 10 realizes a firmware update, which will be described later, while switching between the startup modes.

[0043] For security reasons, the std firmware storage area 301 is a partition that is mounted as read-only (RO) during normal startup. Also, when updating firmware, the std firmware storage area 301 is mounted as write-enabled (RW) in order to update the firmware.

[0044] Similarly, the safe firmware storage area 302 is a partition that is mounted as read-only (RO) for security reasons during firmware update bootup. Also, during normal bootup, it is not mounted unless a safe firmware update is required.

[0045] The user data storage areas 303a, 303b and the work areas 304a, 304b are partitions that are mounted as writable (RW) during normal boot. During update boot, the user data storage areas 303a, 303b and the work areas 304a, 304b are not used, so they are not mounted.

[0046] The shared work area 305 is a partition that is mounted as writable (RW) during normal startup to store swap files and new firmware for updates that are downloaded in the background. Even during startup for updating, the shared work area 305 stores backup data of the old firmware as a work area for firmware updates, so it is mounted as writable (RW).

[0047] <Firmware configuration> FIG. 5 is a block diagram showing an example of the configuration of a firmware module included in the information processing device 10. As shown in FIG.

[0048] The communication management unit 501 controls the NIC 214 connected to the LAN 110 to transmit and receive data to and from the outside via the LAN 110 .

[0049] The UI control unit 502 receives an input to the operation unit 130 via the operation unit I / F 215, and performs processing and screen output according to the input.

[0050] The boot program 503 is a program executed by the CPU 281 of the Embedded Controller 280 when the information processing device 10 is powered on, and performs processing related to startup.

[0051] The BIOS 504 is a program executed by the CPU 210 after the boot program 503 has been executed, and performs processing related to startup.

[0052] The loader 505 is a program executed by the CPU 210 after the processing of the BIOS 504 is completed, and performs processing related to startup. The loader 505 starts up the std firmware and the safe firmware according to the startup mode information stored in the SRAM 213.

[0053] The std firmware storage area 301 and the safe firmware storage area 302 are partitions configured in the eMMC 219, which is also described in Fig. 3. The std firmware storage area 301 (first area) includes the std firmware 506, which is normal startup firmware. The safe firmware storage area 302 (second area) includes the safe firmware 507, which is startup firmware for update.

[0054] The std firmware 506 (first firmware) is a program executed by the CPU 210, and is made up of a plurality of programs that provide each function in the information processing device 10. For example, these include a startup program and a program that controls the scanner I / F 217 and the printer I / F 216. The std firmware 506 also includes a mounting program 508. During normal startup, a startup program is called from the std firmware 506, and the mounting program 508 performs startup processing such as mounting each area of ​​the eMMC 219 used during normal startup. Thereafter, a plurality of programs that provide each function of the information processing device 10 are started. The std firmware 506 also includes a firmware download program 509 that downloads firmware.

[0055] The safe firmware 507 (second firmware) is a program executed by the CPU 210 at the time of start-up for updating. The safe firmware 507 is made up of a plurality of programs such as a standard firmware update program 510 that updates the standard firmware of the information processing device 10 and a mounting program 511.

[0056] The std firmware update program 510 has a function of updating the std firmware 506, the printer engine firmware 141 (FIG. 1), and the scanner engine firmware 151 (FIG. 1). The same applies when a component other than a scanner engine or a printer engine, such as a finisher (not shown), is connected to the information processing device 10. The mounting program 511 performs mounting processing when started for updating.

[0057] The shared work area 305 indicates a partition for a shared work area configured in the eMMC 219 also described in Fig. 3. The shared work area 305 temporarily stores the update std firmware 512 downloaded during normal startup, stores a swap file 513 during normal startup, and stores backup data 514 of the old std firmware during update startup.

[0058] <Creating and enabling a swap file during normal boot> The process of generating and activating a swap file during normal boot will be described with reference to the flowchart in Fig. 6. The flowchart in Fig. 6 is executed by the CPU 210 in accordance with the program stored in the eMMC 219 shown in Fig. 2. This process is also executed during normal boot using the std firmware 506 in the std firmware storage area 301 when the CPU 210 receives a power-on command, a restart command, or the like.

[0059] First, in step S601, the mounting program 508 performs a mounting process for each partition of the system area 300 in the eMMC 219 in accordance with the mounting configuration table 400 in FIG.

[0060] Next, in step S602, the mounting program 508 checks whether or not a swap file 513 exists in the shared work area 305 mounted in step S601. If the swap file 513 exists (YES in step S602), the process proceeds to step S604, where the swap using the originally existing swap file 513 is validated (swap validation means), and this process ends. On the other hand, if the swap file 513 does not exist (NO in step S602), the process proceeds to step S603.

[0061] In step S603, the mounting program 508 generates the swap file 513, and then the process proceeds to step S604.

[0062] In step S604, swapping of the created swap file 513 to the shared work area 305 is enabled, and this process ends.

[0063] <Swap file deletion when updating firmware> The process of deleting a swap file during firmware update will be described with reference to the flowcharts of Figures 7A and 7B. During the firmware update process shown in Figures 7A and 7B, that is, from when the information processing device 10 receives a restart instruction to start the update startup until when the information processing device 10 starts normal startup after the firmware update is completed, the information processing device 10 does not accept user operations. In addition, during the same period, the information processing device 10 does not accept jobs such as print jobs, scan jobs, and FAX jobs. The flowcharts shown in Figures 7A and 7B are executed by the CPU 210 according to the program stored in the eMMC 219 shown in Figure 2.

[0064] In step S701, in a normal startup state in which std firmware 506 in std firmware storage area 301 is running, if a firmware update instruction is received from external server 180 or operation unit 130, the process proceeds to step S702. At this time, CPU 210 reads firmware download program 509 included in std firmware 506 in eMMC 219, and starts firmware update processing. In addition, when starting the update processing, CPU 210 first obtains firmware information of new firmware to be updated, and saves this as firmware information 515 in shared work area 305.

[0065] Next, in step S702, an authentication screen is displayed on the operation unit 130.

[0066] In step S703, when user authentication is confirmed using the authentication screen displayed in step S702, the process proceeds to step S704.

[0067] In step S704, new std firmware is downloaded in the background from the external server 180, and is saved as downloaded update std firmware 512 in the shared work area 305. This downloaded update std firmware 512 is a new version of the program stored in the std firmware storage area 301. Note that if the firmware does not require user authentication, steps S702 and S703 may be skipped.

[0068] Next, in step S705, if the firmware application time is not set in the application time information 516 of the shared work area 305, or if such a setting is made and the set application time has been reached, the process proceeds to step S706. The application time may be set in advance as a regular execution time, or may be set from the external server 180 when a firmware update is received, or may be set by the user from the operation unit 130.

[0069] In step S706, an authentication screen is displayed on the operation unit 130.

[0070] In step S707, when user authentication is confirmed using the authentication screen displayed in step S706, the process proceeds to step S708, where the safe firmware 507 is started for update. As in steps S702 and S703, in the case where the firmware does not require user authentication, steps S706 and S707 may be skipped.

[0071] In step S709, when the safe firmware 507 starts booting for updating, the mounting program 511 mounts the std firmware storage area 301 in a write-enabled (RW) state according to the mounting configuration table 400 in FIG.

[0072] Next, in step S710, the shared work area 305 is mounted in a write enabled (RW) state.

[0073] In step S711, the mounting program 511 checks whether or not a swap file 513 exists in the mounted shared work area 305. If the swap file 513 exists (YES in step S711), the process proceeds to step S712, where the swap file 513 in the shared work area 305 is deleted (swap deletion means). After the swap file 513 no longer exists in the shared work area 305, the mounting program 511 is terminated, and the process proceeds to step S713. On the other hand, if the swap file 513 does not exist (NO in step S711), the mounting program 511 is terminated as is, and the process proceeds directly to step S713.

[0074] In step S713, the old std firmware currently existing in the std firmware storage area 301 is stored in the shared work area 305 as backup data 514 of the old std firmware by the std firmware update program 510 (storage means).

[0075] In step S714, the std firmware update program 510 loads the update std firmware 512 downloaded during normal startup in the shared work area 305 into the std firmware storage area 301. This updates the std firmware storage area 301 (update means).

[0076] In step S715, it is confirmed whether the updated std firmware 512 that was downloaded correctly has been expanded in the std firmware storage area 301. Specifically, if the std firmware update program 510 detects an error while expanding the new firmware, it determines that the std firmware storage area 301 has not been updated correctly (NO in step S715), and proceeds to step S716. On the other hand, if no such error has been detected, it determines that the std firmware storage area 301 has been updated correctly (YES in step S715), and proceeds to step S717.

[0077] In step S716, the backup data of the old standard firmware is loaded again in the standard firmware storage area 301, and then the process proceeds to step S717. This process prevents the information processing device 10 from falling into a state in which it cannot be started normally when the firmware update fails.

[0078] In step S717, the std firmware storage area 301 and the shared work area 305 are unmounted.

[0079] Next, in step S718, normal startup is performed using the std firmware 506 in the updated new std firmware storage area 301, and this process ends.

[0080] 7A and 7B ends. In the above, in steps S701 and S703, the example of acquiring firmware from external server 180 has been described, but the method of acquiring new firmware may be other methods. For example, the same process can be performed by storing firmware in a USB memory or PC 170 and connecting it to the device.

[0081] During normal startup, multiple programs that provide the various functions of the information processing device 10 operate, consuming a large amount of memory. On the other hand, during update startup, the various job processes that are performed during normal startup are not accepted, and only firmware update processing is performed, so memory usage is limited.

[0082] Therefore, as in the embodiment, a shared work area 305 to be used during both normal startup and update startup is prepared in the eMMC 219, and during normal startup, a swap file is generated in the shared work area 305 and swapping is enabled. As a result, during normal startup, swapping is used to operate the information processing device 10 with conventional performance. On the other hand, during update startup, swapping is not used, the swap file in the shared work area 305 is deleted, and firmware backup data, etc. are stored in the freed area to be used as a work area during update processing.

[0083] In this manner, in this embodiment, one shared work area is used for two purposes depending on the startup mode, and the creation and use of a swap file is switched depending on the startup mode. This makes it possible to secure the necessary swap area while reducing the capacity of the RAM 212, eMMC 219, etc., and to use the information processing device 10 with the same performance as before.

[0084] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention.

[0085] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]

[0086] 10. Information processing device 210 CPU 219 eMMC 301 std farm storage area 302 safe farm storage area 305 Shared Work Area 505 Loader 506 std farm 507 safe farm 512 Downloaded std firmware for updates 513 Swap File 514 Backup data of old std firmware

Claims

1. An information processing device including a storage device having a first area for storing a first firmware and a second area for storing a second firmware, the storage device further has a common area to be used when booting using either the first firmware or the second firmware; The information processing device includes: a first booting means for booting the information processing device using the first firmware; a second booting means for booting the information processing device using the second firmware; a swap enabling means for enabling swapping by generating a swap file in the common area during startup by the first startup means; and a swap file deletion means for deleting a swap file from the common area if a swap file exists in the common area during startup by the second startup means.

2. the first firmware is a normal startup firmware for the information processing device, the second firmware is a boot firmware for updating the information processing device, an update means for updating the normal startup firmware stored in the first area; 2. The information processing apparatus according to claim 1, wherein said update means comprises storage means for storing data required for updating said normal startup firmware in said common area.

3. 3. The information processing apparatus according to claim 2, wherein the data required for updating the normal startup firmware is backup data of the normal startup firmware stored in the first area.

4. The information processing device according to claim 3, characterized in that the update means expands a new version of the normal startup firmware downloaded from an external source to the common area into the first area after the backup data is stored in the common area by the storage means.

5. 1. A method for controlling an information processing device including a storage device having a first area for storing a first firmware and a second area for storing a second firmware, comprising: the storage device further has a common area to be used when booting using either the first firmware or the second firmware; a first boot step of booting the information processing device using the first firmware; a second boot step of booting the information processing device using the second firmware; a swap enabling step of generating a swap file in the common area and enabling swapping during startup in the first startup step; a swap file deletion step of deleting a swap file from the common area if a swap file exists in the common area during startup in the second startup step.

6. A program for causing a computer to execute the control method according to claim 5.

Citation Information

Patent Citations

  • Information processing device, control method thereof, and program

    JP2016024775A

  • Information processing device, control method thereof, and program

    JP2016053839A

  • Storage control means, information processing apparatus including storage control means, storage control method, and program therefor

    JP2017228010A

  • Information processing apparatus, control method of the same, and program

    JP2018045725A

  • Information processing apparatus, control method thereof, and program

    JP2020053002A