- Sep 19, 2010
-
-
Wolfgang Denk authored
So far, getenv() would work before relocation is most cases, even though it was not intended to be used that way. When switching to a hash table based implementation, this would break a number of boards. For convenience, we make getenv() check if it's running before relocation and, if so, use getenv_f() internally. Note that this is limited to simple cases, as we use a small static buffer (32 bytes) in the global data for this purpose. For this reason, it is also not a good idea to convert all current uses of getenv_f() into getenv() - some of the existing use cases need to be able to deal with longer variable values, so getenv_f() is still needed and recommended for use before relocation. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
This (undocumented) concept was only in use for the MVSMR and davinci_schmoogie Sergey Kubushyn <ksi@koi8.net> boards. Drop it for now. If really needed, it should be reimplemented later in the context of the new environment command set. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Andre Schwarz <andre.schwarz@matrix-vision.de> Cc: Sergey Kubushyn <ksi@koi8.net> Acked-by:
Sergey Kubushyn <ksi@koi8.net>
-
Wolfgang Denk authored
This implementation is based on code from uClibc-0.9.30.3 but was modified and extended for use within U-Boot. Major modifications and extensions: * hsearch() [modified / extended]: - While the standard version does not make any assumptions about the type of the stored data objects at all, this implementation works with NUL terminated strings only. - Instead of storing just pointers to the original objects, we create local copies so the caller does not need to care about the data any more. - The standard implementation does not provide a way to update an existing entry. This version will create a new entry or update an existing one when both "action == ENTER" and "item.data != NULL". - hsearch_r(): Instead of returning 1 on success, we return the index into the internal hash table, which is also guaranteed to be positive. This allows us direct access to the found hash table slot for example for functions like hdelete(). * hdelete() [added]: - The standard implementation of hsearch(3) does not provide any way to delete any entries from the hash table. We extend the code to do that. * hexport() [added]: - Export the data stored in the hash table in linearized form: Entries are exported as "name=value" strings, separated by an arbitrary (non-NUL, of course) separator character. This allows to use this function both when formatting the U-Boot environment for external storage (using '\0' as separator), but also when using it for the "printenv" command to print all variables, simply by using as '\n" as separator. This can also be used for new features like exporting the environment data as text file, including the option for later re-import. - The entries in the result list will be sorted by ascending key values. * himport() [added]: - Import linearized data into hash table. This is the inverse function to hexport(): it takes a linear list of "name=value" pairs and creates hash table entries from it. - Entries without "value", i. e. consisting of only "name" or "name=", will cause this entry to be deleted from the hash table. - The "flag" argument can be used to control the behaviour: when the H_NOCLEAR bit is set, then an existing hash table will kept, i. e. new data will be added to an existing hash table; otherwise, old data will be discarded and a new hash table will be created. - The separator character for the "name=value" pairs can be selected, so we both support importing from externally stored environment data (separated by NUL characters) and from plain text files (entries separated by newline characters). - To allow for nicely formatted text input, leading white space (sequences of SPACE and TAB chars) is ignored, and entries starting (after removal of any leading white space) with a '#' character are considered comments and ignored. - NOTE: this means that a variable name cannot start with a '#' character. - When using a non-NUL separator character, backslash is used as escape character in the value part, allowing for example fo multi-line values. - In theory, arbitrary separator characters can be used, but only '\0' and '\n' have really been tested. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Code adapted from uClibc-0.9.30.3 Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Needed for hash table support; probably useful in a lot of other places as well. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
On some boards (canyonlands, luan, sequoia) we need more room for the U-Boot image to allow for new features like the new environment code. Shift TEXT_BASE as needed. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by:
Stefan Roese <sr@denx.de>
-
Wolfgang Denk authored
Increase malloc size, enable command line editing and history, enable hush shell. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Traditionally many boards used local definitions for SRAM base address and size (like SRAM_BASE, SRAM_LEN and/or SRAM_SIZE), while the (now) "official" names are CONFIG_SYS_SRAM_BASE and CONFIG_SYS_SRAM_SIZE. The corresponding code in arch/powerpc/lib/board.c was board specific, and has never actually been maintained well. Replace this by feature- specific code and adapt the boards that actually use this. NOTE: there is still a ton of boards using the old #defines, which therefor contain incorrect values in bi_sramstart and bi_sramsize. All respective board maintainers are requested to clean up their respective configurations. Thanks. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Josef Wagner <Wagner@Microsys.de> Cc: Stefan Roese <sr@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
A number of boards define CONFIG_SYS_SRAM_BASE but fail to define CONFIG_SYS_SRAM_SIZE which is needed when cleaning up the code that prints this information with the bdinfo command. Add the missing deinitions. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by:
Stefan Roese <sr@denx.de>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Terry Lv authored
This patch is to save environment data to mmc card. It uses interfaces defined in generic mmc. Signed-off-by:
Terry Lv <r65388@freescale.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Wolfgang Denk authored
We need more room for the U-Boot image. Shift TEXT_BASE as needed. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Commit d2bf29e3 caused a number of compiler warnings: mmc.c: In function 'mmc_bwrite': mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' mmc.c:97: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'lbaint_t' mmc.c: In function 'mmc_bread': mmc.c:229: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int' mmc.c:229: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'lbaint_t' Fix these. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Lei Wen <leiwen@marvell.com>
-
- Sep 18, 2010
-
-
Daniel Hobi authored
Signed-off-by:
Daniel Hobi <daniel.hobi@schmid-telecom.ch>
-
Daniel Hobi authored
In commit bd7b26f8 (Tools: set multiple variable with fw_setenv utility), the option parsing was changed to getopt_long(3), but option "-n" of fw_printenv was not included. This leads to an error message "invalid option -- 'n'" on stderr, although the output on stdout is correct. Signed-off-by:
Daniel Hobi <daniel.hobi@schmid-telecom.ch>
-
Thomas Weber authored
This patch updates the mach-types.h based on the latest linux kernel Signed-off-by:
Thomas Weber <weber@corscience.de>
-
Lei Wen authored
Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
Lei Wen authored
Signed-off-by:
Lei Wen <leiwen@marvell.com>
-
- Sep 15, 2010
-
-
- Sep 13, 2010
-
-
Wolfram Sang authored
Due to a register glitch (result code <4 might show up right after the start-calculation-bit was set), make sure the ECC has really started. See 1c3275b656045aff9a75bb2c9f3251af1043ebb3 in the kernel. Signed-off-by:
Wolfram Sang <w.sang@pengutronix.de> Cc: Sandeep Paulraj <s-paulraj@ti.com>
-
Reinhard Meyer authored
use a union to cause necessary alignment per architecture Signed-off-by:
Reinhard Meyer <u-boot@emk-elektronik.de>
-
- Sep 12, 2010
-
-
Graeme Russ authored
The SC520 CDP boards originally implemented by Daniel Engström are now very broken. Attempts to contact Daniel via the email address on the copyright notice have failed. Remove these boards from mainline
-
Graeme Russ authored
Commit 077e1958 broke the ability of the x86 port to boot from a cold-reset by removing the initial IDT. Re- instate the initial IDT to allow cold-booting of x86 boards
-
Graeme Russ authored
x86 failed to compile with a message "a case for this architecture does not exist!" - Add do_bdinfo() for this arch
-
Graeme Russ authored
Commit 54841ab5 made the argv parameter to do_go_exec() const but did not allow for the fact that argv[-1] is set to point to the global data structure and relies on argv being non- const. With this patch, do_go_exec() creates a new copy of the argv array with an extra element to store global data pointer rather than simply clobbering an arbitrary memory location.
-
- Sep 11, 2010
-
-
Bryan Wu authored
Signed-off-by:
Bryan Wu <bryan.wu@analog.com> Signed-off-by:
Cliff Cai <cliff.cai@analog.com> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Bryan Wu authored
The Blackfin implementation of musb has a TXCOUNT register that needs to be programmed when transmitting data. Signed-off-by:
Bryan Wu <bryan.wu@analog.com> Signed-off-by:
Cliff Cai <cliff.cai@analog.com> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Sep 09, 2010
-
-
Wolfgang Denk authored
Coding style cleanup. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
git://git.denx.de/u-boot-tiWolfgang Denk authored
-
- Sep 08, 2010
-
-
Wolfgang Denk authored
commit 47e26b1b "cmd_usage(): simplify return code handling" caused the following compile warnings: bedbug_860.c: In function 'bedbug860_do_break': bedbug_860.c:73: warning: 'return' with a value, in function returning void bedbug_860.c:121: warning: 'return' with a value, in function returning void Fix the return type. Actually these files could need some cleanup - commands should return proper error codes, and there are coding style issues. => To be fixed later. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Ricardo Salveti de Araujo authored
Correctly set PAD1_FREF_CLK4_REQ and PAD0_FREF_CLK4_OUT to enable and activate both LEDs while setting pad mux. Since this increases the line length, this patch also adjusts the white space in this section of code to allign the pad mux signal description comments. Signed-off-by:
Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Steve Sakoman authored
An upcoming version of Overo uses a Wifi/BT module with 1.8V signaling, eliminating the need for an external transceiver to handle the level shifting. This patch detects whether an external transceiver is present and adjusts the pinmux settings as appropriate. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Steve Sakoman authored
This patch adds support for the Beagle xM. It uses the board ID GPIO bits to recognize this revision and perform appropriate setup. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Steve Sakoman authored
Future versions of these boards have options for POP memory with no NAND. This option prevents display of error messages when no NAND is detected. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Steve Sakoman authored
This printk was added recently and results in ugly output on systems with no NAND: NAND: nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x00, Chip ID: 0x00 0 MiB instead of: NAND: 0 MiB Signed-off-by:
Steve Sakoman <steve@sakoman.com> Acked-by:
Scott Wood <scottwood@freescale.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Steve Sakoman authored
Upcoming Beagle and Overo revisions use POP memory with 256MB or 512MB per bank. This patches uses the SDRC settings from x-load or the config header to set up timing properly. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-
Steve Sakoman authored
Using the reset command on OMAP36XX/37XX and OMAP4 caused a hang. This patch uses the reset bit appropriate for each CPU architecture. Signed-off-by:
Steve Sakoman <steve@sakoman.com> Signed-off-by:
Sandeep Paulraj <s-paulraj@ti.com>
-