imx6q How to boot from Nor Flash

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

imx6q How to boot from Nor Flash

Jump to solution
788 Views
quanzheng
Contributor I

I want to set imx6q-sdb board boot from spi flash, and I weld a chip (25P32) on U14of  imx6q-sdb board. 

And I can use sf command to detect/erase/write the Norflash successfully.

=> tftp bootrom.bin

Using FEC device

TFTP from server 192.168.1.101; our IP address is 192.168.1.10

Filename 'bootrom.bin'.

Load address: 0x12000000

Loading: #############################

         468.8 KiB/s

done

Bytes transferred = 419852 (6680c hex)

=> sf probe

SF: Detected M25P32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB

=> sf erase 0 50000

SF: 327680 bytes @ 0x0 Erased: OK

=> sf write 12000000 0 6680c

SF: 419852 bytes @ 0x0 Written: OK

And I turn on the DIP 5, and DIP 6 of SW6.

But now CPU can not boot from SPI-flash.

And the bootloader I used can work on SD card successfully.

Thank you.

0 Kudos
1 Solution
500 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Quan Zheng,

You may find the following thread interesting. SPI  NOR Flash boot is not supported on the SABRE SD, only on the SABRE AI (you may look for more information on the i.MX Linux Release Notes from the BSP). This limitation is due top a pin conflict, but another user does mention a workaround on the same thread, perhaps it may help.

https://community.nxp.com/message/346677 

 

Regards,

View solution in original post

0 Kudos
1 Reply
501 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Quan Zheng,

You may find the following thread interesting. SPI  NOR Flash boot is not supported on the SABRE SD, only on the SABRE AI (you may look for more information on the i.MX Linux Release Notes from the BSP). This limitation is due top a pin conflict, but another user does mention a workaround on the same thread, perhaps it may help.

https://community.nxp.com/message/346677 

 

Regards,

0 Kudos