12 Sep, 2015

28 commits

  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These boards have not been converted to generic board by the deadline.
    Remove them.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These boards have not been converted to generic board by the deadline.
    Remove them.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These boards have not been converted to generic board by the deadline.
    Remove them.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These board have not been converted to generic board by the deadline.
    Remove them.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This file appears to be an orphan with no board files. Drop it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These boards have not been converted to generic board by the deadline.
    Remove dm355evm, dm355leopard, dm365evm, dm6467evm, dvevm, ea20, schmoogie,
    sffsdr, sonata.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These boards have not been converted to generic board by the deadline.
    Remove them.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • These boards have not been converted to generic board by the deadline.
    Remove all cpu9260 and cpuat91 boards.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This board has not been converted to generic board by the deadline.
    Remove it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Linux kernel can enumerate mmc sd as either mmcblk0 or mmcblk1.
    But u-boot default environment assumes that sd always populates
    as mmcblk0. With this the root fs is not being mounted when
    mmc sd is enumerated as mmcblk1.
    So use partuuid to update root= option in default environment.

    Reported-by: Yan Liu
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • Define default mmc args in ti_armv7_common.h so that all
    TI platforms can reuse.

    Reported-by: Yan Liu
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • All TI SoCs expect filesystem to be ext4, omap4_common is the only one
    with ext3. move omap4 to ext4 so that we can start consolidating MMC
    arguments.

    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • clrsetbits_le32/clrbits_le32 takes mask of the bits as input that
    are needed to be set/clear. But emif driver passes the shift of the bits.
    Fixing it here.

    Reported-by: Mark Mckeown
    Signed-off-by: Lokesh Vutla

    Lokesh Vutla
     
  • Because there is an originally defined CLK_DMA_ENABLE macro in clk.h,
    no reason to add another DMA_CLK_ENABLE macro with the same value.

    Remove DMA_CLK_ENABLE, since it does not follow naming convention from
    the code, this implies renaming of DMA_CLK_ENABLE to CLK_DMA_ENABLE in
    lpc32xx/devices.c file.

    Signed-off-by: Vladimir Zapolskiy
    Tested-by: Sylvain Lemieux

    Vladimir Zapolskiy
     
  • Should use FSL_SEC_MON, not CONFIG_FSL_SEC_MON as Kconfig entry.

    Signed-off-by: Peng Fan
    Cc: Simon Glass
    Cc: Masahiro Yamada
    Cc: Fabio Estevam
    Cc: York Sun
    Cc: Stefan Roese
    Cc: Tom Rini
    Acked-by: Simon Glass

    Peng Fan
     
  • To simplify and having a common default IP-setup on all B&R boards we
    introduce an environment variable "brdefaultip" which does following.

    Test if ${ipaddr} is empty, if yes it set's up some defaults:
    - ipaddr : 192.168.60.1
    - netmask : 255.255.255.0
    - gatewayip: 192.168.60.254
    - serverip : 192.168.60.254

    This environment is ran from CONFIG_PREBOOT.

    All other "tricks" are dropped.

    Signed-off-by: Hannes Schmelzer
    Reviewed-by: Tom Rini
    Acked-by: Joe Hershberger

    Hannes Petermaier
     
  • The FAT code contains a special case to parse the root directory. This
    is needed since the root directory location/layout on disk is special
    cased for FAT12/16. In particular, the location and size of the FAT12/16
    root directory is hard-coded and contiguous, whereas all FAT12/16 non-root
    directories, and all FAT32 directories, are stored in a non-contiguous
    fashion, with the layout represented by a linked-list of clusters in the
    FAT.

    If a file path contains ../ (for example /extlinux/../bcm2835-rpi-cm.dtb),
    it is possible to need to parse the root directory for the first element
    in the path (requiring application of the special case), then a sub-
    directory (in the general way), then re-parse the root directory (again
    requiring the special case). However, the current code in U-Boot only
    applies the special case for the very first path element, and never for
    any later path element. When reparsing the root directory without
    applying the special case, any file in a sector (or cluster?) other than
    the first sector/cluster of the root directory will not be found.

    This change modifies the non-root-dir-parsing loop of do_fat_read_at()
    to detect if it's walked back to the root directory, and if so, jumps
    back to the special case code that handles parsing of the root directory.

    This change was tested using sandbox by executing:

    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/.."
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/../"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/../backup"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/../backup/"
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/../backup/.."
    ./u-boot -c "host bind 0 ../sd-p1.bin; ls host 0:0 /extlinux/../backup/../"
    ./u-boot -c "host bind 0 ../sd-p1.bin; load host 0:0 0 /bcm2835-rpi-cm.dtb"
    ./u-boot -c "host bind 0 ../sd-p1.bin; load host 0:0 0 /extlinux/../bcm2835-rpi-cm.dtb"
    ./u-boot -c "host bind 0 ../sd-p1.bin; load host 0:0 0 /backup/../bcm2835-rpi-cm.dtb"
    ./u-boot -c "host bind 0 ../sd-p1.bin; load host 0:0 0 /extlinux/..backup/../bcm2835-rpi-cm.dtb"
    ./u-boot -c "host bind 0 ../sd-p1.bin; load host 0:0 0 /extlinux/../backup/../bcm2835-rpi-cm.dtb"

    (/extlinux and /backup are in different sectors so trigger some different
    cases, and bcm2835-rpi-cm.dtb is in a sector of the root directory other
    than the first).

    In all honesty, this change is a bit of a hack, using goto and all.
    However, as demonstrated above it appears to work well in practice, is
    quite minimal, likely doesn't introduce any risk of regressions, and
    hopefully doesn't introduce any maintenance issues.

    The correct fix would be to collapse the root and non-root loops in
    do_fat_read_at() and get_dentfromdir() into a single loop that has a
    small special-case when moving from one sector to the next, to handle
    the layout difference of root/non-root directories. AFAIK all other
    aspects of directory parsing are identical. However, that's a much
    larger change which needs significantly more thought before it's
    implemented.

    Signed-off-by: Stephen Warren

    Stephen Warren
     
  • It's easier to Cc him on ARC-releated patches.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Tom Rini
     

