On 25/03/2013 17:13, Javier Martinez Canillas wrote: > since commit "c1173bd0: sf command: allow default bus and chip selects" > the chip-select and bus arguments for the sf probe command are optional. >
Hi Javier, > Even when passing the chip-select to sf probe says to be optional, it > makes "sf erase" and "sf write" to fail on a mx6qsabrelite board. e.g: > > MX6QSABRELITE U-Boot > sf probe 1 > MX6QSABRELITE U-Boot > sf erase 0 0x40000 > SPI flash erase failed > MX6QSABRELITE U-Boot > sf write 0x10800000 0 0x40000 > SPI flash write failed Well, the real reason is that the passed chipselect is wrong. Checking in the configuration file, I see that the value to be passed should be 0x7300. I suppose (I am not testing) that "sf probe 0x7300" make sf erase and sw write working. > > But just using "sf probe" works well. So, update the mx6qsabrelite > README so the commands will work on current U-Boot. I agree with the patch, but the description is wrong. Can you rewrite it simply stating that the chipselect "1" is wrong and that it is not strictly required (but again, is not forbidden) to pass it to sf probe ? Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot