public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Beaglebone Black broken since commit fd61d39970b9901217efc7536d9f3a61b4e1752a
@ 2016-02-16 18:27 Guillaume Gardet
  2016-02-17  8:09 ` [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available Guillaume GARDET
  0 siblings, 1 reply; 23+ messages in thread
From: Guillaume Gardet @ 2016-02-16 18:27 UTC (permalink / raw)
  To: u-boot

Hi,

Beaglebone black (am335x_evm_defconfig) is broken (with MMC boot and u-boot.img on ext4 partition).
I bisected it to commit fd61d39970b9901217efc7536d9f3a61b4e1752a
     spl: mmc: add break statements in spl_mmc_load_image()
from Nikita Kiryanov (in Cc).

Working image gives:
********************************************************************************
     U-Boot SPL 2016.01-rc1-00036-g483ab3d (Feb 16 2016 - 19:04:10)
     bad magic
     bad magic
     spl_register_fat_device: fat register err - -1
     spl_register_fat_device: fat register err - -1
     spl_load_image_fat: error reading image u-boot.img, err - -1
     spl: ext4fs_open failed
     spl: ext4fs_open failed
     spl_load_image_ext: error reading image uImage, err - -1


     U-Boot 2016.01-rc1-00033-g9884f44 (Feb 16 2016 - 18:55:52 +0100)
********************************************************************************

Since this commit, we get:
********************************************************************************
     U-Boot SPL 2016.01-rc1-00037-gfd61d39 (Feb 16 2016 - 19:01:54)
     bad magic
     bad magic
     ### ERROR ### Please RESET the board ###
********************************************************************************


Guillaume

^ permalink raw reply	[flat|nested] 23+ messages in thread
* [U-Boot]  [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available
@ 2014-11-18  9:44 Guillaume GARDET
  2014-12-02  8:35 ` Guillaume Gardet
  2014-12-12 21:49 ` Robert Nelson
  0 siblings, 2 replies; 23+ messages in thread
From: Guillaume GARDET @ 2014-11-18  9:44 UTC (permalink / raw)
  To: u-boot

In SPL MMC, boot modes are exclusive. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to
try MMCSD_MODE_FS then, if available.

It has been tested on a pandaboard (rev. A3).

Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr>
Cc: Tom Rini <trini@ti.com>
---
 common/spl/spl_mmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
index ee71f79..2c34b75 100644
--- a/common/spl/spl_mmc.c
+++ b/common/spl/spl_mmc.c
@@ -101,7 +101,8 @@ void spl_mmc_load_image(void)
 		err = mmc_load_image_raw(mmc,
 			CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR);
 #if defined(CONFIG_SPL_FAT_SUPPORT) || defined(CONFIG_SPL_EXT_SUPPORT)
-	} else if (boot_mode == MMCSD_MODE_FS) {
+	}
+	if (err || boot_mode == MMCSD_MODE_FS) {
 		debug("boot mode - FS\n");
 #ifdef CONFIG_SPL_FAT_SUPPORT
 #ifdef CONFIG_SPL_OS_BOOT
-- 
1.8.4.5

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2016-02-20  0:54 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 18:27 [U-Boot] Beaglebone Black broken since commit fd61d39970b9901217efc7536d9f3a61b4e1752a Guillaume Gardet
2016-02-17  8:09 ` [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available Guillaume GARDET
2016-02-17 20:27   ` Tom Rini
2016-02-18  9:19     ` Nikita Kiryanov
2016-02-18 10:06       ` Guillaume Gardet
2016-02-18 13:07         ` Nikita Kiryanov
2016-02-18 13:31           ` Guillaume Gardet
2016-02-18 14:25             ` Nikita Kiryanov
2016-02-18 14:36               ` Tom Rini
2016-02-18 16:07                 ` Nikita Kiryanov
2016-02-18 16:11                   ` Guillaume Gardet
2016-02-18 16:38                     ` Nikita Kiryanov
2016-02-18 16:42                       ` Guillaume Gardet
2016-02-18 17:04                         ` Tom Rini
2016-02-18 17:17                           ` [U-Boot] [PATCH V2] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS Guillaume GARDET
2016-02-19 13:06                             ` Nikita Kiryanov
2016-02-20  0:54                             ` [U-Boot] [U-Boot, " Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2014-11-18  9:44 [U-Boot] [PATCH] spl: if MMCSD_MODE_RAW fails, try MMCSD_MODE_FS, if available Guillaume GARDET
2014-12-02  8:35 ` Guillaume Gardet
2014-12-12 21:49 ` Robert Nelson
2014-12-15  8:43   ` Guillaume Gardet
2014-12-15  9:01     ` Guillaume Gardet
2014-12-16 11:03       ` Guillaume Gardet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox