[Arm-dev] Centos on RPI: driver/module for using serial USB

Jacco Ligthart

jacco at redsleeve.org
Mon Apr 23 19:40:17 UTC 2018


Hi Ron,

As far as I know is this module present in the latest kernels. please
update yours from this repo:
http://mirror.centos.org/altarch/7/kernel/armhfp/kernel-rpi2/

Jacco

PS I'm a bit surprised that you run CentOS6 on a raspberry. I was not
aware that there was a armv7 rebuild of CentOS6.



On 04/23/2018 05:38 AM, cjvijf at gmail.com wrote:
> Hello,
>
> I am using Centos (both Centos 6 and 7) on a Raspberry PI. I am trying
> to connect an AD-converter board
> to it with USB. (Future Technology Devices International, Ltd FT232
> USB-Serial (UART) IC)
>
> So I'd probably need some kernel module/driver.  (I have the src for
> the driver, ftdi_sio.
> I installed the kernel-headers, but the version of it seems different
> from the kernel?
>
> gcc -Wall -D__KERNEL__ -DMODULE
> -I/lib/modules/3.18.14-v7+/build/include
> -I/usr/src/linux-3.18.14-v7+/drivers/usb/serial/ -O   -c -o ftdi_sio.o
> ftdi_sio.c
> ftdi_sio.c:253:24: fatal error: linux/init.h: No such file or directory
>  #include <linux/init.h>
>
> [xxxx at rpi2-1 ftdi_sio]# find / -name "init.h"
> /usr/src/kernels/4.2.0-0.rc2.git0.1.centos.el7.armv7hl/include/linux/init.h
>
> /usr/src/kernels/4.2.0-0.rc2.git0.1.centos.el7.armv7hl/include/config/omap2/dss/init.h
>
> /usr/src/kernels/4.2.0-0.rc2.git0.1.centos.el7.armv7hl/include/config/debug/memory/init.h
>
> /usr/include/mysql/private/init.h
>
> Is there a driver, or kernel module, available that I can just use? 
> If not, how to compile the src of that driver?
>
> thanks,
>
> Ron
> _______________________________________________
> Arm-dev mailing list
> Arm-dev at centos.org
> https://lists.centos.org/mailman/listinfo/arm-dev





More information about the Arm-dev mailing list