projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d8a509
)
MLK-22842: nandbcb: add nandbcb dump command for i.MX6
author
Alice Guo
<alice.guo@nxp.com>
Fri, 25 Oct 2019 15:32:30 +0000
(23:32 +0800)
committer
Ye Li
<ye.li@nxp.com>
Mon, 28 Oct 2019 08:12:55 +0000
(
01:12
-0700)
Verify/dump boot structures.
Signed-off-by: Alice Guo <alice.guo@nxp.com>
(cherry picked from commit
65354b516d9919509fadff096c1ba6808e6975cf
)
arch/arm/mach-imx/cmd_nandbcb.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/cmd_nandbcb.c
b/arch/arm/mach-imx/cmd_nandbcb.c
index
b32f106
..
2bf230b
100644
(file)
--- a/
arch/arm/mach-imx/cmd_nandbcb.c
+++ b/
arch/arm/mach-imx/cmd_nandbcb.c
@@
-235,6
+235,10
@@
static int write_fcb_dbbt_and_readback(struct mtd_info *mtd, struct fcb_block *f
debug("NAND fcb write: 0x%x offset 0x%zx written: %s\n",
mtd->erasesize * i, ops.len, ret ?
"ERROR" : "OK");
+
+ ops.datbuf = (u8 *)(dump_nand_fcb + i);
+ ops.oobbuf = ((u8 *)(dump_nand_fcb + i)) + mtd->writesize;
+ mtd_read_oob(mtd, mtd->erasesize * i, &ops);
}
ret = mtd_write(mtd, mtd->erasesize * i + mtd->writesize,