summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* nand: Allow adding/removing of more than one bad block aware device at onceSascha Hauer2008-08-131-63/+107
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add missing close() in do_protectSascha Hauer2008-08-131-4/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* saveenv: close fileSascha Hauer2008-08-131-2/+5
| | | | | | | | Close the file in saveenv before calling envfs_save and reopen it afterwards. NAND Bad block aware devices allow opening a file only once. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NAND: nand command updatesSascha Hauer2008-08-131-16/+43
| | | | | | | - allow removal of bad block aware devices - turn printfs into debug Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* CFI Flash driver: Fix error pathSascha Hauer2008-08-131-9/+10
| | | | | | We forgot to close the file when parse_area_spec() failed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move several commands into extra filesSascha Hauer2008-08-138-4/+290
| | | | | | move false, true, help, insmod, lsmod, version into extra files Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* lseek: return -1 for errors and check for that return valueSascha Hauer2008-08-011-5/+5
| | | | | | We cannot check for < 0 in lseek, otherwise we get problems with files > 0x7fffffff Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* - introduce ioctl callSascha Hauer2008-06-061-0/+12
| | | | - pass open/close/lseek through to drivers
* [NAND] continue to make it work. Now works partly on at91sam9260Sascha Hauer2008-06-063-15/+23
|
* add basic at91sam9260 support. Currently only second stageSascha Hauer2008-06-061-0/+205
| | | | | | bootloader is supported: - No SDRAM initialisation - No UART init / baudrate change
* 008-fixloadbNishanth Menon2008-06-054-302/+1218
| | | | | | | | | [Patch 08/17] U-Boot-V2:Commands Unbreak loadb support This patch provides support for loadb and loady and enables the broken feature Signed-off-by: Nishanth Menon<x0nishan@ti.com>
* [memory layout]: streamline memory layoutSascha Hauer2008-06-041-1/+2
| | | | | | | Memory layout can now be specified via kconfig options. Two possibilities exist: default layout means the layout is stack / malloc heap / U-Boot. The user can also specify fixed addresses for each TEXT_BASE / stack / malloc heap.
* Merge branch 'master' of git://www.denx.de/git/u-boot-v2Sascha Hauer2008-06-0226-55/+70
|\
| * [net]: remove CONFIG_BOOTP_MASKSascha Hauer2008-04-071-3/+3
| |
| * Subject: [PATCH] [general] Fixed constant strings in data section issueSascha Hauer2008-04-0426-52/+65
| | | | | | | | | | | | | | | | For practical reasons I changed all string literals assumed to be constant to reside in .rodata subsection at end of .text section. Signed-off-by: Carsten Schlote <schlote@vahanus.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * md command: Close filedescriptor after useSascha Hauer2008-03-141-0/+2
| |
* | netboot commands: When downloading a file and no local filename is given,Sascha Hauer2008-03-311-1/+2
|/ | | | just use the filename as resulting file, not the whole path.
* add ls -c and -lSascha Hauer2008-03-111-3/+21
|
* close net_store_fd after usage. Man there are bugs to find...Sascha Hauer2008-03-101-6/+6
|