T1040 HOW TO APPLY U-BOOT PATCH TO SUPPORT SST26VF SPI FLASH

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

T1040 HOW TO APPLY U-BOOT PATCH TO SUPPORT SST26VF SPI FLASH

849 Views
uvmbox
Contributor III

SDK 2.0 does not contain support of SST26 SPI FLASH

 => sf probe
SF: Unsupported flash IDs: manuf bf, jedec 2643, ext_jedec bf26
Failed to initialize SPI flash at 0:0

There is a patch solves this problem.

[U-Boot,v4,1/2] SPI Flash: add support of sst26wf* flash ICs protection ops - Patchwork 

Can you help and explain how to apply it?

0 Kudos
3 Replies

772 Views
uvmbox
Contributor III

thanks, but i got compile error:

i change

CONFIG_SPI_FLASH_SST=y  in configs/t1040D4RDB_SDCARD_CONFIG

HOSTLD tools/mkenvimage
| HOSTLD tools/dumpimage
| HOSTLD tools/mkimage
| AS arch/powerpc/cpu/mpc85xx/start.o
| CC drivers/mtd/spi/spi_flash.o
| CC common/main.o
| ../drivers/mtd/spi/spi_flash.c: In function 'spi_flash_scan':
| ../drivers/mtd/spi/spi_flash.c:1261:2: warning: implicit declaration of function 'JEDEC_MFR' [-Wimplicit-function-declaration]
| if (JEDEC_MFR(info) == SPI_FLASH_CFI_MFR_SST && info->id[1] == 0x26) {
| ^
| ../drivers/mtd/spi/spi_flash.c:1261:16: error: 'info' undeclared (first use in this function)
| if (JEDEC_MFR(info) == SPI_FLASH_CFI_MFR_SST && info->id[1] == 0x26) {
| ^
| ../drivers/mtd/spi/spi_flash.c:1261:16: note: each undeclared identifier is reported only once for each function it appears in
| make[2]: *** [drivers/mtd/spi/spi_flash.o] Error 1
| make[1]: *** [drivers/mtd/spi] Error 2
| make[1]: *** Waiting for unfinished jobs....
| CC common/board_f.o
| CC common/cmd_version.o
| LD common/built-in.o
| make[1]: Leaving directory `/home/valera/QorIQ-SDK-V2.0-20160527-yocto/build_atika/tmp/work/atika-fsl-linux/u-boot-qoriq/2016.01+fslgit-r0/git/T1040D4RDB_SDCARD_config'
| make: *** [sub-make] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/valera/QorIQ-SDK-V2.0-20160527-yocto/build_atika/tmp/work/atika-fsl-linux/u-boot-qoriq/2016.01+fslgit-r0/temp/log.do_compile.21968)
ERROR: Task 4 (/home/valera/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 250 tasks of which 249 didn't need to be rerun and 1 failed.

0 Kudos

772 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check whether this patch [U-Boot] [PATCH 7/8] sf: add support to Microchip SST26 QSPI memories can work.

0 Kudos

772 Views
yipingwang
NXP TechSupport
NXP TechSupport

$ bitbake u-boot -c clean

$bitbake u-boot -c patch

Go to u-boot source code folder  QorIQ-SDK-V2.0-20160527-yocto/build_t1040d4rdb/tmp/work/t1040d4rdb-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git, please apply the attached patch to the source code "patch -p1<sst26wf.patch".

Then rebuild u-boot

$bitbake u-boot

0 Kudos