10 Dec, 2019

1 commit

  • Due to a conversion error the sandbox does not accept byte values 0x80-0xff
    from the keyboard. The UEFI extended text input unit test requires Unicode
    support.

    Use unsigned char for the serial buffer.

    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Andy Shevchenko

    Heinrich Schuchardt
     

08 Oct, 2019

1 commit

  • At present this function is never called when of-platdata is enabled since
    we never have a device tree. However, this function is responsible for
    copying over the of-platdata, so we must call it. Otherwise the probe()
    method would have to be used.

    Correct this and fix the sandbox serial driver to not read from the device
    tree and try to write to what is read-only platdata on some platforms.

    Fixes: 396e343b3d (dm: core: Allow binding a device from a live tree)
    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     

05 Dec, 2018

2 commits


09 Oct, 2018

3 commits

  • At present sandbox sets non-blocking I/O as soon as any input is read
    from the terminal. However it does not restore the previous state on
    exit. Fix this and drop the old os_read_no_block() function.

    This means that we always enable blocking I/O in sandbox (if input is a
    terminal) whereas previously it would only happen on the first call to
    tstc() or getc(). However, the difference is likely not important.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present sandbox assumes that device-tree control is active, but this
    may not be the case in SPL or TPL. Add some conditions to handle this.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add support for the debug UART so that sandbox provides build testing for
    this feature.

    Signed-off-by: Simon Glass

    Simon Glass
     

11 Sep, 2018

1 commit


27 Jul, 2018

1 commit

  • In raw mode, handle ctrl-c as normal. This allows normal ctrl-c behavior
    such as aborting a command that is timing out without completely
    terminating the sandbox executable.

    In [1], Simon disabled this. His reason for it was that it interferes
    with piping test scripts. Piping should be done in cooked mode, so this
    change should still not interfere.

    [1] commit 8969ea3e9f2db04a6b3675 ("sandbox: Disable Ctrl-C")

    Signed-off-by: Joe Hershberger
    Reviewed-by: Simon Glass

    Joe Hershberger
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

15 Jul, 2016

1 commit


06 Feb, 2016

1 commit

  • Correct spelling of "U-Boot" shall be used in all written text
    (documentation, comments in source files etc.).

    Signed-off-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Reviewed-by: Simon Glass
    Reviewed-by: Minkyu Kang

    Bin Meng
     

21 Jan, 2016

1 commit


11 Sep, 2014

2 commits


18 Mar, 2014

2 commits

  • It is useful for Cltl-C to be handled by U-Boot as it is on other boards.
    But it is also useful to be able to terminate U-Boot with Ctrl-C.

    Add an option to enable signals while in raw mode, and make this the
    default. Add an option to leave the terminal cooked, which is useful for
    redirecting output.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a simple LCD driver which uses SDL to display the image. We update the
    image regularly, while still providing for reasonable performance.

    Adjust the common lcd code to support sandbox.

    For command-line runs we do not want the LCD to be displayed, so add a
    --show_lcd option to enable it.

    Tested-by: Che-Liang Chiou
    Signed-off-by: Simon Glass

    Simon Glass
     

24 Jul, 2013

1 commit


01 Mar, 2013

1 commit

  • Implements the tstc() interface for the serial driver. Multiplexing
    the console between the serial port and a keyboard uses a polling
    method of checking if characters are available; this means that the
    serial console must be non-blocking when attempting to read
    characters.

    Signed-off-by: Taylor Hutt
    Signed-off-by: Simon Glass

    Taylor Hutt
     

16 Oct, 2012

2 commits

  • Remove the support for not-CONFIG_SERIAL_MULTI part from serial
    port drivers and some board files. Since CONFIG_SERIAL_MULTI is
    now enabled by default, that part is a dead code. Remove it.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Anatolij Gustschin
    Cc: Stefan Roese
    Signed-off-by: Tom Rini

    Marek Vasut
     
  • Implement support for CONFIG_SERIAL_MULTI into sandbox serial driver.
    This driver was so far only usable directly, but this patch also adds
    support for the multi method. This allows using more than one serial
    driver alongside the sandbox driver. Also, add a weak implementation
    of default_serial_console() returning this driver.

    Signed-off-by: Marek Vasut
    Cc: Marek Vasut
    Cc: Tom Rini
    Cc: Mike Frysinger

    Marek Vasut
     

04 Nov, 2011

3 commits


18 Oct, 2011

1 commit

  • This uart simply writes to stdout and reads from stdin. We might imagine
    instead buffering the data so that a test interface can check output and
    inject input.

    Signed-off-by: Simon Glass

    Simon Glass