I am working on a custom board based on AM335x and SDK 6.0.0.0. The board has a Macronix MX25L3206D spi flash. I have implemented this flash into u-boot and linux kernel and it seems working quite well. Below is the log.
For u-boot:
=======
U-Boot# sf probe 0:0
SF: Detected MX25L3206D with page size 64 KiB, total 4 MiB
U-Boot#
=====
For linux kernel:
============
root@am335x-evm:~# dmesg |grep -i spi
[ 1.238906] m25p80 spi1.0: mx25l3206d (4096 Kbytes)
[ 1.244305] Creating 5 MTD partitions on "spi_flash":
root@am335x-evm:~#
===========
I can read/write the spi nor flash without any problems.
I then dd the MLO and uboot.bin into /dev/mtd0 and /dev/mtd1 during SD boot and config the SYSBOOT to spi boot properly. However, I cannot see the device boot up.
My question is: What will be the correct steps to bring the device up from spi nor flash? I also tried the MLO.byteswap and still no lucks. Thanks.
-Eric