| 3a8a02be | 30-Mar-2012 |
Simon Glass <sjg@chromium.org> |
Allow newlines within command environment vars
Any environment variable can hold commands to be executed by the 'run' command. The environment variables preboot, bootcmd and menucmd have special cod
Allow newlines within command environment vars
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>
show more ...
|
| d51004a8 | 30-Mar-2012 |
Simon Glass <sjg@chromium.org> |
Add run_command_list() to run a list of commands
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
Add run_command_list() to run a list of commands
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>
show more ...
|
| 034afbcc | 13-Jun-2012 |
David du Colombier <0intro@gmail.com> |
env_onenand: set ONENAND_MAX_ENV_SIZE to CONFIG_ENV_SIZE
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 in
env_onenand: set ONENAND_MAX_ENV_SIZE to CONFIG_ENV_SIZE
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>
show more ...
|
| 948fa171 | 31-Jul-2012 |
Wolfgang Denk <wd@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot-i2c
* 'master' of git://git.denx.de/u-boot-i2c: km/common: remove printfs for i2c deblocking code CONFIG: SMDK5250: I2C: Enable I2C I2C: Add s
Merge branch 'master' of git://git.denx.de/u-boot-i2c
* 'master' of git://git.denx.de/u-boot-i2c: km/common: remove printfs for i2c deblocking code CONFIG: SMDK5250: I2C: Enable I2C I2C: Add support for Multi channel I2C: Modify the I2C driver for EXYNOS5 I2C: Move struct s3c24x0_i2c to a common place. EXYNOS: PINMUX: Add pinmux support for I2C EXYNOS5: define EXYNOS5_I2C_SPACING EXYNOS: Add I2C base address. EXYNOS: CLK: Add i2c clock mx6qsabrelite: add i2c multi-bus support imx-common: add i2c.c for bus recovery support i.mx53: add definition for I2C3_BASE_ADDR i.mx: iomux-v3.c: move to imx-common directory i.mx: iomux-v3.h: move to imx-common include directory iomux-v3: remove include of mx6x_pins.h mxc_i2c: finish adding CONFIG_I2C_MULTI_BUS support mxc_i2c: add bus recovery support mxc_i2c: prep work for multiple busses support mxc_i2c: add i2c_regs argument to i2c_imx_stop mxc_i2c: add retries mxc_i2c: check for arbitration lost mxc_i2c: change slave addr if conflicts with destination. mxc_i2c: don't disable controller after every transaction mxc_i2c: place i2c_reset code inline mxc_i2c: place imx_start code inline mxc_i2c: remove redundant read mxc_i2c: combine i2c_imx_bus_busy and i2c_imx_trx_complete into wait_for_sr_state mxc_i2c.c: code i2c_probe as a 0 length i2c_write mxc_i2c: call i2c_imx_stop on error in i2c_read/i2c_write mxc_i2c: create i2c_init_transfer mxc_i2c: clear i2sr before waiting for bit mxc_i2c: create tx_byte function mxc_i2c: remove ifdef of CONFIG_HARD_I2C mxc_i2c: fix i2c_imx_stop i2c: deblock i2c bus also if accessed before realocation
Signed-off-by: Wolfgang Denk <wd@denx.de>
show more ...
|
| 8ec038a6 | 28-Jun-2012 |
Holger Brunck <holger.brunck@keymile.com> |
i2c: deblock i2c bus also if accessed before realocation
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
i2c: deblock i2c bus also if accessed before realocation
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>
show more ...
|
| 1b4bd0e6 | 09-Jul-2012 |
Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> |
usb_storage: fix ehci driver max transfer size
The commit 5dd95cf93dfffa1d19a1928990852aac9f55b9d9 'usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM' introduce a bug in usb_storage as it w
usb_storage: fix ehci driver max transfer size
The commit 5dd95cf93dfffa1d19a1928990852aac9f55b9d9 '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>
show more ...
|
| fd06028d | 15-Jul-2012 |
Ilya Yanok <ilya.yanok@cogentembedded.com> |
usb: check return value of submit_{control, bulk}_msg
Return values of submit_{control,bulk}_msg() functions should be checked to detect possible error.
Signed-off-by: Ilya Yanok <ilya.yanok@cogent
usb: check return value of submit_{control, bulk}_msg
Return values of submit_{control,bulk}_msg() functions should be checked to detect possible error.
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
show more ...
|
| 80ab414a | 15-Jul-2012 |
Ilya Yanok <ilya.yanok@cogentembedded.com> |
usb: pass cache-aligned buffer to usb_get_descriptor()
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 Yano
usb: pass cache-aligned buffer to usb_get_descriptor()
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>
show more ...
|
| 8f47d917 | 24-May-2012 |
Nikita Kiryanov <nikita@compulab.co.il> |
common lcd: minor coding style changes
No functional changes
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> |
| 3fe63839 | 10-Jul-2012 |
Wolfgang Denk <wd@denx.de> |
Minor Coding Style cleanup
Signed-off-by: Wolfgang Denk <wd@denx.de> |
| 5e724ca2 | 22-May-2012 |
Stephen Warren <swarren@nvidia.com> |
Add env vars describing U-Boot target board
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 an
Add env vars describing U-Boot target board
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>
show more ...
|
| 22b7cfff | 05-Jan-2012 |
Stefan Roese <sr@denx.de> |
SPL: common/Makefile: Add image.c to SPL build
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
SPL: common/Makefile: Add image.c to SPL build
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>
show more ...
|
| 4036b630 | 24-May-2012 |
Stephen Warren <swarren@nvidia.com> |
env_mmc: align buffers using ALLOC_CACHE_ALIGN_BUFFER
This allows MMC drivers to perform cache flusing on the bufffers without issue.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Cc: Andy Fle
env_mmc: align buffers using ALLOC_CACHE_ALIGN_BUFFER
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>
show more ...
|
| 669df7e4 | 25-May-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: add support for parsing local syslinux files
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: add support for parsing local syslinux files
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>
show more ...
|
| 34bd23e4 | 28-Mar-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: parse initrd file from append string
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: R
pxe: parse initrd file from append string
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>
show more ...
|
| 90ba7d7c | 28-Mar-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: support absolute paths
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-pe
pxe: support absolute paths
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>
show more ...
|
| beb9f6c6 | 28-Mar-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: support linux entries for labels
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 s
pxe: support linux entries for labels
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>
show more ...
|
| 7815c4e8 | 28-Mar-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: add support for label menu text
Use a menu string if present, otherwise use the kernel string.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| 1e085226 | 25-May-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: support include files at top-level
Include files outside of a menu were not getting included and parsed.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| 8594753b | 28-Mar-2012 |
Rob Herring <rob.herring@calxeda.com> |
menu: only timeout when menu is displayed
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 c
menu: only timeout when menu is displayed
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>
show more ...
|
| b37d41aa | 04-Mar-2012 |
Marek Vasut <marex@denx.de> |
Block: Remove MG DISK support
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> |
| 219f4788 | 19-Jun-2012 |
Tom Rini <trini@ti.com> |
hush.c: Move default CONFIG_SYS_PROMPT_HUSH_PS2 to hush.c
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 a
hush.c: Move default CONFIG_SYS_PROMPT_HUSH_PS2 to hush.c
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>
show more ...
|
| feb12a1f | 20-Jan-2012 |
Mike Frysinger <vapier@gentoo.org> |
cmd_mem: cmp: convert while() to for() loop
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
cmd_mem: cmp: convert while() to for() loop
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>
show more ...
|
| 054ea170 | 20-Jan-2012 |
Mike Frysinger <vapier@gentoo.org> |
cmd_mem: cmp: unify size code paths
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 issu
cmd_mem: cmp: unify size code paths
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>
show more ...
|
| 9504a551 | 20-Jan-2012 |
Mike Frysinger <vapier@gentoo.org> |
cmd_mem: replace custom PRINTF() with debug()
Signed-off-by: Mike Frysinger <vapier@gentoo.org> |