<?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 Re: rootfs mount issue with NAND boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839600#M128796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either U-Boot or devicetree pass the partition info to your kernel so you shoud check them first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And can you make sure the kernel detects the NAND chip? Are the related drivers enabled in your kernel config? I assume you are using parallel NAND so you should be seeing kernel messages regarding NAND chip being detected like the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;nand: device found, Manufacturer ID: 0xXX, Chip ID: 0xXX&lt;BR /&gt;nand: Manufacturer Flash ID&lt;BR /&gt;nand: X MiB, SLC, page size: X, OOB size: X&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After that kernel creates partitions on detected NAND chips according to command line parameter "mtdparts":&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Creating 4 MTD partitions on "gpmi-nand":&lt;BR /&gt;0x000000000000-0x000000100000 : "boot"&lt;BR /&gt;0x000000100000-0x000000120000 : "dtb"&lt;BR /&gt;0x000000120000-0x000000200000 : "kernel&lt;BR /&gt;0x000000200000-0x000001000000 : "rootfs"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that mounting rootfs should be successful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2018 14:15:00 GMT</pubDate>
    <dc:creator>turker</dc:creator>
    <dc:date>2018-11-23T14:15:00Z</dc:date>
    <item>
      <title>rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839596#M128792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to boot IMX6UL custom board using NAND. Flashed images using MFG tool and booted the board.&lt;BR /&gt;While booting the baord getting below error for mounting the filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;snvs-secvio 20cc000.caam-snvs: can't get snvs clock&lt;BR /&gt;snvs-secvio 20cc000.caam-snvs: violation handlers armed - non-secure state&lt;BR /&gt;hidraw: raw HID events driver (C) Jiri Kosina&lt;BR /&gt;hid-generic 0003:05AC:12A8.0001: hiddev0,hidraw0: USB HID v1.11 Device [Apple Inc. iPhone] on usb-ci_hdrc.0-1/input2&lt;BR /&gt;usbcore: registered new interface driver usbhid&lt;BR /&gt;usbhid: USB HID core driver&lt;BR /&gt;NET: Registered protocol family 26&lt;BR /&gt;NET: Registered protocol family 17&lt;BR /&gt;8021q: 802.1Q VLAN Support v1.8&lt;BR /&gt;Key type dns_resolver registered&lt;BR /&gt;cpu cpu0: Registered imx6q-cpufreq&lt;BR /&gt;imx_thermal 2000000.aips-bus:tempmon: Commercial CPU temperature grade - max:95C critical:90C passive:85C&lt;BR /&gt;UBI error: cannot open mtd 4, error -19snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:01 UTC (1)&lt;BR /&gt;can-3v3: disabling&lt;BR /&gt;VSD_3V3: disabling&lt;BR /&gt;gpio_dvfs: disabling&lt;BR /&gt;VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19&lt;BR /&gt;Please append a correct "root=" boot option; here are the available partitions:&lt;BR /&gt;0100 65536 ram0 (driver?)&lt;BR /&gt;0101 65536 ram1 (driver?)&lt;BR /&gt;0102 65536 ram2 (driver?)&lt;BR /&gt;0103 65536 ram3 (driver?)&lt;BR /&gt;0104 65536 ram4 (driver?)&lt;BR /&gt;0105 65536 ram5 (driver?)&lt;BR /&gt;0106 65536 ram6 (driver?)&lt;BR /&gt;0107 65536 ram7 (driver?)&lt;BR /&gt;0108 65536 ram8 (driver?)&lt;BR /&gt;0109 65536 ram9 (driver?)&lt;BR /&gt;010a 65536 ram10 (driver?)&lt;BR /&gt;010b 65536 ram11 (driver?)&lt;BR /&gt;010c 65536 ram12 (driver?)&lt;BR /&gt;010d 65536 ram13 (driver?)&lt;BR /&gt;010e 65536 ram14 (driver?)&lt;BR /&gt;010f 65536 ram15 (driver?)&lt;BR /&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;----------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have following queries, can you help to understand. I am using U-boot : 2017 and Kernel : 4.9.11.&lt;/P&gt;&lt;P&gt;1. MFG tool will create Partitions automatically, because I haven't created any partitions manually .&lt;BR /&gt; 2. When Kernel panic occurs it is not printing MTD partitions, instead it is printing ram partitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MFG tool vb script file is attached. Can you guide in fixing the NAND issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 14:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839596#M128792</guid>
      <dc:creator>kravik</dc:creator>
      <dc:date>2018-11-15T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839597#M128793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to follow sect.4.7.2 Running the image from NAND&lt;/P&gt;&lt;P&gt;attached Linux Guide. Also may be useful to check&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-236994"&gt;How-To use NAND boot on i.MX6UL EVK board&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 06:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839597#M128793</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-11-16T06:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839598#M128794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your kernel command line parameters?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 10:08:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839598#M128794</guid>
      <dc:creator>turker</dc:creator>
      <dc:date>2018-11-18T10:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839599#M128795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following are the Kernel command line parameters.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Kernel command line: console=ttymxc0,115200 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),-(rootfs)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It seems the sizes are decided by MFG tool scripts.&amp;nbsp;My doubt here is why the U-boot size is set as 64MB, the size of U-boot is less than 1MB.&lt;/P&gt;&lt;P&gt;Any suggestions why the U-boot size is set to high value?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 05:51:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839599#M128795</guid>
      <dc:creator>kravik</dc:creator>
      <dc:date>2018-11-22T05:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839600#M128796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either U-Boot or devicetree pass the partition info to your kernel so you shoud check them first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And can you make sure the kernel detects the NAND chip? Are the related drivers enabled in your kernel config? I assume you are using parallel NAND so you should be seeing kernel messages regarding NAND chip being detected like the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;nand: device found, Manufacturer ID: 0xXX, Chip ID: 0xXX&lt;BR /&gt;nand: Manufacturer Flash ID&lt;BR /&gt;nand: X MiB, SLC, page size: X, OOB size: X&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After that kernel creates partitions on detected NAND chips according to command line parameter "mtdparts":&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Creating 4 MTD partitions on "gpmi-nand":&lt;BR /&gt;0x000000000000-0x000000100000 : "boot"&lt;BR /&gt;0x000000100000-0x000000120000 : "dtb"&lt;BR /&gt;0x000000120000-0x000000200000 : "kernel&lt;BR /&gt;0x000000200000-0x000001000000 : "rootfs"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that mounting rootfs should be successful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2018 14:15:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839600#M128796</guid>
      <dc:creator>turker</dc:creator>
      <dc:date>2018-11-23T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839601#M128797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue is with the DeviceTree pinmux entry for NAND due to which NAND driver binding is failing. Now it is fixed and could see the NAND info and partitin creation in Kernel messages. Thanks for the info.&lt;BR /&gt;The U-boot is passing the partition info to Kernel and it is in sync with the MFG tool partition info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Nov 2018 02:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839601#M128797</guid>
      <dc:creator>kravik</dc:creator>
      <dc:date>2018-11-25T02:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839602#M128798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For Kernel either U-boot or devicetree will pass the partition info.&lt;/P&gt;&lt;P&gt;I have a doubht, For U-boot who will pass the partition info ? Because without partition info U-boot can't load the devicetree and Kernel. Can you help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 08:04:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839602#M128798</guid>
      <dc:creator>kravik</dc:creator>
      <dc:date>2018-11-26T08:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: rootfs mount issue with NAND boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839603#M128799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is usually defined in U-Boot environment as a variable named "mtdparts". The same variable is then passed to kernel in "bootargs". I think recent versions support devicetree as well. For environment based parsing you should have&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CONFIG_CMD_MTDPARTS&lt;/P&gt;&lt;P&gt;CONFIG_MTD_DEVICE&lt;/P&gt;&lt;P&gt;CONFIG_MTD_PARTITIONS&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;enabled, and&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MTDIDS_DEFAULT&lt;/P&gt;&lt;P&gt;MTDPARTS_DEFAULT&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;set to appropriate values. (Note that the configuration might change depending on the U-Boot version). Then you can run mtdparts in U-Boot console and see your partitions properly being detected. You may find example configurations for various boards under include/configs of U-Boot source. See also doc/README.ubi and cmd/mtdparts.c.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/rootfs-mount-issue-with-NAND-boot/m-p/839603#M128799</guid>
      <dc:creator>turker</dc:creator>
      <dc:date>2018-11-26T12:34:05Z</dc:date>
    </item>
  </channel>
</rss>

