| #
c9d7fcc6 |
| 05-Mar-2018 |
Jason Zhu <jason.zhu@rock-chips.com> |
fastboot: get mmc erase group size for fastboot
Change-Id: I2b3502bffc26c762ff10c55414b18037aed291cd Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
|
| #
8b464fa9 |
| 09-Nov-2016 |
Jocelyn Bohr <bohr@google.com> |
Implement fastboot flash and erase.
Add function to respond to fastboot flash and erase. Flash writes the previously downloaded image to indicated partition. Erase clears the indicated partition. fb
Implement fastboot flash and erase.
Add function to respond to fastboot flash and erase. Flash writes the previously downloaded image to indicated partition. Erase clears the indicated partition. fb_flash and fb_erase are essentially wrappers for fb_mmc_flash_write and fb_mmc_erase, which are implemented in common/fb_mmc.c.
Added common/fb_common.c, where fastboot_okay/fail are implemented. common/fb_mmc.c assumes fasboot_okay() and fastboot_fail() are implemented, but they were tied to the fastboot USB implementation. This refactor adds the response string as a parameter to fastboot_okay/fail, instead of modifying a global.
Bug: 31887729 Test: FLASH: - Create file "foo" containing 2048 chars = "-" - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP flash misc foo" from host - From U-boot console, read into memory the first 4 blocks from misc partition, observe each byte is "-".
ERASE - Start "fastboot udp" on device and run "fastboot -s udp:$RPI_IP erase misc" from host - From U-boot console, read into memory many blocks from misc partition, observe each byte is 0x00
Configs that use fastboot USB implementation still build.
Change-Id: I5bd54868990bd9d5736d0969b3db240c2926eeec
show more ...
|
| #
9bc34799 |
| 07-Jun-2016 |
Steve Rae <srae@broadcom.com> |
fastboot: sparse: resync common/image-sparse.c (part 2)
- update fastboot_okay() and fastboot_fail()
This file originally came from upstream code.
While retaining the storage abstraction feature,
fastboot: sparse: resync common/image-sparse.c (part 2)
- update fastboot_okay() and fastboot_fail()
This file originally came from upstream code.
While retaining the storage abstraction feature, this is the second set of the changes required to resync with the cmd_flash_mmc_sparse_img() in the file aboot.c from https://us.codeaurora.org/cgit/quic/la/kernel/lk/plain/app/aboot/aboot.c?h=LE.BR.1.2.1
Signed-off-by: Steve Rae <srae@broadcom.com>
show more ...
|
| #
64ece848 |
| 07-Jun-2016 |
Steve Rae <srae@broadcom.com> |
fastboot: sparse: remove session-id logic
This "session-id" alogrithm is not required, and currently corrupts the stored image whenever more the one "session" is required.
Signed-off-by: Steve Rae
fastboot: sparse: remove session-id logic
This "session-id" alogrithm is not required, and currently corrupts the stored image whenever more the one "session" is required.
Signed-off-by: Steve Rae <srae@broadcom.com>
show more ...
|
| #
6c9e00ee |
| 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
fastboot: Implement flashing session counter
The fastboot flash command that writes an image to a partition works in several steps:
1 - Retrieve the maximum size the device can download through the
fastboot: Implement flashing session counter
The fastboot flash command that writes an image to a partition works in several steps:
1 - Retrieve the maximum size the device can download through the "max-download-size" variable
2 - Retrieve the partition type through the "partition-type:%s" variable, that indicates whether or not the partition needs to be erased (even though the fastboot client has minimal support for that)
3a - If the image is smaller than what the device can handle, send the image and flash it.
3b - If the image is larger than what the device can handle, create a sparse image, and split it in several chunks that would fit. Send the chunk, flash it, repeat until we have no more data to send.
However, in the 3b case, the subsequent transfers have no particular identifiers, the protocol just assumes that you would resume the writes where you left it.
While doing so works well, it also means that flashing two subsequent images on the same partition (for example because the user made a mistake) would not work withouth flashing another partition or rebooting the board, which is not really intuitive.
Since we have always the same pattern, we can however maintain a counter that will be reset every time the client will retrieve max-download-size, and incremented after each buffer will be flashed, that will allow us to tell whether we should simply resume the flashing where we were, or start back at the beginning of the partition.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
9b5b60a0 |
| 05-Mar-2015 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
|
| #
57c6941b |
| 02-Mar-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-usb
|
| #
89792381 |
| 17-Feb-2015 |
Dileep Katta <dileep.katta@linaro.org> |
usb: gadget: fastboot: Add fastboot erase
Adds the fastboot erase functionality, to erase a partition specified by name. The erase is performed based on erase group size, to avoid erasing other part
usb: gadget: fastboot: Add fastboot erase
Adds the fastboot erase functionality, to erase a partition specified by name. The erase is performed based on erase group size, to avoid erasing other partitions. The start address and the size is aligned to the erase group size for this.
Currently only supports erasing from eMMC.
Signed-off-by: Dileep Katta <dileep.katta@linaro.org> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
show more ...
|
| #
3cc83f9d |
| 07-Oct-2014 |
Minkyu Kang <mk7.kang@samsung.com> |
Merge branch 'uboot'
|
| #
c0aebb33 |
| 26-Aug-2014 |
Steve Rae <srae@broadcom.com> |
usb/gadget: fastboot: add eMMC support for flash command
- add support for 'fastboot flash' command for eMMC devices
Signed-off-by: Steve Rae <srae@broadcom.com>
|