29 Apr, 2018

1 commit

  • If SPL serial support is disabled nothing brings in sprintf, snprintf
    or simple_strtoul:

    env/built-in.o: In function `regex_callback':
    env/attr.c:128: undefined reference to `sprintf'
    disk/built-in.o: In function `blk_get_device_by_str':
    disk/part.c:386: undefined reference to `simple_strtoul'
    disk/part.c:395: undefined reference to `simple_strtoul'
    disk/built-in.o: In function `blk_get_device_part_str':
    disk/part.c:522: undefined reference to `simple_strtoul'
    disk/built-in.o: In function `part_set_generic_name':
    disk/part.c:704: undefined reference to `sprintf'
    drivers/built-in.o: In function `init_peripheral_ep':
    drivers/usb/musb-new/musb_gadget.c:1826: undefined reference to `sprintf'
    drivers/built-in.o: In function `musb_core_init':
    drivers/usb/musb-new/musb_core.c:1451: undefined reference to `snprintf'

    Add those dependencies here.

    Signed-off-by: Alex Kiernan

    Alex Kiernan
     

17 Apr, 2018

1 commit

  • We enabled CONFIG_ISO_PARTITION by default for distro boot, so that U-Boot
    could load distro images that usually get shipped as iso images. These images
    usually come with a board agnostic boot environment.

    However, there is very little point in having ISO support enabled (for anyone
    really) in SPL, as the whole idea of SPL is to load U-Boot proper which again
    is board specific. So the fact that we enable ISO support in U-Boot proper does
    not mean at all that we want ISO support in U-Boot SPL.

    Hence, let's remove the Kconfig dependency. Along the way, let's also clean up
    all those default configs that disabled SPL ISO support.

    Signed-off-by: Alexander Graf

    Alexander Graf
     

09 Feb, 2018

1 commit

  • config_fallback.h has some logic that checks a variety of options
    and selects LIB_UUID if it hasn't already been selected. This
    will all LIB_UUID in Kconfig and select this option for the list
    of options to allow us to remove the logic from fallbacks

    Signed-off-by: Adam Ford

    Adam Ford
     

07 Dec, 2017

2 commits


06 Apr, 2017

1 commit


21 Mar, 2017

1 commit

  • Some architectures require their SPL loader at a fixed address within
    the first 16KB of the disk. To avoid an overlap with the partition
    entries of the EFI partition table, the first safe offset (in bytes,
    from the start of the device) for the entries can be set through
    CONFIG_EFI_PARTITION_ENTRIES_OFF (via Kconfig)

    When formatting a device with an EFI partition table, we may need to
    leave a gap between the GPT header (always in LBA 1) and the partition
    entries. The GPT header already contains a field to specify the
    on-disk location, which has so far always been set to LBA 2. With this
    change, a configurable offset will be translated into a LBA address
    indicating where to put the entries.

    Now also allows an override via device-tree using a config-node (see
    doc/device-tree-bindings/config.txt for documentation).

    Tested (exporting an internal MMC formatted with this) against Linux,
    MacOS X and Windows.

    Signed-off-by: Philipp Tomsich
    Reviewed-by: Simon Glass
    [trini: __maybe_unused on config_offset to avoid warning]
    Signed-off-by: Tom Rini

    Philipp Tomsich
     

28 Jan, 2017

8 commits