what is the DIP switch settings for booting from NOR flash on Imx6 SABRE SD platform

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

what is the DIP switch settings for booting from NOR flash on Imx6 SABRE SD platform

Jump to solution
3,902 Views
sureshaps
Contributor I


Hi,

I am planning to boot from NOR flash on my sabre sd platform(imx6q) and as such

I copied the u-boot.bin to NOR flash from on board  SD card.But could not find DIP switch settings for booting from  NOR flash.

could pls any one know the settings?

SPI NOR programming:log
=====================

MX6Q SABRESD U-BootPS > mmc dev 2
mmc2 is current device

MX6Q SABRESD U-BootPS > mmc read $(loadaddr) 0 0x200
MMC read: dev # 2, block # 0, count 512 ... 512 blocks read: OK

MX6Q SABRESD U-BootPS > sf probe 0

JEDEC ID: 0x20:0x20:0x16
4096 KiB M25P32 - 4MB at 0:0 is now current device

MX6Q SABRESD U-BootPS > sf erase 0 0x40000

MX6Q SABRESD U-BootPS > sf write $(loadaddr) 0 0x40000
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

...................................................................SUCCES

Thanks in advance,

suresh.

Labels (1)
0 Kudos
1 Solution
1,558 Views
Yuri
NXP Employee
NXP Employee

Yes, it is possible to use "normal" u-boot for SD booting.
As for details, please look at section 5.3 (Multi-environment store device) of "uboot_mx6x.pdf". 

View solution in original post

0 Kudos
3 Replies
1,558 Views
Yuri
NXP Employee
NXP Employee

   Table 8-22 (Serial ROM Boot eFUSE Descriptions) of the i.MX6(Q) Reference

Manual (RM) shows configuration for SPI boot :

BOOT_CFG1[7:4] = 0011 (Boot from Serial ROM).

BOOT_CFG4[5:4] = 00  (CS#0).

BOOT_CFG4[3] defines number of address bytes.

BOOT_CFG4[2:0] = 000  (ECSPI-1).

   Basically such BOOT_CFG configuration may be provided on the MX6 SDP, but the

problem arises to pin multiplexing : for example CSPI1_clk is connected to i.MX6

KEY_COL0 pin, and according to Table 8-25 (SPI IOMUX Pin Configuration) of the

RM, such pin multiplexing (ECSPI-1) is not supported for SPI NOR  boot.

0 Kudos
1,558 Views
sureshaps
Contributor I

Hi Yuri,

Thanks you for the help.

actually the sabre platform has SW6 dip switch having 8 switched(D1-D8) and the SABRE_SD_User_Guide_L3.0.35_1.1.0 has settings for SD card booing on slot  1and 3, SATA, eMMC but no seeings for SPI-NOR flash booting. for instance below is a setting for SD card boot.

Table 4-2. the boot switch setup for SD3 boot (J507)

Switch  D1  D2  D3   D4   D5    D6    D7 D8

SW6    OFF ON OFF OFF OFF OFF ON OF

I even wonder if we need to build u-boot with special configuartion settings or just can use normal u-boot.bin built for SD card booting.

Thanks,

Suresh.

0 Kudos
1,559 Views
Yuri
NXP Employee
NXP Employee

Yes, it is possible to use "normal" u-boot for SD booting.
As for details, please look at section 5.3 (Multi-environment store device) of "uboot_mx6x.pdf". 

0 Kudos