- Oct 26, 2011
-
-
Simon Glass authored
This is a better name for this protocol. Also remove the typedef to keep checkpatch happy, and move zeroing of NetBootFileXferSize a little earlier since TFTPPUT will need to change this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
It seems we put numbers and addresses into environment variables a lot. We should have some functions to do this. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This function is generally useful and shouldn't hide away in hush. It has been moved as is. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Oct 23, 2011
-
-
Stefano Babic authored
Some Davinci processors supports the Application Image Script (AIS) boot process. The patch adds the generation of the AIS image inside the mkimage tool to make possible to generate a bootable U-boot without external tools (TI Davinci AIS Generator). Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Wolfgang Denk <wd@denx.de>
-
Simon Glass authored
This is not an uncommon operation in U-Boot, so let's put it in a common function. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Daniel Schwierzeck authored
In commit fa28bd2e patch v1 was applied instead of v2. This is an incremental patch to update that commit to version 2. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
- Oct 21, 2011
-
-
Dirk Eibach authored
Our boards rely on dtt for initialization of fan hardware. dtt_init() was implemented to be called form board specific code. Signed-off-by:
Dirk Eibach <eibach@gdsys.de> Acked-by:
Heiko Schocher <hs@denx.de> Tested-by:
Heiko Schocher <hs@denx.de>
-
Joe Hershberger authored
Remove MK_STR from places that consume CONFIG_BOOTFILE to force all definitions to be string literals. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Joe Hershberger authored
Remove MK_STR from places that consume CONFIG_ROOTPATH to force all definitions to be string literals. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Wolfgang Denk <wd@denx.de> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Stephen Warren authored
This avoids the following checkpatch warning in later patches: ERROR: "(foo*)" should be "(foo *)" ERROR: space required before the open brace '{' ERROR: space prohibited before that close parenthesis ')' ERROR: spaces required around that '||' (ctx:WxV) WARNING: space prohibited between function name and open parenthesis '(' WARNING: line over 80 characters This fixes all the white-space warnings/errors in my subsequent patch, and within this current patch. A number of other checkpatch warnings and errors are still present in this patch itself, but are beyond simple whitespace fixes, so are not solved by this patch. v2: New patch Signed-off-by:
Stephen Warren <swarren@nvidia.com> Tested-by:
Simon Glass <sjg@chromium.org> Tested-by:
Simon Glass <sjg@chromium.org>
-
Macpaul Lin authored
Add support of NDS32 to common commands bdinfo, bootm, and image format. Signed-off-by:
Macpaul Lin <macpaul@andestech.com>
-
Timur Tabi authored
The print_str() helper function for cmd_bdinfo can print any string, but it is only used to print MHz values. Replace it with print_mhz() that takes a number and converts it to a string internally. Signed-off-by:
Timur Tabi <timur@freescale.com>
-
Simon Schwarz authored
This removes static modifier from images variable in cmd_bootm.c. Signed-off-by:
Simon Schwarz <simonschwarzcor@gmail.com>
-
- Oct 20, 2011
-
-
Doug Anderson authored
Signed-off-by:
Doug Anderson <dianders@chromium.org> Reviewed-by:
Anton Staaf <robotboy@chromium.org>
-
- Oct 18, 2011
-
-
Shengzhou Liu authored
Add common function fdt_set_node_status() to assist in various locations that we set a nodes status. This function utilizes the status values that are part of the EPAPR spec (on power.org). fdt_set_status_by_alias() is based on fdt_set_node_status() but uses an alias string to identify the node to update. We also add some shortcut functions to help the common cases of setting "okay" and "disabled": fdt_status_okay() fdt_status_disabled() fdt_status_okay_by_alias() fdt_status_disabled_by_alias() Finally, we fixup the corenet_ds ethernet code which previously had a function by the same name that can be replaced with the new helpers. Signed-off-by:
Shengzhou Liu <Shengzhou.Liu@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Oct 17, 2011
-
-
Simon Glass authored
This fixes a problems when building on some 64-bit machines. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
We prefer to U-Boot's malloc but for now it is easier to use the C library's version. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This adds sandbox architecture support to bootm, although it is probably not useful to load sandbox code into the address space and execute it. This change at least make the file build correctly on 64-bit machines. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This is required for the bdinfo command to work. Signed-off-by:
Simon Glass <sjg@chromium.org> Fix syntax error. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Simon Glass authored
It is better to use %p in this case. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Jason Hobbs authored
Add pxe command, which is intended to mimic PXELINUX functionality. 'pxe get' uses tftp to retrieve a file based on UUID, MAC address or IP address. 'pxe boot' interprets the contents of PXELINUX config like file to boot using a specific initrd, kernel and kernel command line. This patch also adds a README.pxe file - see it for more details on the pxe command. Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
Jason Hobbs authored
These are various places I found that checked for conditions equivalent to isblank. Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
Jason Hobbs authored
This prevents a checkpatch warning in the patch to use isblank Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
Jason Hobbs authored
Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Jason Hobbs authored
Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
Jason Hobbs authored
This will be used first by the pxe code, but is intended to be generic and reusable for other jobs in U-boot. Signed-off-by:
Jason Hobbs <jason.hobbs@calxeda.com>
-
- Oct 15, 2011
-
-
Daniel Schwierzeck authored
The command auto-completion does not work on architectures relying on CONFIG_NEEDS_MANUAL_RELOC like MIPS. Cause is the missing function pointer fixup for cmd_tbl_t::complete function in fixup_cmdtable(). This patch adds the missing pointer fixup in case of CONFIG_AUTO_COMPLETE is defined. Signed-off-by:
Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
-
Timur Tabi authored
The device tree compiler, dtc, can use "phandle" and/or "linux,phandle" properties to specify the phandle for any node. By default, it uses both, but "linux,phandle" is deprecated. One day, we'd like to stop using "linux,phandle", but U-boot needs to support both properties equally first. fdt_alloc_phandle() generates a unique phandle, but it was only checking the "linux,phandle" properties. Instead, we use fdt_get_phandle(), which checks both properties automatically. This ensures that we support dtbs that only use "phandle". The side-effect is that fdt_alloc_phandle() now takes twice as long, since it has to check for two properties instead of one in each node that it searches. Signed-off-by:
Timur Tabi <timur@freescale.com>
-
Timur Tabi authored
fdt_create_phandle() was ignoring errors from fdt_set_phandle(). If an error occurs, print an error message and return 0, which is an invalid phandle. We also need to change the return type for fdt_create_phandle() to indicate that it cannot return an error code. Signed-off-by:
Timur Tabi <timur@freescale.com>
-
- Oct 09, 2011
-
-
Wolfgang Denk authored
Fix: usb.c: In function 'usb_parse_config': usb.c:331:17: warning: variable 'ch' set but not used [-Wunused-but-set-variable] usb.c: In function 'usb_hub_port_connect_change': usb.c:1123:29: warning: variable 'portchange' set but not used [-Wunused-but-set-variable] usb.c: In function 'usb_hub_configure': usb.c:1183:25: warning: variable 'hubsts' set but not used [-Wunused-but-set-variable] Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Acked-by:
Remy Bohmer <linux@bohmer.net>
-
Wolfgang Denk authored
Fix: cmd_usb.c: In function 'usb_show_tree_graph': cmd_usb.c:284:29: warning: variable 'port' set but not used [-Wunused-but-set-variable] Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Acked-by:
Remy Bohmer <linux@bohmer.net>
-
Wolfgang Denk authored
Fix: cfi_mtd.c: In function 'cfi_mtd_init': cfi_mtd.c:226:19: warning: variable 'mtd_list' set but not used [-Wunused-but-set-variable] cfi_mtd.c: In function 'cfi_mtd_init': cfi_mtd.c:225:6: warning: unused variable 'devices_found' cfi_mtd.c: In function 'cfi_mtd_init': cfi_mtd.c:226:19: warning: variable 'mtd_list' set but not used [-Wunused-but-set-variable] [-Wunused-variable] Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Stefan Roese <sr@denx.de> Acked-by:
Stefan Roese <sr@denx.de>
-
Che-liang Chiou authored
The 'time' command runs and reports execution time of commands. Sample usage: -------------------- u-boot# time crc 0x1000 1000 CRC32 for 00001000 ... 00001fff ==> ae94dc4b time: 0.004 seconds, 4 ticks -------------------- Signed-off-by:
Che-Liang Chiou <clchiou@chromium.org> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
Wolfgang Denk authored
Also rearrange IH_TYPE table slightly. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Michal Simek authored
Add support for SERIAL MULTI for uartlite. Signed-off-by:
Michal Simek <monstr@monstr.eu>
-
- Oct 05, 2011
-
-
Kumar Gala authored
cmd_sf.c: In function 'do_spi_flash': cmd_sf.c:164:9: warning: 'skipped' may be used uninitialized in this function Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Mike Frysinger <vapier@gentoo.org> Acked-by:
Simon Glass <sjg@chromium.org>
-
Mike Frysinger authored
This pushes the ugly duplicated arch ifdef lists we maintain in various image related files out to the arch headers themselves. Acked-by:
Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Tested-by:
Thomas Chou <thomas@wytron.com.tw> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Graeme Russ authored
Allow redirection of console output prior to console initialisation to a temporary buffer. To enable this functionality, the board (or arch) must define: - CONFIG_PRE_CONSOLE_BUFFER - Enable pre-console buffer - CONFIG_PRE_CON_BUF_ADDR - Base address of pre-console buffer - CONFIG_PRE_CON_BUF_SZ - Size of pre-console buffer (in bytes) The pre-console buffer will buffer the last CONFIG_PRE_CON_BUF_SZ bytes Any earlier characters are silently dropped.
-
- Oct 04, 2011
-
-
Wolfgang Denk authored
This reverts commit 60ce53cf. The commit causes build breakage for a number of boards. This results from the fact that now the arguments of debug() actually get referenced (even if there is hope that the compiler will optimize away the debug() call). The obvious fix to that probem (change the code to always declare the referenced variables and data structures) increases the code size, and was this rejected. So it was decided to revert this commit until a better solution is found.
-
- Oct 03, 2011
-
-
Marek Vasut authored
The "nand info" and "nand device" now set shell/environment variables: nand_writesize ... nand page size nand_oobsize ..... nand oob area size nand_erasesize ... nand erase block size Also, the "nand info" command now displays this info. Signed-off-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Scott Wood <scottwood@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Detlev Zundel <dzu@denx.de> [scottwood@freescale.com: removed unnecessary memsets] Signed-off-by:
Scott Wood <scottwood@freescale.com>
-