title: Nand partitioning in u-boot
body: <p>I am working on an Embedded ARM9 development board. In that i want rearrange my nand partitions. Can anybody tell me how to do that ?</p>
  
  <p>In my u-boot shell if i give the command mtdparts which gives following information .</p>
  
  <pre><code>Boardcon&gt; mtdparts      
  
  device nand0 &lt;nandflash0&gt;, # parts = 7
  
  #: name                size            offset          mask_flags
  0: bios                0x00040000      0x00000000      0
  1: params              0x00020000      0x00040000      0
  2: toc                 0x00020000      0x00060000      0
  3: eboot               0x00080000      0x00080000      0
  4: logo                0x00100000      0x00100000      0
  5: kernel              0x00200000      0x00200000      0
  6: root                0x03c00000      0x00400000      0
  
  active partition: nand0,0 - (bios) 0x00040000 @ 0x00000000
  
  defaults:
  mtdids  : nand0=nandflash0 
  mtdparts: mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),2m(kernel),-(root) 
  </code></pre>
  
  <p>Kernel boot message shows the following : </p>
  
  <pre><code> Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
   0x000000000000-0x000000040000 : "Boardcon_Board_uboot"
   0x000000200000-0x000000400000 : "Boardcon_Board_kernel"
   0x000000400000-0x000003ff8000 : "Boardcon_Board_yaffs2"
  </code></pre>
  
  <p>Anybody can please explain me what is the relation between both these messages . And which one either kernel or u-boot is responsible for creating partions on nand flash?. As for as i know kernel is not creating partitions on each boot but why the message "<strong><em>Creating 3 MTD partitions</em></strong>"?</p>