aboutsummaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2009-06-12tools/envcrc: add --binary option to export embedded envMike Frysinger1-4/+42
The --binary option to envcrc can be used to export the embedded env as a binary blob so that it can be manipulated/examined/whatever externally. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-05-15Add imls utility commandMarco Stornelli3-0/+433
This patch adds, under tools folder, a new command called imls. Its goal is the same of UBoot's imls but it can be used as Linux shell command. It reads from raw mtd partition and prints the list of the stored images. Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2009-04-28bmp_logo: Check return value of fread()Peter Tyser1-13/+22
Add basic error handling to fread() function calls. This prevents compililation warnings such as: bmp_logo.c: In function ‘main’: bmp_logo.c:71: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result ... Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-28ncb: Check return value of write()Peter Tyser1-1/+3
This prevents the compilation warning: ncb.c: In function 'main': ncb.c:32: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-28Replace __asm references with __asm__Peter Tyser1-5/+5
__asm__ follows gcc's documented syntax and is generally more common than __asm. This change is only asthetic and should not affect functionality. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-16at91: add support for the PM9263 board of Ronetix GmbHIlko Iliev2-0/+3
The PM9263 board is based on the AT91SAM9263-EK board. Here is the page on Ronetix website: http://www.ronetix.at/starter_kit_9263.html Signed-off-by: Ilko Iliev <iliev@ronetix.at> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-04-05One more fix for building env_embedded.oWolfgang Denk1-0/+2
In addition to the changes for CONFIG_ENV_IS_IN_FLASH as done in commit afcbce07, we also need to do the same for CONFIG_ENV_IS_IN_EEPROM and CONFIG_ENV_IS_IN_NVRAM. Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-04-04tools/setlocalversion: use git svn instead of git-svnPeter Korsgaard1-1/+1
Use the new "git <subcmd>" syntax instead of the deprecated "git-<subcmd>". Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2009-04-04Fix implicit declaration of function 'htons'Wolfgang Denk1-1/+1
Include <netinet/in.h> instead of <linux/in.h> to get htons() prototpye. Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-04-04Fix building of env_embedded.oWolfgang Denk1-1/+2
Since commit a706bfc7 common/env_embedded.o and tools/envcrc were only built when CONFIG_ENV_IS_EMBEDDED was set, but this breaks building for many boards. We always have to build these files when CONFIG_ENV_IS_IN_FLASH is set. Signed-off-by: Wolfgang Denk <wd@denx.de>
2009-04-04tools/Makefile: fix image.c dependancy locationJean-Christophe PLAGNIOL-VILLARD1-1/+1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-04-04tools: add ncb to gitignoreMike Frysinger1-0/+1
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-04-04Delete now unused tools/Makefile.win32Peter Tyser1-37/+0
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04Add support for building native win32 toolsPeter Tyser7-7/+207
Add support for compiling the host tools in the tools directory using the MinGW toolchain. This produces executables which can be used on standard Windows computers without requiring cygwin. One must specify the MinGW compiler and strip utilities as if they were the host toolchain in order to build win32 executables, eg: make HOSTCC=i586-mingw32msvc-gcc HOSTSTRIP=i586-mingw32msvc-strip tools Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Simplify HOST_CFLAGS/HOST_LDFLAGS generationPeter Tyser1-12/+5
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Create generic build rulesPeter Tyser1-46/+9
Create a few generic build rules to replace the current method which has 1 build target for each file Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Use auto-generated object file dependenciesPeter Tyser1-12/+12
Files in the SRCS variable have their dependencies automatically generated so remove duplicate explicit dependencies Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Remove symlinks for remaining source filesPeter Tyser2-36/+13
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Dynamically generate libfdt object dependenciesPeter Tyser1-7/+6
Add the libfdt files to the SRCS variable so that they have their dependencies automatically generated Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Remove symlinks for fdt targetsPeter Tyser2-30/+7
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Add libfdt/ to the include search pathPeter Tyser2-10/+6
This change makes the process of symlinking libfdt_internal.h unnecessary Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools: Remove unecessary symlinking of zlib.hPeter Tyser2-6/+1
crc32.c uses the zlib.h header in include/u-boot/zlib.h. The symlink was previously necessary to give U-Boot's version of zlib.h precedence over the host computer's version of zlib.h. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Add tools/ to the include search pathPeter Tyser1-6/+1
This change makes the process of symlinking mkimage.h and fdt_host.h unnecessary Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Compile ncb when CONFIG_NETCONSOLEPeter Tyser1-0/+2
Also conditionally add ncb.o to OBJ_FILES list Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Make gen_eth_addr dependent upon CONFIG_CMD_NETPeter Tyser1-2/+2
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Make envcrc dependent upon CONFIG_ENV_IS_EMBEDDEDPeter Tyser1-2/+2
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Make inca-swap-bytes dependent on CONFIG_INCA_IPPeter Tyser1-5/+2
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Make ubsha1 dependent upon CONFIG_SHA1_CHECK_UB_IMGPeter Tyser1-2/+2
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Make img2srec dependent upon CONFIG_CMD_LOADSPeter Tyser1-2/+2
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Build bmp_logo only when LCD or VIDEO logos are enabledPeter Tyser1-3/+8
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Split variable declarations into multiple linesPeter Tyser1-33/+53
Split variable declarations into multiple lines and use the standard VAR-y convention. Also move object and binary variable declarations to after config.mk has been included to allow for these lists to utilize the CONFIG_XXX variables. These changes lay the groundwork for conditional compilation of files in the tools directory. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Remove inappropriate double-tabsPeter Tyser1-76/+77
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04tools/Makefile: Remove HOSTARCH HOSTOS definesPeter Tyser1-12/+0
The values of HOSTARCH and HOSTOS which are exported from the top-level Makefile should be used Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-04-04gen_eth_addr: Use POSIX rand() and srand()Peter Tyser1-3/+3
Replace random()/srandom() use with rand()/srand() to support compilation with the mingw toolchain. The rand()/srand() functions are generally more common and are functionally equivalent to the original random()/srandom() calls. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-28Standardize command usage messages with cmd_usage()Peter Tyser1-7/+7
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
2009-01-24easylogo: add optional gzip supportMike Frysinger1-6/+92
Some images can be quite large, so add an option to compress the image data with gzip in the U-Boot image. Then at runtime, the board can decompress it with the normal zlib functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-16ncb: use socklen_tMike Frysinger1-1/+1
The recvfrom() function takes a socklen_t, not an int. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-12-15Fix a typo in fw_env.configMartin Michlmayr1-1/+1
Reported-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-12-10tools/netconsole: new script for working with netconsole over UDPMike Frysinger1-0/+42
While the doc/README.NetConsole does have a snippet for people to create their own netcat script, it's a lot easier to make a simple dedicated script and tell people to use it. Also spruce it up a bit to make it user friendly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-10-18rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD6-62/+62
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-10-18Adds two more ethernet interface to 83xxrichardretanubun1-0/+6
Added as a convenience for other platforms that uses MPC8360 (has 8 UCC). Six eth interface is chosen because the platform I am using combines UCC1&2 and UCC3&4 as 1000 Eth and the other four UCCs as 10/100 Eth. Signed-off-by: Richard Retanubun <RichardRetanubun@RugggedCom.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
2008-09-10rename CFG_ENV macros to CONFIG_ENVJean-Christophe PLAGNIOL-VILLARD3-26/+26
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-10rename CFG_ENV_IS_IN_FLASH in CONFIG_ENV_IS_IN_FLASHJean-Christophe PLAGNIOL-VILLARD2-3/+3
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-10rename environment.c in env_embedded.c to reflect is functionalityJean-Christophe PLAGNIOL-VILLARD2-7/+7
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-09-09fw_env: add NAND supportGuennadi Liakhovetski3-264/+611
Add support for environment in NAND with automatic NOR / NAND recognition, including unaligned environment, bad-block skipping, redundant environment copy. Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
2008-09-02fw_env.c: fix build problems with MTD_VERSION=oldWolfgang Denk1-1/+2
(as needed to support old 2.4 Linux kernel based releases) Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-08-18Add 'license' command to U-Boot command lineHarald Welte2-0/+60
The 'license' command includes the U-Boot license (GPLv2) into the actual bootloader binary. The license text can be shown interactively at the U-Boot commandline. For products where the commandline can actually be accessed by the end user, this helps to prevent inadvertent GPL violations, since the GPLv2 license text can no longer be 'forgotten' to be included into the product. The 'license' command can be enabled by CONFIG_CMD_LICENSE. Signed-off-by: Harald Welte <laforge@openmoko.org>
2008-07-15tools/gitignore: update to all generated filesJean-Christophe PLAGNIOL-VILLARD1-0/+3
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2008-07-14Code cleanup: fix old style assignment ambiguities like "=-" etc.Wolfgang Denk2-3/+3
Signed-off-by: Wolfgang Denk <wd@denx.de>
2008-07-11Fixed some out-of-tree build issuesWolfgang Denk1-1/+1
Signed-off-by: Wolfgang Denk <wd@denx.de>