From: Jan Remmet <J.Remmet@phytec.de>
To: barebox@lists.infradead.org
Subject: Re: Writing UBI image directly to flash from barebox
Date: Wed, 15 Jun 2016 16:57:14 +0200 [thread overview]
Message-ID: <20160615145714.GC3053@lws-weitzel2@phytec.de> (raw)
In-Reply-To: <201606151526.31836.jbe@pengutronix.de>
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/<your-partition> -y -f /mnt/tftp/<your-ubi-image>
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ürgen
>
> --
> Pengutronix e.K. | Juergen Borleis |
> Linux Solutions for Science and Industry | Phone: +49-5121-206917-5128 |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Fax: +49-5121-206917-5555 |
> Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ |
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2016-06-15 14:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 12:57 Writing UBI image directly to flash from barebox Guillermo Rodriguez Garcia
2016-06-15 13:04 ` Alexander Richter
2016-06-15 13:26 ` Juergen Borleis
2016-06-15 14:55 ` Guillermo Rodriguez Garcia
2016-06-15 14:57 ` Jan Remmet [this message]
2016-06-16 6:34 ` Juergen Borleis
2016-06-15 13:27 ` Jan Remmet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160615145714.GC3053@lws-weitzel2@phytec.de \
--to=j.remmet@phytec.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.