Date:2010-05-12 23:28:58 (13 years 7 months ago)
Author:Mirko Vogt
Commit:46a096ad4660f194527f6d1f2eb6fc52108a18e9
Message:insert ifdefs around use of "BOOT_FROM_SDCARD" since it's only available for the NanoNote-target

Files: package/uboot-xburst/patches/001-xburst.patch (2 diffs)

Change Details

package/uboot-xburst/patches/001-xburst.patch
193193     debug ("### main_loop entered: bootdelay=%d\n\n", bootdelay);
194194
195195 # ifdef CONFIG_BOOT_RETRY_TIME
196@@ -393,7 +397,10 @@ void main_loop (void)
196@@ -393,7 +397,12 @@ void main_loop (void)
197197     }
198198     else
199199 #endif /* CONFIG_BOOTCOUNT_LIMIT */
200200- s = getenv ("bootcmd");
201+#if defined(CONFIG_NANONOTE)
201202+ if (gd->boot_option & BOOT_FROM_SDCARD)
202203+ s = getenv ("bootcmdfromsd");
203204+ else
204205+ s = getenv ("bootcmd");
206+#endif
205207
206208     debug ("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
207209
...... 
16501652     if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
16511653         return 1;
16521654
1653@@ -98,6 +105,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
1655@@ -98,6 +105,11 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
16541656     }
16551657
16561658     /* we assume that the kernel is in place */
1659+#if defined(CONFIG_NANONOTE)
16571660+ if (gd->boot_option & BOOT_FROM_SDCARD)
16581661+ printf ("\n *** Booting from mircoSD ***\n");
16591662+
1663+#endif
16601664     printf ("\nStarting kernel ...\n\n");
16611665
16621666     theKernel (linux_argc, linux_argv, linux_env, 0);

Archive Download the corresponding diff file



interactive