From patchwork Sat Jun 2 17:22:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 137594 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2334829lji; Sat, 2 Jun 2018 10:22:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIAGzRWuK5742uc4wWUwauNpDgooVCFNGOCPENM2X9nRTfiUjvGMny0IiZYIVzuDOM9UzMz X-Received: by 2002:a50:d4c4:: with SMTP id e4-v6mr17951018edj.127.1527960164196; Sat, 02 Jun 2018 10:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527960164; cv=none; d=google.com; s=arc-20160816; b=d1sCMO8OrtCAixxyRd1SrwHmWXe19CR4Lxt169BH2vCaAdeX0opJcgvnk2fHd6W0O5 k/HrnMmzS5eik7ta3TzZcD943H92ruso20m8959+YvJmoa2qFtuzKpZ5OlE9aQd+CDNl rikw0ocUrZHC/oejPQwzDmAgdv6LiSvY6R8nW2i62cnIDQr8pupn5gF64i92YtY51FIo 1puWMHkJHIEaEgG6w8BnhbFnp1OU3LYF3HXWIBrBi9d1C4Y35hJaSKH9znSfoAozyEMJ Nnzo7DfhNse+jqvqJUHNyT9SbVvRn/TGt2q2YifIReUKqTXjVbGBQjNIS9vFjMZFyMxq yVNg== 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=qiqmPHO6SdXWMawyE4vci0NxwjberxX1uZpn6FOMThA=; b=xMN5Kl6zooeRbQ0+Fk5NabYR7G84xtlnvv+Z1M+GzL0uR1Lqjy+e0E04PFwfB4XKoU DdB1Cp2LMmJjXq+/K68KMm79xZK/kM7aXxq8m6cKP84yeQA9OtV1jwrWyiFcq1PSrKx7 iiv6nksrFgS/SLIIuigfzM+D2v/A9vzWQ0oxajXmwEqw501P9Zkg1MdpB1Wfdc+jgBjV eHd+Ee4XAcWy1jZ7iRTfmJ5AnGQwz4GX4OzMmrLhSO5Yc0PNQ4kYFYjacf+Ioo05VbnM Wq/zoyhvROyPWzcyvM0oYGe5ImAWlwfVOMIaY0m2xXXafR/g8kZ9U4OzC2muN2jPcVRb L/oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=EAQpReOF; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id p59-v6si7265448edd.302.2018.06.02.10.22.43; Sat, 02 Jun 2018 10:22:44 -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=@gmail.com header.s=20161025 header.b=EAQpReOF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 63C54C21DF8; Sat, 2 Jun 2018 17:22:40 +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=FREEMAIL_FROM, 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 60105C21C27; Sat, 2 Jun 2018 17:22:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 09B1FC21C29; Sat, 2 Jun 2018 17:22:36 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by lists.denx.de (Postfix) with ESMTPS id A1728C21C27 for ; Sat, 2 Jun 2018 17:22:36 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id u4-v6so19241053lff.3 for ; Sat, 02 Jun 2018 10:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=r/hZpKq8LnRHK+teA18lueVP89dHWsrjSuT+oo8f7kk=; b=EAQpReOF0wRPoMbCme/F5MdPguOFnkYjpX0/GqmGdDBvVBPCdZoeZ81XeaynNbpgeZ ORz8Xbk6ECO722QJV0MlSdwZPAM7bhbwKSJmZZvkwpOriI3QUBA3kz7pvh9EjEAZUHHQ Phi2V+HS3EMUg4HARF5TG5fUiy+kCGh8S+xEDEokNLEx7Prlfapr1zYi3iLjV05Lq65t K06DmOLslS1A8c4vi63tg+kjNGXgKiD/Vrd6yh6Z0qpR1O93Wl+6VwGE70iFZ63yb7e1 C2QuVPG8qFslO/NUOTCkXQihVWNKv5C8PDzLpK5ED9PnvGXa0E3Zj0fjHW+sKgeAGja7 2+fQ== 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=r/hZpKq8LnRHK+teA18lueVP89dHWsrjSuT+oo8f7kk=; b=UN+66VmZ+QXSMLH/aRpXIqDzyYAsxcGFCLiLC7EOAy8DzVHpwc5VARgYCQykpMN3Af l7K4r0niTrLpSpvqBPSJMp6AbC6zU8UAgCSlUFTd4+hZQB8fIgX4CJBr6w9zcRniEQRQ fPy13MDf5ZLekYLMFBa2dCrxhDa3EWHxWSDHLH1ZAG0HgfIAQkvHXM5zTAlU1vP3SL78 fxIqV2UYqCrVJmQP9Df+/zbe4feqQ6ZLC5hIeF1aEEL4sUcSYoyqYD5QGaA5afZqJSVJ 3K6Ar8KVA4fK7L1iBnH+YCEA1Mgf+VckMn/UCa6/iuU3uoieTa//qTrNUUncsSP+Z9SX PlUA== X-Gm-Message-State: ALKqPwfW8bt/R9rsnBodkNx1HEnKHrSkgAJv53w9u2iSDo5sMM4IvkSP Q/KuUgVIuNRWBpe7Eaov8FzRVQ== X-Received: by 2002:a2e:82d6:: with SMTP id n22-v6mr11042488ljh.142.1527960155601; Sat, 02 Jun 2018 10:22:35 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id t126-v6sm1333993lff.7.2018.06.02.10.22.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jun 2018 10:22:34 -0700 (PDT) From: "Matwey V. Kornilov" To: u-boot@lists.denx.de Date: Sat, 2 Jun 2018 20:22:25 +0300 Message-Id: <20180602172228.10664-1-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.13.6 Cc: trini@konsulko.com, "Matwey V. Kornilov" Subject: [U-Boot] [PATCH 1/4] configs: pcm051: Support distro bootcmds 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" Add support for distro bootcmds. Signed-off-by: Matwey V. Kornilov --- include/configs/pcm051.h | 49 ++++++++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h index a59e88171f..c1a5c6fe32 100644 --- a/include/configs/pcm051.h +++ b/include/configs/pcm051.h @@ -25,6 +25,34 @@ #define CONFIG_MACH_TYPE MACH_TYPE_PCM051 /* set to negative value for no autoboot */ +#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \ + "bootcmd_" #devtypel #instance "=" \ + "setenv mmcdev " #instance"; "\ + "setenv bootpart " #instance":2 ; "\ + "run mmcboot\0" + +#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \ + #devtypel #instance " " + +#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \ + "bootcmd_" #devtypel "=" \ + "run nandboot\0" + +#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \ + #devtypel #instance " " + +#define BOOT_TARGET_DEVICES(func) \ + func(MMC, mmc, 0) \ + func(LEGACY_MMC, legacy_mmc, 0) \ + func(MMC, mmc, 1) \ + func(LEGACY_MMC, legacy_mmc, 1) \ + func(NAND, nand, 0) + +#define CONFIG_BOOTCOMMAND \ + "run distro_bootcmd" + +#include + #define CONFIG_EXTRA_ENV_SETTINGS \ "loadaddr=0x80007fc0\0" \ "fdtaddr=0x80000000\0" \ @@ -62,26 +90,7 @@ "ramboot=echo Booting from ramdisk ...; " \ "run ramargs; " \ "bootm ${loadaddr}\0" \ - -#define CONFIG_BOOTCOMMAND \ - "mmc dev ${mmcdev}; if mmc rescan; then " \ - "echo SD/MMC found on device ${mmcdev};" \ - "if run loadbootscript; then " \ - "run bootscript;" \ - "else " \ - "if run loadbootenv; then " \ - "echo Loaded environment from ${bootenv};" \ - "run importbootenv;" \ - "fi;" \ - "if test -n $uenvcmd; then " \ - "echo Running uenvcmd ...;" \ - "run uenvcmd;" \ - "fi;" \ - "if run loaduimage; then " \ - "run mmcboot;" \ - "fi;" \ - "fi ;" \ - "fi;" \ + BOOTENV /* Clock Defines */ #define V_OSCK 25000000 /* Clock output from T2 */ From patchwork Sat Jun 2 17:22:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 137595 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2335363lji; Sat, 2 Jun 2018 10:23:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK/6xkBgG6Hc+oYW10jUXox7Wj1DQVDTtVJAXl388PhtwYn9SdwMm8yLe81Ncbe1OC61Qyi X-Received: by 2002:a50:8bfa:: with SMTP id n55-v6mr17156548edn.216.1527960207723; Sat, 02 Jun 2018 10:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527960207; cv=none; d=google.com; s=arc-20160816; b=emc6lmTgDJXZLuMdBMwcpJqoeqVOgPPT4iZ4yltA0wHP1BJIr3jPLVtHTpuLUt8M5x WUjtPDgMj7Q+yvHte/WzLf0aEoW+VMzlZ+77Y3423nDafJM2FTizrwTb9jqopv7IFsBh 34zX/kw7iET/nlNGeKNY5NPtTVJe07ZUmrwU7lM93QuQtapxipvQ2PwtGoTFEPLJp5Sy 6PIVy6IAYWqZLojaP/Xs9Ib1MROngW6TFNw1u0ne8kQUMlGjHZMclhNsDuN3y3xxcTS/ +nwL5m1imRbHubYBHYtmeRB3u8AcUSGtcnW/BhpIY59TJNkozIk1wpWMIvaBTUpXe0Y7 CF6w== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=7LpPnDJI58a3K23ybPL4qFAtWUfDgouvax8bzQyuOQE=; b=tmWcqWtvriPjiEueJiGciiKXNs0B2aPbUe+7rvuUhpJ147vCx9JeC78KGcMNa6r6ZV owl7Wk3zSMGX5BwZLh/6IegmGoNerEwSoQ/w5ZP0CF1O7/oHQH5p6iKpRrlj0e0k1Tsa XLmv1Fs5eJ/KVKRpZyyGJeX+nuQFXcqsKCUEtPZh2hBtVmBkZwe++EHIWTnEonrMu1QP JQtOD+T0c53blU96lB2XFKO8BskY4mJLGLovd8wx4OW9f90l5TamDJWnWvIUfy7rqvJJ dC+qO4KKDrY9W9ToTfBpUkpiGhcWUMgZ4dZy5TKxVWgmw6xxa+OgMMxM2FaHjFIHqHYq C/uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=UPpQAMkf; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id n6-v6si829972edq.198.2018.06.02.10.23.27; Sat, 02 Jun 2018 10:23:27 -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=@gmail.com header.s=20161025 header.b=UPpQAMkf; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 3E0CAC21DB5; Sat, 2 Jun 2018 17:22:57 +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=FREEMAIL_FROM, 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 26864C21DE8; Sat, 2 Jun 2018 17:22:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 47480C21C2F; Sat, 2 Jun 2018 17:22:38 +0000 (UTC) Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by lists.denx.de (Postfix) with ESMTPS id DCDEDC21C27 for ; Sat, 2 Jun 2018 17:22:37 +0000 (UTC) Received: by mail-lf0-f67.google.com with SMTP id r2-v6so19223846lff.4 for ; Sat, 02 Jun 2018 10:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+3O3/SR/4j+pIJEErpPXjpTSrg4MdAG3fyHlusjHefM=; b=UPpQAMkfNBqIje9mecsQD3KmLbnTbHz2jWYeqRE/FFPJn/4/Q5Z5mSOXM5XeWdmuQA Ed3ZOduLU2l+7CaN9KjICXSnMJRimXE+wI9P6tUcikiJiuI5WsWXcekjJUhheecER1su /xerCnQZJFYKxedHDRRhfw+lN1Hc84E7Wdkwbay8bilYP8bY458VzACWRaS7TSP9JMO9 n1wlVcrcOyb/DV4iNhOqtnk37Ryf2TbOLF/OvdI3YEBfqfeh0PH4RUuBcNPHrx3KPh2t FbC//kHRvVXWgK3QDLRL7FdnZ3gAIfeRvoGWR1pBi9IlOCrNaOt+OyGN4vktBX26Ptn4 Toeg== 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:in-reply-to :references; bh=+3O3/SR/4j+pIJEErpPXjpTSrg4MdAG3fyHlusjHefM=; b=Lzj+dJsW2tA527+VHsQWsovMAB4dR6Ps49xv6/pSpqgOPnoYsptFlUWCUPvLXPLFuY 42GhU16jOtnvmwqiVZTAXVo8dVfcJF3x3kSBh3Zh6UrcjVeU4MZFvl2ODWachK2bQ0bl GmQyLUYaNehuwtIJcWmAg+Yja0I4wpV9JBYQKjdaDWmO4hKFi6aPVDNlI5wpgGmR1vsL flr9CaaxLY/M/ogxtQZ38G2RKN62nXD5DIxrfj+H7J1N6CvFEows9okrCFzg/vwoGVpb /Lv0594i1/Jg9hQ6kR7ECfgpb5XBWsAJOK7e2fkYyY6RGGlgEimWrYaAAZwWNi68gYtP +lYA== X-Gm-Message-State: APt69E28udD4p1fHPy5wZYS4y+vyl599/cO6OJT7W5/oBKc6AC3jjz51 b70j61QAqFI15j11Nxp0rjdmJg== X-Received: by 2002:a2e:2206:: with SMTP id i6-v6mr1335747lji.119.1527960156921; Sat, 02 Jun 2018 10:22:36 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id t126-v6sm1333993lff.7.2018.06.02.10.22.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jun 2018 10:22:35 -0700 (PDT) From: "Matwey V. Kornilov" To: u-boot@lists.denx.de Date: Sat, 2 Jun 2018 20:22:26 +0300 Message-Id: <20180602172228.10664-2-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180602172228.10664-1-matwey.kornilov@gmail.com> References: <20180602172228.10664-1-matwey.kornilov@gmail.com> Cc: trini@konsulko.com, "Matwey V. Kornilov" Subject: [U-Boot] [PATCH 2/4] configs: pcm051: Use DEFAULT_MMC_TI_ARGS instead of hardcoded duplicates 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" Signed-off-by: Matwey V. Kornilov --- include/configs/pcm051.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h index c1a5c6fe32..3bdd30d84f 100644 --- a/include/configs/pcm051.h +++ b/include/configs/pcm051.h @@ -53,7 +53,11 @@ #include +#include +#include + #define CONFIG_EXTRA_ENV_SETTINGS \ + DEFAULT_MMC_TI_ARGS \ "loadaddr=0x80007fc0\0" \ "fdtaddr=0x80000000\0" \ "rdaddr=0x81000000\0" \ @@ -61,15 +65,8 @@ "fdtfile=pcm051.dtb\0" \ "console=ttyO0,115200n8\0" \ "optargs=\0" \ - "mmcdev=0\0" \ - "mmcroot=/dev/mmcblk0p2 ro\0" \ - "mmcrootfstype=ext4 rootwait\0" \ "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \ "ramrootfstype=ext2\0" \ - "mmcargs=setenv bootargs console=${console} " \ - "${optargs} " \ - "root=${mmcroot} " \ - "rootfstype=${mmcrootfstype}\0" \ "bootenv=uEnv.txt\0" \ "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \ "bootscript=echo Running bootscript from mmc${mmcdev} ...; " \ @@ -85,7 +82,7 @@ "loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}\0" \ "loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} ${bootfile}\0" \ "mmcboot=echo Booting from mmc ...; " \ - "run mmcargs; " \ + "run args_mmc; " \ "bootm ${loadaddr}\0" \ "ramboot=echo Booting from ramdisk ...; " \ "run ramargs; " \ From patchwork Sat Jun 2 17:22:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 137596 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2335640lji; Sat, 2 Jun 2018 10:23:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLcn44E/v40xrL/giuxtX+62YqCDCJtLRxa5pxLdUa8UWEAggFWE1SH2CJu+QEb7LSdXepD X-Received: by 2002:a50:c089:: with SMTP id k9-v6mr16914867edf.303.1527960232028; Sat, 02 Jun 2018 10:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527960232; cv=none; d=google.com; s=arc-20160816; b=bJCiT4zfAj7KqWDSpfV+LCKTOBlhnZxFGBkB9ILVY/8Dbm2s9ale7PsRETrHbNN7xy up+PgMLvWNJYuUyKngoOrpxWq1j1bCaZAeFb0/E5YdCNRbLq1mgzxj9tI1vRThHg/NMO ABLi+5CGSRsqLMcJpR9iZS6TDtUZHqaSe4QqUSsWXVdRuieOw01EG0+oK//5qpCF2bK5 d/SP+qW9t3Z2Lvaq2fzwmw1+kk+QfHEvVCGafg1/DBj0zwW3D+JIcnsB7aF3fqcc8ODO lfmyfzL5C3jRL0gfTC2zCZ9zOSAlaXQA3lcCPMbbeHX9Vq5qBTWFl5DzWyzPXGLSfMPm HbNA== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=TeYgehe9StfYutg6YAxOfghxnb3TOZhwtCV/WU/Npm4=; b=aOezZZo9ogjUtsDu249c6Mhau8Zgh9a6FDoth8dHLh6RzBY4FInQVi/2/V9mY+rJws Y3jWVlffHpqT/exAqDElQjVoVO1N3TQHzDpa5f9TmTYNMxr4VyFGUilmR+mIliehgFwG VCamjk/gJoykCOgvzuy1/+Kae+k1l7QF1hiErLaNKld3QtfgphFu+c9rkrTLszsXnRlq jTTEzvBhW+pETqKvxBkUSU7ityayh+Z5BTik9HTXIC+tvXj0+yrMhKTk8kei9r2cp4fa +pOP4/+at4e9GQDkcyEuivLyfhC/202xzcAzgn4qfKgDMkCMAfOTcexMjHVshXnsMQaT 6zDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=dHDPt7zN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id y51-v6si807212edb.237.2018.06.02.10.23.51; Sat, 02 Jun 2018 10:23:52 -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=@gmail.com header.s=20161025 header.b=dHDPt7zN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 9DB4CC21DB3; Sat, 2 Jun 2018 17:23:13 +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=FREEMAIL_FROM, 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 EA356C21E0D; Sat, 2 Jun 2018 17:22:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BA31AC21D9A; Sat, 2 Jun 2018 17:22:42 +0000 (UTC) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by lists.denx.de (Postfix) with ESMTPS id 0FCF8C21DA6 for ; Sat, 2 Jun 2018 17:22:39 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id i83-v6so7071297lfh.5 for ; Sat, 02 Jun 2018 10:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Ued/pa973x9Mj1x+KbsKK+7NwCdBctKziplfQfY9FOE=; b=dHDPt7zNUIHTZQBYTa8ykn39QRRjHujXvOH1FF5Jb35D4LHYA5L3+cKZea3kJSq0zL cSsK5T0qinst5gJZI9EW840b65w3xnMEuZ0DU3ULJK9M1QzCrGLAv0pB0V7VJkyqnYsZ qIhwZzWRnCtwqSGHiBJ6OdAB/AJzZvuyiVefu0DVKU91Mz540oimUX0oNZzeQeJNMSgY ptekZvZoj/Z1RGPr+XIhQiHMUJIjn+QfrQldt294LWAxuA6VgBeUufkfDgpNnc8zhDVU rqi+m8SxkBrBckoy1bNy/j+CtJFkwggmvNlfL+CIUw+CRj9XSbhCRqETDquv2SI4oibF zCFA== 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:in-reply-to :references; bh=Ued/pa973x9Mj1x+KbsKK+7NwCdBctKziplfQfY9FOE=; b=t051sdxUZjV5PMmi16qqoWvGUq5Wb1jSEIQlnOf9iYmcFogx+FPgDIkZiy51365t7H hQJ9/sUnCTXl/uhAtSFdQd6halc1V55fZhRHAZYpstMdvPg6TyCzbwboTL/nxg2dzUqa JIa8lEED41qFWUONCqXyHCP4gGydXi+vTUiIyrbIIRcP613xBHF3HgwA71QZzZNA2eNi x23KMuE5bt5/vXIO2dipKwEYTPLdiZgDq1hxZAEdAnxeoO3L62tS0dx0qz3A/Hy6kV7j KX9XDRTpbX5nHyu6nluQ/7v2u4R+lqvnuwBVLxrbX1Wt1yNpq4egtTguKF2TC78/+Z54 0tFw== X-Gm-Message-State: ALKqPwfXh+iMtQloV5D8s7JIujhAJO+t3WYaV/u7biOoKg2bm8qVhISl cN62dIYown0QUBO9qpeaFEMM9g== X-Received: by 2002:a2e:9949:: with SMTP id r9-v6mr10829186ljj.53.1527960158111; Sat, 02 Jun 2018 10:22:38 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id t126-v6sm1333993lff.7.2018.06.02.10.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jun 2018 10:22:37 -0700 (PDT) From: "Matwey V. Kornilov" To: u-boot@lists.denx.de Date: Sat, 2 Jun 2018 20:22:27 +0300 Message-Id: <20180602172228.10664-3-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180602172228.10664-1-matwey.kornilov@gmail.com> References: <20180602172228.10664-1-matwey.kornilov@gmail.com> Cc: trini@konsulko.com, "Matwey V. Kornilov" Subject: [U-Boot] [PATCH 3/4] configs: pcm051: Use DEFAULT_LINUX_BOOT_ENV instead of hardcoded values 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" It appears that DEFAULT_LINUX_BOOT_ENV can be used to boot pcm051 board. Signed-off-by: Matwey V. Kornilov --- include/configs/pcm051.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h index 3bdd30d84f..0475d80666 100644 --- a/include/configs/pcm051.h +++ b/include/configs/pcm051.h @@ -57,10 +57,8 @@ #include #define CONFIG_EXTRA_ENV_SETTINGS \ + DEFAULT_LINUX_BOOT_ENV \ DEFAULT_MMC_TI_ARGS \ - "loadaddr=0x80007fc0\0" \ - "fdtaddr=0x80000000\0" \ - "rdaddr=0x81000000\0" \ "bootfile=uImage\0" \ "fdtfile=pcm051.dtb\0" \ "console=ttyO0,115200n8\0" \ From patchwork Sat Jun 2 17:22:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 137597 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp2336015lji; Sat, 2 Jun 2018 10:24:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGC3Tm2TpGN4BGx+X+yxfJopJChA6R1KXUQI19igQH5SUR6sexXz1zhDVXA+gs6dYxEMVi X-Received: by 2002:aa7:d5d1:: with SMTP id d17-v6mr16921945eds.312.1527960261956; Sat, 02 Jun 2018 10:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527960261; cv=none; d=google.com; s=arc-20160816; b=mYkZYWcSJCl+n7fIyavxgi1v3Gb6wrh42Ov6ZEoas7q1BDAyaczRNVdvFQCeFYrSRk sku1sGUzf6rclLvk2qF1Owhq1EvBGKy/YoFfmZyTDLMHdZN65hdJnRtj5hIQ3Fwmueh5 JQXEiFuKDsX60pAxVIWEwwqqEjoGomjUOzdnPQEwpcsfNX4qFomkYTUpkU6DHx09GbnE HgMbEXQx5JiFTXFejC4Vmrw6lluiTNuyUYD3TTDBljb9YBtGoqAOdiljCMO64wyzEqej 1GKMT9dI0R95FeWhae83no+yirJd1DdysLDqomr8dt5IaAIN5+6XNmfsBECaxTUVXCXn ECBQ== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=luPuWmFOJYFxjDNQwJ8o3laibz8w2IlFp59rZwu+L04=; b=MKq+jnSEiq5+tdKq38tTvHaKRTx/Hd8lq4Trb94ic3ZS7b2l/KlhfHVa+3k14m6mBu FLImssaLoalxye8U3u9rRY8F0bBlc0RvFVF9qFShnjc2AFD5EyjCbMwA3q9DNKtGMv8s oPNIavZeJJ53Ttspl+8XRF2VQOAXHotRvupEeFXJdQTU+yvM+JhCixXSBC/MYgTHo7NK VH55nniRVez3vjXn4K/ts8nMP0LhtgrUHjkRXJxkxUioKlFs1YDkdDGmRGKBvGiEsWy5 v/LnSsdI7kNvS7iHh3JXm4J4sy8ZqUrXyaeNnfzueYlXM8BevWGJMlpgGdxUgKS70v53 mfsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=GrHu2CO/; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id k58-v6si1591548edd.106.2018.06.02.10.24.21; Sat, 02 Jun 2018 10:24:21 -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=@gmail.com header.s=20161025 header.b=GrHu2CO/; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 80958C21E07; Sat, 2 Jun 2018 17:23:28 +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=FREEMAIL_FROM, 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 C2329C21D74; Sat, 2 Jun 2018 17:22:49 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4CBE9C21E15; Sat, 2 Jun 2018 17:22:43 +0000 (UTC) Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by lists.denx.de (Postfix) with ESMTPS id 11103C21DB3 for ; Sat, 2 Jun 2018 17:22:40 +0000 (UTC) Received: by mail-lf0-f68.google.com with SMTP id n3-v6so19239949lfe.12 for ; Sat, 02 Jun 2018 10:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FvATD9Zxxk3iJCoERQv4zkRUSj9h9yO6Iy4YQuyqvC4=; b=GrHu2CO/Jlj7AB3T33S8NnRYmIFwOgd79YQIdfGEj4RWeBD+M82rGr4YxNy/DdRuqI vPJ0imgGy12ddSJrdoHX+ingaALaM1xCCjVUS2RZHjY2ifHP/8uZxni1LqfuFfCXGX0U T5/oqm2kjkgGmQUvHPrTSBtlGf7efKGx3cT+vXcQI2BVoSs6s+gLdhKLmqgvtlXS8sAA S5FD3EoPdOB+fGf662xFebKSDx0F02LOnIN9HlTzB5iDxnLYbjh0fvMcPam13vkzbHA1 44ZC7yyKWXlTOhVVbzFHjndNGG/6vHkb+hxLoGmxkfrZP4s9/jmznTU7kHMo7FYxiqXR R/4A== 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:in-reply-to :references; bh=FvATD9Zxxk3iJCoERQv4zkRUSj9h9yO6Iy4YQuyqvC4=; b=WjblIR0gorUEG6RqFsiIYA32bsHKMNACqQ6jg1BP4KfqR4D0zOWTeVpAN7H8QjWuN2 mioA1idNNGdsCmC4y04uTgvlCJSBmBrOwdUbvLNLHNCqe4JbpbVNfZ9VlFb+GvpGe07O vuuzIdQD+CCaE8unzQK9JVakCYZHjTn2UvWpGJu2zCRDrt5VsTDNV0XTPysR4GOp7NA4 EoK29jJTio+WmjVkIKpusoaSnot9hJTQTPulgKgnOqHU3x6+8+D25V7+BfDGR/k7AmtO oCP9f0PkzW7IM8GBwcUftM6Lr1RYTcynvN/Xr+XUNwfuhvGvukcqbouRJmf7LfJw728L eHVg== X-Gm-Message-State: APt69E3D3sw+cVUpIGJfoymV1OzG+bZ3j307QfWSFMcV7Fnxvf0IsSb6 bKn3pAGPB+MhtU7WV/MMIuBLOw== X-Received: by 2002:a2e:5f8f:: with SMTP id x15-v6mr7297697lje.70.1527960159185; Sat, 02 Jun 2018 10:22:39 -0700 (PDT) Received: from oak.local ([92.243.181.209]) by smtp.gmail.com with ESMTPSA id t126-v6sm1333993lff.7.2018.06.02.10.22.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 02 Jun 2018 10:22:38 -0700 (PDT) From: "Matwey V. Kornilov" To: u-boot@lists.denx.de Date: Sat, 2 Jun 2018 20:22:28 +0300 Message-Id: <20180602172228.10664-4-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20180602172228.10664-1-matwey.kornilov@gmail.com> References: <20180602172228.10664-1-matwey.kornilov@gmail.com> Cc: trini@konsulko.com, "Matwey V. Kornilov" Subject: [U-Boot] [PATCH 4/4] configs: pcm051: Use am335x-wega-rdk.dtb as fdtfile 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" In upstream Linux kernel, the fdtfile for this specific board is called am335x-wega-rdk.dtb Signed-off-by: Matwey V. Kornilov --- include/configs/pcm051.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/pcm051.h b/include/configs/pcm051.h index 0475d80666..5381ed1f45 100644 --- a/include/configs/pcm051.h +++ b/include/configs/pcm051.h @@ -60,7 +60,7 @@ DEFAULT_LINUX_BOOT_ENV \ DEFAULT_MMC_TI_ARGS \ "bootfile=uImage\0" \ - "fdtfile=pcm051.dtb\0" \ + "fdtfile=am335x-wega-rdk.dtb\0" \ "console=ttyO0,115200n8\0" \ "optargs=\0" \ "ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=${rdaddr},64M\0" \