From patchwork Thu Nov 6 14:28:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 40302 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4784E24237 for ; Thu, 6 Nov 2014 14:29:36 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf736112wiv.5 for ; Thu, 06 Nov 2014 06:29:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=qlK7PqB07neqi/nM+8O3h62VDxvzR63GdPkzWGsQK4k=; b=UxjSJl7y8Oohwudncue7iENRG0Xtz8KYjI4ZJtxbLyr/r1mgllMS2dcSoHAMVfvt6K 5S7qjvGcHYMyUW8O0G7DqBwc2S5VEeJNoV2B8sU6hDRIHYHnZAQVzHjqVE1dZ9C7+OST O4/fZK3nHXAIPDMTq++PRrGCo+LEBNwXGIph2HY/IYqV3WvelBwHau4dZylcBmBOm3sY 099yu9ltMWQw4AbdeW3UyumhCn0g3oVvxivlycSY0125yZZ7U1MaecQcPKU7m63jVHhj 5HUZB3WV4tp/7MUUuMqHejb5QBTwrqJKK8XQqMU59EZ33S979o4M5vdXCwaA0RyihT14 FOsg== X-Gm-Message-State: ALoCoQletCaolcwUuEbKaTLk5Vlo4ybSQm5jaY2OuUkJYVnFnnNxlZ3uKLLWeMaAxQ8QaZ65ZXWN X-Received: by 10.194.191.137 with SMTP id gy9mr808917wjc.0.1415284175555; Thu, 06 Nov 2014 06:29:35 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.197 with SMTP id q5ls105315lal.39.gmail; Thu, 06 Nov 2014 06:29:34 -0800 (PST) X-Received: by 10.112.254.162 with SMTP id aj2mr5483245lbd.70.1415284174842; Thu, 06 Nov 2014 06:29:34 -0800 (PST) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id rj3si11601433lbb.85.2014.11.06.06.29.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 06:29:34 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id q1so2724995lam.10 for ; Thu, 06 Nov 2014 06:29:34 -0800 (PST) X-Received: by 10.152.120.199 with SMTP id le7mr5196716lab.67.1415284174766; Thu, 06 Nov 2014 06:29:34 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp52017lbc; Thu, 6 Nov 2014 06:29:33 -0800 (PST) X-Received: by 10.180.82.170 with SMTP id j10mr42012437wiy.35.1415284173276; Thu, 06 Nov 2014 06:29:33 -0800 (PST) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id di6si9773592wjb.22.2014.11.06.06.29.32 for ; Thu, 06 Nov 2014 06:29:33 -0800 (PST) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 842D2A7445; Thu, 6 Nov 2014 15:29:05 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8EhxDXkHJ6Yn; Thu, 6 Nov 2014 15:29:05 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A6A9CA745B; Thu, 6 Nov 2014 15:28:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 390A0A7406 for ; Thu, 6 Nov 2014 15:28:34 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZV8hT8LUrQCy for ; Thu, 6 Nov 2014 15:28:33 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 7EDF14B914 for ; Thu, 6 Nov 2014 15:28:28 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id sA6ESPBZ012878; Thu, 6 Nov 2014 08:28:25 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA6ESPum027321; Thu, 6 Nov 2014 08:28:25 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Thu, 6 Nov 2014 08:28:25 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id sA6ESOaU016599; Thu, 6 Nov 2014 08:28:25 -0600 From: Felipe Balbi To: Tom Rini Date: Thu, 6 Nov 2014 08:28:47 -0600 Message-ID: <1415284132-6317-6-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.1.0.GIT In-Reply-To: <1415284132-6317-1-git-send-email-balbi@ti.com> References: <1415284132-6317-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Cc: U-Boot Mailing List , Gerald Coley , "Franklin Cooper Jr." Subject: [U-Boot] [PATCH 06/11] configs: omap5_common : Boot rootfs from sd card by default X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Franklin S Cooper Jr * Since the emmc isn't always programed trying to load the fs from the emmc causes boot failures/kernel panic. * The current bootcmd is set to: bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; \ setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; My guess is the env variables should be set so that sd card boot (dt,kernel,fs) is the default and then fallback to emmc if it fails (no sd card detected) The current bootcmd attempts to set mmcroot to the sd card rootfs but that code doesn't run due to mmcboot being ran early on. Signed-off-by: Franklin Cooper Jr. Signed-off-by: Felipe Balbi Reviewed-by: Tom Rini --- include/configs/ti_omap5_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h index 5b03fb1..de96d7d 100644 --- a/include/configs/ti_omap5_common.h +++ b/include/configs/ti_omap5_common.h @@ -78,7 +78,7 @@ "partitions=" PARTS_DEFAULT "\0" \ "optargs=\0" \ "mmcdev=0\0" \ - "mmcroot=/dev/mmcblk1p2 rw\0" \ + "mmcroot=/dev/mmcblk0p2 rw\0" \ "mmcrootfstype=ext4 rootwait\0" \ "mmcargs=setenv bootargs console=${console} " \ "${optargs} " \