From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CE645E007AD; Tue, 26 Aug 2014 06:56:23 -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,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS 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 * [213.199.154.11 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message X-Greylist: delayed 951 seconds by postgrey-1.32 at yocto-www; Tue, 26 Aug 2014 06:56:18 PDT Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1lrp0011.outbound.protection.outlook.com [213.199.154.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A87C9E00655 for ; Tue, 26 Aug 2014 06:56:18 -0700 (PDT) Received: from DB3PR06MB137.eurprd06.prod.outlook.com (10.141.1.141) by DB3PR06MB137.eurprd06.prod.outlook.com (10.141.1.141) with Microsoft SMTP Server (TLS) id 15.0.1015.19; Tue, 26 Aug 2014 13:40:23 +0000 Received: from DB3PR06MB137.eurprd06.prod.outlook.com ([169.254.8.149]) by DB3PR06MB137.eurprd06.prod.outlook.com ([169.254.8.149]) with mapi id 15.00.1015.018; Tue, 26 Aug 2014 13:40:23 +0000 From: Per Smitt To: "meta-freescale@yoctoproject.org" Thread-Topic: Deploying U-Boot on empty NAND (imx28evk) Thread-Index: AQHPwTAvn3V1xnRLdEiSsOaK6W7sdQ== Date: Tue, 26 Aug 2014 13:40:23 +0000 Message-ID: <1409060423340.67946@sbie.se> Accept-Language: sv-SE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [217.27.173.85] x-microsoft-antispam: BCL:0;PCL:0;RULEID:;UriScan:; x-forefront-prvs: 03152A99FF x-forefront-antispam-report: SFV:NSPM; SFS:(6009001)(51874003)(199003)(189002)(66654002)(16236675004)(87936001)(77982001)(36756003)(95666004)(92726001)(101416001)(105586002)(106116001)(92566001)(106356001)(83072002)(81542001)(50986999)(79102001)(81342001)(46102001)(76482001)(54356999)(85852003)(21056001)(19627405001)(19580395003)(83322001)(110136001)(99396002)(74482001)(74502001)(31966008)(74662001)(85306004)(90102001)(4396001)(64706001)(107886001)(20776003)(2351001)(80022001)(66066001)(86362001)(117636001)(77096002)(107046002)(2656002)(229853001); DIR:OUT; SFP:; SCL:1; SRVR:DB3PR06MB137; H:DB3PR06MB137.eurprd06.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: sbie.se Subject: Deploying U-Boot on empty NAND (imx28evk) 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: Tue, 26 Aug 2014 13:56:23 -0000 Content-Language: sv-SE Content-Type: multipart/alternative; boundary="_000_140906042334067946sbiese_" --_000_140906042334067946sbiese_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi I am working with an imx28evk to build a Linux platform for a customer. I h= ave been able to get Linux running on the board both with SD and nand. To r= un on nand I had to use MfgTool to write U-Boot to the nand. To get more control of the deployment process I want to move away from MfgT= ool and only use sb_loader.exe to send an U-Boot to execute in RAM and from= there I want to manually download all files I need over TFTP and write the= m to nand. I have managed to do this with both kernel and ubifs filesystem but U-Boot = keeps eluding me. I have an empty nand in the imx28evk board and do the following: sb_loader.exe /f u-boot-imx28evk.sb This starts U-Boot on the device, and the nand is still empty. Then in U-Boot I do the following: mtdparts delall mtdparts add nand0 0x0300000 bootloader nand erase.part bootloader tftp ${loadaddr} tlx-image-minimal-imx28evk.uboot.mxsboot-nand nand write ${loadaddr} bootloader All the U-Boot commands were executed successfully. I had hoped that at thi= s point I could press the reset button and get U-Boot executing right away.= However I only get this in the terminal: 0x80508002 Anyone who can help me with this? Additional info: This based on core-image-minimal with minor changes to conf/machine/imx28ev= k.conf: UBOOT_CONFIG ??=3D "nand" IMAGE_FSTYPES ?=3D "uboot.mxsboot-nand uboot.mxsboot-sdcard sdcard ubifs" Many thanks in advance, Per Smitt --_000_140906042334067946sbiese_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi

I am working with an imx28evk to build a Linux platform for a customer= . I have been able to get Linux running on the board both with SD and nand.= To run on nand I had to use MfgTool to write U-Boot to the nand.

To get more control of the deployment process I want to move away from= MfgTool and only use sb_loader.exe to send an U-Boot to execute in RAM and= from there I want to manually download all files I need over TFTP and writ= e them to nand. 

I have managed to do this with both kernel and ubifs filesystem but U-= Boot keeps eluding me.

I have an empty nand in the imx28evk board and do the following:
sb_loader.exe /f u-boot-imx28evk.sb
This starts U-Boot on the device, and the nand is still empty.

Then in U-Boot I do the following:
mtdparts delall
mtdparts add nand0 0x0300000 bootloader
nand erase.part bootloader
tftp ${loadaddr} tlx-image-minimal-imx28evk.uboot.mxsboot-nand 
nand write ${loadaddr} bootloader

All the U-Boot commands were executed successfully. I had hoped that a= t this point I could press the reset button and get U-Boot executing right = away. However I only get this in the terminal:
0x80508002

Anyone who can help me with this?

Additional info:
This based on core-image-minimal with minor changes to conf/machi= ne/imx28evk.conf:
UBOOT_CONFIG ??=3D "nand"
IMAGE_FSTYPES ?=3D "uboot.mxsboot-nand uboot.mxsboot-sdcard sdcar= d ubifs"

Many thanks in advance,
Per Smitt





--_000_140906042334067946sbiese_--