Hello Titus, Shankari and Norman,
As you could already know I finally was able to boot using U-boot.
https://e2e.ti.com/support/dsp/omap_applications_processors/f/42/p/542505/1980690#1980690
I created this new post to solve a new problem related to SPI flash.
After re-applying power to the PCB, the data displayed in my terminal is the following:
U-Boot 2009.11 (Sep 19 2016 - 17:36:38)
I2C: ready
DRAM: 32 MB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
Read from EEPROM @ 0x50 failed
Ethernet switch start failed!
Net: Ethernet PHY: GENERIC @ 0x00
Hit any key to stop autoboot: 0
Failed to initialize SPI flash at 0:0
No SPI flash selected. Please run `sf probe'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot >
I tried to save the enviroment variables, but I realized that the SPI flash IC is not being detected by U-boot.
Failed to initialize SPI flash at 0:0
No SPI flash selected. Please run `sf probe'
Running sf probe doesn't help either.
I know that the memory is OK because I was able to flash it with the sfh_OMAP-L137.exe without issues.
I would like to have U-boot and its enviroment variables located in the same SPI flash memory connected IC to SPI0. I don't know if this is possible.
The brand of my Flash memory is SPANSION and its part number is S25FL132K0XMFI011
The datasheet can be seen here:
http://www.cypress.com/file/196886/download
I'm using DaVinci-PSP-SDK-03.20.00.14.
The U-boot directory is: DaVinci-PSP-SDK-03.20.00.14-custom/src/u-boot/uboot-03.20.00.14/
I also have modified the following file “include/configs/da830evm.h:”
Where I changed CONFIG_SPI_FLASH_WINBOND to CONFIG_SPI_FLASH_SPANSION to support my memory.
#ifdef CONFIG_USE_SPIFLASH
#undef CONFIG_ENV_IS_IN_FLASH
#undef CONFIG_ENV_IS_IN_NAND
#define CONFIG_ENV_IS_IN_SPI_FLASH
#define CONFIG_ENV_SIZE (16 << 10)
#define CONFIG_ENV_OFFSET (256 << 10)
#define CONFIG_ENV_SECT_SIZE 4096
#define CONFIG_SYS_NO_FLASH
#define CONFIG_SPI
#define CONFIG_SPI_FLASH
#define CONFIG_SPI_FLASH_SPANSION
#define CONFIG_DAVINCI_SPI
#define CONFIG_SYS_SPI_BASE DAVINCI_SPI0_BASE
#define CONFIG_SYS_SPI_CLK clk_get(DAVINCI_SPI0_CLKID)
#define CONFIG_SF_DEFAULT_SPEED 30000000
#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
#endif
After compiling and flashing the new image to the AM1705, the problem continues. I haven't been able to use SPI flash under U-boot.
As always, your help will be very much appreciated.
Best regards,
Patricio Cohen