JP2005258642A - Embedded information processor - Google Patents

Embedded information processor Download PDF

Info

Publication number
JP2005258642A
JP2005258642A JP2004067059A JP2004067059A JP2005258642A JP 2005258642 A JP2005258642 A JP 2005258642A JP 2004067059 A JP2004067059 A JP 2004067059A JP 2004067059 A JP2004067059 A JP 2004067059A JP 2005258642 A JP2005258642 A JP 2005258642A
Authority
JP
Japan
Prior art keywords
kernel
rom
information processing
processing apparatus
embedded information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004067059A
Other languages
Japanese (ja)
Inventor
Akiyoshi Sato
明善 佐藤
Michiyoshi Sawara
理孔 佐原
Hitoshi Koseki
斉 古関
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamaha Corp
Original Assignee
Yamaha Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yamaha Corp filed Critical Yamaha Corp
Priority to JP2004067059A priority Critical patent/JP2005258642A/en
Publication of JP2005258642A publication Critical patent/JP2005258642A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an embedded information processor for completing its start in a short period of time even in such configuration that a control program stored so as to be compressed in a memory is developed and used at the time of its start, and for effectively using resources even after competing its start. <P>SOLUTION: This embedded information processor is configured to read a kernel image in parallel with the initialization of a CPU at the time of its start. When the kernel image is compressed, the embedded information processor develops the kernel image at the time of reading it. When kernel start is completed, the embedded information processor is able to rewrite a program to be executed by a reading circuit from a program at the time of kernel start to another program. Therefore, it is possible to shorten a time until the kernel is started, and to use the reading circuit for another use after the kernel is started. Thus, it is possible to effectively use resources. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、家庭用電化機器などに組込型情報処理装置において、カーネル起動までの時間短縮と資源の有効利用に関する。   The present invention relates to shortening the time until kernel startup and effective use of resources in an embedded information processing apparatus in a household electrical appliance or the like.

情報処理装置が起動時に実行する制御プログラムは、ROMに格納されているのが一般的であるが、ROMへのアクセス速度はRAMへのアクセス速度と比較して遅い。このため、情報処理装置の起動時には図6に示すように、まずCPUの初期化を行い(s21)、続いてブートローダを起動する(s22)。そして、ブートローダがROMからRAMへカーネルイメージを転送し(s23)、その直後にCPUがRAMへ転送されたカーネルイメージを読み出してカーネルを起動する(s24)。情報処理装置では、この処理が終了すると起動処理が完了する。   A control program executed when the information processing apparatus is started up is generally stored in the ROM, but the access speed to the ROM is slower than the access speed to the RAM. For this reason, as shown in FIG. 6, when the information processing apparatus is activated, the CPU is first initialized (s21), and then the boot loader is activated (s22). Then, the boot loader transfers the kernel image from the ROM to the RAM (s23), and immediately after that, the CPU reads the kernel image transferred to the RAM and starts the kernel (s24). In the information processing apparatus, the startup process is completed when this process ends.

このように、従来の情報処理装置では、起動時の処理がシーケンス動作になっているので、ユーザは情報処理装置を使用するために電源を投入してから起動が完了するまで、時間がかかるという問題があった。   As described above, in the conventional information processing apparatus, since the process at the time of startup is a sequence operation, it takes time until the user completes the startup after turning on the power to use the information processing apparatus. There was a problem.

そこで、このような問題を解決するために、DMAC(Direct Memory Access Controller )を用いてシステムリセット期間にROMからRAMへデータ転送を行うことで、起 動時間を短縮できる情報処理装置が提案されている(例えば、特許文献1参照。)。
特開2003−337746公報
Therefore, in order to solve such a problem, an information processing apparatus has been proposed that can reduce start-up time by transferring data from ROM to RAM during a system reset period using DMAC (Direct Memory Access Controller). (For example, refer to Patent Document 1).
JP 2003-337746 A

近時、情報家電に代表されるように様々な家庭用電化機器(以下、家電機器と称する。)にもコンピュータ(情報処理装置)が組み込まれている。このような家電機器では、起動時間を短縮するために、特許文献1に記載された発明のような技術が適用されているものがある。   Recently, as represented by information home appliances, computers (information processing apparatuses) are also incorporated in various household electrical appliances (hereinafter referred to as home appliances). In such home appliances, there is one in which a technique such as the invention described in Patent Document 1 is applied in order to shorten the startup time.

一方、家電機器では情報処理量の増加に伴い、大型の制御プログラムである例えばリナックスなどのOS(operating system)が採用されることが多くなってきている。OSは上記のようにプログラム容量が大きいので、家電機器に容量の大きなメモリを設けてカーネルイメージなどをそのまま格納する場合もあるが、機器の価格を抑えるためにカーネルイメージを圧縮して容量の小さなメモリに格納することもある。このような構成の機器では、起動時に圧縮されたカーネルイメージをメモリに展開して使用するように設定されている。しかしながら、カーネルイメージが圧縮されてメモリに格納されている場合には、図6に示した処理に加えて、圧縮されたカーネルイメージをRAMへ読み出した後に展開処理を行う必要があり、特許文献1に記載された構成を採用した場合でも、起動時間が長くなるという問題があった。   On the other hand, home appliances are increasingly adopting an OS (operating system) such as Linux, which is a large control program, as the amount of information processing increases. Since the OS has a large program capacity as described above, a large-capacity memory may be provided in a home appliance to store a kernel image or the like as it is. However, in order to reduce the price of the apparatus, the kernel image is compressed to reduce the capacity. Sometimes stored in memory. The device having such a configuration is set to use a kernel image compressed at the time of startup in a memory. However, when the kernel image is compressed and stored in the memory, in addition to the processing shown in FIG. 6, it is necessary to perform decompression processing after reading the compressed kernel image into the RAM. Even when the configuration described in the above is adopted, there is a problem that the startup time becomes long.

また、特許文献1に記載の情報処理装置では、DMACがROMからRAMへデータ転送してしまうと使用されなくなるので、資源を効果的に利用できないという問題があった。   Further, the information processing apparatus described in Patent Document 1 has a problem that resources cannot be used effectively because the DMAC is not used when data is transferred from the ROM to the RAM.

