From patchwork Fri Apr 20 09:38:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 133862 Delivered-To: patch@linaro.org Received: by 10.46.66.142 with SMTP id h14csp61652ljf; Fri, 20 Apr 2018 02:38:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx49buZPtA0UgMmlth4PnDGNVk09kRB1tqYf4WKBqqtkbZVHTXKQZasSNl/Q1gYfPALVdMwG7 X-Received: by 10.80.143.101 with SMTP id 92mr12760775edy.287.1524217125577; Fri, 20 Apr 2018 02:38:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524217125; cv=none; d=google.com; s=arc-20160816; b=CC7P8trMhvq9KI/lvgKQ7V3Y7V4nhTQBlRXmJjNiOnjqTCTkuU/8RM8v2u3xd/PKzB 3gXdhuOj4ezy44pxivS+dpFfUh4kcbb+ItdOFyeC6/RVWfrHcLCZbny9r/34o8VcFjVI P/69uHJ1uJuIQvBZLjWL8fgHKJjcsa6HLCiv84Em2KxoIRuIgB9OoZ75Xsn2duV+yF0V 2wa+9mAI8ZoAZOouGx1E2ibgeF//ROgYDgX7+EI+EC/hk3/JrX5ehNQ+2QbuNfJIV+YP IPaeaWA0FiJY7EPRI9tcgXN6WDWsxrrI6zcaVEURO6t/otYsAtya8dKSJQ0j8f7i2nYy uzig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=NRO+OgMgmq/bXpkS0LKNAwFrD1fJfnM4hZxyLFBVuw8=; b=B7zjG1yCelgv2ubSltVYt+lN7cOsRKw7eneiig/yG1UQ07FlK0Tdo2tvUUaxuIjkJp rtYdkeFomj+t5pIinikvo4vrVRVOZGrcCSSyxtyohF2P0yrwzdEbxnapX2HgUUSZrAbP yoUmc3aIFnkQ9cs5NAVCCCeBENlQ1qFVc9BN5usRjNLA4PfnQuAT8hTO8nkkKBAMnAod 8vgtpXvDG41EkbzQpxSjyB5ijIHq1O+AIPs9KQq5narGvpX3Dk5cPrwTOn6CAkWwk/Nj G3IVQFzjTr9DixfGcGbymH+g67/m9mdN81vRGkqsgO49idbjf2e8rTyMP7vlbB/QKQIs bETQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=AK6zgv0w; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id u26si1728657edl.251.2018.04.20.02.38.45; Fri, 20 Apr 2018 02:38:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=AK6zgv0w; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id DCFF9C2203D; Fri, 20 Apr 2018 09:38:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A01B8C21C6A; Fri, 20 Apr 2018 09:38:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 027FAC21C57; Fri, 20 Apr 2018 09:38:38 +0000 (UTC) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lists.denx.de (Postfix) with ESMTPS id 24ADCC21C57 for ; Fri, 20 Apr 2018 09:38:36 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id w3K9cV8C000446; Fri, 20 Apr 2018 18:38:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w3K9cV8C000446 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1524217111; bh=Yddbq+zQnoPAEB6Qo/ClOu2vLEZcBPCXsKetvefjheU=; h=From:To:Cc:Subject:Date:From; b=AK6zgv0wKJD6OuO/HSlhhroTcsk4x0w4jhESLe61ZOiMHctwjFzUUaDZlKprPpWcB 8xOYDRT4+NXdv6ASjjGunE/t1b0cM442Ma94Hg+1BMe6T0ZC500hzDMrlP+iw8ahIp ipuqiDpDDplgRGF48EyAiMvsERPFCfio5vgytRZxLNUQ1yr9nbZHbtQMYDvs0lN2HK TYCGqWZhWCTFGJdCm+atFrZhkM4kwCxvyBW3q1c7sBaRUmxcuC2J6XtKnPQwgnmk0O gu4bd87L8syu8tc5+v0xUa+y9LDP9W5BsLJnvRfGnLBI5p1slBFaGI5iiffHsZGlAp qWkXZujAS2IWQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Fri, 20 Apr 2018 18:38:27 +0900 Message-Id: <1524217107-2965-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] ARM: uniphier: select a correct mmc device before flashing images X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Some boards support an SD card and an eMMC device at the same time. Since both belong to 'mmc', they are identified by a device number. When the device number of the eMMC is 1 instead 0, "mmc dev" command must be performed to switch the target device before flashing images. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index 5d4e86d..f359d85 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -186,6 +186,7 @@ "setexpr tmp_addr $nor_base + 0x70000 && " \ "tftpboot $tmp_addr $third_image\0" \ "emmcupdate=mmcsetn &&" \ + "mmc dev $mmc_first_dev &&" \ "mmc partconf $mmc_first_dev 0 1 1 &&" \ "tftpboot $second_image && " \ "mmc write $loadaddr 0 100 && " \