mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-24 00:12:13 +00:00
nandbcb: add nandbcb dump command for i.MX6
Verify/dump boot structures. Signed-off-by: Alice Guo <alice.guo@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
0b10337b21
commit
49f8454705
1 changed files with 4 additions and 0 deletions
|
@ -309,6 +309,10 @@ static int write_fcb_dbbt_and_readback(struct mtd_info *mtd,
|
|||
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,
|
||||
|
|
Loading…
Reference in a new issue