そこで、本発明は、圧縮してメモリに格納された制御プログラムを起動時に展開して使用する構成であっても、短時間で起動を完了することが可能で、また、起動完了後も資源を有効利用可能な組込型情報処理装置を提供することを目的とする。   Therefore, the present invention can complete the start-up in a short time even when the control program compressed and stored in the memory is expanded and used at the start-up, and resources can be saved even after the start-up is completed. An object is to provide an embedded information processing apparatus that can be used effectively.

この発明は、上記の課題を解決するための手段として、以下の構成を備えている。   The present invention has the following configuration as means for solving the above problems.

(1)カーネルイメージを記憶するROMと、前記ROMから読み出されたカーネルイメージを記憶するRAMと、初期化後に前記RAMからカーネルイメージを読み出してカーネルを起動するCPUと、本体の起動時に自ら起動し、前記CPUの初期化と並行して、前記ROMからカーネルイメージを読み出して前記RAMへ書き込む読み出し回路と、が各々同一のバスに接続されたことを特徴とする。   (1) ROM for storing the kernel image, RAM for storing the kernel image read from the ROM, CPU for starting the kernel by reading the kernel image from the RAM after initialization, and starting itself when starting the main body In parallel with the initialization of the CPU, a read circuit for reading a kernel image from the ROM and writing it to the RAM is connected to the same bus.

この構成においては、本体の起動時に読み出し回路が自ら起動して、ROMからカーネルイメージを読み出してRAMへ書き込む処理を、CPUの初期化と並行して行う。したがって、カーネル起動までの時間を短縮できる。また、読み出し回路は、CPU・ROM・RAMが接続されているのと同じバスに接続されている。そのため、起動完了後には、アクセス頻度の高いデータやプログラムをROMからRAMへコピーすることで、これらのデータやプログラムへのアクセスを効率良く行うことができるとともに資源を有効に使用できる。さらに、このバスに他の記憶手段が接続されている場合には、起動完了後に他の記憶手段に記録されたデータやプログラムを読み出し回路で読み出してRAMへ書き込むことが可能となり、資源を有効に利用できる。   In this configuration, when the main body is activated, the read circuit is activated by itself, and the process of reading the kernel image from the ROM and writing it to the RAM is performed in parallel with the initialization of the CPU. Therefore, the time until kernel startup can be shortened. Further, the readout circuit is connected to the same bus to which the CPU, ROM, and RAM are connected. For this reason, after completion of startup, data and programs with high access frequency are copied from the ROM to the RAM, so that these data and programs can be accessed efficiently and resources can be used effectively. In addition, when other storage means are connected to this bus, it becomes possible to read data and programs recorded in other storage means after completion of startup by means of a read circuit and write them to the RAM, thereby effectively using resources. Available.

(2)前記ROMは、圧縮されたカーネルイメージを記憶しており、
前記読み出し回路は、この圧縮されたカーネルイメージを前記ROMから読み出しながら展開してRAMへ書きこむように設定された論理回路を備えたことを特徴とする。
(2) The ROM stores a compressed kernel image,
The read circuit includes a logic circuit set so that the compressed kernel image is decompressed while being read from the ROM and written to the RAM.

この構成おいては、カーネルイメージが圧縮されてROMに格納されている。したがって、カーネルイメージを圧縮せずに格納する場合よりも容量の小さなROMを使用することができる。また、読み出し回路は、圧縮されたカーネルイメージを、論理回路を用いて機械的に展開する。したがって、カーネルイメージを高速に展開することができ、カーネル起動までの時間を短縮することができる。   In this configuration, the kernel image is compressed and stored in the ROM. Therefore, it is possible to use a ROM having a smaller capacity than the case where the kernel image is stored without being compressed. The readout circuit mechanically expands the compressed kernel image using a logic circuit. Therefore, the kernel image can be expanded at a high speed, and the time until kernel startup can be shortened.

(3)前記ROMは、圧縮されたカーネルイメージを記憶しており、
前記読み出し回路は、本体の起動時に行う処理の実行プログラムを記憶する記憶手段を備え、この記憶手段から読み出した前記実行プログラムに基づいて、圧縮されたカーネルイメージを前記ROMから読み出しながら展開してRAMへ書きこむことを特徴とする。
(3) The ROM stores a compressed kernel image,
The read circuit includes a storage unit that stores an execution program for processing performed when the main body is started up. Based on the execution program read out from the storage unit, the compressed kernel image is read out from the ROM and expanded into a RAM. It is characterized by writing.

この構成においては、記憶手段から読み出した実行プログラムを用いてカーネルイメージを展開する。したがって、カーネルイメージを展開するために専用の論理回路を設ける必要が無く、回路構成を簡略化できる。   In this configuration, the kernel image is expanded using the execution program read from the storage means. Therefore, it is not necessary to provide a dedicated logic circuit for developing the kernel image, and the circuit configuration can be simplified.

(4)前記読み出し回路は、リコンフィギャラブルプロセッサであることを特徴とする。   (4) The read circuit is a reconfigurable processor.

この構成においては、前記読み出し回路は、リコンフィギャラブルプロセッサなので、実行するプログラムを書き換えることができる。したがって、本体の起動後に圧縮データの展開などをほとんど行わない場合には、本体の起動時に、圧縮されたカーネルイメージをROMから読み出しながら展開してRAMへ書きこむプログラムを書き込んで、この展開・書込み動作を実行させ、本体の起動が完了すると、前記読み出し回路の実行プログラムを前記起動時処理とは異なる使用頻度の高い処理を行うためのプログラムに書き換えて読み出し回路に実行させることで、資源を有効に利用できる。   In this configuration, since the read circuit is a reconfigurable processor, a program to be executed can be rewritten. Therefore, when decompression of compressed data is rarely performed after startup of the main unit, a program for expanding and writing the compressed kernel image while reading the compressed kernel image from the ROM is written at the time of startup of the main unit. When the operation is executed and the startup of the main body is completed, the resources are made effective by rewriting the execution program of the read circuit to a program for performing a process with a high frequency of use different from the process at the start, and causing the read circuit to execute the program. Available to:

