Re: [U-Boot-Users] "nand lock status": Start address always zero [untested patch]

[Resending to list, as suggested by Wolfgang Denk. I hope the list allows posting by non-members.]
Hi,
OpenMoko's Neo1973 uses u-boot and it mostly works very well.
I noticed, that "nand lock status" always shows a start address of zero.
As I don't have JTAG for my hardware, I am very reluctant at testing changes to u-boot, but I have looked at the source and tried to figure out the problem. I have appended an UNTESTED patch, that hopefully gets you an idea on the problem.
WARNING: To repeat, this patch is completely UNTESTED. I include it only for reference purposes.
Elrond
Relative to commit 239f05ee4dd4cfe0b50f251b533dcebe9e67c360
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index b088150..a184542 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -421,6 +421,8 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]) ((last_status & NAND_LOCK_STATUS_TIGHT) ? "TIGHT " : ""), ((last_status & NAND_LOCK_STATUS_LOCK) ? "LOCK " : ""), ((last_status & NAND_LOCK_STATUS_UNLOCK) ? "UNLOCK " : "")); + + block_start = off; }
last_status = s;
participants (1)
-
Elrond