rv1126-uboot/common
Tom Rini c39d6a0ea5 nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters
We make these two functions take a size_t pointer to how much space
was used on NAND to read or write the buffer (when reads/writes happen)
so that bad blocks can be accounted for.  We also make them take an
loff_t limit on how much data can be read or written.  This means that
we can now catch the case of when writing to a partition would exceed
the partition size due to bad blocks.  To do this we also need to make
check_skip_len count not just complete blocks used but partial ones as
well.  All callers of nand_(read|write)_skip_bad are adjusted to call
these with the most sensible limits available.

The changes were started by Pantelis and finished by Tom.

Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Tom Rini <trini@ti.com>
2013-04-10 15:22:22 +02:00
..
spl SPL: ONENAND: Support SPL to boot u-boot from OneNAND. 2013-03-11 11:05:49 -04:00
Makefile New command bootmenu: ANSI terminal boot menu support 2013-03-29 09:35:34 +01:00
bedbug.c Consolidate bool type 2013-04-01 16:33:52 -04:00
board_f.c x86: Adjust board_f.c for x86 2013-03-15 16:14:00 -04:00
board_r.c x86: Enable generic board support 2013-03-15 16:14:00 -04:00
bootstage.c
bouncebuf.c
cmd_ambapp.c
cmd_bdinfo.c
cmd_bedbug.c Consolidate bool type 2013-04-01 16:33:52 -04:00
cmd_bmp.c
cmd_boot.c
cmd_bootldr.c
cmd_bootm.c image: Add support for Plan 9 2013-03-27 15:30:11 -04:00
cmd_bootmenu.c New command bootmenu: ANSI terminal boot menu support 2013-03-29 09:35:34 +01:00
cmd_bootstage.c
cmd_cache.c
cmd_cbfs.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_console.c
cmd_cplbinfo.c
cmd_cramfs.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_dataflash_mmc_mux.c
cmd_date.c
cmd_dcr.c
cmd_dfu.c dfu: Fix crash when wrong number of arguments given 2013-03-16 21:12:01 +01:00
cmd_diag.c
cmd_disk.c
cmd_display.c
cmd_dtt.c TMU: Add TMU support in dtt command 2013-03-12 17:06:22 +09:00
cmd_echo.c
cmd_eeprom.c
cmd_elf.c cmd_elf: Fix broken bootvx command 2013-02-20 08:52:29 -05:00
cmd_exit.c
cmd_ext2.c
cmd_ext4.c cmd_ext4: BREAK and correct ext4write parameter order 2013-03-27 15:30:11 -04:00
cmd_fat.c cmd_fat.c: Note in fatread help about alignment requirements 2013-03-12 12:43:31 -04:00
cmd_fdc.c Consolidate bool type 2013-04-01 16:33:52 -04:00
cmd_fdos.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_fdt.c Update set_working_fdt_addr() to use setenv_addr() 2013-02-28 19:09:23 -08:00
cmd_fitupd.c
cmd_flash.c
cmd_fpga.c
cmd_fs.c
cmd_gettime.c
cmd_gpio.c
cmd_gpt.c gpt: fix partion size limit 2013-02-20 08:52:41 -05:00
cmd_hash.c hash: Use lower case for hash algorithm names 2013-02-28 19:49:13 -08:00
cmd_help.c Refactor linker-generated arrays 2013-03-12 23:28:40 +01:00
cmd_i2c.c
cmd_ide.c
cmd_immap.c
cmd_ini.c
cmd_io.c
cmd_irq.c
cmd_itest.c
cmd_jffs2.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_ldrinfo.c
cmd_led.c led: Use STATUS_LED_ON and STATUS_LED_OFF when calling __led_set 2013-03-07 17:22:57 +01:00
cmd_license.c
cmd_load.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_log.c
cmd_mac.c
cmd_md5sum.c
cmd_mdio.c
cmd_mem.c cmd_mem.c: Fix warning when CONFIG_CMD_MEMTEST is not set 2013-03-12 12:43:31 -04:00
cmd_mfsl.c
cmd_mii.c
cmd_misc.c
cmd_mmc.c mmc: don't allow extra cmdline arguments 2013-04-02 16:23:35 -04:00
cmd_mmc_spi.c
cmd_mp.c
cmd_mtdparts.c cmd_mtdparts.c: Correct "reseting" to "resetting" in error msgs 2013-03-11 17:01:02 -04:00
cmd_nand.c nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters 2013-04-10 15:22:22 +02:00
cmd_net.c
cmd_nvedit.c env: fix "env ask" command 2013-03-12 12:43:31 -04:00
cmd_onenand.c
cmd_otp.c
cmd_part.c cmd_part: don't print cmd name twice in help 2013-03-11 17:00:28 -04:00
cmd_pci.c
cmd_pcmcia.c
cmd_portio.c
cmd_pxe.c menu: Add support for user defined item choice function 2013-03-29 09:35:33 +01:00
cmd_read.c
cmd_reginfo.c blackfin: bf60x: Port blackfin core architecture code to boot on bf60x. 2013-03-04 13:42:06 +08:00
cmd_reiser.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_sandbox.c sandbox: Add 'sb' command to access filesystem features 2013-03-04 14:19:56 -05:00
cmd_sata.c common: cmd_sata: Fix usage text for 'sata init' 2013-02-23 11:18:24 +01:00
cmd_scsi.c Consolidate bool type 2013-04-01 16:33:52 -04:00
cmd_setexpr.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_sf.c cmd_sf: include header file common.h before div64.h 2013-04-08 12:00:51 -04:00
cmd_sha1sum.c hash: Add a flag to support saving hashes in the environment 2013-02-28 19:09:23 -08:00
cmd_sound.c
cmd_source.c
cmd_spi.c
cmd_spibootldr.c
cmd_spl.c SPL: Change description for spl command 2013-03-01 12:01:32 -05:00
cmd_strings.c
cmd_terminal.c
cmd_test.c common/cmd_test: Avoid macro expansion 2013-04-08 12:00:51 -04:00
cmd_time.c
cmd_tpm.c
cmd_tsi148.c
cmd_ubi.c
cmd_ubifs.c
cmd_universe.c
cmd_unzip.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_usb.c
cmd_usb_mass_storage.c usb:gadget: USB Mass Storage Gadget support 2013-03-18 18:58:53 +01:00
cmd_version.c
cmd_ximg.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_yaffs2.c
cmd_zfs.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
cmd_zip.c common: Use new numeric setenv functions 2013-02-28 19:09:23 -08:00
command.c
console.c
ddr_spd.c
dlmalloc.c Consolidate bool type 2013-04-01 16:33:52 -04:00
dlmalloc.src Consolidate bool type 2013-04-01 16:33:52 -04:00
edid.c
env_attr.c
env_callback.c env_callback: Mark find_env_callback as static 2013-03-27 15:30:11 -04:00
env_common.c
env_dataflash.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
env_eeprom.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
env_embedded.c
env_fat.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
env_flags.c
env_flash.c
env_mmc.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
env_nand.c nand: Extend nand_(read|write)_skip_bad with *actual and limit parameters 2013-04-10 15:22:22 +02:00
env_nowhere.c
env_nvram.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
env_onenand.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
env_remote.c
env_sf.c Revert "env: fix potential stack overflow in environment functions" 2013-04-05 14:55:21 -04:00
exports.c
fdt_support.c
flash.c
hash.c hash: Use lower case for hash algorithm names 2013-02-28 19:49:13 -08:00
hush.c
hwconfig.c
image.c image: Add support for Plan 9 2013-03-27 15:30:11 -04:00
iomux.c
kallsyms.c
kgdb.c
kgdb_stubs.c
lcd.c video: bcm2835: fix build issues 2013-03-29 14:29:39 +01:00
lynxkdi.c
main.c CONFIG_BOOTDELAY default should not affect runtime 2013-03-12 12:43:31 -04:00
memsize.c
menu.c menu: export menu_default_choice() function 2013-03-29 09:35:34 +01:00
miiphyutil.c
modem.c
s_record.c
stdio.c
system_map.c
update.c
usb.c
usb_hub.c
usb_kbd.c
usb_storage.c
xyzModem.c