summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/misc'Sascha Hauer2012-09-051-1/+0
|\
| * arm: do not enable the previous bootz commandJean-Christophe PLAGNIOL-VILLARD2012-08-281-1/+0
| | | | | | | | | | | | | | | | | | as we now support via bootm on ixp4xx we still need it so keep it so far. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/link'Sascha Hauer2012-09-057-15/+194
|\ \
| * | dirname: add -V option to return only path related to the mountpointJean-Christophe PLAGNIOL-VILLARD2012-09-051-3/+21
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | ls: add symlink support to -lJean-Christophe PLAGNIOL-VILLARD2012-09-051-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | barebox:/ ls -l /env/init.d/ drwxrwxrwx 0 . drwxrwxrwx 0 .. lrwxrwxrwx 11 net -> ../boot/net Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | command: add ln supportJean-Christophe PLAGNIOL-VILLARD2012-09-053-0/+56
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | command: add readlink supportJean-Christophe PLAGNIOL-VILLARD2012-09-053-0/+87
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | test: add -L support to test if it's a symbolic linkJean-Christophe PLAGNIOL-VILLARD2012-09-051-2/+9
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | | Merge branch 'for-next/fs'Sascha Hauer2012-09-051-3/+15
|\ \ \ | |/ / |/| |
| * | command/mount: add autodetection supportJean-Christophe PLAGNIOL-VILLARD2012-09-041-3/+15
| | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | commands/digest: don't print checksum for non-existing filesAntony Pavlov2012-09-041-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the case: barebox:/ md5sum non-existing-file non-existing-file: No such file or directory 00000000000000000000000000000000 non-existing-file 0x00000000 ... 0xffffffffffffffff barebox:/ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | trivial: bootm: correct grammar in error messageSteffen Trumtrar2012-08-311-1/+1
| | | | | | | | | | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | trivial: fix spelling in usb codeSteffen Trumtrar2012-08-311-1/+1
| |/ |/| | | | | | | Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | commands/digest: don't print checksum for non-existing filesAntony Pavlov2012-08-281-5/+7
|/ | | | | | | | | | | | This fixes the case: barebox:/ md5sum non-existing-file non-existing-file: No such file or directory 00000000000000000000000000000000 non-existing-file 0x00000000 ... 0xffffffffffffffff barebox:/ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: do not load the initrd in the common codeJean-Christophe PLAGNIOL-VILLARD2012-08-131-8/+0
| | | | | | | This need to be handled by the arch bootm as the address can be invalid and provided at arch level. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* commands: memset: fix help messageAntony Pavlov2012-08-091-3/+2
| | | | | | | | memset has no '-s' option so remove related help string. Also this patch makes the command's description more clear. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/randconfig'Sascha Hauer2012-08-013-4/+6
|\
| * loadb: fix compilationSascha Hauer2012-07-251-2/+2
| | | | | | | | | | | | 'ofd' is always needed, even if LOADB is not selected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * exec command: Fix compilationSascha Hauer2012-07-251-2/+2
| | | | | | | | | | | | read_file and run_command take an additional argument now. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * uimage: introduce UIMAGE Kconfig symbolSascha Hauer2012-07-251-0/+2
| | | | | | | | | | | | | | Both the uimage command and the bootm command need uImage support, so add a Kconfig symbol for it to be able to select it properly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2012-08-011-1/+1
|\ \
| * | stddev: make it selectable via KconfigJean-Christophe PLAGNIOL-VILLARD2012-07-251-1/+1
| |/ | | | | | | | | | | | | | | | | | | enable is by default for simple and hush we do not need to NO_SHELL this allow to save 1KiB Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / mem md: make md -s /dev/something work againSascha Hauer2012-08-011-2/+3
|/ | | | | | | | | | | | | | | | | | | | | | Since |commit d22b85a203aea20a2b2618f5f457fe96c502868d |Author: Sascha Hauer <s.hauer@pengutronix.de> |Date: Wed Jul 4 23:41:13 2012 +0200 | | mem md: bail out without arguments | | Without arguments the 'md' command defaults to show address 0 which | likely results in a NULL pointer exception, so only three keystrokes | are necessary to crash barebox. Show usage instead if 'md' is invoked | without arguments, so that it at least requires an address to be given | to crash barebox. This increases the stability of barebox by 66%. Hurray! barebox does not crash any longer when a plain 'md' without additional arguments is exectuted. However, doing a 'md -s /dev/nor0' was a standard usecase which now does not work anymore. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands/crc: assert newline after output with big offsetsUwe Kleine-König2012-07-171-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes barebox@Very long board name:/ crc32 -f /dev/mem 0x83f00000+0xfff CRC32 for /dev/mem 0x83fff000 ... 0x83fffffe ==> 0xa080584bbarebox@Very long board name:/ The problem here was that the return value of lseek(fd, 0x83f00000, SEEK_SET) (which is 0x83f00000) was casted to an int (which is -2081423360), returned to do_crc and interpreted as error there without yielding another error message. This also makes crc32 -f /dev/mem 0xffffffff+0x1 die on a NULL pointer exception instead of reporting: lseek: No error :-) Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtd: fix bad block ioctlsSascha Hauer2012-07-102-3/+4
| | | | | | | | | | | | | | | | | | | | | | Since this commit we interpret the argument to the bad block ioctls as a pointer to a 64bit number: |commit e71c34366808bbe3ce0b166d8710749513af6d81 |Author: Sascha Hauer <s.hauer@pengutronix.de> |Date: Fri Oct 14 11:57:55 2011 +0200 | | mtd: fix arguments to bad block ioctls | | In the Kernel the mtd ioctls expect a pointer to the offset, whereas | barebox interprets the pointer itself as an offset. Since we want | to add 64bit support for file sizes a pointer may not be sufficient, | so align with the kernel and convert it to a pointer to the offset. | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> This missed some places, fix them aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mem md: bail out without argumentsSascha Hauer2012-07-051-0/+2
| | | | | | | | | | Without arguments the 'md' command defaults to show address 0 which likely results in a NULL pointer exception, so only three keystrokes are necessary to crash barebox. Show usage instead if 'md' is invoked without arguments, so that it at least requires an address to be given to crash barebox. This increases the stability of barebox by 66%. Hurray! Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: fix standard zero, full devicesSascha Hauer2012-07-041-3/+3
| | | | | | | | | | | | | | | | The standard devices are currently broken since they have the size ~0. As now files use loff_t as file size which is a signed type the read implementation gets confused and now returns -1. The current implementation also has the (somewhat theorical) problem that we do not have real streaming devices, so /dev/zero went out of zeroes after reading 4GB (or now LLONG_MAX). This patch introduces a new cdev flag DEVFS_IS_CHARACTER_DEV and a new file size flag FILE_SIZE_STREAM which makes it possible to create real stream devices instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-size'Sascha Hauer2012-07-023-7/+4
|\ | | | | | | | | | | Conflicts: drivers/base/resource.c fs/fs.c
| * resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-013-7/+4
| | | | | | | | | | | | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/poweroff'Sascha Hauer2012-07-023-0/+47
|\ \
| * | add 'poweroff' commandAntony Pavlov2012-06-303-0/+47
| | | | | | | | | | | | | | | Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/devnull'Sascha Hauer2012-07-023-29/+107
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: commands/mem.c
| * | | Added "/dev/full" and "/dev/null" devicesAlexander Shiyan2012-06-301-0/+55
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Move /dev/zero to separate unitAlexander Shiyan2012-06-303-29/+52
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This patch allows to present "/dev/zero" always in system and not depending of mem-command. Standard files allow to test other memory devices, not only "mem", such as NOR, NAND, MCI-devices e.t.c. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/watchdog'Sascha Hauer2012-07-023-0/+88
|\ \ \
| * | | Add a simple watchdog frameworkJuergen Beisert2012-06-293-0/+88
| |/ / | | | | | | | | | | | | | | | | | | | | | This patch adds a simple wd command which can setup, trigger and stop a watchdog on the platform. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2012-07-026-31/+47
|\ \ \
| * | | remove dead rarpboot commandSascha Hauer2012-06-301-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | This code is unused, remove it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | commands: add msleep commandSteffen Trumtrar2012-06-303-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a command to sleep for n milliseconds. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | common: fix typo cammand_var_completeSteffen Trumtrar2012-06-302-2/+2
| |/ / | | | | | | | | | | | | | | | | | | Change function name to command_var_complete in all calls and its declaration. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/basename-dirname'Sascha Hauer2012-07-024-0/+110
|\ \ \
| * | | Add dirname commandSascha Hauer2012-06-303-0/+55
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | Add basename commandSascha Hauer2012-06-303-0/+55
| |/ / | | | | | | | | | | | | | | | | | | The basename command allows to set an environment variable with the basename of a path. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/64bit'Sascha Hauer2012-07-025-32/+31
|\ \ \ | |_|/ |/| |
| * | memory commands: Make 64bit capableSascha Hauer2012-06-301-20/+19
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | make st_size in struct stat 64 bitSascha Hauer2012-06-301-1/+1
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | make memory display 64bit capableSascha Hauer2012-06-301-2/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | make parse_area_spec arguments loff_tSascha Hauer2012-06-304-8/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | use loff_t for file offsetsSascha Hauer2012-06-301-1/+1
| |/ | | | | | | | | | | | | This is a first step for 64bit file support: Make the file sizes/offsets 64bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / commands: uncompress: fix descriptionAlexander Shiyan2012-06-301-2/+2
|/ | | | | | | | Command "uncompress" can handle not only with LZO-format, so we just changed description for command. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>