- 08 12月, 2017 1 次提交
-
-
由 Simon Glass 提交于
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 47b98ad0. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 09 10月, 2017 1 次提交
-
-
由 Heinrich Schuchardt 提交于
Realloc does not free the old memory area if it fails. Identified by cppcheck. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 29 7月, 2017 1 次提交
-
-
由 Masahiro Yamada 提交于
They are unused since commit d8c6fb8c ("sandbox: Drop special case console code for sandbox"). Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 09 6月, 2017 1 次提交
-
-
由 Tom Rini 提交于
In os_dirent_get_typename() we are checking that type falls within the known values of the enum os_dirent_t. With clang-3.8 testing this value as being >= 0 results in a warning as it will always be true. This assumes of course that we are only given valid data. Given that we want to sanity check the input, we change this to check that it falls within the range of the first to the last entry in the given enum. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: NTom Rini <trini@konsulko.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 12 10月, 2016 4 次提交
-
-
由 Stefan Brüns 提交于
The "hostfs ls" command prefixes each directory entry with either DIR, LNK or " " if it is a directory, symlink resp. regular file, or "???" for any other or unknown type. The latter only works if the type is set correctly, as the entry defaults to OS_FILET_REG and e.g. socket files show up as regular files. Signed-off-by: NStefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Stefan Brüns 提交于
Using readdir_r limits the maximum file name length and may even be unsafe, and is thus deprecated in since glibc 2.24. Signed-off-by: NStefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Stefan Brüns 提交于
The readdir linux manpage explicitly states (quoting POSIX.1) that sizeof(d_name) is not correct for determining the required size, but to always use strlen. Grow the buffer if needed. Signed-off-by: NStefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Stefan Brüns 提交于
Previously, after reading/creating the second dirent, the second entry would be chained to the first entry and the first entry would be linked to head. Instead, immediately link the first entry to head. Signed-off-by: NStefan Brüns <stefan.bruens@rwth-aachen.de> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 15 7月, 2016 1 次提交
-
-
由 Simon Glass 提交于
SPL is expected to load and run U-Boot. This needs to work with sandbox also. Provide a function to locate the U-Boot image, and another to start it. This allows SPL to function on sandbox as it does on other archs. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 04 6月, 2015 1 次提交
-
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Reviewed-by: NJoe Hershberger <joe.hershberger@ni.com>
-
- 06 5月, 2015 1 次提交
-
-
由 Simon Glass 提交于
Add a function to read the system time into U-Boot. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 27 11月, 2014 1 次提交
-
-
由 Simon Glass 提交于
This fixes the following two problems: cppcheck reports: [arch/sandbox/cpu/start.c:132]: (error) Uninitialized variable: err [arch/sandbox/cpu/os.c:371]: (error) Memory leak: fname Signed-off-by: NSimon Glass <sjg@chromium.org> Reported-by: NWolfgang Denk <wd@denx.de>
-
- 23 11月, 2014 1 次提交
-
-
由 Suriyan Ramasami 提交于
Change the internal sandbox functions to use loff_t for file offsets. Signed-off-by: NSuriyan Ramasami <suriyan.r@gmail.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 24 6月, 2014 1 次提交
-
-
由 Stephen Warren 提交于
Each node in the linked-list that os_dirent_ls() returns has its next pointer set only when the next node is created. For the last node in the list, there is no next node, so this never happens, and the next pointer is never initialized. Explicitly initialize the next pointer so that it isn't dangling. Without this, "sb ls" might crash. Signed-off-by: NStephen Warren <swarren@nvidia.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
- 18 3月, 2014 3 次提交
-
-
由 Simon Glass 提交于
When jumping from one sandbox U-Boot to another in sandbox, the RAM buffer is preserved in the jump by using a temporary file. Add an option to tell the receiving U-Boot to remove this file when it is no longer needed. Similarly the old U-Boot image is left behind in this case. We cannot delete it immediately since gdb cannot then find its debug symbols. Delete it just before exiting. Together these changes ensure that temporary files are removed both for memory and U-Boot. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
For some tests it is useful to be able to run U-Boot again but pass on the same memory contents. Add a function to achieve this. Reviewed-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 07 3月, 2014 1 次提交
-
-
由 Stephen Warren 提交于
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: NSimon Glass <sjg@chromium.org> Signed-off-by: NStephen Warren <swarren@wwwdotorg.org>
-
- 25 1月, 2014 1 次提交
-
-
由 Masahiro Yamada 提交于
The function os_free() returns nothing. Its return type should be "void" rather than "void *". Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
-
- 09 1月, 2014 3 次提交
-
-
由 Simon Glass 提交于
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: NSimon Glass <sjg@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 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: NSimon Glass <sjg@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Implement realloc() and free() for sandbox, by adding a header to each block which contains the block size. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NChe-Liang Chiou <clchiou@chromium.org> Reviewed-by: NHung-ying Tyan <tyanh@chromium.org>
-
- 10 12月, 2013 1 次提交
-
-
由 Simon Glass 提交于
The new name is longer but more clearly related to sandbox. This is in a separate patch within the same series since some comments on the SPI series rely on it. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NHung-ying Tyan <tyanh@chromium.org>
-
- 22 11月, 2013 1 次提交
-
-
由 Simon Glass 提交于
The uint64_t type is defined in linux/types.h, so is safer than u64, which is not actually a Linux type. Change-Id: Ifc9a369e6543250c49117b8d3cb3a676eee43e04 Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 24 7月, 2013 1 次提交
-
-
由 Wolfgang Denk 提交于
Signed-off-by: NWolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: NTom Rini <trini@ti.com>
-
- 26 6月, 2013 1 次提交
-
-
由 Simon Glass 提交于
Support tracing on sandbox by adding suitable CONFIG options. To enable it, compile U-Boot with FTRACE=1. The timer functions are marked to skip tracing, since these are called from the tracing code itself, and we want to avoid an infinite loop. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 05 3月, 2013 1 次提交
-
-
由 Simon Glass 提交于
This implementation uses opendir()/readdir() to access the directory information and then puts it in a linked list for the caller's use. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NTom Rini <trini@ti.com>
-
- 01 3月, 2013 1 次提交
-
-
由 Taylor Hutt 提交于
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: NTaylor Hutt <thutt@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 12 3月, 2012 5 次提交
-
-
由 Simon Glass 提交于
This adds simple command-line parsing to sandbox. The idea is that it sets up the state with options provided, and this state can then be queried later, as needed. New flags are declared with the SB_CMDLINE_OPT_SHORT helper macro, pointers are automatically gathered up in a special section, and then the core code takes care of gathering them up and processing at runtime. This way there is no central place where we have to store a list of flags with ifdefs. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Simon Glass 提交于
This provides a way for callers to create files for writing. The flags are translated at runtime, for the ones we support. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Mike Frysinger 提交于
Follow up patches want to be able to seek fd's. Acked-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Simon Glass 提交于
We should include the sys/time.h header to avoid warnings. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Simon Glass 提交于
Tidy this up as the list is long and likely to get longer. Signed-off-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 11 12月, 2011 2 次提交
-
-
由 Matthias Weisser 提交于
Making sleep command work Signed-off-by: NMatthias Weisser <weisserm@arcor.de> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
由 Matthias Weisser 提交于
Using mmap to allocate memory from the OS for RAM simulation we can use u-boot own malloc implementation. Tested-by: NSimon Glass <sjg@chromium.org> Signed-off-by: NMatthias Weisser <weisserm@arcor.de> Signed-off-by: NMike Frysinger <vapier@gentoo.org>
-
- 04 11月, 2011 1 次提交
-
-
由 Mike Frysinger 提交于
This allows us to act like a serial device: we get tab chars and CTRL+C and respond appropriately. Signed-off-by: NMike Frysinger <vapier@gentoo.org> Tested-by: NSimon Glass <sjg@chromium.org>
-
- 18 10月, 2011 2 次提交
-
-
由 Simon Glass 提交于
We want to keep all OS-dependent code in once place, with a simple interface to U-Boot. For now, this is that place. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This adds basic files for the sandbox board. The lds file is very simple since we can rely mostly on the linker defaults. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 13 4月, 2010 1 次提交
-
-
由 Peter Tyser 提交于
Signed-off-by: NPeter Tyser <ptyser@xes-inc.com>
-
- 15 1月, 2008 1 次提交
-
-
由 Yoshihiro Shimoda 提交于
Signed-off-by: NYoshihiro Shimoda <shimoda.yoshihiro@renesas.com> CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Acked-by: NNobuhiro Iwamatsu <iwamatsu@nigauri.org>
-