<br><font size=2 face="sans-serif">Hello, Wolfgang!</font>
<br>
<br><font size=2 face="sans-serif">I found two bugs in common/cmd_nand.c when debugging nand flash, which</font>
<br><font size=2 face="sans-serif">is from u-boot-1.1.4 and the same with git tree:</font>
<br>
<br><font size=2 face="sans-serif">1. there are 3 places using "not exact" or "wrong" parameters in </font>
<br><font size=2 face="sans-serif">strncmp() function.</font>
<br>
<br><font size=2 face="sans-serif">strncmp(cmdtail, ".oob", 2) ==> strncmp(cmdtail, ".oob", 4)</font>
<br><font size=2 face="sans-serif">strncmp(cmdtail, ".jffs2", 2) ==> strncmp(cmdtail, ".jffs2", 6)</font>
<br><font size=2 face="sans-serif">strncmp(cmdtail, ".jffs2s", 2) ==> strncmp(cmdtail, ".jffs2s", 7)</font>
<br>
<br><font size=2 face="sans-serif">2. "nand read.jffs2" command will bypass "nand read.jffs2s" command</font>
<br><font size=2 face="sans-serif">for the else-if branch.</font>
<br>
<br><font size=2 face="sans-serif">FYI, the attachment is a diff patch with "-purN" options.</font>
<br>
<br><font size=2 face="sans-serif">Best regards,</font>
<br><font size=2 face="sans-serif">Dongyan Chai</font>
<br>
<br>
<br>