This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to create SPI NOR flash mtd partition in the u-boot

Hi,

We are using BBB based custom board,
we have SPI NOR flash and NAND flash on the board,

After enabling SPI Nor flash support i want to create mtd partition for SPI NOR flash in the U-boot.
How do i create SPI NOr flash partition in the u-boot ?
I have tried follwoing but it didn't work,

#define MTDIDS_DEFAULT                  "nand0=omap2-nand.0, nor0=omap2-nor.0"
#define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:" \
 "128k(SPL)," \
 "128k(SPL.backup1)," \
 "128k(SPL.backup2)," \
 "128k(SPL.backup3)," \
 "1024k(u-boot)," \
 "1024k(u-boot.backup1)," \
 "128k(u-boot-env)," \
 "5m(kernel)," \
 "5m(kernel.backup1)," \
 "512k(fdt)," \
 "512k(fdt.backup1)," \
 "100m(rootfs)," \
 "100m(rootfs.backup1)," \
 "13m(reserved),"  \
 ";" \
 "mtdparts=omap2-nor.0:" \
 "128k(SPL1_nor)," \
 "128k(SPL2_nor)," \
 "128k(SPL3_nor)," \
 "128k(SPL4_nor)," \
 "512k(usr_nor)," \

mtd NAND partitions are working fine but nor partitions doesn't work
Any suggestions ?

Thank you,

Regards,
Ankur