From patchwork Thu Mar 16 10:32:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ahaslam@baylibre.com X-Patchwork-Id: 739746 X-Patchwork-Delegate: trini@ti.com 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 3vkPtm1NTnz9rxw for ; Thu, 16 Mar 2017 21:32:46 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="bH0lVGrA"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id E9678C21C5E; Thu, 16 Mar 2017 10:32: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=LOTS_OF_MONEY, 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 CCB56C21C27; Thu, 16 Mar 2017 10:32:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E08FAC21C27; Thu, 16 Mar 2017 10:32:37 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by lists.denx.de (Postfix) with ESMTPS id 81002C21C26 for ; Thu, 16 Mar 2017 10:32:37 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id t189so43856511wmt.1 for ; Thu, 16 Mar 2017 03:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=wZyjtkoO+vOFRlqRgG8Z1k1ue/0ZnmAW+IevQM20/tE=; b=bH0lVGrA494i0gNL6E9esQdqKGQypD2IzyF8ojBjgcEi91HkTP9yEiqLmzbsUDTD6q bFravnMVRs0PCG5siVYpOeXt7fIS7Ng6hbCOaw7dCRr3mS+sr/1YZ3T8b0J6CyJtaiKO OUhJA3Z+MG7ihSMIOPkVRIfVj1xnJ+7NlN0+40RxBive2t38zoLNBiQPEd/Gbb5l5BLM UuRHTxT/C8Fe2MTdp3z7y6TqfxXnhkNcFY2+hcuvqo2I5gkHXWbbOGCuCCvH0qrDi6hp q7kA6Y+DNUZ+/wIfqFKy7b1kHwrkIK5HXkNOa3nwBMIiHwr8UrJBPGlaG/kEY7KIFNGq tYTw== 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=wZyjtkoO+vOFRlqRgG8Z1k1ue/0ZnmAW+IevQM20/tE=; b=lqB/WujaxtfI3xSMQ0VhcCVHS8WNj3DCeLPUJFGNrHcBIM5pENSxrc5fwE2aRb3ubD FSCSQtR5YzI+j32227cWtgUZKIHQd9BRN9S11PUDi1P0z+lQJCalv863YJ1rheza3MnM gXovPCSOnAi6gumkpzqjToqf3qXdE9ZdUwVRLkDsV4x3NtaDFQzHtV0XETP1FVB9FTtn 6loInX44aIkf3U/5gY9/zbOxSKS4NYNI65aUjDrbqrhbK3bTAV70p8PxxgThb7mLUU2V n6igI/8yZ1Ta6BzbUH9qykurxxNSyO2gSKdN7fMcH3bmBHy6NcPfKMrs77rNcmzuAHwY +brg== X-Gm-Message-State: AFeK/H2Ca1SJiuBLPEeLZ09oRjiUedwnnwyLcHttpB2rv2JpB5twx3yMOpL4FIzwGLaMdPTs X-Received: by 10.28.59.8 with SMTP id i8mr23376576wma.27.1489660357107; Thu, 16 Mar 2017 03:32:37 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u66sm1202751wmd.24.2017.03.16.03.32.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Mar 2017 03:32:36 -0700 (PDT) From: Axel Haslam To: u-boot@lists.denx.de, trini@konsulko.com Date: Thu, 16 Mar 2017 11:32:23 +0100 Message-Id: <20170316103223.2630-1-ahaslam@baylibre.com> X-Mailer: git-send-email 2.9.3 Cc: Axel Haslam Subject: [U-Boot] [PATCH] da850: Add instructions to copy AIS image to NAND 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 instructions to write an AIS image to NAND by using the u-boot nand tools. Signed-off-by: Axel Haslam --- board/davinci/da8xxevm/README.da850 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850 index 29cb4ec..81b7b58 100644 --- a/board/davinci/da8xxevm/README.da850 +++ b/board/davinci/da8xxevm/README.da850 @@ -47,6 +47,28 @@ U-Boot > sf erase 0 +320000 U-Boot > tftp u-boot.ais U-Boot > sf write c0700000 0 $filesize +Flashing the images to NAND +=========================== +The AIS image can be written to NAND using the u-boot "nand" +commands. + +Example: + +The OMAPL138_LCDK requires the AIS image to be written to block 1 of +the NAND flash. + + 1 - Find out the block size using "nand info" + 2 - Download the AIS image to memory + 3 - Write the AIS image form memory to the first block + +In the case of the LCDK: + U-Boot > nand info + Erase size 131072 b (0x20000) + U-Boot > tftp u-boot.ais + Load address: 0xc0700000 + Bytes transferred = 477448 (74908 hex) + U-Boot > nand write 0xc0700000 0x20000 0x75000 + Flashing the images to MMC ========================== If the boot pins are set to boot from mmc, the RBL will try to load the