METHOD FOR PATCHING ROM BOOT CODE
The present invention relates to a method for patching a boot code stored on ROM comprising the steps of (a) storing at least one patching command for said boot code in a PROM; (b) loading said boot code from said ROM to a memory; (c) reading said at least one patching command from said PROM; (d) patching at least one command of said boot code residing in said memory with said at least one patching command from said PROM; and (e) executing the patched boot code.
1 . A method for patching a boot code stored on ROM comprising the steps of:
a. storing at least one patching command for said boot code in a PROM;
b. loading said boot code from said ROM to a memory;
c. reading said at least one patching command from said PROM;
d. patching at least one command of said boot code residing in said memory with said at least one patching command from said PROM; and
e. executing the patched boot code.
2 . A method according to claim 1 , where the patching command includes two parameters: data and address.
3 . A method according to claim 1 , where the patching command includes three parameters: data, start address, and data-length.
4 . A method according to claim 1 , where the PROM is an OTP.
5 . A method according to claim 1 , where the reading of the patching command(s) is preformed after starting to execute the boot code from the memory and as an execution command of said boot code.
6 . A method for patching a boot code stored on ROM comprising the steps of:
a. storing at least one patching command for said boot code in a PROM;
b. storing a lookup table listing intended boot code address(es) of said at least one patching command in said PROM;
c. copying said lookup table from said PROM to a memory;
d. reading said lookup table from said memory; and
e. executing said boot code from ROM, while executing said at least one patching command from said PROM instead of at least one command of said boot code having said boot code address listed in said lookup table.
7 . A method according to claim 6 , where the patching command includes two parameters: data and address.
8 . A method according to claim 6 , where the patching command includes three parameters: data, start address, and data-length.
9 . A method according to claim 6 , where the PROM is an OTP.
10 . A method for patching a boot code stored on ROM comprising the steps of:
a. storing a lookup table, on a PROM, listing at least one patching command, and its intended boot code address, for patching said boot code;
b. copying said lookup table from said PROM to a memory;
c. reading said lookup table from said memory; and
d. executing said boot code from ROM, while executing said at least one patching command from said lookup table in memory instead of at least one command of said boot code having said boot code address listed in said lookup table.
11 . A method according to claim 10 , where the patching command includes two parameters: data and address.
12 . A method according to claim 10 , where the patching command includes three parameters: data, start address, and data-length.
13 . A method according to claim 10 , where the PROM is an OTP.
14 . A method for patching a boot code stored on ROM comprising the steps of:
a. storing a lookup table, on a PROM, listing at least one patching command, and its intended boot code address, for patching said boot code;
b. reading said lookup table from said PROM; and
c. executing said boot code from ROM, while executing said at least one patching command, from said lookup table in said PROM, instead of at least one command of said boot code having said boot code address listed in said lookup table.
15 . A method according to claim 14 , where the patching command includes two parameters: data and address.
16 . A method according to claim 14 , where the patching command includes three parameters: data, start address, and data-length.
17 . A method according to claim 14 , where the PROM is an OTP.
18 . A system for patching a boot code stored on ROM comprising:
a. a ROM for storing said boot code;
b. a PROM for storing patching commands;
c. a memory capable of storing said boot code and said patching commands; and
d. a controller for loading said boot code from said ROM to said memory, and for patching said boot code in said memory with patching commands from said PROM.
19 . A system according to claim 18 , where the PROM is an OTP.
20 . A system for patching a boot code stored on ROM comprising:
a. a ROM for storing said boot code;
b. a PROM for storing patching commands;
c. a memory capable of storing said boot code and said patching commands;
d. a controller for loading said boot code from said ROM to said memory; and
e. a processor for patching said boot code with said patching commands from said PROM and for executing the patched boot code.
21 . A system according to claim 20 , where the PROM is an OTP.