AnsweredAssumed Answered

help mx6q boot from spi nor flash

Question asked by xuhui li on Jun 7, 2016
Latest reply on Jun 17, 2016 by xuhui li

Hi everyone,

I have designed a custom i.MX6 board based on MCIMX6Q-SDB board and am planning to bootup from SPI NOR Flash. I have run the DDR Stress test and updated the calibration details in my u-boot file,but the uboot not bootup .My nor flash chip is S25FL064P .I just change the following:

1.mx6qsabresd.c

/*........................uart1..........................................*/

static iomux_v3_cfg_t const uart1_pads[] = {

    MX6_PAD_SD3_DAT6__UART1_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),

    MX6_PAD_SD3_DAT7__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),

};

/*............................spi nor......................................*/

#ifdef CONFIG_MXC_SPI

static iomux_v3_cfg_t const ecspi1_pads[] = {

    MX6_PAD_CSI0_DAT4__ECSPI1_SCLK | MUX_PAD_CTRL(SPI_PAD_CTRL),

    MX6_PAD_CSI0_DAT5__ECSPI1_MOSI | MUX_PAD_CTRL(SPI_PAD_CTRL),

    MX6_PAD_CSI0_DAT6__ECSPI1_MISO | MUX_PAD_CTRL(SPI_PAD_CTRL),

    MX6_PAD_CSI0_DAT7__GPIO5_IO25 | MUX_PAD_CTRL(NO_PAD_CTRL),

};

 

static void setup_spi(void)

{

    imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads));

}

 

int board_spi_cs_gpio(unsigned bus, unsigned cs)

{

    return (bus == 0 && cs == 0) ? (IMX_GPIO_NR(5, 25)) : -1;

}

#endif

 

2 mx6qsabresd_defconfig

 

CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/my_mx6q.cfg,MX6Q,SYS_BOOT_SPINOR"

CONFIG_ARM=y

CONFIG_TARGET_MX6SABRESD=y

CONFIG_SYS_MALLOC_F=y

CONFIG_SYS_MALLOC_F_LEN=0x400

CONFIG_DM=y

CONFIG_DM_THERMAL=y

 

I do not know if there are any problems,Can anyone guide me please

 

thank you very much !!!

 

Original Attachment has been moved to: MfgTool.log.zip

Outcomes