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.

Creating MTD partitions for SPI NOR device in uboot

Other Parts Discussed in Thread: OMAPL138

I'm currently working on the upgrade procedure for an OMAP L138 based device that uses UBIFS for its root filesystem. 

The link below provides information about how to mount a ubi volume in uboot but it does not contain much information about how to create the nor mtd device.

http://code.metager.de/source/xref/denx/u-boot/doc/README.ubi

It appears that I need to have MTDIDS defined to get uboot to recognize the partitions defined.  The macros that define these variables are listed below.

#define MTDIDS_DEFAULT "nor0=n25q512"
#define MTDPARTS_DEFAULT "mtdparts=n25q512:64k(UBL),512k(U-Boot),64k(U-Boot-Env),64k(Seq-Block),256k(Rsvd),64K(MAC),2048k(Kernel1),2048k(Kernel2),20M(Rootfs1),20M(Rootfs2),-(Unused)"

When I attempt to list the partition information with 'mtdparts' , uboot displays the following error message

'Device nor0 not found!'

Any suggestions on how I should configure uboot to create the nor0 device? FYI, I'm using a SPI NOR flash.

The link below specifies an additional flag to required to support NOR flash devices but that alone does not help.

https://www.mail-archive.com/u-boot@lists.denx.de/msg13879.html

Thanks,

Dinesh

  • Hi Dinesh,

    Proceed the below command to probe SPI flash in u-boot prompt.

    U-Boot > sf probe 0

    I have listed some queries to analyze more?

    1) Are you defined "CONFIG_USE_SPIFLASH" in u-boot

    2) What is the u-boot version ?

    3) Are you using TI provided u-boot source or open source u-boot?

    If TI then what is SDK ver ?

    4) What is your hardware board are you using  OMAP L138 EVM board or OMAP L138  SDI (spectrum digital inc) or Custom board ?

    5) Please share your u-boot config file from "include/configs/da850xxx.h"  (da850evm.h if your board is OMAPL138 EVM and da850dsi.h if your board is OMAP L138 SDI)

  • Hi,

    Try to add support your (Numonyx) NOR flash in u-boot code using the below link,

    i hope it helps

    http://patchwork.ozlabs.org/patch/253242/

    http://lists.denx.de/pipermail/u-boot/2013-August/160124.html

    https://www.mail-archive.com/u-boot@lists.denx.de/msg114987.html

    If still persists, plz answers the above questions which is asked to respond further.

  • Hi,

    Already someone got enabled/fixed Numonyx SPI flash support in u-boot code by using the above said patch,

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/148256.aspx

  • Hi Titus,

    Thanks for the detailed responses.  I've currently made some progress with an alternative solution that I'm close to getting to work.  If I run into issues with my current approach I will read through the information you posted.  Thanks again for the quick and detailed replies.

    -Dinesh

  • Hi Dinesh,

    Have you figure out the problem?

    I am requesting you to provide the solutions if you got solved,