<?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 Android NAND UBI permissions in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386345#M55982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Freescale Kitkat Android BSP for an IMX6 based board with NAND flash. While the Freescale patches to Android include pulling in external/mtd-utils with some (dated) support for ubi/ubifs this creates a SYSTEM partition with ownership/permissions that do not match those defined in system/core/include/private/android_filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that files in out/target/product/&amp;lt;device&amp;gt;/system all have ownership and umask matching the build user and build user's umask at the time of build and that Android has its own make_ext4fs utility (out/host/linux-x86/bin/make_ext4fs built from system/extras/ext4_utils/make_ext4fs.c) specifically to manage the permissions and ownership of the files in SYSTEM. Doesn't mtd-utils need to be patched to create the files in a ubifs in the same way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/KevinWong"&gt;KevinWong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/arpan_chakravarty"&gt;arpan_chakravarty&lt;/A&gt;&lt;/P&gt;&lt;P&gt;partner&lt;/P&gt;&lt;P&gt;gateworks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 14:31:40 GMT</pubDate>
    <dc:creator>timharvey</dc:creator>
    <dc:date>2015-01-05T14:31:40Z</dc:date>
    <item>
      <title>Android NAND UBI permissions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386345#M55982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Freescale Kitkat Android BSP for an IMX6 based board with NAND flash. While the Freescale patches to Android include pulling in external/mtd-utils with some (dated) support for ubi/ubifs this creates a SYSTEM partition with ownership/permissions that do not match those defined in system/core/include/private/android_filesystem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed that files in out/target/product/&amp;lt;device&amp;gt;/system all have ownership and umask matching the build user and build user's umask at the time of build and that Android has its own make_ext4fs utility (out/host/linux-x86/bin/make_ext4fs built from system/extras/ext4_utils/make_ext4fs.c) specifically to manage the permissions and ownership of the files in SYSTEM. Doesn't mtd-utils need to be patched to create the files in a ubifs in the same way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/KevinWong"&gt;KevinWong&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/arpan_chakravarty"&gt;arpan_chakravarty&lt;/A&gt;&lt;/P&gt;&lt;P&gt;partner&lt;/P&gt;&lt;P&gt;gateworks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 14:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386345#M55982</guid>
      <dc:creator>timharvey</dc:creator>
      <dc:date>2015-01-05T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Android NAND UBI permissions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386346#M55983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Kitkat Android BSP did not generate system.img which is matched with&amp;nbsp; android_filesystem. That was because the tool mkfsubifs in kitkat doesn’t support change system file’s ownership/permissions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We support change the system file’s ownership/permissions in&amp;nbsp; the next version: lollipop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You can refer to attached patch to change the ubifs system file’s ownership/permissions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sergio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Mon, 09 Feb 2015 17:28:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386346#M55983</guid>
      <dc:creator>SergioSolis</dc:creator>
      <dc:date>2015-02-09T17:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Android NAND UBI permissions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386347#M55984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sergio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up patching mtd-utils also. Your patch does not look complete. Mine can be found here in case anyone needs it: &lt;A href="https://github.com/Gateworks/android_external_mtd-utils/commit/ca8f166e6c15cf51db82c1799f07909aad325226" title="https://github.com/Gateworks/android_external_mtd-utils/commit/ca8f166e6c15cf51db82c1799f07909aad325226"&gt;mkfs.ubifs: add fixstats capability · ca8f166 · Gateworks/android_external_mtd-utils · GitHub. &lt;/A&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I believe something else is still missing as I recall still having to disable selinux to boot via NAND UBI. I'll revisit and reply when I can get back to looking at this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think the release notes are very misleading in stating that NAND is supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 14:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Android-NAND-UBI-permissions/m-p/386347#M55984</guid>
      <dc:creator>timharvey</dc:creator>
      <dc:date>2015-02-20T14:25:21Z</dc:date>
    </item>
  </channel>
</rss>

