10 Oct, 2014

3 commits

  • At least on OMAP, init_sata() no longer performs scsi_scan()
    so we must do it explicitly here.

    Cc: Dan Murphy
    Signed-off-by: Roger Quadros

    Roger Quadros
     
  • Commit 294b91a5817147d4b7f47be2ac69bac2a1f26491 moved initr_malloc
    earlier than initr_unlock_ram_in_cache. This causes issue on T4240.
    It may be related to locked L1 d-cache and unlocked L2 cache. D-
    cache could and should be unlock earlier for normal operation.

    This patch moves initr_unlock_ram_in_cache before initr_malloc. It
    has been verified on the following boards, in which only T4240QDS
    suffered and has been since fixed: T4240QDS, T2080QDS, P5040DS,
    P4080DS, MPC8572DS, MPC8536DS, MPC8641HPCN, B4860QDS.

    Signed-off-by: York Sun
    CC: Scott Wood
    CC: Simon Glass
    Acked-by: Simon Glass

    York Sun
     
  • On a couple of platforms I've tripped over long PXE append lines overflowing
    this array, due to having CONFIG_SYS_CBSIZE == 256. When doing preseeded Debian
    installs it's pretty trivial to exceed that.

    Since the symptom can be a silent hang or a crash add a check. Of course the
    affected boards would also need an increased CBSIZE to actually work.

    Note that due to the printing of the final bootargs string CONFIG_SYS_PBSIZE
    also needs to be sufficiently large.

    Signed-off-by: Ian Campbell
    [trini: Use %zd not %d in printf for all args]
    Signed-off-by: Tom Rini

    Ian Campbell
     

07 Oct, 2014

2 commits


06 Oct, 2014

7 commits

  • Like many platforms, the Altera socfpga platform requires that the
    preloader be "signed" in a certain way or the built-in boot ROM will
    not boot the code.

    This change automatically creates an appropriately signed preloader
    from an SPL image.

    The signed image includes a CRC which must, of course, be generated
    with a CRC generator that the SoCFPGA boot ROM agrees with otherwise
    the boot ROM will reject the image.

    Unfortunately the CRC used in this boot ROM is not the same as the
    Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a
    CRC but is more correctly described as a checksum.

    Thus, the appropriate CRC generator is added to lib/ as crc32_alt.c.

    Signed-off-by: Charles Manning
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    V2: - Zap unused constant
    - Explicitly print an error message in case of error
    - Rework the hdr_checksum() function to take the *header directly
    instead of a plan buffer pointer

    Charles Manning
     
  • Use the new force parameter to make the stdio_deregister succeed, replacing
    stdin with a nulldev, and assume that the usb keyboard will come back after
    the reset.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • In some cases we really want to move forward with a deregister, add a force
    parameter to allow this, and replace the dev with a nulldev in this case.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • We now always properly deregister the keyboard before calling
    drv_usb_kbd_init(), so we can drop the check for already being registered.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • We need to call usb_kbd_deregister() before calling usb_stop().

    usbkbd's stdio_dev->priv points to the usb_device, and usb_kbd_testc
    dereferences usb_device->privptr.

    usb_stop zeros usb_device, leaving usb_device->privptr NULL, causing
    bad things (tm) to happen once control returns to the main loop and
    usb_kbd_testc gets called.

    Calling usb_kbd_deregister() avoids this. Note that we do not allow
    the "usb reset" to continue when the deregister fails. This will be fixed
    in a later patch.

    For the same reasons always fail "usb stop" if the usb_kbd_deregister() fails,
    even in the force path. This can happen when CONFIG_SYS_STDIO_DEREGISTER is
    not set.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • ENODEV menas no usb keyboard was registered, threat this as a successful
    usb_kbd_deregister.

    Signed-off-by: Hans de Goede

    Hans de Goede
     
  • Signed-off-by: Hans de Goede

    Hans de Goede
     

03 Oct, 2014

2 commits

  • sub-command 'bootpart-resize' check for argc == 4,
    it will retrun CMD_RET_FAILURE when argc value not matched.

    but bootpart-resize's maxarg is 3, which means you never execute
    this sub-command successfully.

    fix it by change bootpart-resize maxarg to 4.

    Signed-off-by: wally.yeh
    Cc: Wolfgang Denk
    Cc: Pierre Aubert
    Acked-by: Pantelis Antoniou

    Wally Yeh
     
  • The code to set the MMC partition uses an weak function to obtain the
    correct partition number. Use that instead of the compile-time default
    when deciding whether it needs to switch back.

    Fixes: 6e7b7df4df43574 ("env_mmc: support env partition setup in runtime")
    Signed-off-by: Peter A. Bigot
    Acked-by: Dmitry Lifshitz
    Acked-by: Pantelis Antoniou

    Peter Bigot
     

27 Sep, 2014

2 commits


26 Sep, 2014

1 commit


25 Sep, 2014

14 commits


24 Sep, 2014

1 commit

  • Currently, CONFIG_SPL_SPI_* #defines are used for controlling SPI boot in
    SPL. These #defines do not allow the user to select SPI mode for the SPI flash
    (there's no CONFIG_SPL_SPI_MODE, so the SPI mode is hardcoded in
    spi_spl_load.c), and duplicate information already provided by
    CONFIG_SF_DEFAULT_* #defines.

    Kill CONFIG_SPL_SPI_*, and use CONFIG_SF_DEFAULT_* instead.

    Cc: Tom Rini
    Cc: Marek Vasut
    Cc: Sudhakar Rajashekhara
    Cc: Lokesh Vutla
    Cc: Vitaly Andrianov
    Cc: Lars Poeschel
    Cc: Bo Shen
    Cc: Hannes Petermaier
    Cc: Michal Simek
    Acked-by: Marek Vasut
    Signed-off-by: Nikita Kiryanov
    Reviewed-by: Jagannadha Sutradharudu Teki

    Nikita Kiryanov
     

17 Sep, 2014

8 commits