08 Dec, 2017

1 commit

  • While sandbox works OK without the special-case code, it does result in
    console output being stored in the pre-console buffer while sandbox starts
    up. If there is a crash or a problem then there is no indication of what
    is going on.

    For ease of debugging it seems better to revert this change.

    This reverts commit 47b98ad0f6779485d0f0c14f337c3eece273eb54.

    Signed-off-by: Simon Glass

    Simon Glass
     

29 Jul, 2017

1 commit


12 Oct, 2016

1 commit


15 Jul, 2016

1 commit


04 Jun, 2015

1 commit

  • For some reason 'u-boot -D' does not restore the terminal correctly when
    the 'reset' command is used. Call the terminal restore function explicitly
    in this case.

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

    Simon Glass
     

06 May, 2015

1 commit


19 Apr, 2015

1 commit


23 Nov, 2014

1 commit


18 Mar, 2014

2 commits


07 Mar, 2014

1 commit

  • The unit-test for hush's "test -e" currently relies upon being run in
    the U-Boot build directory, because it tests for the existence of a file
    that exists in that directory.

    Fix this by explicitly creating the file we use for the existence test,
    and deleting it afterwards so that multiple successive unit-test
    invocations succeed. This required adding an os.c function to erase
    files.

    Reported-by: Simon Glass
    Signed-off-by: Stephen Warren

    Stephen Warren
     

25 Jan, 2014

1 commit


09 Jan, 2014

3 commits

  • It is useful to be able to save and restore the RAM contents of sandbox
    U-Boot either for setting up tests, for later analysys, or for chaining
    together multiple tests which need to keep the same memory contents.

    Add a function to provide a memory file for U-Boot. This is read on
    start-up and written when shutting down. If the file does not exist
    on start-up, it will be created when shutting down.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • With sandbox, errors and problems may be reported before console_init_f()
    is executed. For example, an argument may not parse correctly or U-Boot may
    panic(). At present this output is swallowed so there is no indication what
    is going wrong.

    Adjust the console to deal with a very early sandbox setup, by detecting that
    there is no global_data yet, and calling os functions in that case.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Implement realloc() and free() for sandbox, by adding a header to each
    block which contains the block size.

    Signed-off-by: Simon Glass
    Signed-off-by: Simon Glass
    Reviewed-by: Che-Liang Chiou
    Reviewed-by: Hung-ying Tyan

    Simon Glass
     

22 Nov, 2013

1 commit


24 Jul, 2013

1 commit


05 Mar, 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
     

12 Mar, 2012

5 commits


11 Dec, 2011

2 commits


04 Nov, 2011

1 commit


18 Oct, 2011

1 commit