u-boot spi boot on imx6sx

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

u-boot spi boot on imx6sx

1,220 Views
hyoungkikim
Contributor III

hi, all

i will design a new board with imx6sx

and want to use a spi_nor  for u-boot and eMMC for kernel and rootfs   and  boot from spi and use usb stoarge to copy kernel and rootfs to emmc  (  no other  sd_slot  are allowed )

imx6sx_sabresd board has a qspi rom, and it worked well

but  i just want to use a spi  flash  for u-boot and  it is easy to program a spi flash by a rom-writer 

 

i found mx6slevk_spinor_defconfig  but not for imx6sx 

and i tried to compile a u-boot with CONFIG_SPI_BOOT but doesn't work on imx6sx_evk  ( i installed a spi nor )

 

thank you 

 

Labels (1)
0 Kudos
5 Replies

1,206 Views
hyoungkikim
Contributor III

Hi igor 

thank you for the tips

i have questions 

1)  Ok  i can program spi-nor with uuu ,   but i still need u-boot , what i found is "mx6sxsabresd_emmc/qspi2/def_config ...

so i think i need  u-boot defconfig  i mean  mx6sxsabresd_spi_defconfig  .someting like that   

  am i wrong ?

2)  a board will have a spi_nor , network ,usb-slave, emmc , so  first i boot  with nfs and program emmc and dump with dd,

    , with that binary file  i plan to write emmc  by mmc write command ...doesn't it work ?

 with imx6sx-evk with emmc  , i booted from qspi-nor withn nfs  rootfs  and will try to do what i  said above 

if i am wrong  please let me know 

thank you .. 

 

 

i just wonder if i dump  emmc image and have binary files 

you mean  that i can't  use "mmc wirte " command 

0 Kudos

1,192 Views
igorpadykov
NXP Employee
NXP Employee

spi uboot is the same as for eMMC, for programming one can look for example on

https://source.codeaurora.org/external/imx/uboot-imx/tree/board/congatec/cgtqmx6eval/README?h=lf_v20...

 

Best regards
igor

 

0 Kudos

1,164 Views
hyoungkikim
Contributor III

Hi igor

thank you for help

in mfg-tool , ( L4.9.88.2.0.0)   there are u-boots  such as  u-boot-imx*-spi-nor.imx and u-boot-imx-qspi.imx 

so i think  they are different 

you mean i can use the same u-boot for spi-nor boot 

but   in  imx6sx.dts,  ecspi 's stauts is "disable"         is  it ok ?  or shoud i  enable ecspi part

thank you 

 

 

 

 

0 Kudos

1,153 Views
igorpadykov
NXP Employee
NXP Employee

one can look at older mfg tools and find u-boot-imx6sx19x19ddr3arm2_spi-nor.imx,

please check ucl2.xml and use mfgtool2-yocto-mx-sabreauto-spi-nor.vbs script.

 

Best regards
igor

0 Kudos

1,215 Views
igorpadykov
NXP Employee
NXP Employee

Hi Hyoung

 

for spi-nor programming recommended to use uuu tool and example_spinor.uuu script included

in Demo Image i.MX 6QuadPlus, i.MX 6Quad, i.MX 6DualLite, i.MX 6SoloX Boards​

https://github.com/NXPmicro/mfgtools

I am afraid "usb stoarge to copy kernel and rootfs" is not supported, sorry.

 

Best regards
igor

0 Kudos