30 May, 2018

1 commit


04 Oct, 2017

1 commit

  • The g_dnl USB settings for the vendor ID, product ID and manufacturer are
    actually common settings that can and should be shared by all the gadgets.

    Make them common by renaming them, and convert all the users.

    Reviewed-by: Simon Glass
    Reviewed-by: Lukasz Majewski
    Signed-off-by: Maxime Ripard

    Maxime Ripard
     

02 Oct, 2016

2 commits

  • In both DOS and ISO partition tables the same code to create partition name
    like "hda1" was repeated.

    Code moved to into a new function part_set_generic_name() in part.c and optimized.
    Added recognition of MMC and SD types, name is like "mmcsda1".

    Signed-off-by: Petr Kulhavy
    Reviewed-by: Tom Rini
    Acked-by: Steve Rae
    Reviewed-by: Simon Glass

    Petr Kulhavy
     
  • Add special target "mbr" (otherwise configurable via CONFIG_FASTBOOT_MBR_NAME)
    to write MBR partition table.
    Partitions are now searched using the generic function which finds any
    partiiton by name. For MBR the partition names hda1, sda1, etc. are used.

    Signed-off-by: Petr Kulhavy
    Reviewed-by: Tom Rini
    Acked-by: Steve Rae
    Reviewed-by: Simon Glass

    Petr Kulhavy
     

22 Jul, 2015

3 commits

  • FASTBOOT is defined both by CONFIG_USB_FUNCTION_FASTBOOT AND CONFIG_CMD_FASTBOOT, so it doesn't
    make much sense to have a CONFIG_USB_FASTBOOT prefix for fastboot-specific options, especially
    given that other config options for fastboot use the CONFIG_FASTBOOT prefix.

    This replaces the CONFIG_USB_FASTBOOT prefix with CONFIG_FASTBOOT, for consistency.

    Signed-off-by: Paul Kocialkowski

    Paul Kocialkowski
     
  • USB download gadget functions such as thor and dfu have a separate config option
    for the USB gadget part of the code, independent from the command part.
    This switches the fastboot USB gadget to the same scheme, for better
    consistency.

    Signed-off-by: Paul Kocialkowski
    Tested-by: Lukasz Majewski

    Test HW: Odroid_XU3 (Exynos5422), trats (Exynos4210)

    Paul Kocialkowski
     
  • This introduces a coherent scheme for naming USB download gadget and functions
    config options. The download USB gadget config option is moved to
    CONFIG_USB_GADGET_DOWNLOAD for better consistency with other gadgets and each
    function's config option is moved to a CONFIG_USB_FUNCTION_ prefix.

    Signed-off-by: Paul Kocialkowski
    Tested-by: Lukasz Majewski

    Test HW: Odroid_XU3 (Exynos5422), trats (Exynos4210)

    Paul Kocialkowski
     

14 Apr, 2015

1 commit

  • Implement an alias name check for devices where GPT limitations prevent
    user-friendly partition names such as "boot", "system" and "cache". Or,
    where the actual partition name doesn't match a standard partition name
    used commonly with fastboot.

    To set an alias, add an environment setting as follows:
    fastboot_partition_alias_=

    Example: fastboot_partition_alias_boot=LNX

    Signed-off-by: Michael Scott
    Acked-by: Steve Rae
    Cc: Steve Rae
    Cc: Lukasz Majewski

    Michael Scott
     

26 Feb, 2015

1 commit

  • 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
    Reviewed-by: Lukasz Majewski

    Dileep Katta
     

25 Sep, 2014

1 commit


09 Aug, 2014

1 commit


08 May, 2014

1 commit

  • This patch contains an implementation of the fastboot protocol on the
    device side and documentation. This is based on USB download gadget
    infrastructure. The fastboot function implements the getvar, reboot,
    download and reboot commands. What is missing is the flash handling i.e.
    writting the image to media.

    v3 (Rob Herring):
    This is based on http://patchwork.ozlabs.org/patch/126798/ with the
    following changes:
    - Rebase to current mainline and updates for current gadget API
    - Use SPDX identifiers for licenses
    - Traced the history and added missing copyright to cmd_fastboot.c
    - Use load_addr/load_size for transfer buffer
    - Allow vendor strings to be optional
    - Set vendor/product ID from config defines
    - Allow Ctrl-C to exit fastboot mode
    v4:
    - Major re-write to use the USB download gadget. Consolidated function
    code to a single file.
    - Moved globals into single struct.
    - Use puts and putc as appropriate.
    - Added CONFIG_USB_FASTBOOT_BUF_ADDR and CONFIG_USB_FASTBOOT_BUF_SIZE to
    set the fastboot transfer buffer.
    v5:
    - Add CONFIG option documentation to README
    - Rebase using new downloader registration

    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Rob Herring

    Sebastian Siewior