Re: Writing UBI image directly to flash from barebox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx
> http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux