From patchwork Thu May 4 15:11:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 758669 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 3wJfH63ZfMz9s2P for ; Fri, 5 May 2017 01:35:14 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 290E6C21C67; Thu, 4 May 2017 15:25:32 +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_H3, RCVD_IN_MSPIKE_WL 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 C7523C21C43; Thu, 4 May 2017 15:22:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 96677C21C70; Thu, 4 May 2017 15:19:01 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id 54D73C21C43 for ; Thu, 4 May 2017 15:18:57 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id s62so2703648pgc.0 for ; Thu, 04 May 2017 08:18:57 -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=RrTxsHq2mCuwHKVXlhN2a0D7P0/5mqysbVklaIVvNtk=; b=oyvfc7msoMfValHBppvg12Fy5NLiyyHQCd/3OmRSt168aM2w4zJgqAB8M7B8MOAJlA vsRB2RBnmnLmn2IrIQ4mLDCc2YjZ0HCWQqH3Lxc4APKmu6A7ZXUh9LRF58nQUP8mKqOR nDnyMYWGc1VT143eGj19Pe+QsTMEpbBt3Cuxd5IfMR37d0+WBn2ykU5CEBcNVl8e4ffR LghVtivCtj80LUS5OcSHYWe+JRfWGJG0KGRoCQlKcLXwjmcnSKg3BsjGFjDDYCQjx5Zn VgNqCbgelZBu/ZDZsOqaHl2iSiM1F2rCkyzANOKuC6bM+qs1Su0fGZjRUcggEwX9K2oE bujw== X-Gm-Message-State: AN3rC/7XMaJ08kTqa5zaFHQoSpDmf8q0DGKumU/kV/lAQziVyMy4tTYJ RrELvAUFRa1JaQ== X-Received: by 10.84.133.36 with SMTP id 33mr58067373plf.161.1493911136016; Thu, 04 May 2017 08:18:56 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.120]) by smtp.gmail.com with ESMTPSA id d3sm6803661pgc.37.2017.05.04.08.18.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 May 2017 08:18:54 -0700 (PDT) From: Jagan Teki To: Stefano Babic Date: Thu, 4 May 2017 20:41:42 +0530 Message-Id: <1493910702-6751-34-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1493910702-6751-1-git-send-email-jagan@openedev.com> References: <1493910702-6751-1-git-send-email-jagan@openedev.com> Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH v5 33/33] imx6sabresd: 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 and non-SPL with devicetree enabled, so update the README according with images generated with respective builds. Cc: Stefano Babic Cc: Fabio Estevam Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- board/freescale/imx6sabresd/README | 46 +++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/board/freescale/imx6sabresd/README b/board/freescale/imx6sabresd/README index 628d35f..71f9fe2 100644 --- a/board/freescale/imx6sabresd/README +++ b/board/freescale/imx6sabresd/README @@ -3,11 +3,11 @@ How to use and build U-Boot on mx6sabresd: Currently there are four methods for booting mx6sabresd boards: -1. Booting from SD card via normal U-Boot (u-boot.imx) +1. Booting from SD card via normal U-Boot (u-boot-dtb.imx) 2. Booting from eMMC via normal U-Boot -3. Booting via SPL (SPL and u-boot.img) +3. Booting via SPL (SPL and u-boot-dtb.img) 4. Booting via Falcon mode (SPL launches the kernel directly) @@ -15,42 +15,42 @@ Currently there are four methods for booting mx6sabresd boards: 1. Booting from SD card via normal U-Boot ----------------------------------------- -$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd) +$ make imx6q_sabresd_defconfig (If you want to build for imx6 quad sabresd) or -$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd) +$ make imx6dl_sabresd_defconfig (If you want to build for imx6 duallite sabresd) $ make -This will generate the image called u-boot.imx. +This will generate the image called u-boot-dtb.imx. -- Flash the u-boot.imx binary into the SD card: +- Flash the u-boot-dtb.imx binary into the SD card: -$ sudo dd if=u-boot.imx of=/dev/sdb bs=1K seek=1 && sync +$ sudo dd if=u-boot-dtb.imx of=/dev/sdb bs=1K seek=1 && sync 2. Booting from eMMC via normal U-Boot -------------------------------------- -$ make mx6qsabresd_defconfig (If you want to build for mx6qsabresd) +$ make imx6q_sabresd_defconfig (If you want to build for imx6 quad sabresd) or -$ make mx6dlsabresd_defconfig (If you want to build for mx6dlsabresd) +$ make imx6dl_sabresd_defconfig (If you want to build for imx6 duallite sabresd) $ make -This will generate the image called u-boot.imx. +This will generate the image called u-boot-dtb.imx. -- Flash the u-boot.imx binary into the eMMC: +- Flash the u-boot-dtb.imx binary into the eMMC: Set SW6 to download mode: 00001100 Plug a usb cable to USB-OTG and load the u-boot image using the imx_usb_loader tool (https://github.com/boundarydevices/imx_usb_loader): -$ sudo ./imx_usb u-boot.imx +$ sudo ./imx_usb u-boot-dtb.imx In U-boot change the eMMC partition config: @@ -60,9 +60,9 @@ Mount the eMMC in the host PC: => ums 0 mmc 2 -Flash the u-boot.imx binary +Flash the u-boot-dtb.imx binary -$ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1 && sync +$ sudo dd if=u-boot-dtb.imx of=/dev/sdX bs=1K seek=1 && sync Set SW6 to eMMC 8-bit boot: 11010110 @@ -70,38 +70,38 @@ Set SW6 to eMMC 8-bit boot: 11010110 3. Booting via SPL ------------------ -Other method for building U-Boot on mx6qsabresd and mx6qpsabresd is +Other method for building U-Boot on imx6 quad and quadplus sabresd is through SPL. In order to do so: -$ make mx6sabresd_spl_defconfig +$ make imx6qdl_sabresd_spl_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 && 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 && sync +$ sudo dd if=u-boot-dtb.img of=/dev/sdb bs=1K seek=69 && sync 4. Booting via Falcon mode -------------------------- -$ make mx6sabresd_spl_defconfig +$ make imx6qdl_sabresd_spl_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: