24 Feb, 2018

1 commit

  • This converts the following to Kconfig:
    CONFIG_BOOTP_BOOTPATH
    CONFIG_BOOTP_DNS
    CONFIG_BOOTP_GATEWAY
    CONFIG_BOOTP_HOSTNAME
    CONFIG_BOOTP_PXE
    CONFIG_BOOTP_SUBNETMASK
    CONFIG_CMDLINE_EDITING
    CONFIG_AUTO_COMPLETE
    CONFIG_SYS_LONGHELP
    CONFIG_SUPPORT_RAW_INITRD
    CONFIG_ENV_VARS_UBOOT_CONFIG

    Signed-off-by: Adam Ford
    [trini: Re-run the migration]
    Signed-off-by: Tom Rini

    Adam Ford
     

14 Feb, 2018

1 commit


04 Feb, 2018

1 commit

  • When functions return an error it propagates up the stack to the point
    where it is reported. Often the error code provides enough information
    about the root cause of the error that this is obvious what went wrong.

    However in some cases the error may be hard to trace. For example if a
    driver uses several devices to perform an operation, it may not be
    obvious which one failed.

    Add a log_ret() macro to help with this. This can be used to wrap any
    error-return value. The logging system will then output a log record when
    the original error is generated, making it easy to trace the call stack
    of the error.

    This macro can significantly impact code size, so its use is controlled
    by a Kconfig option, which is enabled for sandbox.

    Signed-off-by: Simon Glass

    Simon Glass
     

24 Jan, 2018

1 commit


08 Dec, 2017

3 commits


18 Nov, 2017

1 commit

  • We first introduce CONFIG_USE_BOOTCOMMAND, similar to
    CONFIG_USE_BOOTARGS. We then migrate CONFIG_BOOTCOMMAND for most
    CONFIG_DISTRO_DEFAULT users. In some cases platforms have a complex
    scheme around this usage, and these have been defered for the moment so
    that platform maintainers can work on a migration plan.

    Signed-off-by: Tom Rini
    Reviewed-by: Lukasz Majewski

    Tom Rini
     

06 Oct, 2017

1 commit


05 Oct, 2017

1 commit

  • While this came in with a default value of 6 I am lowering this to 4.
    The MTD/UBI code has a large number of error messages that we include
    now. In addition, "normally" warning messages are not included so this
    feels like a more natural level to have.

    Signed-off-by: Tom Rini

    Tom Rini
     

04 Oct, 2017

1 commit

  • When we import code from Linux, with regular re-sync planned, we want
    to use printk() and pr_*(). U-Boot does not support them in a clean
    way. So, people end up with local macros, or compat headers here and
    there, then we occasionally see build errors of definition conflicts.

    We have include/linux/compat.h, but putting all sorts of unrelated
    things into a single header is just a temporal workaround. Hence this
    patch, to find the best home for all printk variants. If you want to
    use printk() and friends, please include . This header
    is self-contained, and pulls in only a few headers.

    When I was testing this clean-up, I noticed the image size exceeded
    its platform limit on some boards. This is because all pr_*() that
    were previously defined as no-op in include/linux/mtd/mtd.h (unless
    CONFIG_MTD_DEBUG is set), are now enabled.

    To make such boards happy, this commit also implements CONFIG_LOGLEVEL.
    The concept is similar to the kernel parameter "loglevel". (Actually,
    the Kconfig help message was taken from kernel-paremeter.txt of Linux)
    Messages with a loglevel smaller than console loglevel will be printed.

    The difference is the loglevel is build-time determined. To save the
    image size, lower priority pr_*() are compiled out. I set the default
    of CONFIG_LOGLEVEL to 6, i.e. pr_notice and higher priority messages
    are compiled in.

    I adjusted CONFIG_LOGLEVEL to avoid build error for some boards.

    Signed-off-by: Masahiro Yamada
    [trini: Add in SPL_LOGLEVEL that is the same as LOGLEVEL]
    Signed-off-by: Tom Rini

    Masahiro Yamada
     

16 Sep, 2017

2 commits


15 Aug, 2017

2 commits


01 Aug, 2017

2 commits


31 Jul, 2017

1 commit


26 Jul, 2017

10 commits


12 Jul, 2017

1 commit

  • Enable the pre-console buffer, displaying the model and post-relocation
    console announce on sandbox. Also add a model name to the device tree.
    This allows testing of these features.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Tested-by: Stephen Warren

    Simon Glass
     

11 Jul, 2017

2 commits


16 Jun, 2017

1 commit


06 Jun, 2017

3 commits

  • At present bootstage only supports U-Boot proper. But SPL can also consume
    boot time so it is useful to have the record start there.

    Add bootstage support to SPL. Also support stashing the timing information
    when SPL finishes so that it can be picked up and reported by U-Boot
    proper. This provides a full boot time record, excluding only the time
    taken by the boot ROM.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present bootstage has a large array with all possible bootstage IDs
    recorded. It adds times to the array element indexed by the ID. This is
    inefficient because many IDs are not used during boot. We can save space
    by only recording those IDs which actually have timestamps.

    Update the array to use a record count, which increments with each
    addition of a new timestamp. This takes longer to record a time, since it
    may involve an array search. Such a search may be particularly expensive
    before relocation when the CPU is running slowly or the cache is off. But
    at that stage there should be very few records.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • There is no good read to make this hex, and integer is more natural for
    this type of setting. Update it.

    Signed-off-by: Simon Glass

    Simon Glass
     

23 May, 2017

1 commit


08 Apr, 2017

2 commits


07 Apr, 2017

1 commit

  • The environment location is something that might change per board
    (depending on what storage options are availaible there) or depending on
    the user choice (when we have several options).

    Instead of hardcoding it in our configuration header, create a Kconfig
    choice with the options we use for now, and the symbols that depend on it.

    Once done, also remove the irrelevant sunxi defines.

    Signed-off-by: Maxime Ripard
    Reviewed-by: Tom Rini
    Reviewed-by: Jagan Teki

    Maxime Ripard
     

06 Apr, 2017

1 commit