17 Feb, 2018

1 commit


15 Feb, 2018

6 commits

  • All Socfpga boards from ./include/configs/socfpga_* define
    CONFIG_HW_WATCHDOG.
    To ease CONFIG_HW_WATCHDOG conversion to Kconfig select it in
    config ARCH_SOCFPGA (arch/arm/Kconfig) section.

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Simon Goldschmidt

    Lukasz Majewski
     
  • This converts the following to Kconfig:
    CONFIG_SYS_BOOTCOUNT_SINGLEWORD

    Signed-off-by: Lukasz Majewski
    Tested-by: Alex Kiernan
    Reviewed-by: Ian Ray

    Lukasz Majewski
     
  • This converts the following to Kconfig:
    CONFIG_BOOTCOUNT_LIMIT

    Signed-off-by: Lukasz Majewski
    Tested-by: Alex Kiernan
    Reviewed-by: Hannes Schmelzer
    Acked-by: Hannes Schmelzer

    Lukasz Majewski
     
  • >From DFU_ALT_INFO_EMMC (include/environment/ti/dfu.h) we can see that
    rootfs will be flashed to second partition on eMMC. But at the moment we
    have only one partition in $partitions environment variable. Let's add
    "bootloader" partition prior to "rootfs", so that DFU works correctly.
    This also fixes eMMC boot, which looks for rootfs on second partition.

    "bootloader" partition start corresponds to "u-boot.img.raw" in DFU
    eMMC info, which is 0x300 sector (384 KiB offset from eMMC start).

    rootfs start address can be also found from DFU eMMC info.
    bootloader-related area is finished at 0x1500 sector (2688 KiB offset
    from eMMC start). This should be the start address for rootfs in
    $partitions environment variable.

    While at it, fix U-Boot environment address to be the same as for
    AM57x EVM, so that it doesn't clash with other partitions.

    So now eMMC layout looks like this:

    ===============================================================

    0 +------------------------+
    | MBR/GPT header | 128 -
    128 +------------------------+
    | MLO | 256 -
    384 +------------------------+
    | u-boot.img | 1792 bootloader
    2176 +------------------------+
    | //////// hole //////// | 256 -
    2432 +------------------------+
    | U-Boot environment | 128 -
    2560 +------------------------+
    | U-Boot environment | 128 -
    | (redundant) |
    2688 +------------------------+
    | rootfs | remaining rootfs
    end +------------------------+

    ===============================================================

    "hole" area can be used further for storing U-Boot environment (like
    it's done in AM57x EVM config file) or for increasing u-boot.img area
    (in case u-boot.img size increased, e.g. if new dtbs were added).

    This commit conforms with Linux partition table from f6d245b8c56c
    ("arm: am57xx: Fix Linux boot from eMMC") commit, making things in
    uniform way.

    Signed-off-by: Sam Protsenko
    Reviewed-by: Lokesh Vutla
    Reviewed-by: Tom Rini

    Sam Protsenko
     
  • Migrate the option CONFIG_SPL_FRAMEWORK and make this gate most of the
    current set of options we have in Kconfig. We will need to have some
    options available for SPL and !SPL_FRAMEWORK so this is important. In a
    few cases we re-order existing options so that we have less escapes from
    the SPL_FRAMEWORK guard.

    Signed-off-by: Tom Rini

    Tom Rini
     
  • The option CONFIG_SPL_MMC_MINIMAL is unused in code, drop it.

    Signed-off-by: Tom Rini

    Tom Rini
     

14 Feb, 2018

9 commits


13 Feb, 2018

1 commit


11 Feb, 2018

1 commit

  • On the NIOS2 and Xtensa architectures, we do not have
    CONFIG_SYS_TEXT_BASE set. This is a strict migration of the current
    values into the defconfig and removing them from the headers.

    I did not attempt to add more default values in and for now will leave
    that to maintainers.

    Signed-off-by: Tom Rini

    Tom Rini
     

10 Feb, 2018

1 commit


09 Feb, 2018

4 commits

  • config_fallbacks.h has some logic that sets HAVE_BLOCK_DEVICE
    based on a list of enabled options. Moving HAVE_BLOCK_DEVICE to
    Kconfig allows us to drastically shrink the logic in
    config_fallbacks.h

    Signed-off-by: Adam Ford
    [trini: Rename HAVE_BLOCK_DEVICE to CONFIG_BLOCK_DEVICE]
    Signed-off-by: Tom Rini

    Adam Ford
     
  • Migrate the base and sub-options to Kconfig. Note that we only enable
    this in the base sandbox config now.

    Cc: Alexey Brodkin
    Cc: Michal Simek
    Signed-off-by: Tom Rini
    ---
    Is this driver still used anywhere? It's fishy that it's only enabled
    in sandbox anymore.

    Tom Rini
     
  • config_fallbacks.h had some logic to automatically select
    LIB_RAND if RANDOM_UUID or CMD_UUID were set if LIB_HW_RAND wasn't
    already selected. By migrating LIB_HW_RAND to Kconfig, we can
    remove this check from config_fallbacks.h and put it into Kconfig

    Signed-off-by: Adam Ford
    Reviewed-by: Lukasz Majewski
    [trini: Turn into a choice, add NET_RANDOM_ETHADDR]
    Signed-off-by: Tom Rini

    Adam Ford
     
  • This converts the following to Kconfig:
    CONFIG_APBH_DMA
    CONFIG_APBH_DMA_BURST
    CONFIG_APBH_DMA_BURST8

    Signed-off-by: Adam Ford
    Reviewed-by: Stefan Agner
    [trini: Add in MMC as well]
    Signed-off-by: Tom Rini

    Adam Ford
     

08 Feb, 2018

9 commits


06 Feb, 2018

1 commit


04 Feb, 2018

7 commits

  • Select CONFIG_CMD_USB_MASS_STORAGE so that the 'ums' can be used.

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • Selecting CONFIG_USB_FUNCTION_MASS_STORAGE=y in the defconfig leads to
    the following error:

    cmd/built-in.o: In function `do_usb_mass_storage':
    cmd/usb_mass_storage.c:217: undefined reference to `fsg_main_thread'
    cmd/usb_mass_storage.c:170: undefined reference to `fsg_init'

    CONFIG_USB_FUNCTION_MASS_STORAGE option is built only for
    the non-SPL case as per the logic in drivers/usb/gadget/Makefile,
    so remove the incorrect CONFIG_SPL ifdefery to fix the build
    failure.

    Signed-off-by: Fabio Estevam
    Tested-by: Shawn Guo

    Fabio Estevam
     
  • The board header file included a reference to the starting point
    from nitrogen6x.h, but since so much changed, the file bears
    little resemblance to that file.

    Signed-off-by: Eric Nelson

    Eric Nelson
     
  • The initial implementation of mx6memcal reset the CPU after
    running the memory calibration procedure because the generic
    board has no information about which boot devices are available.

    Now that we have SDP support in SPL, use it to allow a full
    U-Boot to be uploaded (i.e. to use "mtest").

    Signed-off-by: Eric Nelson
    Reviewed-by: Fabio Estevam

    Eric Nelson
     
  • Validate the time at startup:
    - in case rtc error add to kernel command line RTC_ERROR
    - clamp date to 1-Jan-2036

    Signed-off-by: Nandor Han
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Nandor Han
     
  • The exact definition of a successful boot is defined by user-space.
    Determine the boot partition automatically. A partition is selected if
    file `/boot/bootcause/firstboot' exists (meaning that the partition has
    freshly installed software) OR if file `/boot/fitImage' exists.

    When userspace determines that new software was successfully installed,
    it must (1) delete `/boot/fitImage' on the _inactive_ partition and (2)
    remove `/boot/bootcause/firstboot'.

    Enable video, but do not display logos or other version information.
    Silence kernel console logging by default.

    Print a message to VGA screen in case of boot failure and reset bootcount
    to allow the user to attempt boot again.

    Signed-off-by: Ian Ray
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Ian Ray
     
  • Change the kernel command line to mount the root filesystem read-only in
    order to be able to run filesystem check on it on boot.

    Signed-off-by: Hannu Lounento
    Signed-off-by: Martyn Welch
    Signed-off-by: Sebastian Reichel

    Hannu Lounento