From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B5D15E00BBF; Tue, 6 Oct 2015 06:26:33 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [212.18.0.9 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 329 seconds by postgrey-1.32 at yocto-www; Tue, 06 Oct 2015 06:26:31 PDT Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4FA07E00A81 for ; Tue, 6 Oct 2015 06:26:31 -0700 (PDT) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3nVfZ51PwNz3hjQp; Tue, 6 Oct 2015 15:21:01 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP id 3nVfZ44Sgrzvkk1; Tue, 6 Oct 2015 15:21:00 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id DC2DF45406D3; Tue, 6 Oct 2015 15:20:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6fU9PZBP2vZE; Tue, 6 Oct 2015 15:20:57 +0200 (CEST) Received: from [192.168.17.10] (unknown [192.168.17.10]) by babic.homelinux.org (Postfix) with ESMTPS id 9311A45401D5; Tue, 6 Oct 2015 15:20:56 +0200 (CEST) To: Alexander Korsos , yocto@yoctoproject.org References: From: stefano babic Message-ID: <5613CAB5.3080508@denx.de> Date: Tue, 6 Oct 2015 14:20:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Subject: Re: Flashing Yocto to SOM? X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2015 13:26:33 -0000 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Hi Alexander, Am 05.10.2015 um 20:31 schrieb Alexander Korsos: > > Hi, > > I'm trying to flash Yocto Dizzy (core-image-minimal built with > BitBake) onto a LogicPD DM3730 / AM3730 Torpedo + Wireless SOM using > the following commands at the U-Boot prompt: > > # nand erase.chip > # env default -f > > # setenv loadaddr 0x81000000 > > # setenv ramdiskaddr 0x82000000 > > # setenv kernel_nand_offset 0x00280000 > > # setenv kernel_nand_size 0x00400000 > > # setenv ramdisk_nand_offset 0x00680000 > > # setenv ramdisk_nand_size 0x00dd8680 > > # setenv kernel_location nand > > # setenv rootfs_location nand > > # setenv rootfs_type ramdisk > > # saveenv > > # mmc init > > # mw.l ${loadaddr} 0xFFFFFFFF 0x400000 > > # fatload mmc 0 ${loadaddr} mlo > > # nandecc hw > > # nand write ${loadaddr} 0x00000000 0x00020000 > > # nand write ${loadaddr} 0x00020000 0x00020000 > > # nand write ${loadaddr} 0x00040000 0x00020000 > > # nand write ${loadaddr} 0x00060000 0x00020000 > > # mw.l ${loadaddr} 0xFFFFFFFF 0x400000 > > # fatload mmc 0 ${loadaddr} u-boot.bin > > # nandecc sw > > # nand write.i ${loadaddr} 0x00080000 0x00080000 > > # mw.l ${loadaddr} 0xffffffff 0x400000 > > # fatload mmc 0 ${loadaddr} uImage > > # nand write.i ${loadaddr} ${kernel_nand_offset} ${kernel_nand_size} > > # mw.l ${loadaddr} 0xffffffff 0x400000 > # fatload mmc 0 ${loadaddr} rootfs.ext2.gz.u-boot > > # nand write.i ${loadaddr} ${ramdisk_nand_offset} ${ramdisk_nand_size} > > > > The source files I'm using in my boot partition are the MLO, > u-boot.bin, rootfs.ext2.gz.u-boot, uImage, and u-boot.img. I am able > to burn all the necessary files onto the SOM, but when I complete the > steps and power cycle, I get: > > > > U-Boot SPL 2012.07-dirty (Sep 30 2015 - 17:31:44) > Board: DM37xx Torpedo > Error: Bad compare! failed > Error: Bad compare! failed > Error: Bad compare! failed > > ... > > mkimage signature not found - ih_magic = ea000014 > > ... > > Error: Bad compare! failed > Error: Bad compare! failed > > ... > > > > I've done a good amount of research online and some people say that > it's an issue with the nandecc setting, but my only options in U-Boot > are hw (hardware) and sw (software) ecc algorithms. Just curious if > anyone could identify my errors or possibly point me in the direction > of good documentation? > Why do you flash u-boot.bin ? This is missing the header requested by TI's SOCs. You should flash u-boot.img. Regards, Stefano