* Writing UBI image directly to flash from barebox
@ 2016-06-15 12:57 Guillermo Rodriguez Garcia
2016-06-15 13:04 ` Alexander Richter
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2016-06-15 12:57 UTC (permalink / raw)
To: barebox
Hi all,
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?
(I know that it is possible to write a ubifs image to flash using the
procedure described in the documentation [1]. What I am looking for is
a way to work with the UBI image directly)
[1]: http://barebox.org/doc/latest/user/ubi.html
Thank you,
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing UBI image directly to flash from barebox
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 13:27 ` Jan Remmet
2 siblings, 0 replies; 7+ messages in thread
From: Alexander Richter @ 2016-06-15 13:04 UTC (permalink / raw)
To: barebox
On 15.06.2016 14:57, Guillermo Rodriguez Garcia wrote:
> Hi all,
>
> 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?
If you have a mounted ubi volume, you can use "cp" for this.
> (I know that it is possible to write a ubifs image to flash using the
> procedure described in the documentation [1]. What I am looking for is
> a way to work with the UBI image directly)
>
> [1]: http://barebox.org/doc/latest/user/ubi.html
>
> Thank you,
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing UBI image directly to flash from barebox
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
2016-06-15 13:27 ` Jan Remmet
2 siblings, 2 replies; 7+ messages in thread
From: Juergen Borleis @ 2016-06-15 13:26 UTC (permalink / raw)
To: barebox; +Cc: Guillermo Rodriguez Garcia
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>
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing UBI image directly to flash from barebox
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 13:27 ` Jan Remmet
2 siblings, 0 replies; 7+ messages in thread
From: Jan Remmet @ 2016-06-15 13:27 UTC (permalink / raw)
To: barebox
On Wed, Jun 15, 2016 at 02:57:45PM +0200, Guillermo Rodriguez Garcia wrote:
> Hi all,
>
> 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?
You can use ubiformat MTDEVICE -f FILE to format and flash the ubi image.
Jan
>
> (I know that it is possible to write a ubifs image to flash using the
> procedure described in the documentation [1]. What I am looking for is
> a way to work with the UBI image directly)
>
> [1]: http://barebox.org/doc/latest/user/ubi.html
>
> Thank you,
>
> Guillermo Rodriguez Garcia
> guille.rodriguez@gmail.com
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing UBI image directly to flash from barebox
2016-06-15 13:26 ` Juergen Borleis
@ 2016-06-15 14:55 ` Guillermo Rodriguez Garcia
2016-06-15 14:57 ` Jan Remmet
1 sibling, 0 replies; 7+ messages in thread
From: Guillermo Rodriguez Garcia @ 2016-06-15 14:55 UTC (permalink / raw)
To: Juergen Borleis; +Cc: barebox
Hi Jürgen,
2016-06-15 15:26 GMT+02:00 Juergen Borleis <jbe@pengutronix.de>:
> 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>
I did not realize that ubiformat could also flash an image. This works perfect.
Thank you,
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing UBI image directly to flash from barebox
2016-06-15 13:26 ` Juergen Borleis
2016-06-15 14:55 ` Guillermo Rodriguez Garcia
@ 2016-06-15 14:57 ` Jan Remmet
2016-06-16 6:34 ` Juergen Borleis
1 sibling, 1 reply; 7+ messages in thread
From: Jan Remmet @ 2016-06-15 14:57 UTC (permalink / raw)
To: barebox
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Writing UBI image directly to flash from barebox
2016-06-15 14:57 ` Jan Remmet
@ 2016-06-16 6:34 ` Juergen Borleis
0 siblings, 0 replies; 7+ messages in thread
From: Juergen Borleis @ 2016-06-16 6:34 UTC (permalink / raw)
To: barebox, Jan Remmet
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/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-06-16 6:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2016-06-16 6:34 ` Juergen Borleis
2016-06-15 13:27 ` Jan Remmet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox