|
@@ -17,6 +17,8 @@
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
|
+#define uboot_version "01.00"
|
|
|
+
|
|
|
#define MAX_DELAY_STOP_STR 32
|
|
|
|
|
|
#ifndef DEBUG_BOOTKEYS
|
|
@@ -343,6 +345,16 @@ void autoboot_command(const char *s)
|
|
|
{
|
|
|
debug("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
|
|
|
|
|
|
+ {
|
|
|
+ unsigned char *BufTmp;
|
|
|
+
|
|
|
+ run_command_list("nand read 0x80000000 0x09C00000 0x00600000", -1, 0);
|
|
|
+ BufTmp=0x80000000;
|
|
|
+ sprintf(BufTmp,&uboot_version,strlen(uboot_version));
|
|
|
+ run_command_list("nand erase 0x09C00000 0x00600000", -1, 0);
|
|
|
+ run_command_list("nand write 0x80000000 0x09C00000 0x00600000", -1, 0);
|
|
|
+ }
|
|
|
+
|
|
|
if (stored_bootdelay != -1 && s && !abortboot(stored_bootdelay)) {
|
|
|
#if defined(CONFIG_AUTOBOOT_KEYED) && !defined(CONFIG_AUTOBOOT_KEYED_CTRLC)
|
|
|
int prev = disable_ctrlc(1); /* disable Control C checking */
|