<?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: i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910897#M137253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been reviewing lately how the AOA works and this is more related to the developing of your application. Unfortunately, this is out of our scope of support. However, I found the following information hope it could help you.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://es.slideshare.net/gibsson/ftf2014-android-accessory-protocol" title="https://es.slideshare.net/gibsson/ftf2014-android-accessory-protocol"&gt;FTF2014 - Android Accessory Protocol&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2019 20:37:48 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2019-10-25T20:37:48Z</dc:date>
    <item>
      <title>i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910892#M137248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like USB OTG accessory mode support has not been added by NXP in Android 9 (tested on kernel&lt;STRONG style="color: #007600; font-size: small; font-family: Verdana,'DejaVu Sans',sans-serif; "&gt; 4.14.78).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two separate teams have been working on solving this with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has NXP found a fix to this problem?&amp;nbsp; It looks like it could potentially be an SELinux permissions issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions or a solution would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2019 18:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910892#M137248</guid>
      <dc:creator>kevin_makovy</dc:creator>
      <dc:date>2019-09-25T18:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910893#M137249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a known problem. There are some solutions. One is making the kernel recognize your device mounting the device to an internal folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Android shell terminal as root do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;evk_8mm # mkdir /mnt/mount&lt;BR /&gt;evk_8mm # mount -t vfat /dev/block/mmcblk1p1 /mnt/mount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other solutions could be applying the below modifications in the Android source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;android_source/device/fsl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/imx8m/evk_8mm/fstab.freescale b/imx8m/evk_8mm/fstab.freescale&lt;BR /&gt;index 72d412fd..89c5e84a 100644&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--- a/imx8m/evk_8mm/fstab.freescale&lt;BR /&gt;+++ b/imx8m/evk_8mm/fstab.freescale&lt;BR /&gt;@@ -3,6 +3,7 @@&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# The filesystem that contains the filesystem checker binary (typically /system) cannot&lt;BR /&gt;# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;+/devices/platform/30b50000.mmc/mmc_host/* /mnt/media_rw/extsd vfat defaults voldmanaged=extsd:auto&lt;BR /&gt;/devices/platform/32e40000.usb/ci_hdrc.0/* auto auto defaults voldmanaged=usb:auto&lt;BR /&gt;/dev/block/by-name/system / ext4 ro,barrier=1 wait,slotselect&lt;BR /&gt;/dev/block/by-name/userdata /data ext4 nosuid,nodev,nodiratime,noatime,nomblk_io_submit,noauto_da_alloc,errors=panic wait,formattable,quota,fileencryption=software,reservedsize=128M&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;diff --git a/imx8m/evk_8mm/init.rc b/imx8m/evk_8mm/init.rc&lt;BR /&gt;index 8a5ee83f..f6dfe004 100644&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--- a/imx8m/evk_8mm/init.rc&lt;BR /&gt;+++ b/imx8m/evk_8mm/init.rc&lt;BR /&gt;@@ -20,6 +20,8 @@ on init&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Support legacy paths&lt;BR /&gt;symlink /sdcard /mnt/sdcard&lt;BR /&gt;symlink /sdcard /storage/sdcard0&lt;BR /&gt;+ mkdir /mnt/media_rw/extsd 0755 system system&lt;BR /&gt;+ symlink /mnt/media_rw/extsd /storage/extsd&lt;BR /&gt;# setup the global environment&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;export CORE_REGISTER_FILE /vendor/etc/core_register&lt;BR /&gt;android_source/frameworks/base&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;diff --git a/core/res/res/xml/storage_list.xml b/core/res/res/xml/storage_list.xml&lt;BR /&gt;index ceebdccdafe..88d2dfe7cba 100644&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--- a/core/res/res/xml/storage_list.xml&lt;BR /&gt;+++ b/core/res/res/xml/storage_list.xml&lt;BR /&gt;@@ -25,4 +25,8 @@&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;android:mountPoint="/storage/sdcard"&lt;BR /&gt;android:storageDescription="@string/storage_usb"&lt;BR /&gt;android:primary="true" /&amp;gt;&lt;BR /&gt;+ &amp;lt;storage&lt;BR /&gt;+ android:mountPoint="/storage/extsd"&lt;BR /&gt;+ android:storageDescription="@string/storage_sd_card"&lt;BR /&gt;+ android:primary="true" /&amp;gt;&lt;BR /&gt;&amp;lt;/StorageList&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The test was made mounting an external SDcard. Using other external devices may change the procedure, especially the device name that you are willing to mount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information may be useful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 17:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910893#M137249</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-10-04T17:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910894#M137250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our situation is connecting the i.MX 8M Mini to another processor.&amp;nbsp; The i.MX 8M Mini would be operating in accessory mode and the second processor in host mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We never receive a USB CONFIGURED uevent when connected like this (although we do receive this uevent when connected via ADB so it is some usb accessory mode problem).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any information on patches to fix USB&amp;nbsp;accessory mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:11:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910894#M137250</guid>
      <dc:creator>kevin_makovy</dc:creator>
      <dc:date>2019-10-04T20:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910895#M137251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our Android BSP could work in accessory mode. You can note it because a host computer can recognize the i.MX board as a USB device an not as a host device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know if you were referring to that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 20:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910895#M137251</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-10-07T20:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910896#M137252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The board works properly in ADB mode - which is what you are referring to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use the board in accessory mode - which is currently not working and is different from ADB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there information on getting accessory mode to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 20:28:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910896#M137252</guid>
      <dc:creator>kevin_makovy</dc:creator>
      <dc:date>2019-10-07T20:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8M Mini - Android 9 USB OTG doesn't support accessory mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910897#M137253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been reviewing lately how the AOA works and this is more related to the developing of your application. Unfortunately, this is out of our scope of support. However, I found the following information hope it could help you.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://es.slideshare.net/gibsson/ftf2014-android-accessory-protocol" title="https://es.slideshare.net/gibsson/ftf2014-android-accessory-protocol"&gt;FTF2014 - Android Accessory Protocol&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 20:37:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8M-Mini-Android-9-USB-OTG-doesn-t-support-accessory-mode/m-p/910897#M137253</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-10-25T20:37:48Z</dc:date>
    </item>
  </channel>
</rss>

