- Sep 19, 2010
-
-
Heiko Schocher authored
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by:
Heiko Schocher <hs@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
Code adapted from uClibc-0.9.30.3 Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 03, 2010
-
-
Wolfgang Denk authored
While running from flash, i. e. before relocation, we have only a limited C runtime environment without writable data segment. In this phase, some configurations (for example with environment in EEPROM) must not use the normal getenv(), but a special function. This function had been called getenv_r(), with the idea that the "_r" suffix would mean the same as in the _r_eentrant versions of some of the C library functions (for example getdate vs. getdate_r, getgrent vs. getgrent_r, etc.). Unfortunately this was a misleading name, as in U-Boot the "_r" generally means "running from RAM", i. e. _after_ relocation. To avoid confusion, rename into getenv_f() [as "running from flash"] Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Jul 04, 2010
-
-
Wolfgang Denk authored
The hush shell dynamically allocates (and re-allocates) memory for the argument strings in the "char *argv[]" argument vector passed to commands. Any code that modifies these pointers will cause serious corruption of the malloc data structures and crash U-Boot, so make sure the compiler can check that no such modifications are being done by changing the code into "char * const argv[]". This modification is the result of debugging a strange crash caused after adding a new command, which used the following argument processing code which has been working perfectly fine in all Unix systems since version 6 - but not so in U-Boot: int main (int argc, char **argv) { while (--argc > 0 && **++argv == '-') { /* ====> */ while (*++*argv) { switch (**argv) { case 'd': debug++; break; ... default: usage (); } } } ... } The line marked "====>" will corrupt the malloc data structures and usually cause U-Boot to crash when the next command gets executed by the shell. With the modification, the compiler will prevent this with an error: increment of read-only location '*argv' N.B.: The code above can be trivially rewritten like this: while (--argc > 0 && **++argv == '-') { char *arg = *argv; while (*++arg) { switch (*arg) { ... Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Wolfgang Denk authored
Change the return type of the *printf() functions to the standard "int"; no changes are needed but returning the already available length count. This will save a few additional strlen() calls later... Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 06, 2010
-
-
Mike Frysinger authored
Only one file apparently defines this function, and it merely stubs it out. So if no one is defining/calling it, punt it. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- May 05, 2010
-
-
Timur Tabi authored
Modify print_size() so that it can accept numbers larger than 4GB on 32-bit systems. Add support for display terabyte, petabyte, and exabyte sizes. Change the output to use International Electrotechnical Commission binary prefix standard. Signed-off-by:
Timur Tabi <timur@freescale.com>
-
- Apr 13, 2010
-
-
Peter Tyser authored
Now that the other architecture-specific lib directories have been moved out of the top-level directory there's not much reason to have the '_generic' suffix on the common lib directory. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
Also move lib_$ARCH/config.mk to arch/$ARCH/config.mk This change is intended to clean up the top-level directory structure and more closely mimic Linux's directory organization. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Feb 12, 2010
-
-
Matthias Kaehlcke authored
Add support for the Cirrus EP93xx platform Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net> Acked-by:
Tom <Tom.Rix@windriver.com>
-
- Feb 05, 2010
-
-
Matthias Kaehlcke authored
Added ethernet driver for EP93xx SoCs Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net> Acked-by:
Ben Warren <biggerbadderben@gmail.com>
-
Matthias Kaehlcke authored
Add support for the Cirrus EP93xx platform Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net> Acked-by:
Tom <Tom.Rix@windriver.com>
-
- Feb 01, 2010
-
-
Matthias Kaehlcke authored
Added ethernet driver for EP93xx SoCs Signed-off-by:
Matthias Kaehlcke <matthias@kaehlcke.net> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Jan 27, 2010
-
-
Kumar Gala authored
Add a disable sub-command to the cpu command that allows for disabling cores in multicore processors. This can be useful for systems that are using multicore chips but aren't utilizing all the cores as a way to reduce power and possibly improve performance. Also updated an added missing copyright. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Jan 17, 2010
-
-
Heiko Schocher authored
- CONFIG_ENV_EEPROM_IS_ON_I2C define this, if you have I2C and SPI activated, and your EEPROM, which holds the environment, is on the I2C bus. - CONFIG_I2C_ENV_EEPROM_BUS if you have an Environment on an EEPROM reached over I2C muxes, you can now define, how to reach this EEPROM. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
Dirk Behme authored
There are boards out there that do not have network support in U-Boot (CONFIG_CMD_NET not set), but they do so in Linux. This makes it desirable to be able to port network configuration (like the IP address) to the Linux kernel. We should not make the passing of the IP configuration to Linux dependent on U-Boot features / settings. For this, make getenv_IPaddr() global. This fixes build error u-boot/lib_xxx/board.c:360: undefined reference to `getenv_IPaddr' on various architectures. Signed-off-by:
Dirk Behme <dirk.behme@googlemail.com> Acked-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Dec 21, 2009
-
-
Wolfgang Wegner authored
Prototype for gunzip/zunzip was only in lib_generic/gunzip.c and thus repeated in every file using it. This patch moves the prototypes to common.h and removes all prototypes distributed anywhere else. Signed-off-by:
Wolfgang Wegner <w.wegner@astro-kom.de>
-
- Dec 08, 2009
-
-
Heiko Schocher authored
There is more and more usage of printing 64bit values, so enable this feature generally, and delete the CONFIG_SYS_64BIT_VSPRINTF and CONFIG_SYS_64BIT_STRTOUL defines. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Dec 05, 2009
-
-
Ingo van Lil authored
According to the PPC reference implementation the udelay() function is responsible for resetting the watchdog timer as frequently as needed. Most other architectures do not meet that requirement, so long-running operations might result in a watchdog reset. This patch adds a generic udelay() function which takes care of resetting the watchdog before calling an architecture-specific __udelay(). Signed-off-by:
Ingo van Lil <inguin@gmx.de>
-
- Nov 27, 2009
-
-
Sekhar Nori authored
Integrate DA830 EVM support into U-Boot. Provides initial support for TI OMAP-L137/DA830 SoC devices on a Spectrum Digital EVM board. See http://www.spectrumdigital.com/ Signed-off-by:
Nick Thompson <nick.thompson@gefanuc.com>
-
This patch adds a unified s3c24x0 cpu header file that selects the header file for the specific s3c24x0 cpu from the SOC and CPU configs defined in board config file. This removes the current chain of s3c24-type #ifdef's from the s3c24x0 code. Signed-off-by:
Kevin Morfitt <kevin.morfitt@fearnside-systems.co.uk> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- Nov 20, 2009
-
-
This patch adds a unified s3c24x0 cpu header file that selects the header file for the specific s3c24x0 cpu from the SOC and CPU configs defined in board config file. This removes the current chain of s3c24-type #ifdef's from the s3c24x0 code. Signed-off-by:
Kevin Morfitt <kevin.morfitt@fearnside-systems.co.uk> Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- Oct 27, 2009
-
-
Wolfgang Denk authored
Breaks building on many boards, and no really clean fix available yet. This reverts commit 6dab6add.
-
- Oct 18, 2009
-
-
Mike Frysinger authored
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>
-
- Oct 03, 2009
-
-
Prafulla Wadaskar authored
uninitialized retval variable warning fixed crc32 APIs moved to crc.h (newly added) and build warnings fixed Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Sep 10, 2009
-
-
Prafulla Wadaskar authored
uninitialized retval variable warning fixed crc32 APIs moved to crc.h (newly added) and build warnings fixed Signed-off-by:
Prafulla Wadaskar <prafulla@marvell.com> Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Aug 28, 2009
-
-
Poonam Aggrwal authored
The number of CPUs are getting detected dynamically by checking the processor SVR value. Also removed CONFIG_NUM_CPUS references from all the platforms with 85xx/86xx processors. This can help to use the same u-boot image across the platforms. Also revamped and corrected few Freescale Copyright messages. Signed-off-by:
Poonam Aggrwal <poonam.aggrwal@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Jul 27, 2009
-
-
Wolfgang Denk authored
The reordering of include/common.h by commit fcd3c87e broke boards with status LED support, resulting in error: #error Status LED configuration missing errors. Undo this reordering to avoid this issue. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 26, 2009
-
-
Wolfgang Denk authored
Commit 70ebf316 factored out the ROUND() macro into include/common.h, not realizing that the primary use of this macro on AT91 systems was in start.S where common.h was not included, and could not be included because it contains a lot of C code which the assembler doesn't understand. This patch wraps such code in common.h in a "#ifndef __ASSEMBLY__" construct, and then adds an include to cpu/arm926ejs/start.S thus solving the problem. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 22, 2009
-
-
Wolfgang Denk authored
A large number of boards (all AT91 based) duplicated the ROUND() macro in their board specific config files. Add the definition to include/common.h and clean up the board config files. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 10, 2009
-
-
Matthias Fuchs authored
Signed-off-by:
Matthias Fuchs <matthias.fuchs@esd.eu> Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Jul 08, 2009
-
-
Heiko Schocher authored
Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Jul 06, 2009
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Jun 12, 2009
-
-
Peter Tyser authored
Use the standard lowercase "xx" capitalization that other Freescale architectures use for CPU defines to prevent confusion and errors Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
Wolfgang Denk authored
Move needed definitions (register descriptions etc.) from include/mpc512x.h into include/asm-ppc/immap_512x.h. Instead of using a #define'd register offset, use a function that provides the PATA controller's base address. All the rest of include/mpc512x.h are register offset definitions which can be eliminated by proper use of C structures. There are only a few register offsets remaining that are needed in cpu/mpc512x/start.S; for these we provide cpu/mpc512x/asm-offsets.h which is intended as a temporary workaround only. In a later patch this file will be removed, too, and then auto-generated from the respective C structs. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: John Rigby <jcrigby@gmail.com>
-
Mike Frysinger authored
The kernel stores address<->symbol names in it so things can be decoded at runtime. Do it in U-Boot, and we get nice symbol decoding when crashing. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Apr 04, 2009
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
introduce serial_exit for this purpose. Use it only when the rm9200 serial driver is active Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-
- Apr 03, 2009
-
-
Wolfgang Denk authored
According to the doc/feature-removal-schedule.txt, the "autoscr" command will be replaced by the "source" command in approximately 6 months from now. This patch prepares this change and starts a 6 month transition period as follows: - The new "source" command has been added, which implements exactly the same functionlaity as the old "autoscr" command before - The old "autoscr" command name is kept as an alias for compatibility - Command sequences, script files atc. have been adapted to use the new "source" command - Related environment variables ("autoscript", "autoscript_uname") have *not* been adapted yet; these will be renamed resp. removed in a separate patch when the support for the "autoscr" command get's finally dropped. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Mar 20, 2009
-
-
Mike Frysinger authored
The environment is the canonical storage location of the mac address, so we're killing off the global data location and moving everything to querying the env directly. Rather than have common ppc code call a board-specific function like load_sernum_ethaddr(), have each board call it in its own board-specific misc_init_r() function. The boards that get converted here are: - kup4k/kup4x - pcs440ep - tqm8xx Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com> CC: Stefan Roese <sr@denx.de>
-