Writing UBI image directly to flash from barebox

Juergen Borleis jbe at pengutronix.de
Wed Jun 15 23:34:45 PDT 2016


Hi Jan,

On Wednesday 15 June 2016 16:57:14 Jan Remmet wrote:
> On Wed, Jun 15, 2016 at 03:26:31PM +0200, Juergen Borleis wrote:
> > 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

Thanks, important to know.

Cheers
Jürgen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |



More information about the barebox mailing list