This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM437X: SPI boot configuration

Part Number: PROCESSOR-SDK-AM437X

hello experts

i am new to AM437x

based on AM437x EVM     i like to exchange QSPI to SPI   

spi will be used for only u-boot   and  i will use NAND to store kernela and rootfs 

how could i config u-boot to boot spi ?  ( i don't find  u-boot-config in SDK  which i downloaded a week ago)

is there any reference  for me to base or search ?

 

thanks in advance 

  • Hi Hyoungki,

    I'm not aware of a specific reference solution for what you are looking for but below are a couple of points to help you get going:

    • Make sure you have MISO and MOSI connected like the boot rom expects it. See here: https://e2e.ti.com/support/processors/f/791/t/558049?AM437x-SPI-Flash-boot#pi320966=1
    • As for modifying U-Boot, try the following:
      • Activate SPI boot support CONFIG_SPI_BOOT=y via 'make [...] menuconfig'
      • Activate support for the SPI flash you use via 'make [...] menuconfig'. Search for CONFIG_SPI_FLASH (by using '/' within menuconfig) to enable it, and any related flash-vendor specific CONFIG_SPI_FLASH_* definitions.
      • Transfer the first part of the #if defined(CONFIG_SPI_BOOT) statement from include/configs/am335x_evm.h to your board-specific config header file. This is needed to establish the U-Boot (proper) load address from SPI flash and puts the U-Boot environment into SPI flash as well (assuming that's what you want)
      • Transplant the SPI0 pinmux setup definition (spi0_pin_mux) and configuration from board/ti/am335x/mux.cinto your board folder (might need to adjust the pinmux, for which you can use TI's PinMux tool)

      Regards,
      Andreas

  • Hi Andreas

    it will be of great help

    thank a lot