- Jul 04, 2010
-
-
Wolfgang Denk authored
Instead of defining the flags sevaral times in different source files (which is error prone), move them to a central place in a header file. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
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>
-
Wolfgang Denk authored
Also get rid of the #ifdef's while doing this. Suggested-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Remove some INFERNO related #ifdef's from common environment code by fixing the board configuration settings (add CONFIG_ENV_SECT_SIZE). While we are at it, fix comment which incorrectly talks about 4 KB environment size, while it's actually 0x4000 = 16 KiB. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Rolf Offermanns <rof@sysgo.de>
-
- Jul 01, 2010
-
-
Wolfgang Wegner authored
This patch adds redundant environment for environment in SPI flash. I took env_flash.c as an example and slightly modified it. Apart from adapting things to SF, I also slightly changed the decision logic to use area 2 as a default in case the flags are wrong because not having a default path worried me. I did not add a section for CONFIG_ENV_IS_IN_SPI_FLASH in environment.h because I did not understand if this is desired and/or needed. So to use the feature, one has to set CONFIG_ENV_OFFSET_REDUND _and_ CONFIG_SYS_REDUNDAND_ENVIRONMENT. I checked it by powering off my board several times during flash erase or write, because I do not know if there are other stress test scenarios. Signed-off-by:
Wolfgang Wegner <w.wegner@astro-kom.de> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jun 29, 2010
-
-
Remy Bohmer authored
The console_buffer size is declared in common/main.c as -- char console_buffer[CONFIG_SYS_CBSIZE + 1]; so this extern definition is wrong. Signed-off-by:
Remy Bohmer <linux@bohmer.net>
-
Reinhard Meyer authored
AVR32 case was missing in cmd_bdinfo, resulting in compiler warning (bd->bi_baudrate declared unsigned int at AVR32, but printf used %d) At the same time slightly reordered #if #elif #endif to make ARM one of the cases and not an extra case surrounding all others Signed-off-by:
Reinhard Meyer <info@emk-elektronik.de> Tested-by:
Andreas Bießmann <biessmann@corscience.de>
-
Anton Vorontsov authored
I use this for testing, and I think this might be useful in the future. Signed-off-by:
Anton Vorontsov <avorontsov@mvista.com>
-
Anton Vorontsov authored
For the following hwconfig string: key1:subkey1=value1,subkey2=value2;key2:value3 The subkey2 cannot be extracted correctly. The parsing code looks for comma as a stopch, but there may be two kind of stop characters: a comma and a semicolon. Currently the code would return "value2;key2:value3", while just "value2" is the correct answer. This patch fixes the issue by making the code aware of multiple stop characters. For old U-Boots, the issue can be workarounded by placing a comma before a semicolon, i.e.: hwconfig=key1:subkey1=value1,subkey2=value2,;key2:value3 Reported-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Anton Vorontsov <avorontsov@mvista.com>
-
Remy Bohmer authored
The console_buffer size is declared in common/main.c as -- char console_buffer[CONFIG_SYS_CBSIZE + 1]; so this extern definition is wrong. Signed-off-by:
Remy Bohmer <linux@bohmer.net>
-
- Jun 23, 2010
-
-
Wolfgang Denk authored
The AmigaOneG3SE board has been orphaned or a very long time, and broken for more than 12 releases resp. more than 3 years. As nobody seems to be interested any more in this stuff we may as well ged rid of it, especially as it clutters many areas of the code so it is a continuous pain for all kinds of ongoing work. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 30, 2010
-
-
Kim Phillips authored
Add sec3.1 h/w geometry for fdt node fixups. Also, technically, whilst SEC v3.3 h/w honours the tls_ssl_stream descriptor type, it lacks the ARC4 algorithm execution unit required to be able to execute anything meaningful with it. Change the node to agree with the documentation that declares that the sec3.3 really doesn't have such a descriptor type. Reported-by:
Haiying Wang <Haiying.Wang@freescale.com> Signed-off-by:
Kim Phillips <kim.phillips@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- May 28, 2010
-
-
Thomas Chou authored
The nios-32 arch is obsolete and broken. So it is removed. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- May 21, 2010
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- May 12, 2010
-
-
York Sun authored
SPD has minor change from Rev 1.2 to 1.3. This patch enables Rev 1.3. The difference has ben examined and the code is compatible. Speed bins is not verified on hardware for CL7 at this moment. This patch also enables SPD Rev 1.x where x is up to "F". According to SPD spec, the lower nibble is optionally used to determine which additinal bytes or attribute bits have been defined. Software can safely use defaults. However, the upper nibble should always be checked. Signed-off-by:
York Sun <yorksun@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- May 06, 2010
-
-
Serge Ziryukin authored
Signed-off-by:
Serge Ziryukin <ftrvxmtrx@gmail.com>
-
- May 05, 2010
-
-
Larry Johnson authored
Signed-off-by:
Larry Johnson <lrj@acm.org>
-
Trübenbach, Ralf authored
Enable the auto completion (with TAB) of the environment variable name after the editenv command. Signed-off-by:
Ralf Trübenbach <ralf.truebenbach@men.de>
-
Graeme Russ authored
Signed-off-by:
Graeme Russ <graeme.russ@gmail.com>
-
Frans Meulenbroeks authored
On the fly also fixed the following things: - write help talked about a parameter oob, but that one was not used, so removed it from the help message. - the test command also allowed a force subcommand but didn't use it. eliminated the code. - do_onenand made static - do_onenand contained int blocksize; ... mtd = &onenand_mtd; this = mtd->priv; blocksize = (1 << this->erase_shift); As blocksize was not used the last two statements were unneeded so removed them. The first statement (mtd = ....) assigns to a global. Not sure if it is needed, and since I could not test this, left the line for now Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
- Apr 30, 2010
-
-
Minkyu Kang authored
Because of other s5p series SoC will use these serial functions, modify function's name and structure's name. Signed-off-by:
Minkyu Kang <mk7.kang@samsung.com>
-
- Apr 28, 2010
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Wolfgang Denk authored
The "mtdparts add" command wrote through a NULL pointer - on many systems this went unnoticed (PowerPC has writable RAM there, some ARM systems have ROM where a write has no effect), but on arm1136 (i.MX31) it crashed the system. Add appropriate checks. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Apr 24, 2010
-
-
Anatolij Gustschin authored
Extend mpc512x serial driver to support multiple PSC ports. Subsequent patches for PDM360NG board support make use of this functionality by defining CONFIG_SERIAL_MULTI in the board config file. Additionally the used PSC devices are specified by defining e.g. CONFIG_SYS_PSC1, CONFIG_SYS_PSC4 and CONFIG_SYS_PSC6. Support for PSC devices other than 1, 3, 4 and 6 is not added by this patch because these aren't used currently. In the future it can be easily added using DECLARE_PSC_SERIAL_FUNCTIONS(N) and INIT_PSC_SERIAL_STRUCTURE(N) macros in cpu/mpc512x/serial.c. Additionally you have to add code for registering added devices in serial_initialize() in common/serial.c. Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- Apr 21, 2010
-
-
Stefan Roese authored
As discussed on the list, move "arch/ppc" to "arch/powerpc" to better match the Linux directory structure. Please note that this patch also changes the "ppc" target in MAKEALL to "powerpc" to match this new infrastructure. But "ppc" is kept as an alias for now, to not break compatibility with scripts using this name. Signed-off-by:
Stefan Roese <sr@denx.de> Acked-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Detlev Zundel <dzu@denx.de> Acked-by:
Kim Phillips <kim.phillips@freescale.com> Cc: Peter Tyser <ptyser@xes-inc.com> Cc: Anatolij Gustschin <agust@denx.de>
-
- Apr 10, 2010
-
-
Jens Scharsig authored
* add WATCHDOG_RESET to !tstc() loops * prevents watchdog timeout, while waiting for input, if CONFIG_BOOT_RETRY_TIME or CONFIG_SHOW_ACTIVITY defined Signed-off-by:
Jens Scharsig <js_at_ng@scharsoft.de>
-
- Apr 09, 2010
-
-
karl.beldan@gmail.com authored
Signed-off-by:
Karl Beldan <karl.beldan@gmail.com>
-
Frans Meulenbroeks authored
Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by:
Detlev Zundel <dzu@denx.de>
-
Peter Tyser authored
gcc 3.4.6 previously reported the following error on many MIPS boards which utilize UBI: cmd_ubi.c:193: warning: 'vol' might be used uninitialized in this function The current code is structured such that 'vol' will never be used when it is NULL anyway, but gcc isn't smart enough to figure this out. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Stefan Roese <sr@denx.de>
-
- Apr 08, 2010
-
-
Kim B. Heino authored
While debugging one ill behaving USB device I found two bugs in USB storage probe. usb_stor_get_info() returns -1 (error), 0 (skip) or 1 (ok). First part of this patch fixes error case. Second part fixes usb_inquiry()'s retry counter handling. Original code had retry = -1 on error case, not retry = 0 as checked in the next line. Signed-off-by:
Kim B. Heino <Kim.Heino@bluegiga.com>
-
Kim B. Heino authored
Here's another USB storage patch. Currently U-Boot handles storage devices #0 - #4 as valid devices, even if there is none connected. This patch fixes usb_stor_get_dev() to check detected device count instead of MAX-define. This is very important for ill behaving devices. usb_dev_desc[] can be partially initialized if device probe fails. After fixing get_dev() it was easy to fix "usb part" etc commands. Previously it outputed "Unknown partition table" five times, now it's "no USB devices available". Signed-off-by:
Kim B. Heino <Kim.Heino@bluegiga.com>
-
- Apr 07, 2010
-
-
Kumar Gala authored
Add a helper function that given an alias will delete both the node the alias points to and the alias itself Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Mar 29, 2010
-
-
Heiko Schocher authored
Booting a "Multi-File Image" including a linux kernel, ramdisk and fdt, generated with mkimage -A ppc \ -O linux \ -T multi \ -C gzip \ -a 00000000 \ -e 00000000 \ -n "kernel-2.6+initrd+dtb" \ -d "vmlinux.bin.gz:ramdisk_image.gz:board.dtb" \ multi.bin actually fails, because ramdisk start and end addresses didn;t get initialized. This patch fixes this issue. Tested on the KUP4K board. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
Frans Meulenbroeks authored
and removed it from the .h file Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Frans Meulenbroeks authored
The code to parse alen appeared 6 times in the function. Factored this out in a small helper function Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Frans Meulenbroeks authored
Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Frans Meulenbroeks authored
Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Frans Meulenbroeks authored
Declared all functions that were not called outside the file as static Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-