From patchwork Thu Dec 28 21:03:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 122880 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3915698qgn; Thu, 28 Dec 2017 13:03:34 -0800 (PST) X-Google-Smtp-Source: ACJfBosyy2x0TVYvhQRMG8QuLH+E7AjW2uKEgwYIgyrlPQDzIYnwiT/9FR8GFJd9ErCoEmpuRyd/ X-Received: by 10.80.189.131 with SMTP id y3mr40793886edh.2.1514495014780; Thu, 28 Dec 2017 13:03:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514495014; cv=none; d=google.com; s=arc-20160816; b=DLz9qpi6U3kSkT8ezxTVsbxgaWZx7TqnpaJwrgdzyLTrEybBhbHoZRnRdyRDLr+DAH FHJ2N0XxR5DekAv4wltibTavjeQM97u4V2k4KHrNRX4cvjoKX3lEq0HLKpcUQuq4c25P pQtQQ+zgN3L3TeKeJyYeHiyQNIb8FA99qM2iedvrVBw/+rLTPRrd96FVXZTdIsSgMmgC D9np2+iekw2kyX/WyUeyXN9HsaMpDgNoPijOPz6vBr/aiBFcPURcdP0h0+BWIPynUs2r raALd5hz81jZXiJ2iniBjDkOq9ab5CtEPOERFAo0WPWtVKLWPfeIcHi6rzoMulN1etx2 jKpg== 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:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=tvWPL8W4Z7EKsEkoRJPVRQZo50LT7lDMyubZBpWXxo4=; b=wirDTQ6zM7bI55KE0CMB2Pyi7usNkSBIarRwsJFo0vqrD2/MLCDo0MQ7Nm//m4rge1 2899VuaNEvUZwR9Gn2dpIwD4qmnm3+bLvZ4JzU1t4QWsiE/QPJgbbpwG9dLtUDtbdNPy cxbpVbPkekMz1wHmppqiHg/yuWiL1NkOS+GSRwLQWAWgRohBOn19bBKQizlEePrLXoFp SR/2lH/05KP3AIzKSiHTWdvNS7pW6DY0BgC1M4cO80cmAycCQ/Qxu8w0lnGHjn1m7tjB s+RGd7ZTFIZHSAEO88GBwQKLJQ3GZygT6TupNFUJaeKrGgOcqoSGlZYlOKgYOM2nGQrN Hu1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OPxV2JRY; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id t2si3748786edh.161.2017.12.28.13.03.33; Thu, 28 Dec 2017 13:03:34 -0800 (PST) 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=@linaro.org header.s=google header.b=OPxV2JRY; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 929CFC21DBB; Thu, 28 Dec 2017 21:03:31 +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=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 4CB43C21C59; Thu, 28 Dec 2017 21:03:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3EE9CC21C59; Thu, 28 Dec 2017 21:03:28 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.denx.de (Postfix) with ESMTPS id D8D94C21C34 for ; Thu, 28 Dec 2017 21:03:27 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id g130so3197631wme.0 for ; Thu, 28 Dec 2017 13:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=kUTod2w4RdGf+zw/wdniGq8QRDIazomxdJL5CHS3B7s=; b=OPxV2JRYbCSAuHjQ8a2t6r8+9ZmdrD+HAguwYS478Z5Hd32GzHsRqPcsmLhYpkZbh/ u/lSOHZ9dGvGaHcmVWrshCEbHZ5Tpv44um8+pZ+nIIcWyQV8eFCr0RTUzAJKIttAqMeW wIjR1bUL9gsnTJDBHhAElPMTILJjvrGanIWbk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kUTod2w4RdGf+zw/wdniGq8QRDIazomxdJL5CHS3B7s=; b=LJAYU22vRjHZ7X/QlsznUDxKcWg2E7XVxixM65cWhgfvEbbZWFboRTmMejp9s92vje 96grTKgeQoWNgC1dHVEqz/5sGyp6ko54ok2w4Oz5cpdoSEKXcAVvRcSU4Uy6qXF4HLX8 KXkdApWbLTqf+rWhgaHmjLdgxXzW3U3L3MFdLaixF5vhuHIGUGEQ8DdDx3qcVq2Kpq7r NhnWcluM1Q+pM/YhQoMQ+Bddm+NF948u8jwTaTCIIsI0K8PclrfLKoxAi+6tl49Xx0fV Yw8B+EjaltiR60X+g3PGg91D5FbSr6pzm7+u82h8oLlY2pGzDf1emsK5/3cfrZUXF2S/ gHHA== X-Gm-Message-State: AKGB3mI503nFtuNB54DR2woYZ0/iXz4/uS9nDCVNRqU4SJzJhbFL9/Hb QYHT7ypwOdOTED+E2OWPFhyi2RA9LM4= X-Received: by 10.28.94.75 with SMTP id s72mr28251680wmb.112.1514495007122; Thu, 28 Dec 2017 13:03:27 -0800 (PST) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id s11sm11646156wrb.30.2017.12.28.13.03.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2017 13:03:26 -0800 (PST) From: Sam Protsenko To: u-boot@lists.denx.de Date: Thu, 28 Dec 2017 23:03:25 +0200 Message-Id: <20171228210325.25376-1-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.15.1 Cc: Tom Rini Subject: [U-Boot] [PATCH] configs: am335x_boneblack: Bring back missed bootcmd 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" Commit b6251db8c3f0 ("Kconfig: Introduce USE_BOOTCOMMAND and migrate BOOTCOMMAND") removed CONFIG_BOOTCOMMAND option from include/configs/am335x_evm.h file. But that option wasn't added to defconfig files for BeagleBone Black board. Because of this we can't boot Linux from SD card using just "run bootcmd", getting next error: ** File not found /boot/undefined ** That's because "fdtfile" variable has "undefined" value by default, and "bootcmd" doesn't call "run findfdt" command, which assigns "fdtfile" to correct device tree file for current board name (obtained from EEPROM). So we are forced to either call "run findfdt" command manually, or assign manually "fdtfile=am335x-boneblack.dtb" (e.g. in uEnv.txt file). Bring back CONFIG_BOOTCOMMAND to BBB defconfigs so that we can boot Linux rootfs from SD card automatically without any addition actions. Signed-off-by: Sam Protsenko --- configs/am335x_boneblack_defconfig | 1 + configs/am335x_boneblack_vboot_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/am335x_boneblack_defconfig b/configs/am335x_boneblack_defconfig index 55e0ebd69c..50093cd662 100644 --- a/configs/am335x_boneblack_defconfig +++ b/configs/am335x_boneblack_defconfig @@ -5,6 +5,7 @@ CONFIG_AM33XX=y # CONFIG_SPL_NAND_SUPPORT is not set CONFIG_DISTRO_DEFAULTS=y CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT" +CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_ARCH_MISC_INIT=y diff --git a/configs/am335x_boneblack_vboot_defconfig b/configs/am335x_boneblack_vboot_defconfig index fe5b9e7622..aa9fb9739e 100644 --- a/configs/am335x_boneblack_vboot_defconfig +++ b/configs/am335x_boneblack_vboot_defconfig @@ -8,6 +8,7 @@ CONFIG_DISTRO_DEFAULTS=y CONFIG_FIT_SIGNATURE=y CONFIG_FIT_VERBOSE=y CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT" +CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd" CONFIG_SYS_CONSOLE_INFO_QUIET=y CONFIG_VERSION_VARIABLE=y CONFIG_ARCH_MISC_INIT=y