From 0f1cbcc699c376779172a3d2f4bac0af1f7eb2ca Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Thu, 29 Apr 2010 17:56:18 +0800 Subject: [PATCH] correct BOOT_FROM_SDCARD check --- package/uboot-xburst/patches/001-xburst.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/uboot-xburst/patches/001-xburst.patch b/package/uboot-xburst/patches/001-xburst.patch index 03aa0f48a..fd6dd8f57 100644 --- a/package/uboot-xburst/patches/001-xburst.patch +++ b/package/uboot-xburst/patches/001-xburst.patch @@ -1628,7 +1628,7 @@ index b2d113e..87cb12d 100644 bd->bi_flashoffset = monitor_flash_len; /* reserved area for U-Boot */ #else diff --git a/lib_mips/bootm.c b/lib_mips/bootm.c -index 54af24c..b498ae8 100644 +index 54af24c..e6a5732 100644 --- a/lib_mips/bootm.c +++ b/lib_mips/bootm.c @@ -46,10 +46,17 @@ static void linux_env_set (char * env_name, char * env_val); @@ -1654,7 +1654,7 @@ index 54af24c..b498ae8 100644 } /* we assume that the kernel is in place */ -+ if (gd->boot_option == BOOT_FROM_SDCARD) ++ if (gd->boot_option & BOOT_FROM_SDCARD) + printf ("\n *** Booting from mircoSD ***\n"); + printf ("\nStarting kernel ...\n\n");