From patchwork Thu May 18 11:00:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 763935 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wT7mW46mJz9s03 for ; Thu, 18 May 2017 21:11:39 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 47F69C223DF; Thu, 18 May 2017 11:09:41 +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_NONE, RCVD_IN_MSPIKE_H2 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 ECC37C2230F; Thu, 18 May 2017 11:09:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 94118C22394; Thu, 18 May 2017 11:02:26 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id F327AC222A0 for ; Thu, 18 May 2017 11:02:22 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id u26so5437983pfd.2 for ; Thu, 18 May 2017 04:02:22 -0700 (PDT) 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=x6yArHkm4fmfB5T9Y/BaiBJgYRPu1WmD6uNSogOyGlc=; b=CW8/tvD7yVkzmH0tUQOyC6TdLrM2TQk2QoAyvar6LLtqqbe2A11bjAagu2oEwtTdRO CcwK3HW3hcTN54lmRznHFZXbPxnq+9js1+OKDeoN2z3sw96p7/wVh0f547HYFVVwTZp+ gFrjV37qoawXBW5pYNIuQkyJzliL+Jiz34WN4BCIAY3EDMNI8nw8PudTmB4DtrDvDHQX aZTSevWkidtYZNaYyCvekjpmDHh2zVc6LoQyJEeSLagG6tp53WNldGzf1Yc4rSJX5K4l i2uOKE4K/URPmQrCUI9/c5vdD6UrszeKDWwY272WEAFmxgOjg8kW/dUosfQahiUcwPG6 q9lA== X-Gm-Message-State: AODbwcAzKX8NN09hSCXnakGHmX1pmXPAuo9yillf6b5I2zk8iuqB5gww YqlRii4+MIAhSw== X-Received: by 10.98.209.65 with SMTP id t1mr3773290pfl.132.1495105341554; Thu, 18 May 2017 04:02:21 -0700 (PDT) Received: from localhost.localdomain ([59.95.77.75]) by smtp.gmail.com with ESMTPSA id b72sm604722pfj.36.2017.05.18.04.02.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 May 2017 04:02:20 -0700 (PDT) From: Jagan Teki To: Stefano Babic Date: Thu, 18 May 2017 16:30:31 +0530 Message-Id: <1495105231-1723-22-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495105231-1723-1-git-send-email-jagan@openedev.com> References: <1495105231-1723-1-git-send-email-jagan@openedev.com> Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v6 21/21] SabreSD: README: Update with dtb changes 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: Jagan Teki Now SabreSD board support SPL with U-Boot proper devicetree enabled, so update the README according with images generated with respective builds. "Booting from eMMC" still need to test and update README. Signed-off-by: Jagan Teki --- board/freescale/mx6sabresd/README | 66 +++++++++++---------------------------- 1 file changed, 19 insertions(+), 47 deletions(-) diff --git a/board/freescale/mx6sabresd/README b/board/freescale/mx6sabresd/README index 628d35f..9749511 100644 --- a/board/freescale/mx6sabresd/README +++ b/board/freescale/mx6sabresd/README @@ -1,43 +1,36 @@ How to use and build U-Boot on mx6sabresd: ----------------------------------- +----------------------------------------- -Currently there are four methods for booting mx6sabresd boards: +Currently there are three methods for booting mx6sabresd boards: -1. Booting from SD card via normal U-Boot (u-boot.imx) +1. Booting via SPL (SPL and u-boot-dtb.img) 2. Booting from eMMC via normal U-Boot -3. Booting via SPL (SPL and u-boot.img) - -4. Booting via Falcon mode (SPL launches the kernel directly) - +3. Booting via Falcon mode (SPL launches the kernel directly) -1. Booting from SD card via normal U-Boot ------------------------------------------ - -$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd) -or +1. Booting via SPL (SPL and u-boot-dtb.img) +------------------------------------------- -$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd) +$ make mx6sabresd_defconfig $ make -This will generate the image called u-boot.imx. +This will generate the SPL image called SPL and the u-boot-dtb.img. -- Flash the u-boot.imx binary into the SD card: +- Flash the SPL image into the SD card: + +$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync -$ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync +- Flash the u-boot-dtb.img image into the SD card: +$ sudo dd if=u-boot-dtb.img of=/dev/sdb bs=1K seek=69 && sync 2. Booting from eMMC via normal U-Boot -------------------------------------- -$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd) - -or - -$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd) +$ make mx6sabresd_defconfig $ make @@ -66,42 +59,21 @@ $ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 && sync Set SW6 to eMMC 8-bit boot: 11010110 - -3. Booting via SPL ------------------- - -Other method for building U-Boot on mx6qsabresd and mx6qpsabresd is -through SPL. In order to do so: - -$ make mx6sabresd_spl_defconfig -$ make - -This will generate the SPL image called SPL and the u-boot.img. - -- Flash the SPL image into the SD card: - -$ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 && sync - -- Flash the u-boot.img image into the SD card: - -$ sudo dd if=u-boot.img of=/dev/sdb bs=1K seek=69 && sync - - -4. Booting via Falcon mode +3. Booting via Falcon mode -------------------------- -$ make mx6sabresd_spl_defconfig +$ make mx6sabresd_defconfig $ make -This will generate the SPL image called SPL and the u-boot.img. +This will generate the SPL image called SPL and the u-boot-dtb.img. - Flash the SPL image into the SD card: $ sudo dd if=SPL of=/dev/sdb bs=1K seek=1 oflag=sync status=none && sync -- Flash the u-boot.img image into the SD card: +- Flash the u-boot-dtb.img image into the SD card: -$ sudo dd if=u-boot.img of=/dev/sdb bs=1K seek=69 oflag=sync status=none && sync +$ sudo dd if=u-boot-dtb.img of=/dev/sdb bs=1K seek=69 oflag=sync status=none && sync Create a partition for root file system and extract it there: