Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Sam Protsenko's avatar
    26857766
    omap: Fix warning when looking for userdata part · 26857766
    Sam Protsenko authored
    
    When eMMC was formattaed for Linux partition table, "userdata" partition
    is missing. In this case, part_get_info_by_name() iterates over all
    registered drivers (which are PART_TYPE_EFI, PART_TYPE_DOS and
    PART_TYPE_ISO). And when it comes to PART_TYPE_ISO (which has empty
    partition table), we can see next warning in U-Boot output:
    
        ** First descriptor is NOT a primary desc on 1:1 **
    
    This patch switches to part_get_info_by_name_type() API in order to
    check only EFI partitions for "userdata" partitions. This eliminates
    mentioned warning.
    
    Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    26857766
    History
    omap: Fix warning when looking for userdata part
    Sam Protsenko authored
    
    When eMMC was formattaed for Linux partition table, "userdata" partition
    is missing. In this case, part_get_info_by_name() iterates over all
    registered drivers (which are PART_TYPE_EFI, PART_TYPE_DOS and
    PART_TYPE_ISO). And when it comes to PART_TYPE_ISO (which has empty
    partition table), we can see next warning in U-Boot output:
    
        ** First descriptor is NOT a primary desc on 1:1 **
    
    This patch switches to part_get_info_by_name_type() API in order to
    check only EFI partitions for "userdata" partitions. This eliminates
    mentioned warning.
    
    Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>