16 Aug, 2017

2 commits

  • We are now using an env_ prefix for environment functions. Rename these
    two functions for consistency. Also add function comments in common.h.

    Quite a few places use getenv() in a condition context, provoking a
    warning from checkpatch. These are fixed up in this patch also.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     
  • We are now using an env_ prefix for environment functions. Rename setenv()
    for consistency. Also add function comments in common.h.

    Suggested-by: Wolfgang Denk
    Signed-off-by: Simon Glass

    Simon Glass
     

15 Sep, 2016

1 commit


21 Oct, 2015

1 commit

  • common/dlmalloc.c is quite big, both in .text and .data usage, therefor
    on some boards the SPL is build to use only malloc_simple.c and not the
    dlmalloc.c code. This is done in various include/configs/foo.h with the
    following construct:

    #ifdef CONFIG_SPL_BUILD
    #define CONFIG_SYS_MALLOC_SIMPLE
    #endif

    This commit introduces a SPL_MALLOC_SIMPLE Kconfig bool which allows
    selecting this functionality through Kconfig instead.

    Signed-off-by: Hans de Goede
    Acked-by: Simon Glass

    Hans de Goede
     

21 Jul, 2015

1 commit


05 Mar, 2015

1 commit


30 Jan, 2015

1 commit

  • this is an atempt to make the export of functions typesafe.
    I replaced the jumptable void ** by a struct (jt_funcs) with function pointers.
    The EXPORT_FUNC macro now has 3 fixed parameters and one
    variadic parameter
    The first is the name of the exported function,
    the rest of the parameters are used to format a functionpointer
    in the jumptable,

    the EXPORT_FUNC macros are expanded three times,
    1. to declare the members of the struct
    2. to initialize the structmember pointers
    3. to call the functions in stubs.c

    Signed-off-by: Martin Dorwig
    Acked-by: Simon Glass

    Signed-off-by: Simon Glass
    (resending to the list since my tweaks are not quite trivial)

    Martin Dorwig
     

20 Feb, 2013

1 commit


14 Dec, 2012

1 commit

  • The ustrtoul shall convert string defined size (e.g. 1GiB) to unsigned
    long type (as its name implies).

    Up till now it had returned int, which might cause problems with large
    numbers (GiB range), when interpreted as U2 signed numbers.

    Signed-off-by: Lukasz Majewski
    Signed-off-by: Kyungmin Park

    Lukasz Majewski
     

07 Dec, 2011

1 commit


30 Jul, 2011

1 commit


13 May, 2011

1 commit

  • as checkpatch proposes to use strict_strtoul instead of
    simple_strtoul, introduce it.

    Ported this function from Linux 2.6.38 commit ID:
    521cb40b0c44418a4fd36dc633f575813d59a43d

    Signed-off-by: Heiko Schocher
    cc: Wolfgang Denk
    cc: Detlev Zundel
    cc: Valentin Longchamp
    cc: Holger Brunck
    Signed-off-by: Valentin Longchamp

    Heiko Schocher
     

13 Apr, 2011

1 commit


29 Nov, 2010

1 commit


20 Sep, 2010

1 commit

  • This (undocumented) concept was only in use for the MVSMR and
    davinci_schmoogie Sergey Kubushyn boards.
    Drop it for now. If really needed, it should be reimplemented
    later in the context of the new environment command set.

    Signed-off-by: Wolfgang Denk
    Cc: Andre Schwarz
    Cc: Sergey Kubushyn
    Acked-by: Sergey Kubushyn

    Wolfgang Denk
     

05 Jul, 2010

