<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Use USB as serial port on OPO]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Hope someone can help me with following?</p>
<p dir="auto">I'm trying to use my OnePlus One phone as linux server, with the aim to use the USB interface as serial port to control an i2c bus.</p>
<p dir="auto">I'm not sure if this is feasible at all, or that I'm here facing intrinsic limitations of running ubuntu on an 'android' phone .. Please your feedback.</p>
<p dir="auto">So far I did the following:</p>
<ul>
<li>rooted the phone and installed Ubuntu via theUBPorts installation.</li>
<li>created a chroot using the procedure in below link:<br />
<a href="https://accu.org/index.php/journals/2158" rel="nofollow ugc">https://accu.org/index.php/journals/2158</a></li>
<li>In the chroot I could succesfully install programs in the expected manner with apt-get install ...; Python2.7 and pyserial are working.</li>
<li>When I connect the USB-I2C device I can see the device with lsusb</li>
<li>However, no ttyUSBx is created. Reading some posts on the internet, I think, for that the ftdi-sio module (usb driver) needs to be loaded in the kernel.</li>
<li>Further reading shows that one can enable that module with:<br />
modprobe ftdi_sio vendor=0x0403 product=0x6001</li>
<li>Then I get the error that proc/modules does not exist. Indeed I cannot find such directory and files in the chroot, nor in the regular file system.</li>
</ul>
<p dir="auto">Questions:</p>
<ul>
<li>Why cant I find the proc/modules ? Are the loaded kernel modules listed in another directory ?</li>
<li>Can I use commands like lsmod, insmod, modprobe etc ?</li>
<li>How to enable the ftdi-sio module ?</li>
</ul>
<p dir="auto">Thanks,<br />
Jumbs</p>
]]></description><link>https://forums.ubports.com/topic/482/use-usb-as-serial-port-on-opo</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 12:26:31 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/482.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Aug 2017 10:39:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Use USB as serial port on OPO on Mon, 14 Aug 2017 21:13:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jumbs" aria-label="Profile: jumbs">@<bdi>jumbs</bdi></a> said in <a href="/post/3389">Use USB as serial port on OPO</a>:</p>
<blockquote>
<p dir="auto">Do I understand correctly, that compiling a Kernel with the required driver linked into the Kernel, means, compiling on seperate computer starting from source code, and loading a new ROM on the OPO?</p>
</blockquote>
<p dir="auto">yes</p>
]]></description><link>https://forums.ubports.com/post/3390</link><guid isPermaLink="true">https://forums.ubports.com/post/3390</guid><dc:creator><![CDATA[doniks]]></dc:creator><pubDate>Mon, 14 Aug 2017 21:13:04 GMT</pubDate></item><item><title><![CDATA[Reply to Use USB as serial port on OPO on Mon, 14 Aug 2017 20:57:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doniks" aria-label="Profile: Doniks">@<bdi>Doniks</bdi></a>, Thanks.<br />
Indeed, I also get the response: 'config_modules is not set'.</p>
<p dir="auto">Do I understand correctly, that compiling a Kernel with the required driver linked into the Kernel, means, compiling on seperate computer starting from source code, and loading a new ROM on the OPO? Or can this still be done in some way within the existing ROM ...</p>
<p dir="auto">kind regards,<br />
Jumbs</p>
]]></description><link>https://forums.ubports.com/post/3389</link><guid isPermaLink="true">https://forums.ubports.com/post/3389</guid><dc:creator><![CDATA[jumbs]]></dc:creator><pubDate>Mon, 14 Aug 2017 20:57:21 GMT</pubDate></item><item><title><![CDATA[Reply to Use USB as serial port on OPO on Sat, 12 Aug 2017 13:55:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jumbs" aria-label="Profile: jumbs">@<bdi>jumbs</bdi></a> I know nothing about i2c, but you might want to check whether your kernel has module support</p>
<p dir="auto"><code>gunzip &lt; /proc/config.gz | grep -i modules</code></p>
<p dir="auto">Mine says</p>
<pre><code># CONFIG_MODULES is not set
</code></pre>
<p dir="auto">Which means my kernel doesn't have module support. I think this is typical for mobile device kernels (not sure why).</p>
<p dir="auto">So that would explain why you can't <code>modprobe</code>.<br />
You could try to compile a kernel for your device <em>with</em> support for loadable modules.</p>
<p dir="auto">However, after thinking further, this might not actually be the aspect you want to focus on. If I understand it right, then what you really need is to have the driver ftdi-sio compiled! It doesn't <em>need</em> to be a module, it can be linked directly into the kernel. However, that leads again to: compile a kernel. But then you want to focus on that driver and not on module support.</p>
<p dir="auto">Does that help?</p>
]]></description><link>https://forums.ubports.com/post/3338</link><guid isPermaLink="true">https://forums.ubports.com/post/3338</guid><dc:creator><![CDATA[doniks]]></dc:creator><pubDate>Sat, 12 Aug 2017 13:55:07 GMT</pubDate></item></channel></rss>