| c39d6a0e | 14-Mar-2013 |
Tom Rini <trini@ti.com> |
nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters
We make these two functions take a size_t pointer to how much space was used on NAND to read or write the buffer (when reads
nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters
We make these two functions take a size_t pointer to how much space was used on NAND to read or write the buffer (when reads/writes happen) so that bad blocks can be accounted for. We also make them take an loff_t limit on how much data can be read or written. This means that we can now catch the case of when writing to a partition would exceed the partition size due to bad blocks. To do this we also need to make check_skip_len count not just complete blocks used but partial ones as well. All callers of nand_(read|write)_skip_bad are adjusted to call these with the most sensible limits available.
The changes were started by Pantelis and finished by Tom.
Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com> Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 381c6e2c | 07-Apr-2013 |
Mingkai Hu <Mingkai.hu@freescale.com> |
cmd_sf: include header file common.h before div64.h
The header file div64.h includes <asm/types.h> which defines the phys_addr_t according to the macro CONFIG_PHYS_64BIT, while the macro CONFIG_PHYS
cmd_sf: include header file common.h before div64.h
The header file div64.h includes <asm/types.h> which defines the phys_addr_t according to the macro CONFIG_PHYS_64BIT, while the macro CONFIG_PHYS_64BIT is included in common.h which comes after div64.h, so in order to get consistent type definition for phys_addr_t, common.h should be included before div64.h, Or else, the parameters of phys_addr_t type will be passed wrongly when CONFIG_PHYS_64BIT is defined.
Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
show more ...
|
| a6142706 | 04-Apr-2013 |
York Sun <yorksun@freescale.com> |
common/cmd_test: Avoid macro expansion
cmd_test.c adds "true" and "false" as new commands. We need to avoid macro expansion for U_BOOT_CMD.
Signed-off-by: York Sun <yorksun@freescale.com> |
| cd0f4fa1 | 05-Apr-2013 |
Tom Rini <trini@ti.com> |
Revert "env: fix potential stack overflow in environment functions"
Wolfgang requested this be reverted and Rob agreed after further discussion. This was a symptom of a larger problem we need to de
Revert "env: fix potential stack overflow in environment functions"
Wolfgang requested this be reverted and Rob agreed after further discussion. This was a symptom of a larger problem we need to deal with.
This reverts commit 60d7d5a63189c9f77a190c9965861dc15482c2d0.
Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| fed029f3 | 04-Apr-2013 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' |
| 9fd38372 | 01-Apr-2013 |
Stephen Warren <swarren@nvidia.com> |
mmc: don't allow extra cmdline arguments
The "mmc rescan" command takes no arguments. However, executing "mmc rescan 1" succeeds, leading the user to believe that MMC device 1 has been rescanned. In
mmc: don't allow extra cmdline arguments
The "mmc rescan" command takes no arguments. However, executing "mmc rescan 1" succeeds, leading the user to believe that MMC device 1 has been rescanned. In fact, the "current" MMC device has been rescanned, and the current device may well not be 1. Add error-checking to the "mmc" command to explicitly reject any extra command-line arguments so that it's more obvious when U-Boot isn't doing what the user thought they asked it to.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| 60d7d5a6 | 22-Mar-2013 |
Rob Herring <rob.herring@calxeda.com> |
env: fix potential stack overflow in environment functions
Most of the various environment functions create CONFIG_ENV_SIZE buffers on the stack. At least on ARM and PPC which have 4KB stacks, this
env: fix potential stack overflow in environment functions
Most of the various environment functions create CONFIG_ENV_SIZE buffers on the stack. At least on ARM and PPC which have 4KB stacks, this can overflow the stack if we have large environment sizes. So move all the buffers off the stack to static buffers.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 472d5460 | 01-Apr-2013 |
York Sun <yorksun@freescale.com> |
Consolidate bool type
'bool' is defined in random places. This patch consolidates them into a single header file include/linux/types.h, using stdbool.h introduced in C99.
All other #define, typedef
Consolidate bool type
'bool' is defined in random places. This patch consolidates them into a single header file include/linux/types.h, using stdbool.h introduced in C99.
All other #define, typedef and enum are removed. They are all consistent with true = 1, false = 0.
Replace FALSE, False with false. Replace TRUE, True with true. Skip *.py, *.php, lib/* files.
Signed-off-by: York Sun <yorksun@freescale.com>
show more ...
|
| 56443694 | 31-Mar-2013 |
Tom Rini <trini@ti.com> |
Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging |
| 1d3dea12 | 29-Mar-2013 |
Anatolij Gustschin <agust@denx.de> |
video: bcm2835: fix build issues
After merging LCD patches for v2013.04 the bcm2835 video driver building is broken due to removal of many global variables. Fix the driver.
Signed-off-by: Anatolij
video: bcm2835: fix build issues
After merging LCD patches for v2013.04 the bcm2835 video driver building is broken due to removal of many global variables. Fix the driver.
Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Stephen Warren <swarren@wwwdotorg.org>
show more ...
|
| d0f34f10 | 29-Mar-2013 |
Anatolij Gustschin <agust@denx.de> |
Merge branch 'for-v2013.04'
Conflicts: drivers/video/Makefile
Signed-off-by: Anatolij Gustschin <agust@denx.de> |
| 1f9c9280 | 20-Mar-2013 |
Akshay Saraswat <akshay.s@samsung.com> |
gen: Add sha h/w acceleration to hash
Adding H/W acceleration support to hash which can be used to test SHA 256 hash algorithm.
Signed-off-by: ARUN MANKUZHI <arun.m@samsung.com> Signed-off-by: Aksh
gen: Add sha h/w acceleration to hash
Adding H/W acceleration support to hash which can be used to test SHA 256 hash algorithm.
Signed-off-by: ARUN MANKUZHI <arun.m@samsung.com> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e7abe919 | 23-Mar-2013 |
Pali Rohár <pali.rohar@gmail.com> |
New command bootmenu: ANSI terminal boot menu support
The "bootmenu" command uses U-Boot menu interfaces and provides a simple mechanism for creating menus with several boot items. When running this
New command bootmenu: ANSI terminal boot menu support
The "bootmenu" command uses U-Boot menu interfaces and provides a simple mechanism for creating menus with several boot items. When running this command the menu will be assembled as defined by a set of environment variables which contain a title and command key-value pairs. The "Up" and "Down" keys are used for navigation through the items. Current active menu item is highlighted and can be selected using the "Enter" key.
The command interprets and generates various ANSI escape sequencies, so for proper menu rendering and item selection the used terminal should support them.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com> [agust: various fixes and documentation updates] Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|
| 6a3439fd | 23-Mar-2013 |
Anatolij Gustschin <agust@denx.de> |
menu: export menu_default_choice() function
Checking the default menu item and obtaining its data can be useful in custom menu code. Export menu_default_choice() function which serves this purpose.
menu: export menu_default_choice() function
Checking the default menu item and obtaining its data can be useful in custom menu code. Export menu_default_choice() function which serves this purpose.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|
| fc9d64ff | 23-Mar-2013 |
Pali Rohár <pali.rohar@gmail.com> |
menu: Add support for user defined item choice function
Selecting menu items is currently done in menu_interactive_choice() by reading the user input strings from standard input.
Extend menu_intera
menu: Add support for user defined item choice function
Selecting menu items is currently done in menu_interactive_choice() by reading the user input strings from standard input.
Extend menu_interactive_choice() to support user defined function for selecting menu items. This function and its argument can be specified when creating the menu.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|
| 009d75cc | 28-Mar-2013 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot/master' into 'u-boot-arm/master'
Conflicts: drivers/spi/tegra20_sflash.c include/fdtdec.h lib/fdtdec.c |
| 04d41409 | 20-Mar-2013 |
Steven Stallion <sstallion@gmail.com> |
image: Add support for Plan 9
Signed-off-by: Steven Stallion <sstallion@gmail.com> Cc: Tom Rini <trini@ti.com> Reviewed-by: Tom Rini <trini@ti.com> |
| 0171d52c | 20-Mar-2013 |
Tom Rini <trini@ti.com> |
cmd_ext4: BREAK and correct ext4write parameter order
The ext4write command was taking the in-memory address and filename path in reverse order from the rest of the filesystem read and write command
cmd_ext4: BREAK and correct ext4write parameter order
The ext4write command was taking the in-memory address and filename path in reverse order from the rest of the filesystem read and write commands. This corrects the order to be the same as fatload, etc.
Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 268d966d | 12-Mar-2013 |
Tom Rini <trini@ti.com> |
env_callback: Mark find_env_callback as static
This is not called outside of env_callback.c so mark static, remove from <env_callback.h>
Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by:
env_callback: Mark find_env_callback as static
This is not called outside of env_callback.c so mark static, remove from <env_callback.h>
Cc: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Tom Rini <trini@ti.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 412665b4 | 26-Mar-2013 |
Albert ARIBAUD <albert.u.boot@aribaud.net> |
Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master' |
| 317461c1 | 13-Feb-2013 |
Andre Renaud <andre@bluewatersys.com> |
Fix bitmap offsets for non 8-bit LCDs
Currently bitmap logos don't interpret the X coordinate correctly if the bpp is anything other than 8.
Signed-off-by: Andre Renaud <andre@bluewatersys.com> |
| a5796c51 | 12-Jan-2013 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common/lcd.c: move the macro's to the c file
Hide the console macros since some reference global data which is no longer present.
cc: Anatolij Gustschin <agust@denx.de> Signed-off-by: Jeroen Hofste
common/lcd.c: move the macro's to the c file
Hide the console macros since some reference global data which is no longer present.
cc: Anatolij Gustschin <agust@denx.de> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
show more ...
|
| 6b035141 | 12-Jan-2013 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common/lcd: cosmetic: clean up a bit
- Make the brackets of the function calls more consistent - Remove really unnecessary brackets - Removes the extern from the function definitions - Remove cu
common/lcd: cosmetic: clean up a bit
- Make the brackets of the function calls more consistent - Remove really unnecessary brackets - Removes the extern from the function definitions - Remove curly brackets from single line statements - Remove lcd_setmem proto since it is already in common.h - Cleanup comments, remove useless comments - Remove NOT_USED_SO_FAR ifdef - Cleanup coding style
cc: Anatolij Gustschin <agust@denx.de> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> [agust: rebased the original patch] Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|
| 00a0ca59 | 22-Jan-2013 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common/lcd.c: remove global lcd_base
lcd_base is available as gd->fb_base as well, there is no need to keep a seperate copy.
For completeness the ack of Bo Shen is for the atmel part. Cc: Alessandr
common/lcd.c: remove global lcd_base
lcd_base is available as gd->fb_base as well, there is no need to keep a seperate copy.
For completeness the ack of Bo Shen is for the atmel part. Cc: Alessandro Rubini <rubini@unipv.it> Cc: Anatolij Gustschin <agust@denx.de> Cc: Bo Shen <voice.shen@atmel.com> Cc: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Simon Glass <sjg@chromium.org> Cc: Stelian Pop <stelian@popies.net> Cc: Tom Warren <twarren@nvidia.com> Acked-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> [agust: also fix cm_t35 board while rebasing] Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|
| f1d205a1 | 22-Jan-2013 |
Jeroen Hofstee <jeroen@myspectrum.nl> |
common/lcd.c: cleanup use of global variables
console_col, console_row, lcd_line_length, lcd_console_address had to be declared in board / driver specific code, but were not actually used there on m
common/lcd.c: cleanup use of global variables
console_col, console_row, lcd_line_length, lcd_console_address had to be declared in board / driver specific code, but were not actually used there on many boards. Get rid of the global variables.
for completeness, the ack of Bo Shen is for the atmel part Cc: Alessandro Rubini <rubini@unipv.it> Cc: Anatolij Gustschin <agust@denx.de> Cc: Bo Shen <voice.shen@atmel.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Simon Glass <sjg@chromium.org> Cc: Stelian Pop <stelian@popies.net> Cc: Tom Warren <twarren@nvidia.com> Acked-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> [agust: rebased and fixed cm_t35 board] Signed-off-by: Anatolij Gustschin <agust@denx.de>
show more ...
|