Method and apparatus for rewriting program executed in disk drive
First Claim
Patent Images
1. A method of rewriting a program stored in a nonvolatile memory in a disk drive in which control including that of accesses to a disk medium is executed in accordance with the program, the method comprising:
- writing a program specified by a program transfer command for transfer of a program, to the disk medium upon receiving the program transfer command from a host system; and
executing an activating process to activate the disk drive in accordance with the program stored in the nonvolatile memory when the disk drive is powered on wherein the executing an activating process includes;
rewriting the program stored in the nonvolatile memory using the program written to the disk medium according to the program transfer command; and
comparing a duration of complete reading of the program written to the disk medium in accordance with the program transfer command, with a predetermined time,wherein the rewriting of the program is hindered if the duration exceeds the predetermined time, and in the executing an activating process, the activating process is continued by assuming that a program used to rewrite the program has not been written to the disk medium.
1 Assignment
0 Petitions
Accused Products
Abstract
If a disk drive receives a program transfer command issued by a host system, a program specified by the command is written to a disk. Next time the disk drive is powered on, a process is executed during an activating process, the process including using the program written to the disk to rewrite a program stored in a nonvolatile memory.
10 Citations
6 Claims
-
1. A method of rewriting a program stored in a nonvolatile memory in a disk drive in which control including that of accesses to a disk medium is executed in accordance with the program, the method comprising:
-
writing a program specified by a program transfer command for transfer of a program, to the disk medium upon receiving the program transfer command from a host system; and executing an activating process to activate the disk drive in accordance with the program stored in the nonvolatile memory when the disk drive is powered on wherein the executing an activating process includes; rewriting the program stored in the nonvolatile memory using the program written to the disk medium according to the program transfer command; and comparing a duration of complete reading of the program written to the disk medium in accordance with the program transfer command, with a predetermined time, wherein the rewriting of the program is hindered if the duration exceeds the predetermined time, and in the executing an activating process, the activating process is continued by assuming that a program used to rewrite the program has not been written to the disk medium.
-
-
2. A method of rewriting a program stored in a nonvolatile memory in a disk drive in which control including that of accesses to a disk medium is executed in accordance with the program, the method comprising:
-
writing a program specified by a program transfer command for transfer of a program, to the disk medium upon receiving the program transfer command from a host system; executing an activating process to activate the disk drive in accordance with the program stored in the nonvolatile memory when the disk drive is powered on, wherein the executing an activating process includes; rewriting the program stored in the nonvolatile memory using the program written to the disk medium according to the program transfer command; switching to execution of a new program obtained after the rewriting; confirming that the new program obtained after the rewriting operates normally; and if it is confirmed that the new program obtained after the rewriting operates normally, writing particular information to the nonvolatile memory, the information indicating that the new program is normal, determining whether the particular information has been written to the nonvolatile memory, in accordance wit a monitor program independent of the program to be rewritten; and if it is determined that the particular information has nor been written to the nonvolatile memory, continuing execution of the monitor program instead of execution of the new program obtained after the rewriting, wherein if the particular information is written to the nonvolatile memory, the activating process is continued in accordance with the new program obtained after the rewriting. - View Dependent Claims (3, 4)
-
-
5. A method of rewriting a program stored in a nonvolatile memory in a disk drive in which control including that of accesses to a disk medium is executed in accordance with the program, the method comprising:
-
writing a program specified by a program transfer command for transfer of a program to the disk medium upon receiving the program transfer command from a host system; and executing an activating process to activate the disk drive in accordance with the program stored in the nonvolatile memory when the disk drive is powered on, wherein the executing an activating process includes; rewriting the program stored in the nonvolatile memory using the program written to the disk medium according to the program transfer command;
saving status information indicative of a status of the disk drive at that point of time, before the program is rewritten;after the program has been rewritten, executing an initializing process while a host system interface maintains the same status as that present before the program is rewritten, the host system interface connecting the host system and the disk drive together, the status of the host system interface containing a busy status set when the disk drive is powered on; and
after the program has been rewritten, restoring a status of the disk drive in accordance with the status information saved before the program is rewritten. - View Dependent Claims (6)
-
Specification