summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'for-next/tftp'Sascha Hauer2012-10-033-0/+112
|\
| * net: Add tftp command which uses the new tftp codeSascha Hauer2012-09-283-0/+112
| | | | | | | | | | | | | | | | | | | | | | Traditionally tftp is a command of its own. Since we can mount tftp as a filesystem we have duplicated the tftp code, the old code is used by the tftp command, the new by the filesystem support. This adds a tftp command based on the filesystem support to preserve backward compatibility. This allows us to remove the old tftp support in the next step. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/testing-menu'Sascha Hauer2012-10-031-17/+21
|\ \
| * | commands: move memtest to testingAlexander Aring2012-09-111-9/+9
| | | | | | | | | | | | | | | | | | | | | Move memtest to testing commands menu. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | commands: move nandtest to testingAlexander Aring2012-09-111-8/+8
| | | | | | | | | | | | | | | | | | | | | Move nandtest in commands menu. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | commands: add testing menuAlexander Aring2012-09-111-0/+4
| |/ | | | | | | | | | | | | Add command menu for testing utilities. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-0359-198/+0
|\ \ | | | | | | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * | Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-1759-198/+0
| |/ | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/png'Sascha Hauer2012-10-034-224/+137
|\ \ | | | | | | | | | | | | | | | Conflicts: common/filetype.c include/filetype.h
| * | add PNG supportJean-Christophe PLAGNIOL-VILLARD2012-09-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | use LodePNG version 20120729 from http://lodev.org/lodepng/ The original coding style is keeped to simplify update. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | splash: add support to set a background colorJean-Christophe PLAGNIOL-VILLARD2012-09-121-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | This will allow to reset the screen to a default color when using transparent PNG. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | splash/bmp: switch to image_rendererJean-Christophe PLAGNIOL-VILLARD2012-09-122-5/+6
| | | | | | | | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bmp: Move bmp rendering to lib/bmp.cJean-Christophe PLAGNIOL-VILLARD2012-09-122-113/+12
| | | | | | | | | | | | | | | | | | | | | So we can add other format support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | bmp: rename it to splashJean-Christophe PLAGNIOL-VILLARD2012-09-123-9/+9
| |/ | | | | | | | | | | | | so be can add more format support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/boot-sequence-dhcp'Sascha Hauer2012-10-032-19/+44
|\ \ | | | | | | | | | | | | Conflicts: drivers/net/miidev.c
| * | globalvar: add support to set a value to of all globalvars beginning with ↵Jean-Christophe PLAGNIOL-VILLARD2012-09-141-11/+40
| | | | | | | | | | | | | | | | | | | | | | | | 'match' via c global_set_match and global -r Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
| * | echo: always allow to pass -e optionJean-Christophe PLAGNIOL-VILLARD2012-09-141-8/+4
| |/ | | | | | | | | | | | | This will allow to do not taint if not enabled Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / oftree command: Add devicetree probe supportSascha Hauer2012-09-142-14/+26
|/ | | | | | | | | | With this the -p option is no longer for parse, but for probe instead. Using this parses a devicetree given on the command line and probes the devices found in this tree. Devices which already exist are not probed again, but instead their device_node is attached to the existing device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* 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>