summaryrefslogtreecommitdiffstats
path: root/commands/nand.c
Commit message (Collapse)AuthorAgeFilesLines
* commands: remove struct command pointer from commandsSascha Hauer2012-02-271-1/+1
| | | | | | This is unused in all commands and thus can be removed. 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>
* 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>
* nand: Make write support optionalSascha Hauer2011-04-041-1/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: fix printf compiler warningsSascha Hauer2011-01-071-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make some help comments less confusingJuergen Beisert2010-03-181-1/+1
| | | | | Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove typedef cmd_tbl_t and replace it with struct commandSascha Hauer2010-02-011-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands/nand.c: Fix memory holeSascha Hauer2009-12-211-5/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand bb: Be sure that fd is at the beginning when erasingSascha Hauer2009-12-101-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove maxargsSascha Hauer2009-10-191-1/+0
| | | | | | | No need to check for maximum argument counts. The commands are safe to be called with more arguments, so lets safe some bytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* call getopt_reset only onceSascha Hauer2009-10-191-2/+0
| | | | | | | instead of calling getopt_reset in each command, call it only once before calling the command. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* nand bb: fix handling of two subsequent bad blocksSascha Hauer2009-10-121-0/+1
| | | | 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>
* 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>
* Get rid of remaining DEVICE_TYPE_* usageSascha Hauer2009-07-211-4/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-211-77/+67
| | | | 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>
* 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: 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>
* 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>
* 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>
* [NAND] continue to make it work. Now works partly on at91sam9260Sascha Hauer2008-06-061-15/+19
|
* add basic at91sam9260 support. Currently only second stageSascha Hauer2008-06-061-0/+205
bootloader is supported: - No SDRAM initialisation - No UART init / baudrate change