本発明の組込型情報処理装置は、CPUの初期化と並行してカーネルイメージの読み出しを行うので、カーネル起動までの時間を短縮することができる。また、本発明の組込型情報処理装置は、カーネルイメージが圧縮されている場合には、カーネルイメージを読み出す際に展開するので、読み出し後に展開する場合に比べてカーネル起動までの時間を短縮することができる。さらに、本発明の組込型情報処理装置は、カーネル起動が完了すると、読み出し回路に実行させるプログラムをカーネル起動時のプログラムから別のプログラムに書き換え可能であるので、読み出し回路を別の用途に使用することができ、資源を有効に利用できる。   Since the embedded information processing apparatus according to the present invention reads a kernel image in parallel with the initialization of the CPU, it is possible to shorten the time until the kernel is started. In addition, when the kernel image is compressed, the embedded information processing apparatus according to the present invention expands when the kernel image is read out, so that the time required for starting the kernel is shortened compared to the case where the kernel image is expanded after reading out. be able to. Furthermore, since the embedded information processing apparatus of the present invention can rewrite the program to be executed by the reading circuit from the program at the time of starting the kernel to another program when the kernel starting is completed, the reading circuit is used for another purpose. Can use resources effectively.

以下の説明では、組込型情報処理装置のOSとしてLinuxがインストールされている場合について説明する。   In the following description, a case will be described in which Linux is installed as the OS of the embedded information processing apparatus.

[第1実施形態]
図1は、本発明の第1実施形態に係る組込型情報処理装置の構成を示したブロック図である。図1に示すように、組込型情報処理装置1は、ROM2、RAM3、DMAC4、及びCPU5がバス6に各々接続された構成である。
[First Embodiment]
FIG. 1 is a block diagram showing the configuration of the embedded information processing apparatus according to the first embodiment of the present invention. As shown in FIG. 1, the embedded information processing apparatus 1 has a configuration in which a ROM 2, a RAM 3, a DMAC 4, and a CPU 5 are connected to a bus 6.

ROM2は、BIOS7及びカーネルイメージ8を記憶している。RAM3は、起動時にROM2から読み出されたカーネルイメージ8を一時的に記憶する。DMAC4は、不揮発性メモリ9を備えており、この不揮発性メモリ9には、カーネルイメージ8をROM2からRAM3へコピーするために必要な情報である転送元アドレス、転送先アドレス、コピーするデータの容量、バスへのアクセスタイミングなどを含む初期値情報10が格納されている。また、DMAC4は、電源が投入されたりOSがリセットされたりすると、自ら起動して初期値情報10を読み出し、これらの情報に基づいてカーネルイメージをROM2から読み出してRAM3へコピーする。CPU5は、初期化後にRAM3へコピーされたカーネルイメージ8を読み出してカーネルを起動する。   The ROM 2 stores a BIOS 7 and a kernel image 8. The RAM 3 temporarily stores the kernel image 8 read from the ROM 2 at startup. The DMAC 4 includes a non-volatile memory 9. The non-volatile memory 9 includes a transfer source address, a transfer destination address, and a capacity of data to be copied, which are information necessary for copying the kernel image 8 from the ROM 2 to the RAM 3. The initial value information 10 including the access timing to the bus is stored. Further, when the power is turned on or the OS is reset, the DMAC 4 starts itself and reads the initial value information 10, and reads a kernel image from the ROM 2 and copies it to the RAM 3 based on the information. The CPU 5 reads the kernel image 8 copied to the RAM 3 after initialization and starts the kernel.

バス6には、上記のようにROM2、RAM3、DMAC4、及びCPU5が各々接続され、また、図外のハードディスク、ネットワークコントローラ、記憶装置、ディスプレイコントローラなどが接続されており、組込型情報処理装置1内でやりとりされる情報が通過する。   As described above, the ROM 6, the RAM 3, the DMAC 4, and the CPU 5 are connected to the bus 6, and a hard disk, a network controller, a storage device, a display controller, and the like (not shown) are connected to the bus 6. The information exchanged in 1 passes.

次に、組込型情報処理装置1の起動時の動作を説明する。図2は、組込型情報処理装置の起動時の動作を説明するフローチャートである。図2に示すように、組込型情報処理装置1は、図外の電源スイッチが操作されて電源が投入されたり、図外のリセットスイッチが操作されてOSがリセットされたりすると、起動動作としてまずCPU5の初期化を開始する(s1)。具体的には、CPU5は、初期化の動作として、自己診断、ROM2からのBIOS7の読み出し、BIOS7の起動などを順次行う。また、このとき、DMAC4は自ら起動して、不揮発性メモリ9から初期値情報10を読み出す(s2)。そして、DMAC4は、CPU5の初期化と並行してROM2からカーネルイメージ8を読み出してRAM3にコピーする(s3)。続いて、初期化が完了したCPU5は、RAM3にコピーされたカーネルイメージ8を読み出して、カーネルを起動する(s4)。カーネルの起動が終了すると起動処理は完了する。   Next, an operation when the embedded information processing apparatus 1 is started will be described. FIG. 2 is a flowchart for explaining the operation when the embedded information processing apparatus is activated. As shown in FIG. 2, the embedded information processing apparatus 1 is activated as a startup operation when a power switch (not shown) is operated to turn on the power, or a reset switch (not shown) is operated to reset the OS. First, initialization of the CPU 5 is started (s1). Specifically, the CPU 5 sequentially performs self-diagnosis, reading out the BIOS 7 from the ROM 2, starting up the BIOS 7, and the like as initialization operations. At this time, the DMAC 4 starts up itself and reads the initial value information 10 from the nonvolatile memory 9 (s2). Then, the DMAC 4 reads the kernel image 8 from the ROM 2 and copies it to the RAM 3 in parallel with the initialization of the CPU 5 (s3). Subsequently, the CPU 5 that has been initialized reads the kernel image 8 copied to the RAM 3 and starts the kernel (s4). When the kernel startup is completed, the startup process is completed.