2 commits

  • The hush shell dynamically allocates (and re-allocates) memory for the
    argument strings in the "char *argv[]" argument vector passed to
    commands. Any code that modifies these pointers will cause serious
    corruption of the malloc data structures and crash U-Boot, so make
    sure the compiler can check that no such modifications are being done
    by changing the code into "char * const argv[]".

    This modification is the result of debugging a strange crash caused
    after adding a new command, which used the following argument
    processing code which has been working perfectly fine in all Unix
    systems since version 6 - but not so in U-Boot:

    int main (int argc, char **argv)
    {
    while (--argc > 0 && **++argv == '-') {
    /* ====> */ while (*++*argv) {
    switch (**argv) {
    case 'd':
    debug++;
    break;
    ...
    default:
    usage ();
    }
    }
    }
    ...
    }

    The line marked "====>" will corrupt the malloc data structures and
    usually cause U-Boot to crash when the next command gets executed by
    the shell. With the modification, the compiler will prevent this with
    an
    error: increment of read-only location '*argv'

    N.B.: The code above can be trivially rewritten like this:

    while (--argc > 0 && **++argv == '-') {
    char *arg = *argv;
    while (*++arg) {
    switch (*arg) {
    ...

    Signed-off-by: Wolfgang Denk
    Acked-by: Mike Frysinger

    Wolfgang Denk
     
  • Change the return type of the *printf() functions to the standard
    "int"; no changes are needed but returning the already available
    length count.

    This will save a few additional strlen() calls later...

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

05 Dec, 2009

1 commit

  • According to the PPC reference implementation the udelay() function is
    responsible for resetting the watchdog timer as frequently as needed.
    Most other architectures do not meet that requirement, so long-running
    operations might result in a watchdog reset.

    This patch adds a generic udelay() function which takes care of
    resetting the watchdog before calling an architecture-specific
    __udelay().

    Signed-off-by: Ingo van Lil

    Ingo van Lil
     

03 Oct, 2009

1 commit

  • Now that proper relocation is supported, the reloc_off field is no longer
    necessary.

    Note that the location of the standalone application jump table pointer
    in the global data structure is affected by this change, breaking
    execution of standalone applications compiled for previous versions of
    U-Boot.

    We therefore increment XF_VERSION to 6

    Signed-off-by: Peter Tyser
    Signed-off-by: Wolfgang Denk

    Peter Tyser
     

10 Aug, 2009

1 commit


20 Nov, 2008

1 commit

  • This patch adds basic UBI (Unsorted Block Image) support to U-Boot.
    It's based on the Linux UBI version and basically has a "OS"
    translation wrapper that defines most Linux specific calls
    (spin_lock() etc.) into no-ops. Some source code parts have been
    uncommented by "#ifdef UBI_LINUX". This makes it easier to compare
    this version with the Linux version and simplifies future UBI
    ports/bug-fixes from the Linux version.

    Signed-off-by: Kyungmin Park
    Signed-off-by: Stefan Roese

    Kyungmin Park
     

02 Jul, 2008

1 commit


11 Aug, 2007

1 commit

  • Add support for the following DaVinci boards:
    - DV_EVM
    - SCHMOOGIE
    - SONATA

    Changes:

    - Split into separate board directories
    - Removed changes to MTD_DEBUG (or whatever it's called)
    - New CONFIG_CMD party line followed
    - Some cosmetic fixes, cleanup etc.
    - Patches against the latest U-Boot tree as of now.
    - Fixed CONFIG_CMD_NET in net files.
    - Fixed CONFIG_CMD_EEPROM for schmoogie.
    - Made sure it compiles and works (forceenv() link problem) on SCHMOOGIE and
    DV_EVM. Can't check if it works on SONATA, don't have a board any more,
    but it at least compiles.

    Here is an excerpt from session log on SCHMOOGIE...

    U-Boot 1.2.0-g6c33c785-dirty (Aug 7 2007 - 13:07:17)

    DRAM: 128 MB
    NAND: 128 MiB
    In: serial
    Out: serial
    Err: serial
    ARM Clock : 297MHz
    DDR Clock : 162MHz
    ETH PHY : DP83848 @ 0x01
    U-Boot > iprobe
    Valid chip addresses: 1B 38 3A 3D 3F 50 5D 6F
    U-Boot > ping 192.168.253.10
    host 192.168.253.10 is alive
    U-Boot >

    Signed-off-by: Sergey Kubushyn
    Acked-by: Dirk Behme
    Acked-by: Zach Sadecki
    Acked-by: Stefan Roese

    Sergey Kubushyn
     

06 Aug, 2007

1 commit


10 Jul, 2007

2 commits


04 Jul, 2007

1 commit


01 Sep, 2006

1 commit


07 Jan, 2004

1 commit


12 Sep, 2003

2 commits


26 Jul, 2003

1 commit


25 Jul, 2003

1 commit