From patchwork Wed Sep 11 07:03:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1160688 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="eKFUhRMJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46StDD70mkz9sCJ for ; Wed, 11 Sep 2019 17:03:56 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B6488C21DB3; Wed, 11 Sep 2019 07:03:37 +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_MSPIKE_H2, 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 43CF9C21DB3; Wed, 11 Sep 2019 07:03:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B4CA6C21DE8; Wed, 11 Sep 2019 07:03:16 +0000 (UTC) Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com [209.85.221.67]) by lists.denx.de (Postfix) with ESMTPS id B6C57C21D72 for ; Wed, 11 Sep 2019 07:03:13 +0000 (UTC) Received: by mail-wr1-f67.google.com with SMTP id q17so18471835wrx.10 for ; Wed, 11 Sep 2019 00:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=vQz1LLpaY0lIS8JnAURGlb4f27FGvIn2z2hjwyczrOQ=; b=eKFUhRMJQ1vgnwQ4Hz2vVZBYHbN9r17zQyueG4qeVBUn5QS+dv8y5JxbmeVWCMALJr 1yECAotBaQ3S1+iZbymJks1U1MlnRo3wnDvoXNJr1yIiIdF80gbEKCB6rbdj5fSVU5xD NnFXY5Zkw8IS5Blk/K0f9W4Wnjh8nrJhoTxtfrDNbDlpp4V/GDoefHiZokGOrZTftnjQ tFHpwnbOs+zA7HHqCyIW6uYj8/c3ElSIbYiDC7mJ50mYpO4gkOsGsWnqaIh38y7ShD/n gEXXop5YcLXVOhpjTo4MkEIJkykJCiXX+uChjTOk5J1cMTzXBDl0p3wEpk0Jv40+P4l0 NiFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=vQz1LLpaY0lIS8JnAURGlb4f27FGvIn2z2hjwyczrOQ=; b=OczCGrRKFdUN6sCI7boM5N63lq/nG6k1heuO8Cgxr+VBHrloxagmdfjMWtYo1wPO4f ysLaN1tBrmyAl1Q50dbB8Kx2XOvhF/p9TfFUCkPulJ8xmu0J7FFlQj9zQh6MKELZKNWi WazzX0NBQx1B2cS+HZEpXr8WUWsQezpJeSv9LXbN8qCQieL2Nnxdb6H9jQckweu7gzDc rVeXB5SItL0QutePcEG/dL/Xox0/PpwnsM4xZuQ0UPQPzpbFGIVJXTY1K1kuaiSCJBw6 8jXC6iHrtNMf6m16caQb9RkKbiauCXh7bFC3E3Nj83h9vYA0pu6uIBWnSl0oeN7zlhjK BLwQ== X-Gm-Message-State: APjAAAUB8t+wMaf4e0FX/9PMX7If7cYb6Hs6xGstfIHnoJXY/IzMwto5 CObPfgNy1UchiuTyW+0vwOzt2zBuAqo= X-Google-Smtp-Source: APXvYqzvoUMnaQusYLIpFNeJrztwvxNogoQlTNqfHA8a+TiEFXOPbna7A9xK+H2h6/+Xhjf9UFYZ9A== X-Received: by 2002:adf:de03:: with SMTP id b3mr27698812wrm.14.1568185393127; Wed, 11 Sep 2019 00:03:13 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id q15sm25368564wrg.65.2019.09.11.00.03.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 00:03:12 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 11 Sep 2019 09:03:08 +0200 Message-Id: <31715e2c954475df1b5873b15b8ee096f740cea6.1568185386.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Subject: [U-Boot] [PATCH 1/2] xilinx: Add qspi boot command script for reference 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" From: Siva Durga Prasad Paladugu Thsi patch adds qspiboot command script for reference. This can be converetd into uboot script using mkimage and use for booting. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- board/xilinx/bootscripts/qspiboot.cmd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 board/xilinx/bootscripts/qspiboot.cmd diff --git a/board/xilinx/bootscripts/qspiboot.cmd b/board/xilinx/bootscripts/qspiboot.cmd new file mode 100644 index 000000000000..c10341c4d6ea --- /dev/null +++ b/board/xilinx/bootscripts/qspiboot.cmd @@ -0,0 +1,10 @@ +# This is an example file to generate boot.scr - a boot script for U-Boot +# This example only target for qspi boot, sameway it can be created for boot +# devices like nand. +# Generate boot.scr: +# ./tools/mkimage -c none -A arm -T script -d qspiboot.cmd boot.scr +# +# It requires a list of environment variables to be defined before load: +# fdt_addr, fdt_offset, fdt_size, kernel_addr, kernel_offset, kernel_size +# +sf probe 0 0 0 && sf read $fdt_addr $fdt_offset $fdt_size && sf read $kernel_addr $kernel_offset $kernel_size && booti $kernel_addr - $fdt_addr From patchwork Wed Sep 11 07:03:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1160687 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="S0pS0lZC"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46StD05DTDz9sDB for ; Wed, 11 Sep 2019 17:03:44 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 53439C21DB3; Wed, 11 Sep 2019 07:03: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=RCVD_IN_MSPIKE_H2, 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 C049CC21E0B; Wed, 11 Sep 2019 07:03:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2D77DC21DFA; Wed, 11 Sep 2019 07:03:17 +0000 (UTC) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by lists.denx.de (Postfix) with ESMTPS id A8A82C21D9A for ; Wed, 11 Sep 2019 07:03:15 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id o184so2086608wme.3 for ; Wed, 11 Sep 2019 00:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=lSVyayhO0PdMjlnURqG3z+NRxf+iDF+0lhpEqlSz2tg=; b=S0pS0lZChDFc3jB91B/VMNVr6jQY3Scg8yk4sxlnSvIlmlssD09bwKLnhNKzH7F5oz vqx+U8B3xzBsIHxWd6/4xZHz7TgUvi6rzgmLNb6+D/7VQd7FmOQmfISczpZhOg4fj4bh xvkrJ1ad2HAgF8/f2v4P1OEssblFPXMX2YfdLrbQ/pffVJsJiVeMCmdw3hPYMG0xpm32 HDnLrQx5KbBZX2AidR4qdVVmjMK6ZPUIVihGu1lWfid9Yu5znSsEGDAxUyJavkaJ+dgA 9fFV45a8uLjkeN2S4M5pe80AyRCNF1EbV9a1zZecQPhA1cf8QYeBPpCdJm7EPZHKXZnT VrjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=lSVyayhO0PdMjlnURqG3z+NRxf+iDF+0lhpEqlSz2tg=; b=fr4LHnWkHiwHjLM79J8z4h5Fvpbf9d98VJSvH6flVWQlTn1Qjvt5ekXgJXTUuITe/B Oh93XiXQOQ7UI3X5bsaBafSWUaHIvf7GptiDyw4IxMNYSadDrpJe8MSbE5MTDWkrzEDH T6DuPCkvVhX9VtqEAra1GU2t/qGJmgcPzEp89NQjUVDuZUyI6JdTtIzE07hvsQy3gLny MDd+x8oGpDvuBvlpLeiLZ74szc8l5/emUP3S92nzN9q9DxEppY29zyX7nmfIWxxWuTxC 5GKaHHE5q1zt2l7vnGmAUOoc86WLZwtfW1LzfMY13bK22c5ppubhXBkAH2Qwlg17ZSJX Qhkw== X-Gm-Message-State: APjAAAWZ9V4lMpE6L9hKbu2x2PhjIM+h+vAHaDGmnXDcAAC/1p1ODoe4 kp883ZGZkcLAM76dar/EqxUsZukJCk0= X-Google-Smtp-Source: APXvYqzdYNkP8c5NrvChwlQU6qo6k/N4AgilXSnmeFxxqOHxUS8xP5m8QxSqZI6E7UnEsA1b6LAf9g== X-Received: by 2002:a7b:c8d6:: with SMTP id f22mr2741923wml.67.1568185395053; Wed, 11 Sep 2019 00:03:15 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id d22sm1163030wmb.44.2019.09.11.00.03.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Sep 2019 00:03:14 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Wed, 11 Sep 2019 09:03:09 +0200 Message-Id: <890f37234f1c46454149e761c54148e74fb5054a.1568185386.git.michal.simek@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Subject: [U-Boot] [PATCH 2/2] xilinx: Add sd boot command script for reference 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" From: Siva Durga Prasad Paladugu This patch adds sdboot command script for reference. This can be converetd into uboot script using mkimage and use for booting. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- board/xilinx/bootscripts/sdboot.cmd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 board/xilinx/bootscripts/sdboot.cmd diff --git a/board/xilinx/bootscripts/sdboot.cmd b/board/xilinx/bootscripts/sdboot.cmd new file mode 100644 index 000000000000..54667d7dca00 --- /dev/null +++ b/board/xilinx/bootscripts/sdboot.cmd @@ -0,0 +1,10 @@ +# This is an example file to generate boot.scr - a boot script for U-Boot +# This example only target for qspi boot, sameway it can be created for boot +# devices like nand. +# Generate boot.scr: +# ./tools/mkimage -c none -A arm -T script -d sdboot.cmd boot.scr +# +# It requires a list of environment variables used below to be defined +# before load +# +mmc dev $sdbootdev && mmcinfo && run uenvboot || run sdroot$sdbootdev;load mmc $sdbootdev:$partid $fdt_addr system.dtb && load mmc $sdbootdev:$partid $kernel_addr Image && booti $kernel_addr - $fdt_addr