| 246c6922 | 25-Oct-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Add 'editenv' command
The editenv command can be used to edit an environment variable. Editing an environment variable is useful when one wants to tweak an existing variable, for example fix a typo
Add 'editenv' command
The editenv command can be used to edit an environment variable. Editing an environment variable is useful when one wants to tweak an existing variable, for example fix a typo or change the baudrate in the 'bootargs' environment variable.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| b0fa8e50 | 25-Oct-2009 |
Peter Tyser <ptyser@xes-inc.com> |
setenv(): Delete 0-length environment variables
Previously setenv() would only delete an environment variable if it was passed a NULL string pointer as a value. It should also delete an environment
setenv(): Delete 0-length environment variables
Previously setenv() would only delete an environment variable if it was passed a NULL string pointer as a value. It should also delete an environment variable when it encounters a valid string pointer of 0-length.
This change/fix is generally useful and is necessary for the upcoming "editenv" command.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| ecc5500e | 25-Oct-2009 |
Peter Tyser <ptyser@xes-inc.com> |
readline(): Add ability to modify a string buffer
If the 'buf' parameter is a non-0-length string, its contents will be edited. Previously, the initial contents of 'buf' were ignored and the user e
readline(): Add ability to modify a string buffer
If the 'buf' parameter is a non-0-length string, its contents will be edited. Previously, the initial contents of 'buf' were ignored and the user entered its contents from scratch.
This change is necessary to support the upcoming "editenv" command but could also be used for future commands which require a user to modify an existing string.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| e491a71e | 25-Oct-2009 |
Peter Tyser <ptyser@xes-inc.com> |
Check for NULL prompt in readline_into_buffer()
Previously, passing readline() or readline_into_buffer() a NULL 'prompt' parameter would result in puts() printing garbage when CONFIG_CMDLINE_EDITING
Check for NULL prompt in readline_into_buffer()
Previously, passing readline() or readline_into_buffer() a NULL 'prompt' parameter would result in puts() printing garbage when CONFIG_CMDLINE_EDITING was enabled.
Note that no board currently triggers this bug. Enabling CONFIG_CMDLINE_EDITING on some boards (eg bab7xx) would result in the bug appearing. This change is only intended to prevent someone from running into this issue in the future.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
show more ...
|
| d535a493 | 22-Oct-2009 |
Kumar Gala <galak@kernel.crashing.org> |
fdt: Fix fdt padding issue for initrd mem_rsv
Its possible that we end up with a device tree that happens to be a particular size that after we call fdt_resize() we don't have any space left for the
fdt: Fix fdt padding issue for initrd mem_rsv
Its possible that we end up with a device tree that happens to be a particular size that after we call fdt_resize() we don't have any space left for the initrd mem_rsv.
Fix this be adding a second mem_rsv into the size calculation. We had one to cover the fdt itself and we have the potential of adding a second for the initrd.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
show more ...
|
| 9c5586aa | 08-Oct-2009 |
Alessandro Rubini <rubini@unipv.it> |
setenv: do console redirection even if previously unset
If "stdout" is not previously set, doing "setenv stdout lcd" had no effect, since console redirection only worked if the environment variable
setenv: do console redirection even if previously unset
If "stdout" is not previously set, doing "setenv stdout lcd" had no effect, since console redirection only worked if the environment variable was already set; the second time you run setenv it worked. Most default environments lack stdin/out/err definitions, so I'm sure I'm not alone with this problem.
This patch simply moves a block of code out of a conditional, to do the same work even if the variable was previously unset.
Signed-off-by: Alessandro Rubini <rubini@unipv.it> Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
show more ...
|
| 87b22b77 | 02-Oct-2009 |
Paul Gortmaker <paul.gortmaker@windriver.com> |
mem_mtest: fix error reporting, allow escape with ^C
The basic memtest function tries to watch for ^C after each pattern pass as an escape mechanism, but if things are horribly wrong, we'll be stuck
mem_mtest: fix error reporting, allow escape with ^C
The basic memtest function tries to watch for ^C after each pattern pass as an escape mechanism, but if things are horribly wrong, we'll be stuck in an inner loop flooding the console with error messages and never check for ^C. To make matters worse, if the user waits for all the error messages to complete, we then incorrectly report the test passed without errors.
Adding a check for ^C after any error is printed will give the end user an escape mechanism from a console flood without slowing down the overall test speed on a slow processor.
Also, the more extensive memtest quit after just a single error, which is inconsistent with the normal memtest, and not useful if if you are doing dynamic environmental impact testing, such as heating/cooling etc.
Both tests now track the error count and report it properly at test completion.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 6dab6add | 30-Sep-2009 |
Mike Frysinger <vapier@gentoo.org> |
env: only build env_embedded and envcrc when needed
The env code is protected by the ENV_IS_EMBEDDED define, so attempting to compile the code when this isn't defined is pointless. Now that the env
env: only build env_embedded and envcrc when needed
The env code is protected by the ENV_IS_EMBEDDED define, so attempting to compile the code when this isn't defined is pointless. Now that the env headers have unified around CONFIG_ENV_IS_EMBEDDED, convert the build system to only build the env objects when this is enabled. And now that the env code is conditionally compiled, we can drop the source code checks.
For people who want to extract the environment manually, add a new option CONFIG_BUILD_ENVCRC that only enables the envcrc utility.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
show more ...
|
| 0630535e | 22-Sep-2009 |
Peter Tyser <ptyser@xes-inc.com> |
arm/microblaze/nios/nios2/sh: Remove relocation fixups
These architectures don't need relocation fixups, so reduce their codesize a bit by defining CONFIG_RELOC_FIXUP_WORKS.
Also remove the reloc_o
arm/microblaze/nios/nios2/sh: Remove relocation fixups
These architectures don't need relocation fixups, so reduce their codesize a bit by defining CONFIG_RELOC_FIXUP_WORKS.
Also remove the reloc_off field from their global data structures as it is no longer needed.
Note that the location of the standalone application jump table pointer in the global data structure is affected by this change, breaking execution of standalone applications compiled for previous versions of U-Boot. We will therefore increment XF_VERSION in the next commit, which also touches this area.
Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|