From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6C44AE00821; Tue, 26 Aug 2014 07:48:57 -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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [213.199.154.77 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] Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lrp0077.outbound.protection.outlook.com [213.199.154.77]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3DEA4E0080D for ; Tue, 26 Aug 2014 07:48:51 -0700 (PDT) Received: from DB3PR06MB137.eurprd06.prod.outlook.com (10.141.1.141) by DB3PR06MB140.eurprd06.prod.outlook.com (10.141.1.155) with Microsoft SMTP Server (TLS) id 15.0.1015.19; Tue, 26 Aug 2014 14:48:47 +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 14:48:47 +0000 From: Per Smitt To: Otavio Salvador Thread-Topic: [meta-freescale] Deploying U-Boot on empty NAND (imx28evk) Thread-Index: AQHPwTAvn3V1xnRLdEiSsOaK6W7sdZvi6nuAgAAIxqw= Date: Tue, 26 Aug 2014 14:48:47 +0000 Message-ID: <1409064526966.40067@sbie.se> References: <1409060423340.67946@sbie.se>, In-Reply-To: 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)(377454003)(24454002)(189002)(199003)(81542001)(106116001)(54356999)(105586002)(77096002)(106356001)(20776003)(80022001)(50986999)(229853001)(2656002)(95666004)(85306004)(76176999)(110136001)(64706001)(77982001)(87936001)(21056001)(81342001)(107046002)(66066001)(101416001)(79102001)(117636001)(99396002)(36756003)(46102001)(86362001)(575784001)(90102001)(74662001)(92726001)(83322001)(92566001)(83072002)(19580395003)(4396001)(31966008)(19580405001)(76482001)(74482001)(74502001)(85852003); DIR:OUT; SFP:; SCL:1; SRVR:DB3PR06MB140; H:DB3PR06MB137.eurprd06.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-OriginatorOrg: sbie.se Cc: "meta-freescale@yoctoproject.org" Subject: Re: 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 14:48:57 -0000 Content-Language: sv-SE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0A= On Tue, Aug 26, 2014 at 10:40 AM, Per Smitt wrote:=0A= >> I am working with an imx28evk to build a Linux platform for a customer. = I=0A= >> have been able to get Linux running on the board both with SD and nand. = To=0A= >> run on nand I had to use MfgTool to write U-Boot to the nand.=0A= =0A= > The U-Boot environment has the script to write it.=0A= =0A= I tried two different scripts but with no success, update_nand_firmware_ful= l and update_nand_firmware, see logs below.=0A= The former script even scrubbed the nand partition.=0A= =0A= To be certain that my files were ok I took the u-boot.sb file and downloade= d it into the board using MfgTool (double checking the file by changing the= name to something unique and verifying that MfgTool failed at the first at= tempt before setting the same filename in the ucl.xml). After loading with = MfgTool the board starts U-Boot. Partial MfgTool log is available below.=0A= =0A= So my conclusion is that kobs-ng does something with the u-boot.sb file tha= t isnt done by the U-Boot script. As a side note that could be a hint, if I= erase the default ramdisk partition U-Boot stops working with the same sym= ptom. See the log below.=0A= =0A= So any further hint would be really appreciated.=0A= =0A= /Per=0A= =0A= =0A= update_nand_firmware_full log:=0A= run update_nand_firmware_full=0A= TFTP from server 192.168.0.101; our IP address is 192.168.0.253 = =0A= Filename 'u-boot.nand'. = =0A= Load address: 0x42000000 = =0A= Loading: ################################################################# = =0A= done = =0A= Bytes transferred =3D 4194304 (400000 hex) = =0A= =0A= Device 0: nand0, sector size 128 KiB = =0A= Page size 2048 b = =0A= OOB size 64 b = =0A= Erase size 131072 b = =0A= =0A= NAND scrub: device 0 offset 0x0, size 0x400000 = =0A= Erasing at 0x3e0000 -- 100% complete. = =0A= OK = =0A= =0A= NAND write: 540672 bytes written: OK = =0A= =0A= NAND write: device 0 offset 0x80000, size 0x380000 = =0A= 3670016 bytes written: OK = =0A= =3D> =0A= 0x8050800f = =0A= =0A= =0A= update_nand_firmware log:=0A= run update_nand_firmware = =0A= Using FEC0 device = =0A= TFTP from server 192.168.0.101; our IP address is 192.168.0.253 = =0A= Filename 'u-boot.sb'. = =0A= Load address: 0x42000000 = =0A= Loading: ################################# = =0A= =0A= done = =0A= Bytes transferred =3D 471440 (73190 hex) = =0A= =0A= Device 0: nand0, sector size 128 KiB = =0A= Page size 2048 b = =0A= OOB size 64 b = =0A= Erase size 131072 b = =0A= =0A= NAND erase: device 0 offset 0x100000, size 0x200000 = =0A= Erasing at 0x2e0000 -- 100% complete. = =0A= OK = =0A= =0A= NAND write: device 0 offset 0x100000, size 0x73190 = =0A= 471440 bytes written: OK = =0A= =0A= NAND write: device 0 offset 0x200000, size 0x73190 = =0A= 471440 bytes written: OK = =0A= =3D> =0A= 0x8050800f =0A= =0A= =0A= MfgTool log:=0A= UTP: executing "flash_eraseall /dev/mtd0" = =0A= Erasing 128 Kibyte @ 1400000 -- 100 % complete. = =0A= UTP: sending Success = =0A= UTP: received command '$ flash_eraseall /dev/mtd1' = =0A= UTP: sending Busy = =0A= UTP: executing "flash_eraseall /dev/mtd1" = =0A= Erasing 128 Kibyte @ 6c00000 -- 100 % complete. = =0A= UTP: sending Success = =0A= UTP: received command 'send' = =0A= UTP: sending Success = =0A= UTP: received command '$ kobs-ng init $FILE' = =0A= UTP: sending Busy = =0A= UTP: executing "kobs-ng init $FILE" = =0A= UTP: sending Success = =0A= UTP: received command '$ echo Update Complete!' = =0A= UTP: sending Busy = =0A= UTP: executing "echo Update Complete!" = =0A= Update Complete! = =0A= UTP: sending Success = =0A= g_file_storage gadget: high speed config #1 = =0A= HTLLCLLC = =0A= =0A= U-Boot 2014.01 (Aug 18 2014 - 13:55:32) = =0A= =0A= CPU: Freescale i.MX28 rev1.2 at 454 MHz =0A= =0A= =0A= Erasing ramdisk and resetting log:=0A= =3D> mtdparts default=0A= =3D> mtdparts=0A= =0A= device nand0 , # parts =3D 7=0A= #: name size offset mask_flags=0A= 0: bootloader 0x00300000 0x00000000 1=0A= 1: environment 0x00080000 0x00300000 0=0A= 2: redundant-environment0x00080000 0x00380000 0=0A= 3: kernel 0x00400000 0x00400000 0=0A= 4: fdt 0x00080000 0x00800000 0=0A= 5: ramdisk 0x00800000 0x00880000 0=0A= 6: filesystem 0x06f80000 0x01080000 0=0A= =0A= active partition: nand0,0 - (bootloader) 0x00300000 @ 0x00000000=0A= =0A= defaults:=0A= mtdids : nand0=3Dgpmi-nand=0A= mtdparts: mtdparts=3Dgpmi-nand:3m(bootloader)ro,512k(environment),512k(redu= ndant-environment),4m(kernel),512k(fdt),8m(ramdisk),-(filesys=0A= tem)=0A= =3D> nand erase.part ramdisk=0A= =0A= NAND erase.part: device 0 offset 0x880000, size 0x800000=0A= Erasing at 0x1060000 -- 100% complete.=0A= OK=0A= =3D> =0A= 0x8050800f=0A= =0A= =