<?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[Failed to compile Linux_2.6.x_VCP_Driver_Source in Ubuntu]]></title><description><![CDATA[<p dir="auto">I read the description of the environment it was modified CP210x driver for the 2.6.38 kernel (Ubuntu 11.04).However, I am now running Ubuntu 16.04, 4.13.0-35-generic.<br />
See the error messages below. Is this driver still needed to program/use M5Stack. If yes, has anyone succeeded compiling it?</p>
<p dir="auto">make[1]: Entering directory '/usr/src/linux-headers-4.13.0-35-generic'<br />
CC [M]  /home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.o<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:165:12: error: ‘usb_serial_probe’ undeclared here (not in a function)<br />
.probe  = usb_serial_probe,<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:166:16: error: ‘usb_serial_disconnect’ undeclared here (not in a function)<br />
.disconnect = usb_serial_disconnect,<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:181:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]<br />
.ioctl   = cp210x_ioctl,<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:181:13: note: (near initialization for ‘cp210x_device.ioctl’)<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:184:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]<br />
.tiocmget   = cp210x_tiocmget,<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:184:16: note: (near initialization for ‘cp210x_device.tiocmget’)<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:185:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]<br />
.tiocmset  = cp210x_tiocmset,<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:185:15: note: (near initialization for ‘cp210x_device.tiocmset’)<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_get_config’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:321:3: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]<br />
dbg("%s - Unable to send config request, "<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_open’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:426:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_cleanup’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:459:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_close’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:472:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_get_termios’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:597:17: error: invalid type argument of ‘-&gt;’ (have ‘struct ktermios’)<br />
&amp;tty-&gt;termios-&gt;c_cflag, &amp;baud);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_get_termios_port’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:619:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_set_termios’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:752:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:757:14: error: invalid type argument of ‘-&gt;’ (have ‘struct ktermios’)<br />
tty-&gt;termios-&gt;c_cflag &amp;= ~CMSPAR;<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:758:22: error: invalid type argument of ‘-&gt;’ (have ‘struct ktermios’)<br />
cflag = tty-&gt;termios-&gt;c_cflag;<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_tiocmset_port’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:887:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_tiocmget’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:926:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_break_ctl’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:948:36: error: ‘struct usb_serial_port’ has no member named ‘number’<br />
dbg("%s - port %d", <strong>func</strong>, port-&gt;number);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘cp210x_init’:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:1013:11: error: implicit declaration of function ‘usb_serial_register’ [-Werror=implicit-function-declaration]<br />
retval = usb_serial_register(&amp;cp210x_device);<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:1020:3: error: implicit declaration of function ‘usb_serial_deregister’ [-Werror=implicit-function-declaration]<br />
usb_serial_deregister(&amp;cp210x_device);<br />
^<br />
In file included from ./include/linux/module.h:18:0,<br />
from /home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:21:<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c: In function ‘__check_debug’:<br />
./include/linux/moduleparam.h:346:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]<br />
static inline type __always_unused *_<em>check</em>##name(void) { return(p); }<br />
^<br />
./include/linux/moduleparam.h:398:35: note: in expansion of macro ‘__param_check’<br />
#define param_check_bool(name, p) _<em>param_check(name, p, bool)<br />
^<br />
./include/linux/moduleparam.h:148:2: note: in expansion of macro ‘param_check_bool’<br />
param_check</em>##type(name, &amp;(value));       <br />
^<br />
./include/linux/moduleparam.h:128:2: note: in expansion of macro ‘module_param_named’<br />
module_param_named(name, name, type, perm)<br />
^<br />
/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.c:1043:1: note: in expansion of macro ‘module_param’<br />
module_param(debug, bool, S_IRUGO | S_IWUSR);<br />
^<br />
cc1: some warnings being treated as errors<br />
scripts/Makefile.build:315: recipe for target '/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.o' failed<br />
make[2]: *** [/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source/cp210x.o] Error 1<br />
Makefile:1550: recipe for target '<em>module</em>/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source' failed<br />
make[1]: *** [<em>module</em>/home/esp32/Downloads/Linux_2.6.x_VCP_Driver_Source] Error 2<br />
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-35-generic'<br />
Makefile:4: recipe for target 'all' failed<br />
make: *** [all] Error 2</p>
]]></description><link>https://community.m5stack.com/topic/111/failed-to-compile-linux_2-6-x_vcp_driver_source-in-ubuntu</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:12:51 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/111.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Feb 2018 01:53:48 GMT</pubDate><ttl>60</ttl></channel></rss>