summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* add a add_mem_device functionSascha Hauer2011-07-181-24/+8
| | | | | | | | | | | Add a helper function for boards to register their memory devices. This makes the board code smaller and also helps getting rid of map_base and struct memory_platform_data. And switch all of the memory to it Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLEJean-Christophe PLAGNIOL-VILLARD2011-07-181-1/+1
| | | | | | | we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'next'Sascha Hauer2011-07-061-2/+1
|\
| * commands/bootm.c: fix unused-but-set-variable gcc warningAntony Pavlov2011-07-041-2/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | menu: fix command management module supportJean-Christophe PLAGNIOL-VILLARD2011-07-051-1/+1
|/ | | | | | | it's part of the command and can not be compiled as an other module Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'next'Sascha Hauer2011-06-063-0/+206
|\
| * commands: add md5/sha1/sha256sum commands using the digest apiPeter Korsgaard2011-05-193-0/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The interface emulates the Linux commands, except that you can specify a sub area - E.G.: barebox:/ md5sum /dev/fd0 2M+1M /env/config /env/bin/boot 10+2 61c4c0180b044191d28f27545f43562f /dev/fd0 0x00200000 ... 0x00300000 908b84bcbadd2f263583a65ff31d1cad /env/config 0x00000000 ... 0x000003a7 f23bd15825cc5006cf5f9fd486d82d2d /env/bin/boot 0x0000000a ... 0x0000000c Adds around 1400 bytes (+ size of digest code) with everything enabled. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | commands/crc.c: fix typo in help textPeter Korsgaard2011-05-161-1/+1
|/ | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cp command: handle directories as last argumentSascha Hauer2011-04-121-1/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* environment: make default env path configurableSascha Hauer2011-04-122-2/+2
| | | | | | | | Normally the default path to save the environment is /dev/env0. However, we can't map a file in a fat filesystem to /dev/env0. So if we want to store the environment in a file in fat we have to make it configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: add proper bb remove functionSascha Hauer2011-04-121-12/+1
| | | | | | | | The old way happily removed cdev entries which were no bb dev at all. Fix this by checking if the given device actually is a bb device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: switch to cdev operationsSascha Hauer2011-04-121-1/+1
| | | | | | | The cdev operations are available without the complete file API, so they are more suitable for internal usage. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: move bb handling code to drivers/mtd/nandSascha Hauer2011-04-121-248/+0
| | | | | | | It's good to seperate the code which others can use from commands. This way other users do not depend on the command being compiled in. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make command support optionalSascha Hauer2011-04-111-1/+10
| | | | | | | In a noninveractive environment we do not need commands. So make them optional. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* env: Make environment variable support optionalSascha Hauer2011-04-111-0/+2
| | | | | | | Environment variables are only useful in interactive environments. Make it optional on our way to support a noninteractive barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: seperate usb command from usb coreSascha Hauer2011-04-113-0/+50
| | | | | | | | This patch makes the USB command optional and makes usb_rescan a global function. This way we can use USB in noninteractive environments. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devfs: remove unused struct filep* argument from open/closeSascha Hauer2011-04-111-2/+2
| | | | | | | the cdev layer is under the file layer, so it should not use struct filep*. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'nand-pu' into nextSascha Hauer2011-04-063-2/+13
|\
| * nand: Make write support optionalSascha Hauer2011-04-041-1/+6
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands: Make nand command optionalSascha Hauer2011-04-042-1/+7
| | | | | | | | | | | | | | The nand command is for bad block handling which some do not need. So make it optional, but with default y. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | memcpy command: do not set read/write sizeSascha Hauer2011-04-041-1/+1
|/ | | | | | | The memcpy command can be much faster if we do not copy in byte mode. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-03-101-1/+1
|\
| * trigger command: fix printf formatSascha Hauer2011-03-101-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | LINUX16: Fix warningJuergen Beisert2011-03-101-1/+2
| | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* | LINUX16: Add selection of the VESA video modeJuergen Beisert2011-03-101-4/+33
| | | | | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* | Change 'linux16' command to use getopt()Juergen Beisert2011-03-101-4/+12
|/ | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2011-01-171-1/+1
|\
| * nand: fix printf compiler warningsSascha Hauer2011-01-071-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | BMP: Add support for 32bpp video frame bufferGregory CLEMENT2011-01-141-0/+1
| | | | | | | | | | Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Fix error handling with malloc, memalign etc. Introduce xmemalign().Krzysztof Halasa2011-01-071-3/+1
|/ | | | | | | | | | | | | | The idea is to panic() when there is no memory available for normal operation. Exception: code which can consume arbitrary amount of RAM (example: files allocated in ramfs) must report error instead of panic(). This patch also fixes code which didn't check for NULL from malloc() etc. Usage: malloc(), memalign() return NULL when out of RAM. xmalloc(), xmemalign() always return non-NULL or panic(). Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix a typo in the GPIO docJuergen Beisert2010-12-211-1/+1
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* xyzModem.c: fix 'dummy' is used uninitialized in this function warningFabio Porcedda2010-12-211-1/+1
| | | | | | | | | | | | fix this gcc 4.4 warning: xyzModem.c: In function 'xyzModem_stream_open': xyzModem.c:564: warning: 'dummy' is used uninitialized in this function Copied from U-Boot Signed-off-by: Fabio Porcedda <fabio.porcedda@telit.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cosmetic fixes, including format attributes for printf() and friends.Krzysztof Halasa2010-12-216-8/+7
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix help text for "loadb" and "loady" commands.Krzysztof Halasa2010-12-211-1/+1
| | | | | Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* LED: Add trigger commandSascha Hauer2010-12-203-0/+116
| | | | | | This patch allows controlling LED triggers vie the command line. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* LED: Add led commandSascha Hauer2010-12-203-0/+98
| | | | | | This patch allows controlling LEDs via the command line. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'master' into nextSascha Hauer2010-11-171-1/+1
|\
| * linux16: fix cmd_tbl_t as struct commandJean-Christophe PLAGNIOL-VILLARD2010-11-171-1/+1
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | Remove m68k supportSascha Hauer2010-11-171-1/+0
|/ | | | | | | | | The m68k support is compile broken for a long time now and nobody cared so far. We cannot keep the architecture uptodate with current development wihtout being able to compile it. It's still in the archives and can be re-added anytime once somebody cares for. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* doc: unify documentation for 'linux16'Robert Schwebel2010-11-021-13/+12
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'setenv'Robert Schwebel2010-11-021-17/+13
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'saveenv'Robert Schwebel2010-11-021-17/+14
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'protect' and 'unprotect'Robert Schwebel2010-11-021-28/+42
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'printenv'Robert Schwebel2010-11-021-17/+13
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'mount'Robert Schwebel2010-11-021-41/+37
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: remove ..., confuses doxygenRobert Schwebel2010-11-021-1/+1
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'loadenv'Robert Schwebel2010-11-021-20/+14
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'export'Robert Schwebel2010-11-011-10/+4
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: rework and unify documentation for gpio commandsRobert Schwebel2010-11-011-47/+55
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* doc: unify documentation for 'erase'Robert Schwebel2010-11-011-14/+16
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>