From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phytec.co.uk ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bDCGe-0008Ad-GC for barebox@lists.infradead.org; Wed, 15 Jun 2016 14:58:09 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 76423A0033C for ; Wed, 15 Jun 2016 16:58:24 +0200 (CEST) Date: Wed, 15 Jun 2016 16:57:14 +0200 From: Jan Remmet Message-ID: <20160615145714.GC3053@lws-weitzel2@phytec.de> References: <201606151526.31836.jbe@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <201606151526.31836.jbe@pengutronix.de> Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jan Remmet Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Writing UBI image directly to flash from barebox To: barebox@lists.infradead.org On Wed, Jun 15, 2016 at 03:26:31PM +0200, Juergen Borleis wrote: > Hi, > = > On Wednesday 15 June 2016 14:57:45 Guillermo Rodriguez Garcia wrote: > > I need to write an UBI image (generated by ubinize) directly to flash > > from barebox. Does barebox provide any equivalent to U-boot's > > write.trimffs command for this? > = > ubiformat /dev/ -y -f /mnt/tftp/ This may fail if the used tftp sever don't support the reporting of the file size. The file size then defaults to -1 and ubiformat complains. ls -l /mnt/tftp/barebox.bin -rwxrwxrwx 18446744073709551615 /mnt/tftp/barebox.bin Jan > = > Cheers > J=FCrgen > = > -- = > Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Borleis =A0 =A0 =A0 =A0 =A0 =A0 | > Linux Solutions for Science and Industry =A0 =A0 =A0| Phone: +49-5121-206= 917-5128 | > Peiner Str. 6-8, 31137 Hildesheim, Germany =A0 =A0| Fax: =A0 +49-5121-206= 917-5555 | > Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 =A0 =A0| http://www.= pengutronix.de/ =A0| > = > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox