From patchwork Wed Mar 18 11:31:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1257431 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::538; helo=mail-ed1-x538.google.com; envelope-from=swupdate+bncbcxploxj6ikrbkunzdzqkgqetcaj3si@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=JXbNFdbJ; dkim-atps=neutral Received: from mail-ed1-x538.google.com (mail-ed1-x538.google.com [IPv6:2a00:1450:4864:20::538]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48j7DG6sl2z9sSK for ; Wed, 18 Mar 2020 22:31:58 +1100 (AEDT) Received: by mail-ed1-x538.google.com with SMTP id x93sf11955150ede.19 for ; Wed, 18 Mar 2020 04:31:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584531115; cv=pass; d=google.com; s=arc-20160816; b=kuzRPue7QkV8ZOVSCDexKTSL/rnHS3oHtZA/PscMyzb466+jW7nIef7IjwW9NvyRh5 oiEsNaHIk2UvJrwItMA3+U87n/RCts+UtzlUpcoczBna9HKEOFFb9S1awqSWBSeit8b2 U0ZhFlWX3U5s8r7ZVM/lncJ80GL+R3B2pwMwAbPvQ7ElZCUGAv7nE8pyPB6xZMrvJYu+ nCx5GEcSJO0hCITlCo7YayL5kq3UqQE2FR+BCfAkxLySGxD/STSSXDTVclyIwIwHbv7s 0s0bFaUisI4nNNf/BRzq42F3SlVUTrd5cPefXUMeZfMO4OcSSCECrvysloH78KqCWD0d ByKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=WiofhTZKL1iYo/HJPSKMDWx2uzox5VXOtMj4qXmpcyM=; b=nRhKb0s6xlQjDkx8CauXoI03wLE+3AoAQ4AF2K1hj+in+xH/8fAL+gz3jW3amaCvqD 5Bfe3Uud920g0Ij/qHqaOCvvt/EmgTV6GFwsM6z4tOUPtKHSxMn2femsWcxyrA5GHqBC hc4lQutgqIIZZi2bW8YAB2QbDvxhjxAmmS9pQiqiRNLoXSpuo3PtFHGxeyWTaBnfmt/2 wwcKvKx2sI6VEspMIZcuGQ6AS5cgf925M4Kd316V5jDAeHVG+n+Ky8qSRO0JwiXO+yCh 5Mxxxo1vIpuI8cmopArt18is51253zitmPMl7K0HzDL83/hrmXOnhlNW+ke6w+GFWJqF ++kQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=WiofhTZKL1iYo/HJPSKMDWx2uzox5VXOtMj4qXmpcyM=; b=JXbNFdbJAecuz/cYGz99HsCUJlLBK4+g4Cyh+NQMf4WNA3MSMqdLY58cUA0eWxHpXI dxxTxifn03dBoq+GINzD/6/0Olm2PV5cZOliglCeoJoq3zAPYNdJYJosNxovfsPYX/+D GpEzOoz2TTq24KzX6zgETDjP+H5XFWojSqELn2PUuuZkyOhI9RvayOHFKEYwxmDf2SfH U2MfN45dT39uv+eX/1d4xKfbKGcOQaQF4vnauZ0Y+PuEE/2HIhUQdQmM/BZ1MDBOPBOl XM528k5Xr31/Zeyx7EtsICRpHI3/kvGDt1a5fVK/W1Gqsk/+/HS4a2KEUiimWHWHpoXp Kefw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=WiofhTZKL1iYo/HJPSKMDWx2uzox5VXOtMj4qXmpcyM=; b=dkH6/EOXf5Fox5qGQKL0AgJ/c9475On6U3VwS+Bgp03B8TLlYqHgRmgeGHf9ihNjWP 1k85wYQlHh8v11n03DFVPd5bahbmUGtHQGBujDJDDJ3i4KH0Rez8kbRw2icQBAJpHOtc 955ivaPSlBDD908L6UskdKBLenWCysvJEuRMHyE7PYPoRUS7z2OCgpcbulpVqEuaSnbn pXBjSJwrZo2WkyaLHrF860AfuLTNlJizf1+Ddjxg8nTvXUK/uHPTStx5gT9IO6BBwvem iof6yP1ik6b5rChjZ48VqIynUaAJgqHnFIy9jQbeQgbJE90EC58caPoQRVNAn1YcpoHB SPeA== Sender: swupdate@googlegroups.com X-Gm-Message-State: ANhLgQ1UnJH3kIKe9q/aTYs9xHzqKj+f+jTizGWA10MD/MXqYhaj0lrI CqrKWmkZUH3qYpzkQNNBN1o= X-Google-Smtp-Source: ADFU+vu+r7v6Xse14SL+u0ik2K0gJQilKNX18Trs1luH5REXc3A+fHfEnnWtVCrGOxiduPCEr9Vi9Q== X-Received: by 2002:a17:907:105a:: with SMTP id oy26mr3643035ejb.308.1584531115158; Wed, 18 Mar 2020 04:31:55 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a17:906:a985:: with SMTP id jr5ls13774245ejb.10.gmail; Wed, 18 Mar 2020 04:31:54 -0700 (PDT) X-Received: by 2002:a17:906:2894:: with SMTP id o20mr3794127ejd.341.1584531114290; Wed, 18 Mar 2020 04:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584531114; cv=none; d=google.com; s=arc-20160816; b=IaQefSehuQPEnIBnUR1rqc28czq0a3bV0J3Rg+/ggok+p1zywVe+9hvMIfMYuYwnDW UImobT9KWe1McVJKL1YhJXUMoxLaD7hqygEE3UgOnnVXCWkn/xeowlXyqqM5O+lQN5Oy XTYpdqXtq7ugsNlKmgoX212R8g73aNhThwj8ZMp40WxudM4n7F+47JpuISRzgRdLNmiX dc+UOXuKtnul7GTGy7P9kUy54s01Ka+QoJSn7UDWS4NE4oJykoOpCgJcef/zlkYnLc6X nj8FRU2QJ8+n7av6OVgXLjO3y/Y8ldoSkkxHIpfp6+R3iA//CY+uacUZa0G2oFJeICnH 7P9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=OBnIVLzjsLq+u+vfJXD0UPywr3bPOFpKnWLQHzAbfOE=; b=ZLDcpR1AicBdAa+75+kX6goo8xWd55yLOivAOuTv4CCSt0dITpTCmC7TLSd+AvAcFr KofTHCKTky2DQvonHAavuz7y7fPq/ozybzMHAvA8yqJwxpPUFBHV8GkAphP0gxYWIWrW TCRf2dVi1meGVmAY8C2i8BdnSecWkh9h2SThwZkgV1FxlaCCm4d4kKmLoEQ0TTyIlVvc Xcf/bT5HMHZ7W2gVePi496yvyKUAMNxTkwYUZDeUM1adEBgUYBXblOr2XkFhtuCj9Y8G 3C1ak2Nn6mA5YVzniuy2FsOd+8r3F0A8zNN19ggtBGn/LrFF9cTCVfUJkz4sGM7QCQVI X+SA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id dc25si273563ejb.1.2020.03.18.04.31.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2020 04:31:54 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48j7DB08gqz1qs3t; Wed, 18 Mar 2020 12:31:54 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48j7D974Mpz1qs8n; Wed, 18 Mar 2020 12:31:53 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id T0aT7X3383U8; Wed, 18 Mar 2020 12:31:53 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 18 Mar 2020 12:31:53 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id B9BD84540515; Wed, 18 Mar 2020 12:31:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([IPv6:::1]) by localhost (mail.babic.homelinux.org [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 1gxn3PN156Ko; Wed, 18 Mar 2020 12:31:51 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [IPv6:2001:a61:513e:8801:147e:1dfe:91e5:709d]) by babic.homelinux.org (Postfix) with ESMTP id 475034540428; Wed, 18 Mar 2020 12:31:51 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [meta-swupdate-boards] raspberry: add u-boot script to support dual-copy Date: Wed, 18 Mar 2020 12:31:49 +0100 Message-Id: <20200318113149.10361-1-sbabic@denx.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Stefano Babic --- raspberrypi/recipes-bsp/rpi-uboot-scr/files/boot.cmd.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/raspberrypi/recipes-bsp/rpi-uboot-scr/files/boot.cmd.in b/raspberrypi/recipes-bsp/rpi-uboot-scr/files/boot.cmd.in index a2986ac..04cbd7b 100644 --- a/raspberrypi/recipes-bsp/rpi-uboot-scr/files/boot.cmd.in +++ b/raspberrypi/recipes-bsp/rpi-uboot-scr/files/boot.cmd.in @@ -1,5 +1,6 @@ saveenv fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs -fatload mmc 0:1 ${kernel_addr_r} @@KERNEL_IMAGETYPE@@ -if env exists rpipart;then setenv bootargs ${bootargs} root=/dev/mmcblk0p${rpipart}; fi +if env exists rpipart;then echo Booting from mmcblk0p${rpipart};else setenv rpipart 2;echo rpipart not set, default to ${rpipart};fi +load mmc 0:${rpipart} ${kernel_addr_r} boot/@@KERNEL_IMAGETYPE@@ +setenv bootargs ${bootargs} root=/dev/mmcblk0p${rpipart} @@KERNEL_BOOTCMD@@ ${kernel_addr_r} - ${fdt_addr}