From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 0D27FE015DB for ; Sun, 4 Aug 2013 04:14:33 -0700 (PDT) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3c7KJ82S6Xz4KK3h; Sun, 4 Aug 2013 13:14:32 +0200 (CEST) X-Auth-Info: 6xDvOsLohdHQHldbMVPyLTxapoheuhmWxRatsU0lbkA= Received: from chi.localnet (unknown [195.140.253.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mnet-online.de (Postfix) with ESMTPSA id 3c7KJ81bWTzbbgC; Sun, 4 Aug 2013 13:14:32 +0200 (CEST) From: Marek Vasut To: =?iso-8859-1?q?M=E5rten_Wikman?= Date: Sun, 4 Aug 2013 13:14:33 +0200 User-Agent: KMail/1.13.7 (Linux/3.9-1-amd64; KDE/4.8.4; x86_64; ; ) References: <201308040033.33275.marex@denx.de> In-Reply-To: MIME-Version: 1.0 Message-Id: <201308041314.33297.marex@denx.de> Cc: "meta-freescale@yoctoproject.org" , Otavio Salvador Subject: Re: MX28 Put u-boot on SPI NOR X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Aug 2013 11:14:37 -0000 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear M=E5rten Wikman, > I did write it with u-boots sf write command, I have also tried to use > mtd-utils in linux. Are there any special parameters I need to add to use > 32-byte aligned? IIRC the SF block should handle the alignment already. Otherwise, just alig= n the=20 amount of data you write by hand ( think of rounding it up to closes multip= le of=20 32 ). Btw one more thing that might have gone awry. Did you erase the SPI flash b= efore=20 writing? These should do the job. Load the u-boot.sb to 0x42000000, then do: sf erase 0x0 0x80000 sf write 0x42000000 0 0x80000 The 0x80000 size should be enough for every possible u-boot.sb containing o= nly=20 the u-boot . If that works, we can look for further cause of this problem. = If=20 this doesn't work, then there might even be a hardware problem. What device are you working with in any case? Is that a custom board or som= e=20 EVK? >=20 > 2013/8/4 Marek Vasut >=20 > > Dear Otavio Salvador, > >=20 > > > On Sat, Aug 3, 2013 at 4:21 PM, Marek Vasut wrote: > > > > Dear M=E5rten Wikman, > > > >=20 > > > >> But then it's just u-boot without any bootstream? Is it really > >=20 > > possible > >=20 > > > >> that mx28 will boot without it? I can't find much information about > >=20 > > how > >=20 > > > >> to boot from spi nor on the internet. SD CARD boot and NAND boot a= re > > > >> well documented in u-boot source code. > > > >=20 > > > > Write u-boot.sb directly to the SPI NOR to offset 0x0 . > > >=20 > > > He did this already, as said in his first e-mail. It seems he is > > > getting H0x80501003. > > >=20 > > > I don't have the MX28 error code list here (just MX23) do you know the > > > meaning of this error code offhand? > >=20 > > #define ERROR_ROM_LDR_SIGNATURE (ERROR_ROM_GROUP | ERROR_ROM_LOADER_GRO= UP > >=20 > > | 0x3) > >=20 > > 0x80501003 The file signature or file version is incorrect. > >=20 > > The file in the NOR flash is corrupted. How do you write the file into > > the NOR > > flash ? I think the filesize might beed to be 32-byte aligned when > > writing. > >=20 > > Best regards, > > Marek Vasut Best regards, Marek Vasut