このように、組込型情報処理装置1は、CPU5の初期化とカーネルイメージ8のコピーとを並列に行うので、従来の装置のようにCPUの初期化が完了してからCPUがカーネルイメージをROMからRAMへコピーして、その後にカーネルを起動する場合に比べて、カーネルの起動時間を短縮することができる。   As described above, the embedded information processing apparatus 1 performs the initialization of the CPU 5 and the copy of the kernel image 8 in parallel, so that the CPU acquires the kernel image after the initialization of the CPU is completed as in the conventional apparatus. Compared to a case where the ROM is copied to the RAM and then the kernel is started, the boot time of the kernel can be shortened.

また、組込型情報処理装置1では、起動が完了して通常動作を行っている際には、アクセス頻度の高いデータやプログラムをROM2からRAM3へコピーすることで、これらのデータやプログラムへのアクセスを効率良く行うことができるとともに資源を有効に使用できる。さらに、組込型情報処理装置1では、前記のように各手段が接続されたバス6にDMAC4が接続されているので、組込型情報処理装置1の起動が完了して通常動作を行っている際には、DMAC4がバス6に接続された別の手段(例えばハードディスクや記憶装置)からデータやプログラム読み出してRAM3へコピーすることが可能である。したがって、組込型情報処理装置1では、起動後もDMAC4を利用することができるので、CPU5がの負荷を軽減するとともに資源を有効に利用することができる。   Further, in the embedded information processing apparatus 1, when startup is completed and normal operation is performed, data and programs with high access frequency are copied from the ROM 2 to the RAM 3, so that these data and programs are transferred to the embedded information processing apparatus 1. Access can be performed efficiently and resources can be used effectively. Further, in the embedded information processing apparatus 1, since the DMAC 4 is connected to the bus 6 to which each means is connected as described above, the startup of the embedded information processing apparatus 1 is completed and normal operation is performed. In this case, the DMAC 4 can read out data and programs from another means (for example, a hard disk or a storage device) connected to the bus 6 and copy it to the RAM 3. Therefore, since the embedded information processing apparatus 1 can use the DMAC 4 even after startup, the load on the CPU 5 can be reduced and resources can be used effectively.

[第2実施形態]
次に、本発明の第2実施形態に係る組込型情報処理装置について説明する。図3は、本発明の第2実施形態に係る組込型情報処理装置の構成を示したブロック図である。図3に示すように、組込型情報処理装置11は、ROM12、RAM13、展開機能付きDMAC14、及びCPU15がバス16にそれぞれ接続された構成である。
[Second Embodiment]
Next, an embedded information processing apparatus according to the second embodiment of the present invention will be described. FIG. 3 is a block diagram showing the configuration of the embedded information processing apparatus according to the second embodiment of the present invention. As shown in FIG. 3, the embedded information processing apparatus 11 has a configuration in which a ROM 12, a RAM 13, a DMAC 14 with an expansion function, and a CPU 15 are connected to a bus 16.

ROM12は、BIOS17及び圧縮されたカーネルイメージ18aを記憶している。RAM13は、起動時にROM12から読み出されて展開されたカーネルイメージ18bを一時的に記憶する。展開機能付きDMAC14は、不揮発性メモリ19を備えており、この不揮発性メモリ19には、圧縮されたカーネルイメージ18aをROM12からRAM13へコピーするために必要な情報である転送元アドレス、転送先アドレス、コピーするデータの容量、バスへのアクセスタイミングなどを含む初期値情報20が格納されている。また、展開機能付きDMAC14は、電源が投入されたりOSがリセットされたりすると自ら起動して初期値情報20を読み出し、これらの情報に基づいてROM12に格納されている圧縮されたカーネルイメージ18aを読み出して、展開しながらRAM13にコピーする。カーネルの起動が終了すると起動処理は完了する。   The ROM 12 stores a BIOS 17 and a compressed kernel image 18a. The RAM 13 temporarily stores a kernel image 18b read from the ROM 12 and expanded at the time of activation. The decompression function DMAC 14 includes a non-volatile memory 19. The non-volatile memory 19 includes a transfer source address and a transfer destination address which are information necessary for copying the compressed kernel image 18 a from the ROM 12 to the RAM 13. The initial value information 20 including the capacity of data to be copied and the access timing to the bus is stored. Further, when the power is turned on or the OS is reset, the DMAC 14 with a decompression function starts up and reads the initial value information 20, and reads the compressed kernel image 18a stored in the ROM 12 based on the information. And copying to the RAM 13 while developing. When the kernel startup is completed, the startup process is completed.

ここで、展開機能付きDMAC14は、ROM12から読み出した圧縮されたカーネルイメージ18aを展開してRAM13へコピーする論理回路により構成するようにしても良い。この場合には、機械的にカーソルイメージを展開するので、カーネルイメージを高速に展開することができ、カーネル起動までの時間を短縮することができる。   Here, the DMAC 14 with a decompression function may be configured by a logic circuit that decompresses the compressed kernel image 18 a read from the ROM 12 and copies it to the RAM 13. In this case, since the cursor image is mechanically expanded, the kernel image can be expanded at a high speed, and the time until kernel activation can be shortened.

また、不揮発性メモリ19に、カーネルイメージ18aの展開プログラム21を格納しておき、展開機能付きDMAC14は、起動するとこの展開プログラム21を読み出し、この展開プログラム21により圧縮されたカーネルイメージ18aをROM12から読み出して展開後にRAM13へコピーするするように構成しても良い。この場合には、カーネルイメージを展開するために専用の論理回路を設ける必要が無く、回路構成を簡略化できる。   In addition, a decompression program 21 for the kernel image 18a is stored in the nonvolatile memory 19, and the DMAC 14 with a decompression function reads the decompression program 21 when activated, and stores the kernel image 18a compressed by the decompression program 21 from the ROM 12. The data may be read and expanded and copied to the RAM 13. In this case, it is not necessary to provide a dedicated logic circuit for developing the kernel image, and the circuit configuration can be simplified.

