SPI FLASH boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI FLASH boot

1,159 Views
jameshe1
Contributor II

My board is almost same as imx6qp-sabreauto board. and i use SPI FLASH s25fl256 on ECSPI1 SS2. I made u-boot,kernel, rootfs. they all works well. 

at u-boot stage, i can use sf probe to get right flash infomation.

after the board run into kernel, at the shell, i use ls /dev/mtd*, i get /dev/mtd0 ... to /dev/mtd8. 

when i mount /dev/mtd0 /mnt/mtd0, i can read write it correctly.  when i reboot the system, the file is still present.  it means that the driver and the pin iomux is right for spi flash.

i burn the u-boot.imx(verified on board by mfgtool) to flash by command:

dd if=u-boot.imx of=/dev/mtdblock0

it return right.

then at u-boot shell, i use fuse comand to burn the efuse.

fuse prog 0 0 5 28000030

fuse prog 0 0 6 00000010

It means use ECSPI1 SS2 to boot and set BT_FUSE_SEL to 1。

After i re power the board, it does not put any output on the console both uboot and linux. what's problem? 

When i use mfgtool to boot the board, in linux shell:

cat /sys/fsl_otp/HW_OCOTP_CFG4

got 0x28000030

cat /sys/fsl_otp/HW_OCOTP_CFG5

got 0x00000010

memtool is tool to show memory:

memtool 0x020d8000

got 0x020d8004: 0x28000030

got 0x020d801c: 0x10000011

it seems BT_FUSE_SEL is 1 and efuse_cfg4 is right. i only write these registers. Is there any other registers should be prog? 

I use the default mx6cqp.cfg from imx6qp-sabreauto board to describe the dcd, is it ok?

thanks. 

Labels (2)
0 Kudos
3 Replies

778 Views
igorpadykov
NXP Employee
NXP Employee

Hi James

mx6cqp.cfg from imx6qp-sabreauto board may not work well on custom board,

please run ddr test and change dcd with new settings found from test

https://community.freescale.com/docs/DOC-105652 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

778 Views
jameshe1
Contributor II

Dear igor

  My board can run u-boot and linux well. I have tested the DDR, the mmc, the flash.

the board works well in DDR downloaded by mfgtool.  the same u-boot.imx, it don't boot from flash. 

0 Kudos

778 Views
igorpadykov
NXP Employee
NXP Employee

Hi James

one can debug it using procedures described on

https://community.freescale.com/thread/307723

Best regards
igor

0 Kudos