30 Dec, 2014

2 commits

  • Fix issue in parse_verify_sum() which swaps handling of env-var and *address.
    Move hash_command() argc check earlier.
    Cosmetic change on do_hash() variable declaration.
    Improved help message for "hash" command.

    Signed-off-by: Nikolay Dimitrov
    Reviewed-by: Simon Glass

    Nikolay Dimitrov
     
  • When CONFIG_TRACE is disabled, linking fails with:

    common/built-in.o:(.data.init_sequence_f+0x8): undefined reference to `trace_early_init'

    To fix, wrap the call to trace_early_init() with #ifdef CONFIG_TRACE.

    Cc: Simon Glass
    Cc: Tom Rini
    Signed-off-by: Kevin Hilman

    Kevin Hilman
     

18 Dec, 2014

3 commits

  • Implement a feature to allow fastboot to write the downloaded image
    to the space reserved for the Protective MBR and the Primary GUID
    Partition Table.
    Additionally, prepare and write the Backup GUID Partition Table.

    Signed-off-by: Steve Rae
    Tested-by: Lukasz Majewski
    [Test HW: Exynos4412 - Trats2]

    Steve Rae
     
  • The fastboot continue command is defined to exit fastboot and continue
    autoboot. This commit implements the continue command and the exiting of
    fastboot only. Subsequent u-boot commands can be processed after exiting
    fastboot. Autoboot should implement a boot script such as "fastboot; mmc
    read ; bootm" to fully implement the fastboot continue function.

    Signed-off-by: Rob Herring
    Tested-by: Lukasz Majewski
    [TestHW: Exynos4412-Trats2]

    Rob Herring
     
  • In order to add detach functions for fastboot, make the DFU detach related
    functions common so they can be shared.

    Signed-off-by: Rob Herring
    Tested-by: Lukasz Majewski
    [TestHW: Exynos4412-Trats2]

    Rob Herring
     

13 Dec, 2014

2 commits

  • Tom Rini
     
  • If the MMC_MODE_DDR_52MHz flag is set in card capabilities bitmask,
    it is never cleared, even if switching to DDR mode fails, and if
    the controller driver uses this flag to check the DDR mode, it can
    take incorrect actions.

    Also, DDR related checks in mmc_startup() incorrectly handle the case
    when the host controller does not support some bus widths (e.g. can't
    support 8 bits), since the host_caps is checked for DDR bit, but not
    bus width bits.

    This fix clearly separates using of card_caps bitmask, having there
    the flags for the capabilities, that the card can support, and actual
    operation mode, described outside of card_caps (i.e. bus_width and
    ddr_mode fields in mmc structure). Separate host controller drivers
    may need to be updated to use the actual flags. Respectively,
    the capabilities checks in mmc_startup are made more correct and clear.

    Also, some clean up is made with errors handling and code syntax layout.

    Signed-off-by: Andrew Gabbasov

    Andrew Gabbasov
     

12 Dec, 2014

1 commit

  • The concept of a 'current bus' is now implemented in the command line
    rather than in the uclass. Also the address length does not need to
    be specified with each command - really we should consider dropping
    this from most commands but it works OK for now.

    Signed-off-by: Simon Glass
    Acked-by: Heiko Schocher
    Reviewed-by: Masahiro Yamada

    Simon Glass
     

09 Dec, 2014

2 commits


08 Dec, 2014

9 commits

  • The boot commands - bootz/bootm mandate a third argument which is the
    address to the FDT blob. In cases where this argument is not specified,
    boot fails with a message indicating a missing FDT.

    This causes non-FDT kernels to fail to boot. This patch allows both FDT
    and non-FDT kernels to boot by making the third parameter to the bootm/bootz
    optional.

    Signed-off-by: Suriyan Ramasami
    Acked-by: Simon Glass
    [trini: Update again for covering appended DTB case after last revert in
    this area]
    Signed-off-by: Tom Rini

    Suriyan Ramasami
     
  • Including is enough for general use.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This board sprinkles #ifdef(CONFIG_HERMES) over various global files
    such as include/common.h, common/board_r.c, common/cmd_bdinfo.c.
    Let's zap such an ill-behaved board.

    It has not been converted to generic board yet and mpc8xx is old
    enough.

    Signed-off-by: Masahiro Yamada
    Cc: Wolfgang Denk
    Acked-by: Wolfgang Denk

    Masahiro Yamada
     
  • Fuse drivers, like the mxs_ocotp.c, may return negative error codes but
    the commands are only allowed to return CMD_RET_* enum values to the
    shell, otherwise the following error appears:

    "exit not allowed from main input shell."

    Signed-off-by: Hector Palacios
    Reviewed-by: Benoît Thébaudeau

    Hector Palacios
     
  • The U-Boot port runs on a variety of RPi models, not just the B. So,
    rename the port to something slightly more generic.

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

    Stephen Warren
     
  • In SPL MMC, boot modes are exclusive. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to
    try MMCSD_MODE_FS then, if available.

    It has been tested on a pandaboard (rev. A3).

    Signed-off-by: Guillaume GARDET
    Cc: Tom Rini

    Guillaume GARDET
     
  • Commit 709ea54 made a subtle change to the way the U-Boot API jump table
    is set up. So at present putc(), getc(), tstc() and puts() do not work
    correctly from functions that use the U-Boot API.

    Previously these were set to the stdio functions, but these now take a
    parameter specifying which stdio device to use. Instead, we should change
    them to use the global functions which do not have a parameter.

    This is a slight change in behaviour. The functions will now output to
    all selected stdio devices - for example putc() will output a character to
    all devices selected by stdout. However in most cases there is only one,
    and it isn't necessarily incorrect behaviour anyway.

    The API version is not changed since it is compatible with what was there
    before.

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

    Simon Glass
     
  • Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to
    read the partition table, looking for a partition number instead of using
    a fixed sector address.

    Signed-off-by: Paul Kocialkowski
    Reviewed-by: Tom Rini
    [trini: Only add mmc_load_image_raw_partition() when
    CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to avoid warning, add missing
    conversion in spl_mmc_load_image()]
    Signed-off-by: Tom Rini

    Paul Kocialkowski
     
  • CONFIG_SYS_MAX_FLASH_BANKS_DETECT allows to determine the number of
    flash banks at run-time, that is, there is a possibility that no flash
    bank is found. Even in such cases, it makes sense to continue the
    boot process without any flash device.

    Signed-off-by: Masahiro Yamada
    Acked-by: Stefan Roese

    Masahiro Yamada
     

06 Dec, 2014

1 commit

  • To support interactive DDR debugger, cli_simple.o, cli.o, cli_readline.o,
    command.o, s_record.o, xyzModem.o and cmd_disk.o are all needed for
    drivers/ddr/fsl/interactive.c.

    In current common/Makefile, the above .o files are only produced when
    CONFIG_SPL_BUILD is disabled.

    For LS102xA, interactive DDR debugger is needed in SD/NAND boot too, and
    I enabled CONFIG_FSL_DDR_INTERACTIVE. But according to the current
    common/Makfile, all the above .o files are not produced in SPL part
    because CONFIG_SPL_BUILD is enabled in SPL part, the following error
    will be shown,

    drivers/ddr/fsl/built-in.o: In function `fsl_ddr_interactive':
    /home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1871:
    undefined reference to `cli_readline_into_buffer'
    /home/wangh/layerscape/u-boot/drivers/ddr/fsl/interactive.c:1873:
    undefined reference to `cli_simple_parse_line'
    make[1]: *** [spl/u-boot-spl] Error 1
    make: *** [spl/u-boot-spl] Error 2

    So this patch fixed this issue and the above .o files will be produced
    no matter CONFIG_SPL_BUILD is enabled or disabled.

    Signed-off-by: Alison Wang
    Reviewed-by: York Sun

    Alison Wang
     

05 Dec, 2014

1 commit


04 Dec, 2014

2 commits


02 Dec, 2014

2 commits


01 Dec, 2014

1 commit

  • After commit 933cdbb479: "fdt: Try to use fdt_address_cells()/fdt_size_cells()"
    I noticed that allwinner boards would no longer boot.

    Switching to fdt_address_cells / fdt_size_cells changes the result from
    bytes to 32 bit words, so when we increment pointers into the blob, we must
    do so by 32 bit words now.

    This commit makes allwinner boards boot again.

    Signed-off-by: Hans de Goede
    Tested-by: Masahiro Yamada
    Acked-by: Simon Glass
    Tested-by: Stefan Roese
    Tested-by: Vince Hsu

    Hans de Goede
     

27 Nov, 2014

4 commits


25 Nov, 2014

10 commits