| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Add the 'nand verify' command to perform a dump and fake-write
simultaneously, checking the read bits against those generated by the
write process. Appropriate user documentation for this command has
been added to the user guide as well.
The algorithm presently makes a relatively naive comparison. Some chips
that use ECC may not verify correctly using this implementation, but the
new documentation provides details about this limitation.
|
|
|
|
|
|
|
|
|
|
|
| |
This patch eliminates duplicated code in the the NAND 'dump' and 'write'
by using the new static helper functions.
These changes also fix a possible memory leak in nand dump command, in
the case that the dump file failed to open.
Overall, the changes should be functionally equivalent, but the
resulting code will be easier to improve and extend further.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch provides helpers APIs that will eliminate duplicated code in
the the NAND 'dump' and 'write' commands by factoring their common code
into static helper functions. These helpers may be useful for creating
new commands, as shown in the final patch to 'verify' flash from a file.
Several previously unreported error conditions now generate messages and
propogate the return codes, such as when the file fails to open and bad
arguments are given. These changes will fix a possible memory leak in
nand dump command, in the case that the dump file failed to open.
Overall, the changes should be functionally equivalent, but the
resulting code will be easier to improve and extend consistently.
|
|
|
|
|
|
|
|
|
| |
Don't include "target.h" from more headers than necessary. This
avoids needless interdependencies and duplicated include paths.
Don't needlessly include it in source files, either.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
| |
Lots of files still include it, often through needless
duplicate inclusion of "log.h"; sigh.
This cleans up the inclusion graph a bunch, so there are
fewer inclusion paths, but it doesn't change much otherwise.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most files in the tree seem to have ended up including this,
and *quite* needlessly ... only code implementing or using
downloadable algorithms actually needs these declarations.
So take it out of the header files which included it, and put
it in files which use it ... reduce needless interdependencies.
Also: "algorithm.h" doesn't need to include "types.h" again;
it already comes from a different header.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
|
|
|
|
| |
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
|
|
|
|
| |
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
|
|
|
|
|
|
|
|
|
|
| |
Remove the last external user of arm7_9_get_arch_pointers(), and
that annoying downcast utility. Add an is_arm7_9() predicate.
Stop returning specious success codes on various failure paths
in the ARM7/ARM9 commands which used that downcast utility.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct command.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct command_context.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct nand_device.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct target.
|
|
|
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct image.
Also removes the typedef from enum image_type, as it is used in
image.h only.
|
|
|
|
| |
Remove misleading typedef and just use struct arm.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct working_area.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct mips_ejtag.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct mips32_common.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct avr_common.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct armv7m_algorithm.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct armv4_5_algorithm.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct arm_jtag.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct arm7_9_common.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct reg_param.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct mem_param.
|
|
|
|
| |
The ADUC702x_FLASH_MMIO structure was completely used, so it must die.
|
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct
aduc702x_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct tms470_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct pic32mx_mem_layout.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct non_cfi.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct nand_block.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct str9xpec_flash_controller.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct str9x_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct str7x_mem_layout.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct str7x_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct stm32x_mem_layout.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct stm32x_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct stm32x_options.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct stellaris_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct s3c24xx_nand_controller.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct pic32mx_flash_bank.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct orion_nand_controller.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct ocl_priv.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct nand_info.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct nand_manufacturer.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct nand_ecclayout.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct nand_flash_controller.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct mx3_nf_controller.
|
|
|
|
| |
Remove misleading typedef and redundant suffix from struct mflash_bank.
|