Skip to contentSkip to conversation

how to use mtdparts command in uboot

U-Boot-Users nagi reddy chitta 2 participants 2 messages Feb 6, 2008

lore
Share & tools
lore
#0 lore raw

Hi All,

I am working on a project where my processor is MIPS and my NOR flash size
is 32MB. So for i am managing all MTD partitions statically in Linux and the system is working fine. Now we are planning to change the mtd management to UBoot, so that i can add/delete/modify the partitions using command line facility of UBoot.

i ported all required files to my working uboot sources, but not able to use the command *mtdparts properly.*

My flash layout(partition info) shall look like:

Flash is top boot one:

Total Size:32MB

Partition1: 3-4MB (Linux kernel)

Partition2: 4-6MB(Root file system)

Partition3: 8MB(application active)

Partition4: 8MB(application backup)

Partition5:3MB(Data base)

Partitions6:512MB(UBoot)

Some free memory.

I wanted to put above info in UBoot using mtdparts. I tried to going thru the code but confused bit.

Please can some one help me on getting some info regarding usage of mtdparts related commands?

i have gone thru the mailing list also, but could not get much information.

Best Regards,

Nagi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080206/e15b010d/attachment.htm

#1 lore raw
Quoted 2 lines · In message <[email protected]> you…

i have gone thru the mailing list also, but could not get much information.

See http://www.denx.de/wiki/view/DULG/UBootEnvVariables
and especially
http://www.denx.de/wiki/view/DULG/UBootCmdGroupFlash#Section_5.9.3.5.

Quoted 3 lines

Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

And don't post HTML here.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
News is what a chap who doesn't care much  about  anything  wants  to
read. And it's only news until he's read it. After that it's dead.
                           - Evelyn Waugh _Scoop_ (1938) bk. 1, ch. 5