Writing UBI image directly to flash from barebox
Jan Remmet
J.Remmet at phytec.de
Wed Jun 15 07:57:14 PDT 2016
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 at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
More information about the barebox
mailing list