11 Sep, 2015

12 commits

  • [root@pollux dfu-util]# ./src/dfu-util -l
    dfu-util 0.8

    Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
    Copyright 2010-2014 Tormod Volden and Stefan Schmidt
    This program is Free Software and has ABSOLUTELY NO WARRANTY
    Please report bugs to dfu-util@lists.gnumonks.org

    Found DFU: [0908:02d2] ver=0212, devnum=119, cfg=1, intf=0, alt=0, name="Linux", serial="UNKNOWN"
    [root@pollux dfu-util]#

    Signed-off-by: Heiko Schocher
    Acked-by: Lukasz Majewski

    Heiko Schocher
     
  • add U-Boot specific changes to the at91_udc linux driver,
    so it works with U-Boot.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • port at91_udc driver from linux:

    original commit Message:
    commit c94e289f195e0e13cf34d27f9338d28221a85751
    Author: Arnd Bergmann
    Date: Sat Apr 11 00:14:21 2015 +0200

    usb: gadget: remove incorrect __init/__exit annotations

    A recent change introduced a link error for the composite
    printer gadget driver:

    `printer_unbind' referenced in section `.ref.data' of drivers/built-in.o: defined in discarded section `.exit.text' of drivers/built-in.o

    Evidently the unbind function should not be marked __exit here,
    because it is called through a callback pointer that is not necessarily
    discarded, __composite_unbind() is indeed called from the error path of
    composite_bind(), which can never work for a built-in driver.

    Looking at the surrounding code, I found the same problem in all other
    composite gadget drivers in both the bind and unbind functions, as
    well as the udc platform driver 'remove' functions. Those will break
    if anyone uses the 'unbind' sysfs attribute to detach a device from a
    built-in driver.

    This patch removes the incorrect annotations from all the gadget
    drivers.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • Entering the maximum number of characters defined by CONFIG_SYS_CBSIZE
    into the console and hitting enter afterwards, causes a hang in the
    system because CONFIG_SYS_PBSIZE is not capable of storing the extra
    characters of the error message:
    "Unknown command '' - try 'help'".

    Use the default CONFIG_SYS_PBSIZE definition from config_fallbacks.h
    to solve this problem.

    Signed-off-by: Bo Shen
    Signed-off-by: Josh Wu

    Bo Shen
     
  • Signed-off-by: Daniel Gorsulowski
    Reviewed-by: Simon Glass
    [fix corrupt line wraps in patch]
    Signed-off-by: Andreas Bießmann

    Daniel Gorsulowski
     
  • taurus changes:
    - rename at91_spl_board_init to spl_board_init
    fixes problems with recovery button and nand erase sector 0
    - adapt CONFIG_SPL_MAX_SIZE and CONFIG_SPL_BSS_MAX_SIZE
    - add CONFIG_AT91_HW_WDT_TIMEOUT 15
    - CONFIG_SF_DEFAULT_MODE SPI_MODE_3 not mode 0

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • add extensions for the axm board:
    - power on LED on power up
    - press both recovery buttons on power up to enter
    recovery mode
    - detect 64 MiB and 128 MiB ramsize
    - PHY rest at reboot because of ATMEL bug
    - use siemens update concept
    - add axm default environment
    - set CONFIG_SPL_MAX_SIZE to 15k

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • add support for DFU on the corvus board.

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • - rename at91_spl_board_init into spl_board_init
    - use SZ_1X defines for sizes

    Signed-off-by: Heiko Schocher

    Heiko Schocher
     
  • This patch adds support for NAND chips with 4KiB page size and 24/1024
    ECC strength. Like the Micron MT29F32G08CBACAWP which is used on the
    ICnova-A20 SoM.

    Signed-off-by: Stefan Roese
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Stefan Roese
     
  • Currently some uninitialized padding bytes are written to the output
    file, as can be confirmed with valgrind:

    $ valgrind tools/mksunxiboot spl/u-boot-spl.bin spl/sunxi-spl.bin

    ==5581== Syscall param write(buf) points to uninitialised byte(s)
    ==5581== at 0x4F0F940: __write_nocancel (in /lib64/libc-2.20.so)
    ==5581== by 0x400839: main (in /tmp/u-boot/tools/mksunxiboot)
    ==5581== Address 0xffeff5d3c is on thread 1's stack
    ==5581== in frame #1, created by main (???)

    This patch fixes the problem by clearing the whole structure instead
    of just a portion of it.

    Signed-off-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka
     
  • The Forfun Q88DB tablet was unbootable since commit
    b6006baf9c2553543e3384983d23d95efbf24fa6 ("sunxi: Move all
    boards to the driver-model"). Appears that this is caused
    by the wrong serial console setup in the SPL. The serial
    console should use PG3/PG4 pins according to the FEX file.

    Signed-off-by: Siarhei Siamashka
    Acked-by: Hans de Goede
    Signed-off-by: Hans de Goede

    Siarhei Siamashka