[PATCH 0/2] USB fastboot onto eMMC: make 30% faster!

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

 



I got a 2.9G image that I flash via fastboot to the eMMC and that takes
quite a while on my i.MX6Q.

Instead of fixing my image generation to make proper use of the sparse
format's don't care chunk types to save oneself from writing all these
holes at the end of the partitions, I went the easy route by tweaking the
block layer a bit:

barebox v2020.02.0: 445s
With first patch:   376s
With second patch:  300s

Of these 300s, 180s are spent writing zeroes...

Cheers,
Ahmad Fatoum (2):
  usb: gadget: fastboot: call discard_range for sparse files as well
  Revert "block: Adjust cache sizes"

 common/block.c                  | 4 ++--
 drivers/usb/gadget/f_fastboot.c | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.25.0


_______________________________________________
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