summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
...
* nand bb: fix handling of two subsequent bad blocksSascha Hauer2009-10-121-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* protect command: ignore -ENOSYSSascha Hauer2009-10-121-2/+3
| | | | | | | Return success on -ENOSYS. (un)protecting a device which is not protectable should not irritate users. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add USB device supportSascha Hauer2009-09-252-0/+185
| | | | | | | | | | This patch adds support for USB devices. It uses the Linux Kernel gadget API. Along with this patch comes driver support for the Freescale (arc) USB OTG Core and USB Device Firmware Update (DFU) The serial gadget support is not working at the moment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make copy_file() globally availableSascha Hauer2009-09-251-57/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ls: beautify outputSascha Hauer2009-09-251-9/+51
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: fix removal of bb devicesSascha Hauer2009-09-111-5/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: fix check when erasing a bb deviceSascha Hauer2009-09-111-2/+2
| | | | | | We can actually partly erase a bb device, so fix the check. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ethact command: If called without arguments print current eth deviceSascha Hauer2009-09-091-1/+8
| | | | | | Also, fix usage information Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: Add bootu commandSascha Hauer2009-08-191-0/+9
| | | | | | bootu command to start raw (uncompressed) Linux images Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: make 'bootz' configurableSascha Hauer2009-08-191-0/+8
| | | | | | also, fix compilation with bootm disabled Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: Fix writing of nand page unaligned dataSascha Hauer2009-08-131-14/+53
| | | | | | | | | | | We used to write the data in nand_bb_write directly to the NAND flash. If we do not write a whole NAND page at once, this resulted in multiple writes of one page which corrupted the ecc data. Fix this by collecting 4096 bytes of data before actually writing the data to the flash. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add memset command to u-bootSascha Hauer2009-07-311-0/+68
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* framebuffer: Add bmp command to show bmp filesSascha Hauer2009-07-313-0/+220
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement /dev/zeroSascha Hauer2009-07-301-0/+28
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* get rid of device idsSascha Hauer2009-07-212-5/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Get rid of remaining DEVICE_TYPE_* usageSascha Hauer2009-07-211-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: Get rid of DEVICE_TYPE_ETHER usageSascha Hauer2009-07-211-12/+5
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* make nand command mandatory for nand supportSascha Hauer2009-07-212-6/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-213-255/+151
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* allow changing of network deviceSascha Hauer2009-04-061-0/+38
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix compiler warningSascha Hauer2009-03-191-2/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove SHOW_BOOT_PROGRESSSascha Hauer2009-03-191-7/+0
| | | | | | Though useful it is currently unsued and broken. Should be reimplemented Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Flush consoles before exitingSascha Hauer2009-03-191-0/+2
| | | | | | | We use FIFOs on some devices, so flush them before exiting so we do not get funny characters in the output. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: Fix verifying of uImagesSascha Hauer2009-02-061-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mtest: remove braindamaged NULL pointer derefSascha Hauer2009-01-131-1/+1
| | | | | | | | | | The alternative memory test implementation needs a scratch memory location to remove the last data from the data bus. Instead of using a NULL pointer for this, default to the memory start address. No sane program should consider a NULL pointer as a safe default. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove warningfredo2008-12-181-1/+1
| | | | | Signed-off-by: Frederic RODO <fred.rodo@gmail.com>
* memory commands: allow for kMG suffixesSascha Hauer2008-12-171-6/+6
| | | | | | Allow for kMG suffixes in memcpy and memcmp Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* CRC: various fixesSascha Hauer2008-11-101-4/+9
| | | | | | | - bail out on read errors - test for -1 instead of < 0 for lseek Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Commands:NAND: Rmove unwanted prints remove unwanted prints which can ↵Nishanth Menon2008-09-151-2/+2
| | | | | | interfere with protocols such as kermit downloads Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* NAND:Config changeNishanth Menon2008-09-151-0/+1
| | | | | | | | Introduce config definitions similar to that defined in Linux MTD layer. These allow us to enable conditional features. Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* NAND: Calculate size of bb devicesSascha Hauer2008-09-031-2/+24
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NAND: fix reading of bad block aware devicesSascha Hauer2008-09-031-2/+4
| | | | | | | When reading from bad block aware devices we must make sure not to read beyond eraseblock boundaries. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: add nand -b for marking blocks as badSascha Hauer2008-09-021-13/+43
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* cp: check return value of read()Sascha Hauer2008-09-021-1/+1
| | | | | | ...and not if the function read is non NULL. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "partition: fix compiler warning"Sascha Hauer2008-08-271-7/+7
| | | | | | Grumpf. Better compiler warnings than broken code :( This reverts commit 8201d7c5fc46b3355692731f22f0e8631faf51d4.
* partition: fix compiler warningSascha Hauer2008-08-261-7/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* partition: rename variableSascha Hauer2008-08-261-13/+13
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Revert "loadb: remove old-style-u-boot-ifdefs around whole file"Sascha Hauer2008-08-211-0/+3
| | | | | | This reverts commit 1e49fadf8ada076514afdebe89ddc0a22c4239d9. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: honour the -n flag againSascha Hauer2008-08-201-2/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bootm: memmap now returns (void *)-1 for failure. Test for this instead of NULLSascha Hauer2008-08-201-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* loadb: change default download fileNishanth Menon2008-08-201-1/+1
| | | | | | | | | | | | | The default download device was /dev/mem Quote Sascha: "This is a quite dangerous thing. There are quite some boards out there which have NOR Flash on 0x0. With a default file of /dev/mem we would overwrite U-Boot." Change default device to image.bin Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* loadb: Add buffered writeNishanth Menon2008-08-201-6/+49
| | | | | | | | | | Default loadb behavior works on packet sized chunks of kermit data to be put on target file This would not work good on block devices such as NAND. solution will be to buffer data up to standard 4096 chunks before giving to device. Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* loadb: remove old-style-u-boot-ifdefs around whole fileSascha Hauer2008-08-191-2/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* loadb: change -d to -fNishanth Menon2008-08-191-3/+3
| | | | | | | | | | -d represents devices only.. but loadb can operate on files as well. hence Use -f as option to select the output file. This is more representative of what we are trying to do. Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* loadb: create fileNishanth Menon2008-08-191-5/+10
| | | | | | | | | | | Allow loadb and loady to create file if file not present. This will allow for downloading a file to filesystem and cp or doing other operations on the same. Making this as an option instead of a default behavior ensures that users intend to create file when they use -c option Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* Let 'go' command interpret filenames.Sascha Hauer2008-08-141-9/+33
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement memmap for mem driverSascha Hauer2008-08-141-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ups, some debug printf slipped inSascha Hauer2008-08-141-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Partition: Add an own device id for partitionsSascha Hauer2008-08-141-1/+8
| | | | | | | | Add an own device id for partitions. This is necessary to allow the partition layer to check if the given device is really a partition. Also, check for readonly flag in erase. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* some merge leftover slipped inSascha Hauer2008-08-131-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>