- Aug 09, 2012
-
-
Simon Glass authored
Any environment variable can hold commands to be executed by the 'run' command. The environment variables preboot, bootcmd and menucmd have special code for triggering execution in certain circumstances. We adjust these calls to use run_command_list() instead of run_command(). This change permits these variables to have embedded newlines so that they work the same as the 'source' command. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This new function runs a list of commands separated by semicolon or newline. We move this out of cmd_source so that it can be used by other code. The PXE code also uses the new function. Suggested-by:
Michael Walle <michael@walle.cc> Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Aug 06, 2012
-
-
David du Colombier authored
This fix prevents env_import() CRC to fail when CONFIG_ENV_SIZE is not equal to 4096 bytes It also prevents mtd->read and mtd->write to be incomplete when the environment is larger than 4096 bytes. Signed-off-by:
David du Colombier <0intro@gmail.com>
-
- Jul 31, 2012
-
-
Holger Brunck authored
If we switch to a different i2c bus in changing the mux config for the i2c mux, we have to be sure to deblock the bus also before realocation. Signed-off-by:
Holger Brunck <holger.brunck@keymile.com> cc: Heiko Schocher <hs@denx.de> cc: Valentin Longchamp <valentin.longchamp@keymile.com>
-
- Jul 18, 2012
-
-
Stefan Herbrechtsmeier authored
The commit 5dd95cf9 'usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM' introduce a bug in usb_storage as it wrongly assumes that every transfer can use 4096 bytes per qt_buffer. This is wrong if the start address of the data is not page aligned to 4096 bytes and leads to 'EHCI timed out on TD' messages because of 'out of buffer pointers' in ehci_td_buffer function. The bug appears during load of a fragmented file and read from or write to an unaligned memory address. Cc: Marek Vasut <marex@denx.de> Signed-off-by:
Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
-
Ilya Yanok authored
Return values of submit_{control,bulk}_msg() functions should be checked to detect possible error. Signed-off-by:
Ilya Yanok <ilya.yanok@cogentembedded.com>
-
Ilya Yanok authored
usb_get_descriptor passes it's buffer argument directly to usb_control_msg() so it has to be properly aligned/padded. Signed-off-by:
Ilya Yanok <ilya.yanok@cogentembedded.com>
-
- Jul 10, 2012
-
-
Nikita Kiryanov authored
No functional changes Signed-off-by:
Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by:
Igor Grinberg <grinberg@compulab.co.il>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 09, 2012
-
-
Stephen Warren authored
This can be useful for generic scripts. For example, rather than hard- coding a script to ext2load tegra-harmony.dtb, it could load ${soc}-${board}.dtb and hence not need adjustments to run on multiple boards. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Acked-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
- Jul 07, 2012
-
-
Stefan Roese authored
This is needed for the SPEAr SPL support, as SPEAr uses the mkimage header to wrap and validate the images (SPL & U-Boot). Signed-off-by:
Stefan Roese <sr@denx.de>
-
Stephen Warren authored
This allows MMC drivers to perform cache flusing on the bufffers without issue. Signed-off-by:
Stephen Warren <swarren@nvidia.com> Cc: Andy Fleming <afleming@gmail.com> Signed-off-by:
Tom Warren <twarren@nvidia.com>
-
- Jun 21, 2012
-
-
Rob Herring authored
Add a new command "sysboot" which parses syslinux menu files and boots using kernel and initrd specified by menu files. The operation is similar to "pxe boot" except local files on ext2 or fat filesystem are parsed. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
For syslinux, the initrd can be set in the append string as "initrd=<file>", so try to find it there if we haven't already set the initrd. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
If the file path starts with a '/', then don't pre-pend the bootfile path. This fixes a problem with running 'pxe boot' multiple times where the bootfile path gets pre-pended to itself each time. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
Kernels can be specified using "linux" or "kernel" entry. The difference is kernel is supposed to detect the type of file, but for u-boot both are treated the same. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
Use a menu string if present, otherwise use the kernel string. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
Include files outside of a menu were not getting included and parsed. Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Rob Herring authored
Make the menu timeout apply only when prompt flag is set and after the menu is displayed. This allows auto boot to work no matter whether prompt is set or cleared. Use the default selection if the menu times out. This also fixes the timeout value given to readline_into_buffer to be seconds instead of 10th of seconds. Old behavior: if prompt display menu and wait for choice else wait for timeout if key pressed display menu and wait for choice else exit command New behavior: if prompt display menu if key pressed wait for choice else boot default entry on timeout else boot default entry Signed-off-by:
Rob Herring <rob.herring@calxeda.com>
-
Marek Vasut authored
This driver is unused and obsolete. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: unsik Kim <donari75@gmail.com>
-
- Jun 20, 2012
-
-
Tom Rini authored
Exactly one board has defined CONFIG_SYS_PROMPT_HUSH_PS2 to a value different than "> " which is vision2. I have Cc'd the maintainer here as I strongly suspect this is a bug rather than intentional behavior. Cc: Stefano Babic <sbabic@denx.de> Signed-off-by:
Tom Rini <trini@ti.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Jun 19, 2012
-
-
Mike Frysinger authored
Simplify the code slightly by using a for() loop since this is basically what we're already doing -- incrementing "ngood" to the value in "count". Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Not only does the source code get simpler, but it also shrinks the compiled object code too. While we're here, tweak the summary message to avoid the plural issue. It isn't that big of a deal, and it's currently wrong anyways in the single (1 byte) case: Total of 1 byte were the same Grammar wise, that should be "was" rather than "were". The new output people should be able to easily figure out: Total of 1 byte(s) were the same Total of 10 byte(s) were the same Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Mike Frysinger authored
Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jun 08, 2012
-
-
Steve Sakoman authored
Commit 418396e2 introduced a bug that causes nand read and nand write to crash in strcmp due to a null pointer. Root cause is that strchr(cmd, '.') returns a null pointer when the input string does not contain a '.' The strcmp function does not check for null pointers, resulting in a crash. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Scott Wood <scott@tyr.buserror.net>
-
- May 25, 2012
-
-
Donghwa Lee authored
This patch supports drawing 32bpp decompressed bitmap image. Signed-off-by:
Donghwa Lee <dh09.lee@samsung.com> Signed-off-by:
Kyungmin.park <kyungmin.park@samsung.com>
-
Anatolij Gustschin authored
Drop ifdef around bitmap_plot(). Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Anatolij Gustschin authored
Move CONFIG_LCD_LOGO && !CONFIG_LCD_INFO_BELOW_LOGO ifdefs to lcd_drawchars() func. Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Anatolij Gustschin authored
Use available macro for obtaining the size of bmp_logo_palette[] Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Anatolij Gustschin authored
Currently bmp_display() is static and can not be used directly in the driver or board code. Export it for other users. Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- May 23, 2012
-
-
Joe Hershberger authored
Code based on networking/zcip.c in busybox commit 8531d76a15890c2c535908ce888b2e2aed35b172 Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Joe Hershberger authored
Before this patch, bootp would not overwrite the value, but the value was still clobbered in the env Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com>
-
- May 22, 2012
-
-
Anatolij Gustschin authored
cmd_nand.c: In function 'raw_access': cmd_nand.c:397:9: warning: variable 'rwsize' set but not used [-Wunused-but-set-variable] Signed-off-by:
Anatolij Gustschin <agust@denx.de> Cc: Scott Wood <scottwood@freescale.com>
-
Anatolij Gustschin authored
cmd_nvedit.c: In function '_do_env_set': cmd_nvedit.c:207:9: warning: unused variable 'bd' [-Wunused-variable] Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Anatolij Gustschin authored
cmd_bootm.c: In function 'do_bootz': cmd_bootm.c:1590:9: warning: variable 'iflag' set but not used [-Wunused-but-set-variable] Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- May 20, 2012
-
-
Puneet Saxena authored
This avoids cache-alignment warnings shown in console when a usb command is entered. Whenever X bytes of unaligned buffer is invalidated, arm core invalidates X + Y bytes as per the cache line size and throws these warnings. Signed-off-by:
Puneet Saxena <puneets@nvidia.com> Signed-off-by:
Marek Vasut <marex@denx.de>
-
Mike Frysinger authored
Building usb for Blackfin boards fails as we get linux/compiler.h included which expands the "noinline" inside of the attribute and we get attribute(attribute(noinline)). Explicitly use the helper define to avoid this. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- May 18, 2012
-
-
Scott Wood authored
A use for this is to read, modify, erase, and write an entire block as a single unit, as a replacement for the biterr command. This way gives more flexibility in that you can also test multiple bit errors, errors in the ECC, etc. Signed-off-by:
Scott Wood <scottwood@freescale.com>
-
- May 15, 2012
-
-
Mike Frysinger authored
This field gets read in one place (by "bdinfo"), and we can replace that with getenv("ipaddr"). After all, the bi_ip_addr field is kept up-to-date implicitly with the value of the ipaddr env var. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Reviewed-by:
Joe Hershberger <joe.hershberger@ni.com>
-
Joe Hershberger authored
Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Acked-by:
Simon Glass <sjg@chromium.org>
-