<?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[How to compile the kernel to use USB serial adapters?]]></title><description><![CDATA[<p dir="auto">I would like to use a USB serial adapter with Ubuntu Touch installed on a Pixel3A.<br />
The USB serial adapter used is the following CH340.</p>
<p dir="auto"><a href="https://barbados.desertcart.com/products/66108333-aihasd-usb-to-ttl-uart-module-ch-340-g-ch-340-3-3-v-5-v-serial-converter-switch-instead-of-cp-2102-pl-2303-with-6-p-female-cable" target="_blank" rel="noopener noreferrer nofollow ugc">https://barbados.desertcart.com/products/66108333-aihasd-usb-to-ttl-uart-module-ch-340-g-ch-340-3-3-v-5-v-serial-converter-switch-instead-of-cp-2102-pl-2303-with-6-p-female-cable</a></p>
<p dir="auto">I tried to connect the USB serial adapter to the Pixel3A via a OTG adapter and executed the lsusb command, and it is recognized as follows.</p>
<pre><code>$ susb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
</code></pre>
<p dir="auto">However, /dev/serial* and /dev/ttyUSB* do not appear.</p>
<pre><code>$ ls /dev/serial* /dev/ttyUSB*
ls: cannot access '/dev/serial*': No such file or directory
ls: cannot access '/dev/ttyUSB*': No such file or directory
</code></pre>
<p dir="auto">I have tried using the following two OS versions with the same results.</p>
<ul>
<li>ubuntu touch 16.04 (OTA-24)</li>
<li>ubuntu touch 20.04 (2022-W51)</li>
</ul>
<p dir="auto">According to information at the following webpage, the kernel in ubuntu touch does not support the use USB serial adapters and the kernel must be recompiled to use it.</p>
<p dir="auto"><a href="https://askubuntu.com/questions/640003/ubuntu-touch-usb-serial-drivers-modules" target="_blank" rel="noopener noreferrer nofollow ugc">https://askubuntu.com/questions/640003/ubuntu-touch-usb-serial-drivers-modules</a></p>
<p dir="auto">I would like to know how to recompile the kernel to use the USB serial adapter with Ubuntu Touch on Pixel 3a.<br />
If anyone knows how to do this, could you please help me?</p>
]]></description><link>https://forums.ubports.com/topic/8633/how-to-compile-the-kernel-to-use-usb-serial-adapters</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 18:02:41 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/8633.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Feb 2023 08:06:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to compile the kernel to use USB serial adapters? on Wed, 06 Mar 2024 15:30:52 GMT]]></title><description><![CDATA[<p dir="auto">This post in particular seems to attract spam bots, so it will be locked now.</p>
]]></description><link>https://forums.ubports.com/post/79062</link><guid isPermaLink="true">https://forums.ubports.com/post/79062</guid><dc:creator><![CDATA[arubislander]]></dc:creator><pubDate>Wed, 06 Mar 2024 15:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to compile the kernel to use USB serial adapters? on Sun, 26 Feb 2023 13:14:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/masao616" aria-label="Profile: masao616">@<bdi>masao616</bdi></a> curious to hear how it goes!</p>
]]></description><link>https://forums.ubports.com/post/70957</link><guid isPermaLink="true">https://forums.ubports.com/post/70957</guid><dc:creator><![CDATA[doniks]]></dc:creator><pubDate>Sun, 26 Feb 2023 13:14:01 GMT</pubDate></item><item><title><![CDATA[Reply to How to compile the kernel to use USB serial adapters? on Sun, 26 Feb 2023 06:29:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doniks" aria-label="Profile: doniks">@<bdi>doniks</bdi></a><br />
Thanks for your kind advice.<br />
I am trying to go through the link information you referred me to.<br />
I am making some progress and seem to be getting by.<br />
I will succeed in the near future and report the details here.</p>
]]></description><link>https://forums.ubports.com/post/70950</link><guid isPermaLink="true">https://forums.ubports.com/post/70950</guid><dc:creator><![CDATA[masao616]]></dc:creator><pubDate>Sun, 26 Feb 2023 06:29:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to compile the kernel to use USB serial adapters? on Mon, 20 Feb 2023 09:59:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/masao616" aria-label="Profile: masao616">@<bdi>masao616</bdi></a> I don't think there is a brief and concise description of how to specifically rebuild the kernel, but I think you should be able to piece it together:</p>
<ul>
<li>there is extensive documentation for how to port to new devices. you don't need to create a port, since it already exists, but part of that whole story is of course compiling and flashing a kernel <a href="https://docs.ubports.com/en/latest/porting/introduction/index.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.ubports.com/en/latest/porting/introduction/index.html</a></li>
<li>as far as I can quickly see the Pixel 3a is in the CI <a href="https://gitlab.com/ubports/porting/reference-device-ports/android9/google-pixel-3a" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/ubports/porting/reference-device-ports/android9/google-pixel-3a</a> <a href="https://gitlab.com/ubports/porting/community-ports/jenkins-ci/sargo/-/blob/main/Jenkinsfile" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/ubports/porting/community-ports/jenkins-ci/sargo/-/blob/main/Jenkinsfile</a> even though one of them talks about sargo, the other about bonita</li>
<li>I suggest to cross read these resources and if you can't figure it out quickly then check in with the good folks in the porting telegram group: <a href="https://docs.ubports.com/en/latest/porting/introduction/Intro.html#getting-community-help" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.ubports.com/en/latest/porting/introduction/Intro.html#getting-community-help</a></li>
</ul>
]]></description><link>https://forums.ubports.com/post/70833</link><guid isPermaLink="true">https://forums.ubports.com/post/70833</guid><dc:creator><![CDATA[doniks]]></dc:creator><pubDate>Mon, 20 Feb 2023 09:59:31 GMT</pubDate></item></channel></rss>