03 Dec, 2019

2 commits


12 Oct, 2019

1 commit

  • At this point, all drivers that do not use CONFIG_BLK are past their
    migration deadlines, so remove this config as it's no longer helpful and
    hinders enhancing block drivers.

    Reviewed-by: Simon Glass
    Signed-off-by: Tom Rini

    Tom Rini
     

24 Jul, 2019

1 commit


11 Jul, 2019

2 commits


25 Apr, 2019

1 commit


24 Apr, 2019

2 commits

  • These two buffers currently conflict if tracing is enabled. Move the
    pre-console buffer and update the documentation.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present if one of the initcalls fails on sandbox the address printing
    is not help, e.g.:

    initcall sequence 0000557678967c80 failed at call 00005576709dfe1f (err=-96)

    This is because U-Boot gets relocated high into memory and the relocation
    offset (gd->reloc_off) does not work correctly for sandbox.

    Add support for finding the base address of the text region (at least on
    Linux) and use that to set the relocation offset. This makes the output
    better:

    initcall sequence 0000560775957c80 failed at call 0000000000048134 (err=-96)

    Then you use can use grep to see which init call failed, e.g.:

    $ grep 0000000000048134 u-boot.map
    stdio_add_devices

    Of course another option is to run it with a debugger such as gdb:

    $ gdb u-boot
    ...
    (gdb) br initcall.h:41
    Breakpoint 1 at 0x4db9d: initcall.h:41. (2 locations)

    Note that two locations are reported, since this function is used in both
    board_init_f() and board_init_r().

    (gdb) r
    Starting program: /tmp/b/sandbox/u-boot
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

    U-Boot 2018.09-00264-ge0c2ba9814-dirty (Sep 22 2018 - 12:21:46 -0600)

    DRAM: 128 MiB
    MMC:

    Breakpoint 1, initcall_run_list (init_sequence=0x5555559619e0 )
    at /scratch/sglass/cosarm/src/third_party/u-boot/files/include/initcall.h:41
    41 printf("initcall sequence %p failed at call %p (err=%d)\n",
    (gdb) print *init_fnc_ptr
    $1 = (const init_fnc_t) 0x55555559c114
    (gdb)

    Signed-off-by: Simon Glass

    Simon Glass
     

23 Apr, 2019

1 commit

  • When fixing sandbox test for regmap_read_poll_timeout(), the
    sandbox_timer_add_offset was introduced but only defined in sandbox code
    thus generating warnings when used out of sandbox :

    include/regmap.h:289:2: note: in expansion of macro 'regmap_read_poll_timeout_test'
    regmap_read_poll_timeout_test(map, addr, val, cond, sleep_us, \
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    drivers/spi/meson_spifc.c:169:8: note: in expansion of macro 'regmap_read_poll_timeout'
    ret = regmap_read_poll_timeout(spifc->regmap, REG_SLAVE, data,
    ^~~~~~~~~~~~~~~~~~~~~~~~
    drivers/spi/meson_spifc.c: In function 'meson_spifc_txrx':
    include/regmap.h:277:4: warning: implicit declaration of function 'sandbox_timer_add_offset' [-Wimplicit-function-declaration]

    This fix adds a timer_test_add_offset() only defined in sandbox, and
    renames the previous sandbox_timer_add_offset() to it.

    Cc: Simon Glass
    Reported-by: Tom Rini
    Fixes: df9cf1cc08 ("test: dm: regmap: Fix the long test delay")
    Signed-off-by: Neil Armstrong
    Reviewed-by: Simon Glass

    Neil Armstrong
     

26 Nov, 2018

1 commit


21 Nov, 2018

3 commits


30 Sep, 2018

1 commit


10 Aug, 2018

1 commit


07 May, 2018

2 commits

  • 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
     
  • Signed-off-by: Trevor Woerner

    Trevor Woerner
     

19 Feb, 2018

1 commit

  • To debug device tree issues involving 32- and 64-bit platforms, it is useful to
    have a generic 64-bit platform available.

    Add a version of the sandbox that uses 64-bit integers for its physical
    addresses as well as a modified device tree.

    Signed-off-by: Mario Six
    Added CONFIG_SYS_TEXT_BASE to configs/sandbox64_defconfig
    Signed-off-by: Simon Glass

    Mario Six
     

15 Sep, 2017

1 commit


12 Sep, 2017

1 commit


12 Jul, 2017

1 commit


01 Jun, 2017

1 commit


19 Sep, 2016

1 commit


26 Jul, 2016

1 commit


15 Jul, 2016

1 commit

  • It is useful to be able to build SPL for sandbox. It provides additional
    build coverage and allows SPL features to be tested in sandbox. However
    it does not need worthwhile to always create an SPL build. It nearly
    doubles the build time and the feature is (so far) seldom used.

    So for now, create a separate build target for sandbox SPL. This allows
    experimentation with this new feature without impacting existing workflows.

    Signed-off-by: Simon Glass

    Simon Glass
     

28 May, 2016

1 commit


17 May, 2016

1 commit


15 Apr, 2016

1 commit


21 Jan, 2016

1 commit


20 Nov, 2015

1 commit


06 May, 2015

1 commit


19 Apr, 2015

4 commits

  • Since driver model will probe the EC when it is first used, we do not
    need to init it explicitly.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The 'lo' interface on Linux doesn't support thinks like ARP or
    link-layer access like we use to talk to a normal network interface.
    A higher-level network API must be used to access localhost.

    As written, this interface is limited to not supporting ICMP since the
    API doesn't allow the socket to be opened for all IP traffic and be able
    to receive at the same time. UDP is far more useful to test with, so it
    was selected over ICMP. Ping won't work, but things like TFTP should
    work.

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

    Joe Hershberger
     
  • Implement a bridge between U-Boot's network stack and Linux's raw packet
    API allowing the sandbox to send and receive packets using the host
    machine's network interface.

    This raw Ethernet API requires elevated privileges. You can either run
    as root, or you can add the capability needed like so:

    sudo /sbin/setcap "CAP_NET_RAW+ep" /path/to/u-boot

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

    Joe Hershberger
     
  • Add basic network support to sandbox which includes a network driver.

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

    Joe Hershberger
     

31 Jan, 2015

1 commit


22 Sep, 2014

1 commit


30 Jul, 2014

1 commit

  • We have switched to Kconfig and the boards.cfg file is going to
    be removed. We have to retrieve the board status and maintainers
    information from it.

    The MAINTAINERS format as in Linux Kernel would be nice
    because we can crib the scripts/get_maintainer.pl script.

    After some discussion, we chose to put a MAINTAINERS file under each
    board directory, not the top-level one because we want to collect
    relevant information for a board into a single place.

    TODO:
    Modify get_maintainer.pl to scan multiple MAINTAINERS files.

    Signed-off-by: Masahiro Yamada
    Suggested-by: Tom Rini
    Acked-by: Simon Glass

    Masahiro Yamada
     

17 May, 2014

1 commit

  • Because sandbox is not a real hardware, setting vendor=sandbox is
    almost meaningless.

    This commit sets sandbox's vendor field to '-'.

    It is a good thing that it decreases one level directory hierarchy.
    The files board/sandbox/sandbox/* have been moved to board/sandbox/*.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass
    Tested-by: Simon Glass

    Masahiro Yamada