summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'pu/jean-codesize' into nextSascha Hauer2012-01-131-0/+3
|\
| * filetype: add config to disable itJean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+1
| | | | | | | | | | | | remove 160 bytes Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * uncompress: add config to disable itJean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+1
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * banner: add config to disable itJean-Christophe PLAGNIOL-VILLARD2012-01-111-0/+1
| | | | | | | | | | | | this will allow to save 144 bytes Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | nandtest: add missing select.Alexander Aring2012-01-061-0/+1
| | | | | | | | | | | | | | Add select PARTITION_NEED_MTD in nandtest. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nandtest: fix typoAlexander Aring2012-01-061-1/+1
|/ | | | | | | Fix typo nand -> nandtest. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nandtest: add nandtest commandAlexander Aring2012-01-043-0/+372
| | | | | | | | Add nandtest command to test nand devices and display ecc stats at the end of test. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* serial gadget: enable/disable on requestEric Bénard2012-01-042-0/+109
| | | | | | | | | | | | | | - add a usbserial command to enable/disable the serial gadget - allow dfu and usbserial to cohexist in the same barebox - add a timeout in u_serial so that we don't get locked if the user enable usbserial from a UART console but doesn't consume the data on the usbserial port created on the PC - remove debug or verbose printf - tested on i.MX25 & i.MX35 & usb-a926x Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* command: flash: remove broken filename checkWolfram Sang2011-12-221-10/+0
| | | | | | | | | It makes no sense to check the filename pointer here, because a) we have already been using it and b) argc has been tested against 1 already, so argv[1] should not be NULL. So, drop the checks. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands/ls: add to use sorted-insertAlexander Aring2011-12-211-2/+2
| | | | | | | Added sorted insert to ls command. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: Add missing Kconfig dependencySascha Hauer2011-12-171-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'work/uimage' into nextSascha Hauer2011-12-175-200/+467
|\ | | | | | | | | | | | | | | | | Conflicts: arch/ppc/lib/ppclinux.c commands/bootm.c include/boot.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * remove now obsolete iminfo commandSascha Hauer2011-12-153-78/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add uimage commandSascha Hauer2011-12-153-0/+115
| | | | | | | | | | | | | | | | | | The uimage command superseeds the iminfo command. Unlike the iminfo command the uimage command can also be used to verify the data crc on demand and to extract uImages to files. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: use new uimage codeSascha Hauer2011-12-152-125/+348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the bootm code to the new uimage code. Also bootm can now handle other types of images than uImages. Currently the only architecture making use of this is arm which allows to boot zImages, raw images and barebox images. I intended to make a more bisectable series from this but I failed becuase there are many dependencies and no matter how I tried the patches grew bigger and and bigger. So I decided to put this all in a single patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ppc: switch to libfdt based oftree implementationSascha Hauer2011-12-141-0/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/ppc-oftree' into nextSascha Hauer2011-12-151-0/+5
|\ \
| * | ppc: switch to libfdt based oftree implementationSascha Hauer2011-12-151-0/+5
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'pu/misc' into nextSascha Hauer2011-12-151-1/+0
|\ \
| * | remove unused watchdog headerSascha Hauer2011-12-151-1/+0
| |/ | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'master' into nextSascha Hauer2011-12-151-1/+1
|\| | | | | | | | | | | | | | | | | Conflicts: arch/arm/boards/usb-a926x/init.c arch/arm/mach-pxa/include/mach/clock.h arch/arm/mach-pxa/speed-pxa27x.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * time command: Fix needed string lengthSascha Hauer2011-12-081-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Add missing code from linux_exec commandSascha Hauer2011-12-131-0/+60
|/ | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: factor out initrd code from option parserSascha Hauer2011-12-071-11/+15
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-12-078-310/+287
|\
| * sanbox: add linux_execve and linux_exec commandJean-Christophe PLAGNIOL-VILLARD2011-12-072-0/+7
| | | | | | | | | | | | | | this will allow to execute a program of the host from barebox Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add iomem command to show iomem usageSascha Hauer2011-12-033-0/+64
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: remove dead codeSascha Hauer2011-11-291-8/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: use generic uncompress functionSascha Hauer2011-11-291-27/+4
| | | | | | | | | | | | | | | | | | This simplifies the code somewhat. The user visible change here is that we now ignore the compression specified in the uImage. Instead we detect the compression type from the data which also means that we now support lzo compressed uImages. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add generic uncompress commandSascha Hauer2011-11-293-17/+18
| | | | | | | | | | | | | | | | Using the new uncompress function we can now implement a command which can uncompress all known compression types. This supplements the unlzo command. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: do not select uncompression methodsSascha Hauer2011-11-292-14/+2
| | | | | | | | | | | | | | Instead, let the user select them manually so that bootm supports all compression types compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * add kernel gunzip implementationSascha Hauer2011-11-291-4/+6
| | | | | | | | | | | | | | The kernel uncompression functions have a unified API so use this implementation to get it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * use kernel bunzip implementationSascha Hauer2011-11-291-11/+12
| | | | | | | | | | | | | | | | The kernel uncompression functions have a unified API. Switch to the kernel implementation to unify the different uncompression APIs. As a bonus the kernel implementation is much smaller. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: use initrd_address and initrd_sizeSascha Hauer2011-11-291-5/+6
| | | | | | | | | | | | Make these fields in struct image_data the reference for image handlers Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: push relocate_image up to the generic commandSascha Hauer2011-11-291-0/+17
| | | | | | | | | | | | | | | | | | All handlers used to just relocate the image without any checks, so we are doomed if we write outside of SDRAM or will overwrite ourselves. Move the relocation up to the generic part where we have a chance of catching these issues. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm relocate_image: honour load_addressSascha Hauer2011-11-291-7/+7
| | | | | | | | | | | | | | | | | | the uImage should be relocated to load_address. This is handled correctly in gzip/bzip2 compressed images, but not in uncompressed images. fix this. Also, when a variable is not used once without casting to another type it probably means that its type is wrong. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: fix typo, update help strSascha Hauer2011-11-291-2/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: do not require -L after -rSascha Hauer2011-11-291-8/+5
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: fix various memory leaksSascha Hauer2011-11-291-8/+11
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: remove image handler optionsSascha Hauer2011-11-291-54/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: handle initrds inlineSascha Hauer2011-11-291-50/+28
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * factor out iminfo commandSascha Hauer2011-11-294-79/+78
| | | | | | | | | | | | | | | | The rests of U-Boots iminfo command are sitting in commands/bootm.c and are in a nonusable state. Factor it out to its own file and make it work again. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: remove dead codeSascha Hauer2011-11-291-47/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Merge branch 'work/magicvars' into nextSascha Hauer2011-11-294-0/+38
| |\
| | * bootm: Add bootargs magicvarSascha Hauer2011-11-291-0/+3
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| | * add magicvar commandSascha Hauer2011-11-293-0/+35
| | | | | | | | | | | | | | | | | | | | | The magicvar command gives an overview about all environment variables with a special meaning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Merge branch 'master' into nextSascha Hauer2011-11-292-3/+6
| |\| | | | | | | | | | | | | | | | | | | Conflicts: drivers/ata/disk_drive.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | remove irq support fragmentsSascha Hauer2011-11-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | We never had interrupt support in barebox and we have no plans to add interrupt support. Even if we do I doubt the current fragments of irq support are helpful, so remove them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | commands/cp: add verbose mode which displays progress barHubert Feurstein2011-11-221-6/+20
| | | | | | | | | | | | | | | Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | crc exit with COMMAND_ERROR_USAGEJan Weitzel2011-12-051-0/+2
| |/ |/| | | | | | | | | | | | | | | If parameter -v without a crc is used, you got a notice but the crc is calculated and exit status is 0. With wrong parameters we should quite with COMMAND_ERROR_USAGE. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>