<?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>i.MX ProcessorsのトピックRe: Use eMMC as a USB Storage Device on IMX8ULP EVK9</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2097661#M237228</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This will be another issue, please raise a new ticket for further support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 02:04:21 GMT</pubDate>
    <dc:creator>Harvey021</dc:creator>
    <dc:date>2025-05-15T02:04:21Z</dc:date>
    <item>
      <title>Use eMMC as a USB Storage Device on IMX8ULP EVK9</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2088380#M236763</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the IMX8ULP EVK9 board and have created a partition (mmcblk0p3) mounted at /mnt/data/.&lt;BR /&gt;Here is the current output of lsblk:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;root@imx8ulp-9x9-lpddr4-evk:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 14.6G 0 disk
|-mmcblk0p1 179:1 0 83.2M 0 part
|-mmcblk0p2 179:2 0 1.5G 0 part /
`-mmcblk0p3 179:3 0 19M 0 part /mnt/data
mmcblk0boot0 179:32 0 4M 1 disk
mmcblk0boot1 179:64 0 4M 1 disk

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would like to connect the board to my PC via USB and expose the mmcblk0p3 partition as a storage device so that I can copy files to and from it.&lt;/P&gt;&lt;P&gt;Could you please guide me on the steps needed to achieve this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Yash Parekh&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2088380#M236763</guid>
      <dc:creator>YashParekh</dc:creator>
      <dc:date>2025-04-28T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use eMMC as a USB Storage Device on IMX8ULP EVK9</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2089027#M236794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hope the one can help -&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/g-mass-storage-windows-seeing-something-different/td-p/841088" target="_blank"&gt;Solved: g_mass_storage windows seeing something different - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 07:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2089027#M236794</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-04-29T07:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use eMMC as a USB Storage Device on IMX8ULP EVK9</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2096998#M237191</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P class=""&gt;On the IMX8ULP EVK9, I’m able to use eMMC as a USB mass storage device using the following steps:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;modprobe libcomposite
cd /sys/kernel/config/usb_gadget/

mkdir g1
cd g1

# Basic device descriptor info
echo 0x1d6b &amp;gt; idVendor  # Linux Foundation
echo 0x0104 &amp;gt; idProduct # Multifunction Composite Gadget
echo 0x0100 &amp;gt; bcdDevice
echo 0x0200 &amp;gt; bcdUSB

mkdir strings/0x409
echo "1234567890" &amp;gt; strings/0x409/serialnumber
echo "NXP" &amp;gt; strings/0x409/manufacturer
echo "i.MX8ULP Mass Storage" &amp;gt; strings/0x409/product

# Create configuration
mkdir configs/c.1
mkdir configs/c.1/strings/0x409
echo "Mass Storage Config" &amp;gt; configs/c.1/strings/0x409/configuration

# Add mass storage function
mkdir functions/mass_storage.0
echo 1 &amp;gt; functions/mass_storage.0/stall
echo 0 &amp;gt; functions/mass_storage.0/lun.0/ro
echo 0 &amp;gt; functions/mass_storage.0/lun.0/nofua
echo /dev/mmcblk0p3 &amp;gt; functions/mass_storage.0/lun.0/file

# Bind the function to the config
ln -s functions/mass_storage.0 configs/c.1/

# Bind USB device to UDC
ls /sys/class/udc  # This gives you the UDC name, like 49000000.usb
echo ci_hdrc.0 &amp;gt; UDC&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;This works fine on the EVK and my PC detects the USB storage.&lt;/P&gt;&lt;P class=""&gt;However, on my &lt;STRONG&gt;custom board&lt;/STRONG&gt;, I follow the exact same steps but &lt;STRONG&gt;USB storage is not detected&lt;/STRONG&gt; on the PC.&lt;/P&gt;&lt;P class=""&gt;My custom board only connects &lt;STRONG&gt;USB D+, D-, and USB_ID&lt;/STRONG&gt; lines. I have set USB_ID with a pull-up. On the EVK, they also have &lt;STRONG&gt;USB_VBUS_DETECT&lt;/STRONG&gt; and &lt;STRONG&gt;USB_OC&lt;/STRONG&gt; pins, but in my custom board those pins are floating and not used.&lt;/P&gt;&lt;P class=""&gt;Do I need to modify the Yocto &lt;STRONG&gt;Device Tree (DTS)&lt;/STRONG&gt; to ignore or disable the &lt;STRONG&gt;USB_VBUS_DETECT&lt;/STRONG&gt; and &lt;STRONG&gt;USB_OC&lt;/STRONG&gt; pins?&lt;/P&gt;&lt;P class=""&gt;Here is my current USB node in the DTS:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;usbotg1 {
    pinctrl-names = "default", "sleep";
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_otgid1&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;pinctrl_otgid1&amp;gt;;
    dr_mode = "otg";
    hnp-disable;
    srp-disable;
    adp-disable;
    over-current-active-low;
    status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Do I need to update anything else in the DTS or kernel to make this work on my custom board?&lt;/P&gt;&lt;P class=""&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Yash Parekh&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 06:18:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2096998#M237191</guid>
      <dc:creator>YashParekh</dc:creator>
      <dc:date>2025-05-14T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use eMMC as a USB Storage Device on IMX8ULP EVK9</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2097661#M237228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This will be another issue, please raise a new ticket for further support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Harvey&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 02:04:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2097661#M237228</guid>
      <dc:creator>Harvey021</dc:creator>
      <dc:date>2025-05-15T02:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use eMMC as a USB Storage Device on IMX8ULP EVK9</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2097765#M237238</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Okay, i will raise new ticket for this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yash Parekh&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 05:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Use-eMMC-as-a-USB-Storage-Device-on-IMX8ULP-EVK9/m-p/2097765#M237238</guid>
      <dc:creator>YashParekh</dc:creator>
      <dc:date>2025-05-15T05:35:11Z</dc:date>
    </item>
  </channel>
</rss>

