Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Creating MTD partitions for SPI NOR device in uboot

$
0
0

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


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>