Fabio,
Thanks for responding. This is kicking my butt...
I've written the driver code for this interface in my own boot monitor
and I also had it working in the LTIB-uboot distribution (quite old); so
I think
I understand the interface. This tells me that my hardware is correct.
I recently updated kernel and uboot, and now uboot doesn't work with
the same SPI flash device and I see that the underlying SPI interface
code has
changed (since 2009 version) significantly. I'm using an ATMEL part,
but the
error occurs before and device specific code is even used (the
CMD_ID_READ in
the probe fails).
I have the control lines on a scope and I see the 9F (CMD_ID_READ)
issued to the
device with CS low; however, the only way I can get it to respond with
something other
than FF's is if I seriosly hack the spi_xchg_single() function. With
this hack, I can see
the device send back the ID. This at least tells me that I have the
IOMUX stuff set up
right (plus, as I said, I got this working in the 2009 version of uboot).
Anyway, could you do me a big favor and build your u-boot with...
#define debug printf
put at the top of ...
drivers/spi/mxc_spi.c
and then run your sf probe command and send me that output?
That may help me see where my problem lies?
Ed
BTW... I'm emailing because for some reason I can't get to the community
website right now.
Freescale Community <https://community.freescale.com/>
<https://community.freescale.com/>
>
Anyone used the 'sf' command in more recent versions of u-boot?
reply from Fabio Estevam
<https://community.freescale.com/people/FabioEstevam?et=watches.email.thread>
in /i.MX Community/ - View the full discussion
<https://community.freescale.com/message/359521?et=watches.email.thread#359521>
>