CPU15は、RAM13へコピーされた展開済みのカーネルイメージ18bを読み出してカーネルを起動する。バス16には、上記のようにROM12、RAM13、展開機能付きDMAC14、及びCPU15が各々接続され、また、図外のハードディスク、ネットワークコントローラ、記憶装置、ディスプレイコントローラなどが接続されており、組込型情報処理装置11内でやりとりされる情報が通過する。   The CPU 15 reads the developed kernel image 18b copied to the RAM 13 and starts the kernel. As described above, the ROM 16, the RAM 13, the DMAC 14 with expansion function, and the CPU 15 are connected to the bus 16, and a hard disk, a network controller, a storage device, a display controller, and the like (not shown) are connected to the bus 16. Information exchanged in the information processing apparatus 11 passes.

次に、組込型情報処理装置11の起動時の動作を説明する。図4は、組込型情報処理装置の起動時の動作を説明するフローチャートであり、展開機能付きDMAC14を論理回路で構成した場合である。図4に示すように、組込型情報処理装置1では、図外の電源スイッチが操作されて電源が投入されたり図外のリセットスイッチが操作されてOSがリセットされたりすると、起動処理としてCPU15の初期化が開始される(s11)。具体的には、CPU15は、初期化の動作として、自己診断、ROM12からのBIOS17の読み出し、BIOS17の起動などを順次行う。また、このとき、展開機能付きDMAC14は自ら起動して、不揮発性メモリ19から初期値情報20を読み出す(s12)。そして、展開機能付きDMAC14は、CPU15の初期化と並行してROM12から圧縮されたカーネルイメージ18aを読み出して、展開しながらRAM13にコピー(転送)する(s13)。続いて、初期化が完了したCPU15は、RAM13にコピーされた展開済みのカーネルイメージ18bを読み出して、カーネルを起動する(s14)。カーネルの起動が終了すると起動処理は完了する。   Next, an operation when the embedded information processing apparatus 11 is activated will be described. FIG. 4 is a flowchart for explaining the operation at the time of activation of the embedded information processing apparatus, and shows a case where the DMAC 14 with a development function is configured by a logic circuit. As shown in FIG. 4, in the embedded information processing apparatus 1, when a power switch (not shown) is operated to turn on the power or a reset switch (not shown) is operated to reset the OS, the CPU 15 is activated as a startup process. Is initialized (s11). Specifically, the CPU 15 sequentially performs self-diagnosis, reading of the BIOS 17 from the ROM 12, activation of the BIOS 17 and the like as initialization operations. At this time, the DMAC 14 with a development function starts up itself and reads the initial value information 20 from the nonvolatile memory 19 (s12). The decompression function DMAC 14 reads the compressed kernel image 18a from the ROM 12 in parallel with the initialization of the CPU 15, and copies (transfers) it to the RAM 13 while decompressing (s13). Subsequently, the CPU 15 that has been initialized reads the developed kernel image 18b copied to the RAM 13, and starts the kernel (s14). When the kernel startup is completed, the startup process is completed.

このように、組込型情報処理装置11は、CPU15の初期化とカーネルイメージ18の展開及びコピーとを同時に行うので、従来の装置のようにCPUの初期化が完了してからCPUが圧縮されたカーネルイメージをROMからRAMへコピーし、さらにカーネルイメージを展開してからカーネルを起動する場合に比べて、カーネルの起動時間を短縮することができる。   As described above, since the embedded information processing apparatus 11 simultaneously initializes the CPU 15 and expands and copies the kernel image 18, the CPU is compressed after the initialization of the CPU is completed as in the conventional apparatus. Compared to the case where the kernel image is copied from the ROM to the RAM and the kernel image is further expanded, the kernel startup time can be shortened.

また、組込型情報処理装置11では、前記のように展開機能付きDMAC14がバス16に接続されているので、組込型情報処理装置11の起動が完了して通常動作を行っている際には、展開機能付きDMAC14がバス16に接続された別の機器(例えばハードディスクや記憶装置)からデータやプログラム読み出してRAM13へコピーすることが可能である。したがって、組込型情報処理装置11では、起動後も展開機能付きDMAC14を利用することができるので、CPU15の負荷を軽減するとともに資源を有効に利用することができる。また、ROM12には圧縮されたプログラムを格納できるので、容量の小さなものを採用することができる。さらに、組込型情報処理装置11では、起動が完了して通常動作を行っている際には、アクセス頻度の高いデータやプログラムをROM12からRAM13へコピーすることで、これらのデータやプログラムへのアクセスを効率良く行うことができるとともに資源を有効に使用できる。また、組込型情報処理装置11では、前記のように各手段が接続されたバス16に展開機能付きDMAC14が接続されているので、組込型情報処理装置11の起動が完了して通常動作を行っている際には、展開機能付きDMAC14がバス16に接続された別の手段(例えばハードディスクや記憶装置)からデータやプログラム読み出してRAM13へコピーすることが可能である。したがって、組込型情報処理装置11では、起動後もDMAC14を利用することができるので、CPU15がの負荷を軽減するとともに資源を有効に利用することができる。   Further, in the embedded information processing apparatus 11, since the DMAC 14 with the expansion function is connected to the bus 16 as described above, the startup of the embedded information processing apparatus 11 is completed and the normal operation is performed. The DMAC 14 with a decompression function can read out data and programs from another device (for example, a hard disk or a storage device) connected to the bus 16 and copy it to the RAM 13. Therefore, since the embedded information processing apparatus 11 can use the DMAC 14 with the expansion function even after startup, the load on the CPU 15 can be reduced and resources can be used effectively. In addition, since the ROM 12 can store a compressed program, it is possible to adopt a small-capacity program. Further, in the embedded information processing apparatus 11, when startup is completed and normal operation is performed, data and programs with high access frequency are copied from the ROM 12 to the RAM 13, so that these data and programs are transferred to the embedded information processing apparatus 11. Access can be performed efficiently and resources can be used effectively. Further, in the embedded information processing apparatus 11, since the DMAC 14 with the expansion function is connected to the bus 16 to which each means is connected as described above, the startup of the embedded information processing apparatus 11 is completed and normal operation is performed. , The DMAC 14 with a decompression function can read out data and programs from another means (for example, a hard disk or a storage device) connected to the bus 16 and copy them to the RAM 13. Therefore, since the embedded information processing apparatus 11 can use the DMAC 14 even after activation, the load on the CPU 15 can be reduced and resources can be used effectively.

[第3実施形態]
次に、本発明の第3実施形態に係る組込型情報処理装置について説明する。図5は、本発明の第3実施形態に係る組込型情報処理装置の構成を示したブロック図である。図5に示すように、組込型情報処理装置31は、ROM32、RAM33、リコンフィギャラブルプロセッサ(以下、RCPと称する。)34、及びCPU35がバス36にそれぞれ接続された構成である。
[Third Embodiment]
Next, an embedded information processing apparatus according to the third embodiment of the present invention will be described. FIG. 5 is a block diagram showing a configuration of an embedded information processing apparatus according to the third embodiment of the present invention. As shown in FIG. 5, the embedded information processing apparatus 31 has a configuration in which a ROM 32, a RAM 33, a reconfigurable processor (hereinafter referred to as RCP) 34, and a CPU 35 are connected to a bus 36.

ROM32は、BIOS37及び圧縮されたカーネルイメージ38aを記憶している。RAM33は、起動時にROM32から読み出されて展開されたカーネルイメージ38bを一時的に記憶する。   The ROM 32 stores a BIOS 37 and a compressed kernel image 38a. The RAM 33 temporarily stores a kernel image 38b read and expanded from the ROM 32 at the time of activation.

RCP34は、実行するプログラムを任意に設定できる論理回路であり、不揮発性メモリ39を備えている。不揮発性メモリ39には、起動時の実行プログラムとして、ROM32に圧縮されて格納されたカーネルイメージ38aを読み出して、展開してからRAM33へコピーする展開プログラム40が格納されている。また、RCP34は、電源が投入されたりOSがリセットされたりすると、自ら起動して展開プログラム40を読み出し、この展開プログラム40に基づいてROM32に格納されている圧縮されたカーネルイメージ38aを読み出して、展開しながらRAM33にコピーする。CPU35は、初期化後にRAM33へコピーされた展開済みのカーネルイメージ38bを読み出してカーネルを起動する。また、RCP34は、上記のように実行プログラムを任意に設定できるので、組込型情報処理装置31の起動が完了すると、別のプログラムを実行させることで、展開機能付きDMAC以外の動作を行うように設定できる。例えば、mp3などの音楽ファイルの展開プログラムやオーディオフィルタやエフェクタのプログラムなどを実行させることで、起動時と起動後とでRCP34に別の動作を実行させることが可能である。   The RCP 34 is a logic circuit that can arbitrarily set a program to be executed, and includes a nonvolatile memory 39. The non-volatile memory 39 stores a decompression program 40 that reads a kernel image 38a compressed and stored in the ROM 32 and decompresses and copies it to the RAM 33 as an execution program at startup. Further, when the power is turned on or the OS is reset, the RCP 34 starts up and reads the decompression program 40, and reads the compressed kernel image 38a stored in the ROM 32 based on the decompression program 40. Copy to RAM 33 while developing. The CPU 35 reads the developed kernel image 38b copied to the RAM 33 after initialization, and starts the kernel. In addition, since the RCP 34 can arbitrarily set the execution program as described above, when the embedded information processing apparatus 31 is completely started, another program is executed to perform operations other than the DMAC with the expansion function. Can be set. For example, by executing a music file development program such as mp3, an audio filter, or an effector program, it is possible to cause the RCP 34 to execute another operation at the time of activation and after activation.

バス36には、上記のようにROM32、RAM33、RCP34、及びCPU35が接続されるだけでなく、図外のハードディスク、ネットワークコントローラ、記憶装置、ディスプレイコントローラなどが接続されている。   Not only the ROM 32, RAM 33, RCP 34, and CPU 35 are connected to the bus 36, but also a hard disk, a network controller, a storage device, a display controller, etc. (not shown) are connected.

ここで、RCP34は、実行するプログラムを任意に設定できる論理回路であり、起動時には不揮発性メモリ39から初期設定として、圧縮されたカーネルイメージ38をROM34からRAM35へ展開しながらコピーする展開機能付きDMACとして動作するように設定された初期プログラムが格納されている。また、RCP34は、組込型情報処理装置31の起動が完了すると、予め格納された別のプログラムを実行させて、初期設定である展開機能付きDMAC以外の動作を行うように設定できる。例えば、mp3などの音楽ファイルの展開プログラム・オーディオフィルタ・エフェクタなどプログラムを実行させることが可能である。   Here, the RCP 34 is a logic circuit that can arbitrarily set a program to be executed. When starting up, the RCP 34 is a DMAC with an expansion function that copies a compressed kernel image 38 from the ROM 34 to the RAM 35 as an initial setting from the nonvolatile memory 39. The initial program set to operate as is stored. Further, the RCP 34 can be set to perform an operation other than the initial setting DMAC by executing another program stored in advance when the embedded information processing apparatus 31 is activated. For example, it is possible to execute a program such as a music file expansion program such as mp3, an audio filter, or an effector.

組込型情報処理装置31では、電源が投入されるとCPU35の初期化が開始される。また、このとき、RCP34では、展開機能付きDMACとして動作するプログラムが読み出されており、初期値プログラムを読み出した後に、ROM32から圧縮されたカーネルイメージ38を読み出して展開しながらRAM33にコピーする。続いて、初期化が完了したCPU35は、RAM33にコピーされた展開済みのカーネルイメージ38を読み出して、カーネルを起動する。   In the built-in information processing apparatus 31, when the power is turned on, initialization of the CPU 35 is started. At this time, the RCP 34 reads a program that operates as a DMAC with an expansion function. After reading the initial value program, the compressed kernel image 38 is read from the ROM 32 and copied to the RAM 33 while being expanded. Subsequently, the CPU 35 having completed the initialization reads the developed kernel image 38 copied to the RAM 33, and starts the kernel.

