<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to setup or change partitions of NAND? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-setup-or-change-partitions-of-NAND/m-p/171308#M5581</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uboot_ivt.sb can be programmed into imx28EVK through MfgTool, and NAND command can run without error after booting. But I don't know what's size of each partition in NAND, and how to change the partion. As I understand,&amp;nbsp;the UTP driver in updater_ivt.sb will charge those issue, but I can not even find where the driver's code is. Please give me some hits if any body know something about these issues, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheng Shi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 08:42:00 GMT</pubDate>
    <dc:creator>x10</dc:creator>
    <dc:date>2012-06-28T08:42:00Z</dc:date>
    <item>
      <title>How to setup or change partitions of NAND?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-setup-or-change-partitions-of-NAND/m-p/171308#M5581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uboot_ivt.sb can be programmed into imx28EVK through MfgTool, and NAND command can run without error after booting. But I don't know what's size of each partition in NAND, and how to change the partion. As I understand,&amp;nbsp;the UTP driver in updater_ivt.sb will charge those issue, but I can not even find where the driver's code is. Please give me some hits if any body know something about these issues, thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheng Shi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 08:42:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-setup-or-change-partitions-of-NAND/m-p/171308#M5581</guid>
      <dc:creator>x10</dc:creator>
      <dc:date>2012-06-28T08:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup or change partitions of NAND?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-setup-or-change-partitions-of-NAND/m-p/171309#M5582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, you can read the partion size with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@freescale-evk /home/user$ cat /proc/mtd&lt;BR /&gt;dev: size erasesize name&lt;BR /&gt;mtd0: 01400000 00020000 "gpmi-nfc-0-boot"&lt;BR /&gt;mtd1: 3ec00000 00020000 "gpmi-nfc-general-use"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The boot area size on mtd0 will be defined inside: linux/arch/arm/mach-mx28/device.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct gpmi_nfc_platform_data gpmi_nfc_platform_data = {&lt;BR /&gt;&amp;nbsp; .nfc_version = 1,&lt;BR /&gt;&amp;nbsp; .boot_rom_version = 1,&lt;BR /&gt;&amp;nbsp; .clock_name = "gpmi",&lt;BR /&gt;&amp;nbsp; .platform_init = gpmi_nfc_platform_init,&lt;BR /&gt;&amp;nbsp; .platform_exit = gpmi_nfc_platform_exit,&lt;BR /&gt;&amp;nbsp; .min_prop_delay_in_ns = 5,&lt;BR /&gt;&amp;nbsp; .max_prop_delay_in_ns = 9,&lt;BR /&gt;&amp;nbsp; .max_chip_count = 2,&lt;BR /&gt;&amp;nbsp; .boot_area_size_in_bytes = 20 * SZ_1M,&lt;BR /&gt;&amp;nbsp; .partition_source_types = gpmi_nfc_partition_source_types,&lt;BR /&gt;&amp;nbsp; .partitions = 0,&lt;BR /&gt;&amp;nbsp; .partition_count = 0,&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;On my side the partition on mtd1 will be devided later in more logical ubifs partitions using flash utilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo "*** Erasing MTD Device 1 ***"&lt;BR /&gt;#flash_erase /dev/mtd1 0 0&lt;BR /&gt;ubiformat /dev/mtd1 -y&lt;BR /&gt;echo "*** Attaching UBI partition ***"&lt;BR /&gt;ubiattach /dev/ubi_ctrl -m 1&lt;BR /&gt;echo "*** Creating UBI volumes ***"&lt;BR /&gt;ubimkvol /dev/ubi0 -n 0 -N rootfs0 -s 40MiB&lt;BR /&gt;ubimkvol /dev/ubi0 -n 1 -N firmware -s 40MiB&lt;BR /&gt;ubimkvol /dev/ubi0 -n 2 -N data -m&lt;BR /&gt;echo "*** Mounting ***"&lt;BR /&gt;mkdir /mnt/ubifs&lt;BR /&gt;mount -t ubifs ubi0:rootfs0 /mnt/ubifs&lt;BR /&gt;mkdir /mnt/firmware&lt;BR /&gt;mount -t ubifs ubi0:firmware /mnt/firmware&lt;BR /&gt;mkdir /mnt/data&lt;BR /&gt;mount -t ubifs ubi0:data /mnt/data&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BBa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 09:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-setup-or-change-partitions-of-NAND/m-p/171309#M5582</guid>
      <dc:creator>bba</dc:creator>
      <dc:date>2012-06-28T09:12:23Z</dc:date>
    </item>
  </channel>
</rss>

