u-boot/drivers
Scott Wood 3048632251 nand erase: .spread, .part, .chip subcommands
A while back, in http://lists.denx.de/pipermail/u-boot/2009-June/054428.html,
Michele De Candia posted a patch to not count bad blocks toward the
requested size to be erased.  This is desireable when you're passing in
something like $filesize, but not when you're trying to erase a partition.

Thus, a .spread subcommand (named for consistency with
http://lists.denx.de/pipermail/u-boot/2010-August/075163.html) is introduced
to make explicit the user's desire to erase for a given amount of data,
rather than to erase a specific region of the chip.

While passing $filesize to "nand erase" is useful, accidentally passing
something like $fliesize currently produces quite unpleasant results, as the
variable evaluates to nothing and U-Boot assumes that you want to erase
the entire rest of the chip/partition.  To improve the safety of the
erase command, require the user to make explicit their intentions by
using a .part or .chip subcommand.  This is an incompatible user interface
change, but keeping compatibility would eliminate the safety gain, and IMHO
it's worth it.

While touching nand_erase_opts(), make it accept 64-bit offsets and sizes,
fix the percentage display when erase length is rounded up, eliminate
an inconsistent warning about rounding up the erase length which only
happened when the length was less than one block (rounding up for $filesize
is normal operation), and add a diagnostic if there's an attempt to erase
beginning at a non-block boundary.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
2010-10-11 15:10:17 -05:00
..
bios_emulator ati_radeon: Support PCI virtual not eq bus mapping. 2010-04-08 15:30:47 +02:00
block ide: add mvsata_ide driver 2010-08-08 05:17:06 +05:30
dma powerpc/8xxx: Fix dma for 36bit addressing 2010-08-31 11:23:15 -05:00
fpga add block write function to spartan3 slave serial load 2010-03-24 11:08:43 -05:00
gpio ARMV7: S5P: rename from CONFIG_S5PC1XX to CONFIG_S5P 2010-08-26 17:33:23 +09:00
hwmon ds1621: Fix negative temperature readings 2010-10-06 23:01:22 +02:00
i2c ppc4xx: Move ppc4xx headers to powerpc include directory 2010-09-23 09:02:05 +02:00
input Remove HMI10 board support 2010-09-19 21:28:25 +02:00
misc cmd_usage(): simplify return code handling 2010-07-24 20:43:57 +02:00
mmc Blackfin: bfin_sdh: clean up send_cmd 2010-10-02 16:00:37 -04:00
mtd nand erase: .spread, .part, .chip subcommands 2010-10-11 15:10:17 -05:00
net Blackfin: bfin_mac: convert from old style MMR macros 2010-10-02 16:00:37 -04:00
pci powerpc/85xx & 86xx: Rework ft_fsl_pci_setup to not require aliases 2010-07-20 04:40:06 -05:00
pcmcia Remove HMI10 board support 2010-09-19 21:28:25 +02:00
power Prepare v2010.09-rc1 2010-09-10 00:16:19 +02:00
qe miiphy: constify device name 2010-08-09 11:52:29 -07:00
rtc AT91: add RTT and GPBR based RTC 2010-09-03 11:20:02 +02:00
serial ppc4xx: Remove now unused CONFIG_UART1_CONSOLE 2010-09-23 09:02:05 +02:00
spi Blackfin: bfin_spi: add optional DMA support 2010-10-02 16:00:36 -04:00
twserial drivers/twserial: Add protocol driver for "three wire serial" interface. 2009-03-30 09:38:36 +02:00
usb USB-CDC: Fix coding style issues 2010-09-20 21:57:17 +02:00
video Merge branch 'next' of git://git.denx.de/u-boot-video 2010-10-05 14:31:48 +02:00
watchdog Convert at91 watchdog driver to new SoC access 2010-04-03 15:24:27 -05:00