08 Jan, 2013

1 commit


06 Jan, 2013

1 commit

  • In order to mx53 ROM to properly load the U-boot image, its header size should
    be multiple of 512 bytes.

    This issue was observed with gcc 4.6.2/4.7.3, which caused data aborts:

    U-Boot 2013.01-rc2-00172-gf8cfcf1-dirty (Dec 26 2012 - 13:13:28)

    Board: MX53 LOCO
    I2C: ready
    DRAM: 1 GiB
    MMC: FSL_SDHC: 0, FSL_SDHC: 1
    In: serial
    Out: serial
    Err: serial
    CPU: Freescale i.MX53 family rev2.1 at 1000 MHz
    Reset cause: WDOG
    Net: FEC
    Warning: FEC using MAC address from net device

    Hit any key to stop autoboot: 0
    data abort

    MAYBE you should read doc/README.arm-unaligned-accesses

    pc : [] lr : []
    sp : af565e20 ip : af566918 fp : 00000000
    r10: 00000003 r9 : affabb5b r8 : af565f58
    r7 : 00000000 r6 : 36747fff r5 : af5668e8 r4 : 36747fff
    r3 : af5668ec r2 : af5668eb r1 : 00000000 r0 : af5668e8
    Flags: NzcV IRQs off FIQs off Mode SVC_32
    Resetting CPU ...

    resetting ...

    ,and this patch fixes it.

    Also, even though the ROUND macro is already defined in common.h,
    the reason for redefining it in image.h is explained by Stefano Babic:

    "I will remark a previous comment - even if including common.h seems a
    good idea to avoid duplications, it makes tools like mkimage to depend
    on the selected board, because _config must run. Even if this is
    not a problem for us u-boot developers, it becomes an issue when these
    tools are included in distros (like u-boot-tools in Ubuntu) and cannot
    be packaged."

    Signed-off-by: Troy Kisky
    Signed-off-by: Fabio Estevam

    Fabio Estevam
     

14 Dec, 2012

3 commits


11 Dec, 2012

1 commit


14 Nov, 2012

1 commit

  • Often a particular patch may change only for some versions of a series.
    For versions where there is no change, issue a change log indicating
    that (for example 'Changes in v4: None').

    For such lines, don't add a blank line afterwards, to conserve space.
    Use list.insert() instead of list = [item] + list.

    Signed-off-by: Simon Glass
    Tested-by: Stefan Roese

    Simon Glass
     

05 Nov, 2012

2 commits


27 Oct, 2012

1 commit


26 Oct, 2012

2 commits


20 Oct, 2012

9 commits


16 Oct, 2012

15 commits

  • Provide more information when using redundant environments
    Consistently print debug info to stderr

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • Fix crash introduced by a073d63a36524453a817ab029fad5b188f46127e
    when attempting to delete a variable.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • This was introduced in:
    8679d0ffdcc0beafea8e6942c0c67cf859afa18e -
    COMMON: Use __stringify() instead of MK_STR()

    The header is now needed since common.h is not included in this tool.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • The default kernel-doc strips starting spaces from every single
    line in the Example section. This makes the code look bad. Thus,
    implement special handling for this section.

    Signed-off-by: Marek Vasut

    Marek Vasut
     
  • Pull slightly modified version of Documentation/DocBook, the related perl
    script scripts/kernel-doc and the scripts/docproc.c from Linux kernel and
    implant it into U-Boot. This will allow smooth generation of kerneldoc
    style documentation.

    It was necessary to modify the DocBook/Makefile to work with U-Boot build
    system. The changes were only minor though and involved replacing the kbuild
    specific parts.

    It was also necessary to replace use of variables like KERNEL_VERSION with
    U_BOOT_VERSION, strings like Linux kernel with U-Boot Bootloader etc. so
    the generated result actually matches.

    Finally, it was necessary to adjust docproc.c, since the documentation in
    U-Boot is located in doc/DocBook instead of Documentation/DocBook as is in
    case of the Linux kernel.

    Some parts of the DocBook Makefile are unused, but to allow easier sync with
    Linux kernel, these parts are still left in. The targets enabled now are
    "htmldocs" "pdfdocs" "psdocs" "xmldocs" and "cleandocs" to remove the results
    of documentation build.

    Linux scripts/docproc.c:
    commit f0f3ca8d967462dafb815412b14ca3339b9817a6
    Date: Wed Jun 15 11:53:13 2011 +0200

    Linux scripts/kernel-doc:
    commit 1b40c1944db445c1de1c47ffd8cd426167f488e8
    Date: Sun Aug 12 10:46:15 2012 +0200

    Linux Documentation/DocBook:
    commit bb8187d35f820671d6dd76700d77a6b55f95e2c5
    Date: Thu May 17 19:06:13 2012 -0400

    Signed-off-by: Marek Vasut

    Marek Vasut
     
  • Add a mention of the lock file to the README for the fw_printenv tool.

    Signed-off-by: Joe Hershberger
    Reported-by: Luka Perkov

    Joe Hershberger
     
  • If the pointer passed into envmatch() is NULL, return -1 instead of
    crashing.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • Use a lock file at /var/lock/fw_printenv.lock.
    Avoids seriously confusing the MTD driver.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • We will only call fw_getenv when the env has already been initialized.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • The length included the name length, and then it was subtracted back
    out on each use. Now we don't include it in the first place. Also
    realloc as we process arguments and eliminate memset. Use memcpy
    instead of manually copying each byte.

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • Originally added in aa701b94336b358798d676eef12a7b90bdac23f5

    Before this patch, there was a hard-coded env that was used as default
    if the env in flash is detected as invalid. Now this tool (compiled
    for a given board) will share the default env with the u-boot for the
    board.

    Fix include of config.h

    Need to define "TEXT_BASE" when building the fw_env tool so that the
    default env will be correct for environments which use it.

    Define __ASSEMBLY__ when calling #include so that we only
    get #defines (all we're interested in).

    Signed-off-by: Joe Hershberger

    Joe Hershberger
     
  • There are some errors reported by checkpatch.pl that can be easily cleaned up by
    using the cleanpatch tool.

    Import the cleanpatch script from linux kernel 3.5.4 stable version as from the
    following commit:

    commit cb3ed5b7e09c6c0462e396d55e3fecc0980a333a
    Author: H. Peter Anvin
    Date: Fri May 25 17:58:26 2007 -0700

    scripts: Make cleanfile/cleanpatch warn about long lines

    Signed-off-by: Fabio Estevam

    Fabio Estevam
     
  • Sometimes we don't get a valid filename or line number from checkpatch.pl,
    for example if the patch is in a bad format. Deal with this by using a
    default value, rather than a stack trace.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Sometimes it is possible to forget the name of the branch you used to
    generate an upstream series. To assist with this, add an optional
    patman does not use this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Kill multiple occurances and redeclaration of MK_STR
    in favor of __stringify().

    Signed-off-by: Marek Vasut
    Cc: Wolfgang Denk
    Signed-off-by: Tom Rini

    Marek Vasut
     

04 Oct, 2012

1 commit


28 Sep, 2012

1 commit


27 Sep, 2012

1 commit

  • Specially when many revisions are need for a patchset, the most
    interesting information is about the last set of changes so we output
    the changelog in reverse order to easy identification of most recent
    change set.

    Signed-off-by: Otavio Salvador
    Acked-by: Simon Glass

    Otavio Salvador
     

26 Sep, 2012

1 commit