- 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>
-
- Mar 27, 2010
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Mar 24, 2010
-
-
Philippe De Muyter authored
This fixes the following warnings when running MAKEALL for coldfire : cmd_bdinfo.c:354: warning: 'print_eth' defined but not used Signed-off-by: Philippe De Muyter <phdm at macqel.be>
-
Alessandro Rubini authored
Support for 16bpp was supposed to be in the code but was not working. This makes it work and has been tested in the nhk8815 board. Signed-off-by:
Alessandro Rubini <rubini@unipv.it> Acked-by:
Andrea Gallo <andrea.gallo@stericsson.com> Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- Mar 23, 2010
-
-
Florian Fainelli authored
When issuing a nand scrub command, the entered character is not displayed this may be confusing. This patch makes the input character being displayed if it is a 'y' so that an user knows he is about to scrub his nand. Signed-off-by:
Florian Fainelli <f.fainelli@gmail.com>
-
- Mar 21, 2010
-
-
Anatolij Gustschin authored
Allow overwriting defined partitions in the device tree blob using partition info defined in the 'mtdparts' environment variable. Signed-off-by:
Anatolij Gustschin <agust@denx.de> Cc: Gerald Van Baren <vanbaren@cideas.com>
-
John Schmoller authored
Match history buffer size to console buffer size. History buffer size was hard coded to 256, artificially limiting the command buffer size. The history buffer now tracks CONFIG_SYS_CBSIZE. Signed-off-by:
John Schmoller <jschmoller@xes-inc.com>
-
John Schmoller authored
When CONFIG_SYS_CBSIZE equals MAX_CMDBUF_SIZE, a command string of maximum length will overwrite part of the history buffer, causing the board to die. Expand the console_buffer and hist_lines buffer by one character each to hold the missing NULL char. Signed-off-by:
John Schmoller <jschmoller@xes-inc.com>
-
Frans Meulenbroeks authored
This patch add functionality to use memory addresses in expressions. This increases the power of expressions substantially It adheres to the standard convemtions: memory addresses can be given in the format *address (e.g. *1000) Rationale for this change is that it allows masking off bits from a byte that is obtained by reading data from e.g. i2c. Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Fix warning: control reaches end of non-void function Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
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
Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Frans Meulenbroeks authored
Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Frans Meulenbroeks authored
according to some of the comments the subaddress length is 1 or 2, but we are being prepared for the case it becomes 3. However the code also accepted 4. This repairs this by changing the constand 4 to 3. Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
Anatolij Gustschin authored
If a board uses cfb_console driver and splash image and also defines CONFIG_SILENT_CONSOLE, the user is locked out even if "silent" is not set. It is not possible to get any output, neither on vga console device nor on serial console after redirecting the output to the serial console, since the GD_FLG_SILENT flag remains set. Fix the problem by redirecting the output from frame buffer to serial console if splashimage is used. Only suppress the output if "silent" environment variable was set and don't set the GD_FLG_SILENT flag arbitrarily. Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Frans Meulenbroeks authored
This patch removes the \n after the help message for mmcinfo. This resulted in an empty line being displayed after the mmcinfo line when the help command was given. Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-
- Mar 12, 2010
-
-
Wolfgang Denk authored
Coding style cleanup, update CHANGELOG. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Mar 11, 2010
-
-
Michael Zaidman authored
Signed-off-by:
Michael Zaidman <michael.zaidman@gmail.com>
-
Anatolij Gustschin authored
The length of configured MTDPARTS_DEFAULT string could be greater than console printbuffer size. Replace printf() by puts() to avoid potential buffer overflows. Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
Wolfgang Denk authored
The auto-update feature (CONFIG_UPDATE_TFTP) requires that the env variable serverip be set for the TFTP access. If DHCP is to be used to get the serverip env variable, this doesn't work as DHCP happens after the auto-update attempt has run. A solution is to run DHCP in PREBOOT, but even this is too late. To solve this, we move update_tftp() below the PREBOOT stuff. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Richard Retanubun authored
This patch uses gd->relocaddr variable to store uboot's relocated address in RAM and shows it in bdinfo command. This patch moves CONFIG_AMIGAONEG3SE style copying of the address in board_init_f to just before relocation is actually done. Signed-off-by:
Richard Retanubun <RichardRetanubun@RuggedCom.com> Tested-by:
Detlev Zundel <dzu@denx.de>
-
- Feb 23, 2010
-
-
Frans Meulenbroeks authored
fix pointer dereferencing if the size is .b and .w an 8 or 16 bit access is done. Signed-off-by:
Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by:
Detlev Zundel <dzu@denx.de>
-
- Feb 07, 2010
-
-
Stefan Roese authored
This patch fixes a problem I've notived on a buggy PPC4xx system. This system has problems with the PHY MDIO communication and seemed to be stuck/crashed in miiphy_reset(). But degugging revealed, that the CPU didn't crash, but "only" hung in this counting loop for about 2 minutes. This patch now uses a real timeout of 0.5 seconds (as mentioned in the comment in miiphy_reset). Signed-off-by:
Stefan Roese <sr@denx.de> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Feb 03, 2010
-
-
Remy Bohmer authored
This patch changes usb_control_msg back to the state prior to commit 48867208. The USB driver ISR routine may update the status. Signed-off-by:
Daniel Hellstrom <daniel@gaisler.com>
-