組込型情報処理装置31では、カーネル起動が完了すると、RCP34のプログラムを書き換えて別の動作を行う論理回路として動作させることができる。CPU35は、ROM33や図外の記憶装置から別のプログラムとして例えばオーディオフィルタとして動作するプログラムを読み出して、RCP34にコピーする。これにより、RCP34のプログラムが書き換えられて、RCP34はオーディオフィルタとして動作する。これらのプログラムは、RCP34の不揮発性メモリ39・ROM32・図外の記憶装置のいずれかに記憶させておき、起動処理が完了すると、CPU35がRCP34のプログラムを書き換えるように設定すると良い。   In the embedded information processing apparatus 31, when the kernel activation is completed, the program of the RCP 34 can be rewritten to operate as a logic circuit that performs another operation. The CPU 35 reads a program that operates as an audio filter, for example, as another program from the ROM 33 or a storage device (not shown), and copies it to the RCP 34. As a result, the RCP 34 program is rewritten and the RCP 34 operates as an audio filter. These programs may be stored in any one of the non-volatile memory 39 of the RCP 34, the ROM 32, and a storage device outside the figure, and the CPU 35 may be set to rewrite the program of the RCP 34 when the startup process is completed.

なお、組込型情報処理装置31の起動時の動作は、組込型情報処理装置11と同様であるため、説明を省略する。   In addition, since the operation | movement at the time of starting of the embedded information processing apparatus 31 is the same as that of the embedded information processing apparatus 11, description is abbreviate | omitted.

このように、組込型情報処理装置31は、CPU35の初期化を行っている際に、圧縮されたカーネルイメージを展開してコピーを行うので、従来の装置に比べて短時間でカーネルを起動することができる。また、組込型情報処理装置31では、RCP34がバス36に接続されているので、組込型情報処理装置31の起動が完了するまでは、RCP34が展開機能付きDMACとして動作して、ROM33から圧縮されたカーネルイメージを読み出してRAM3へ展開しながらコピーすることができるので、CPU35の負荷を軽減することができる。さらに、メモリには圧縮されたプログラムを格納できるので、容量の小さなメモリを採用することができる。加えて、組込型情報処理装置31では、カーネル起動が完了すると、上記のようにRCP34の実行プログラムを任意のプログラムに書き換えることができるので、資源を有効に利用することができる。   In this way, since the embedded information processing apparatus 31 expands and copies the compressed kernel image during initialization of the CPU 35, the kernel is activated in a shorter time than the conventional apparatus. can do. In the embedded information processing apparatus 31, since the RCP 34 is connected to the bus 36, the RCP 34 operates as a DMAC with a deployment function until the activation of the embedded information processing apparatus 31 is completed. Since the compressed kernel image can be read and copied to the RAM 3 while being copied, the load on the CPU 35 can be reduced. Furthermore, since a compressed program can be stored in the memory, a memory with a small capacity can be employed. In addition, in the embedded information processing apparatus 31, when the kernel activation is completed, the execution program of the RCP 34 can be rewritten to an arbitrary program as described above, so that resources can be used effectively.

以上のように、本発明の実施形態に係る組込型情報処理装置は、CPUの初期化と、カーネルイメージの転送と、を同時に行うので、カーネル起動までの時間を短縮することができる。   As described above, the embedded information processing apparatus according to the embodiment of the present invention simultaneously performs the initialization of the CPU and the transfer of the kernel image, so that the time until the kernel activation can be shortened.

本発明の第1実施形態に係る組込型情報処理装置の構成を示したブロック図である。1 is a block diagram illustrating a configuration of an embedded information processing apparatus according to a first embodiment of the present invention. 組込型情報処理装置の起動時の動作を説明するフローチャートである。It is a flowchart explaining the operation | movement at the time of starting of an embedded type information processing apparatus. 本発明の第2実施形態に係る組込型情報処理装置の構成を示したブロック図である。It is the block diagram which showed the structure of the embedded information processing apparatus which concerns on 2nd Embodiment of this invention. 組込型情報処理装置の起動時の動作を説明するフローチャートであり、展開機能付きDMAC14を論理回路で構成した場合である。It is a flowchart explaining the operation | movement at the time of starting of an embedded type information processing apparatus, and is the case where DMAC14 with an expansion | deployment function is comprised by the logic circuit. 本発明の第3実施形態に係る組込型情報処理装置の構成を示したブロック図である。It is the block diagram which showed the structure of the embedded information processing apparatus which concerns on 3rd Embodiment of this invention. 従来の情報処理装置の起動時の処理手順を説明するためのフローチャートである。It is a flowchart for demonstrating the process sequence at the time of starting of the conventional information processing apparatus.

符号の説明Explanation of symbols

1,11,31−組込型情報処理装置
2,12,32−ROM
3,13,33−RAM
4,14,34−DMAC
5,15,35−CPU
6,16,36−バス
7,17,37−BIOS
8,18,38−カーネルイメージ
9,19,39−不揮発性メモリ
1,11,31-embedded information processing device 2,12,32-ROM
3,13,33-RAM
4,14,34-DMAC
5,15,35-CPU
6,16,36-Bus 7,17,37-BIOS
8, 18, 38-Kernel image 9, 19, 39-Non-volatile memory

Claims (4)

カーネルイメージを記憶するROMと、前記ROMから読み出されたカーネルイメージを記憶するRAMと、初期化後に前記RAMからカーネルイメージを読み出してカーネルを起動するCPUと、本体の起動時に自ら起動し、前記CPUの初期化と並行して、前記ROMからカーネルイメージを読み出して前記RAMへ書き込む読み出し回路と、が各々同一のバスに接続されたことを特徴とする組込型情報処理装置。   A ROM for storing a kernel image; a RAM for storing a kernel image read from the ROM; a CPU for reading a kernel image from the RAM after initialization and starting a kernel; In parallel with the initialization of the CPU, a read-out circuit for reading a kernel image from the ROM and writing it into the RAM is connected to the same bus, respectively. 前記ROMは、圧縮されたカーネルイメージを記憶しており、
前記読み出し回路は、この圧縮されたカーネルイメージを前記ROMから読み出しながら展開してRAMへ書きこむように設定された論理回路を備えた請求項1に記載の組込型情報処理装置。
The ROM stores a compressed kernel image,
2. The embedded information processing apparatus according to claim 1, wherein the read circuit includes a logic circuit configured to expand the compressed kernel image while reading it from the ROM and write it to the RAM.
前記ROMは、圧縮されたカーネルイメージを記憶しており、
前記読み出し回路は、本体の起動時に行う処理の実行プログラムを記憶する記憶手段を備え、この記憶手段から読み出した前記実行プログラムに基づいて、圧縮されたカーネルイメージを前記ROMから読み出しながら展開してRAMへ書きこむ請求項1に記載の組込型情報処理装置。
The ROM stores a compressed kernel image,
The read circuit includes a storage unit that stores an execution program for processing performed when the main body is started up. Based on the execution program read out from the storage unit, the compressed kernel image is read out from the ROM and expanded into a RAM. The embedded information processing apparatus according to claim 1, wherein the embedded information processing apparatus is written.
前記読み出し回路は、リコンフィギャラブルプロセッサである請求項3に記載の組込型情報処理装置。   The embedded information processing apparatus according to claim 3, wherein the read circuit is a reconfigurable processor.
JP2004067059A 2004-03-10 2004-03-10 Embedded information processor Pending JP2005258642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004067059A JP2005258642A (en) 2004-03-10 2004-03-10 Embedded information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004067059A JP2005258642A (en) 2004-03-10 2004-03-10 Embedded information processor

Publications (1)

Publication Number Publication Date
JP2005258642A true JP2005258642A (en) 2005-09-22

Family

ID=35084316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004067059A Pending JP2005258642A (en) 2004-03-10 2004-03-10 Embedded information processor

Country Status (1)

Country Link
JP (1) JP2005258642A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007148865A (en) * 2005-11-29 2007-06-14 Naltec Inc Apparatus controlled by processor
JP2007264978A (en) * 2006-03-28 2007-10-11 Brother Ind Ltd Information processor and method for starting the same
JP2008217524A (en) * 2007-03-06 2008-09-18 Ricoh Co Ltd Data transfer method, data transfer device, electronic equipment, and image forming device
JP2011123802A (en) * 2009-12-14 2011-06-23 Ricoh Co Ltd Electronic apparatus, start-up control method, start-up control program, and recording medium
JP2012216108A (en) * 2011-04-01 2012-11-08 Nec Corp Information processing apparatus and program transfer method
US8438377B2 (en) 2009-04-17 2013-05-07 Ricoh Company, Limited Information processing apparatus, method and computer-readable storage medium that encrypts and decrypts data using a value calculated from operating-state data
JP2014085908A (en) * 2012-10-25 2014-05-12 Canon Inc Information processor, starting method, and program
JP2014085909A (en) * 2012-10-25 2014-05-12 Canon Inc Information processor, starting method, and program
JP2014085907A (en) * 2012-10-25 2014-05-12 Canon Inc Information processor, starting method, and program

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007148865A (en) * 2005-11-29 2007-06-14 Naltec Inc Apparatus controlled by processor
JP2007264978A (en) * 2006-03-28 2007-10-11 Brother Ind Ltd Information processor and method for starting the same
JP2008217524A (en) * 2007-03-06 2008-09-18 Ricoh Co Ltd Data transfer method, data transfer device, electronic equipment, and image forming device
US8438377B2 (en) 2009-04-17 2013-05-07 Ricoh Company, Limited Information processing apparatus, method and computer-readable storage medium that encrypts and decrypts data using a value calculated from operating-state data
US8782388B2 (en) 2009-04-17 2014-07-15 Ricoh Company, Limited Information processing apparatus, method, and computer-readable storage medium that encrypt data in a blob based on a hash value
JP2011123802A (en) * 2009-12-14 2011-06-23 Ricoh Co Ltd Electronic apparatus, start-up control method, start-up control program, and recording medium
JP2012216108A (en) * 2011-04-01 2012-11-08 Nec Corp Information processing apparatus and program transfer method
JP2014085908A (en) * 2012-10-25 2014-05-12 Canon Inc Information processor, starting method, and program
JP2014085909A (en) * 2012-10-25 2014-05-12 Canon Inc Information processor, starting method, and program
JP2014085907A (en) * 2012-10-25 2014-05-12 Canon Inc Information processor, starting method, and program

Similar Documents

Publication Publication Date Title
CN110032403B (en) Memory device and start program loading method of electronic device
JP5268363B2 (en) Switching method of computer multi-operating system
JP5783809B2 (en) Information processing apparatus, activation method, and program
JP2007213571A (en) Method for starting system using direct memory access in novel memory architecture
JP6399916B2 (en) Information processing apparatus and control method thereof
JP5860543B2 (en) Boot data loading
TW201239759A (en) BIOS update method and computer system for using the same
JP2010500682A (en) Flash memory access circuit
JP2005258642A (en) Embedded information processor
JP2005157528A (en) Memory device
JP2005071303A (en) Program starting device
JP2007206933A (en) Information processor, boot loader generation method and program transfer method in information processor
JP5683186B2 (en) Start-up acceleration method, information processing apparatus, and program
JP2013008244A (en) Program execution device, image processing apparatus and program
JP2008158991A (en) Control system for nand type flash memory
JP6080492B2 (en) Information processing apparatus, activation method, and program
JP2008015725A (en) Information processor and program activating method
JP2009176151A (en) Information processing apparatus and method of starting the same
JP2005258967A (en) Data processor
CN110647428A (en) Method for making and recovering mirror image file, processor and embedded system
JP2005107938A (en) System for starting computer and data storage device
JP6080490B2 (en) Information processing apparatus, activation method, and program
JP6080491B2 (en) Information processing apparatus, activation method, and program
JP2006243810A (en) Microcomputer system
TWI479418B (en) Booting method for multimedia device and multimedia device