Results 1 to 2 of 2

Thread: Installing a CP210x driver on 11.2 help

  1. #1
    Join Date
    Apr 2010
    Location
    Ann Arbor, MI
    Posts
    79

    Default Installing a CP210x driver on 11.2 help

    I need to install a driver for a CP2101 USB/Serial device. I read somewhere that it's part of the kernel and was hoping I could download and automatically install it. I found this page:

    /var/www/html/linux/RPM/opensuse/11.2/x86_64/lib_modules_2.6.31.5-0.1-trace_kernel_drivers_usb_serial_Tree.html

    Which gave me great hope, but I have absolutely no clue what it means or what to do with it.

    Anyway, I was hoping someone could tell me how to install this driver. Very new to Linux and trying to avoid compiling if possible... lost in the woods very quickly.

    If compiling is the answer, then I need help there too. I downloaded the Linux driver kit from Silicon Labs web site, followed the installation instructions, ran into an error and quickly bailed. The error is:

    LD/cp210x-3.0.0 M=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 modules
    make: *** /lib/modules/2.6.31.12-0.2-desktop/build: No such file or directory.

    Which makes sense in that there isn't a /lib/modules/2.6.31.12-0.2-desktop/build directory but didn't help much with the driver install. I'll include the full output and maybe someone can tell me what I've done wrong.

    Thanks,

    sr

    linux-nsxk:/usr/src/cp210x-3.0.0 # ./makerpm
    ++ uname -r
    + kernel_release=2.6.31.12-0.2-desktop
    ++ pwd
    + current_dir=/usr/src/cp210x-3.0.0
    + export current_dir
    + '[' -f /root/.rpmmacros ']'
    + cp /usr/src/cp210x-3.0.0/cp210x/.rpmmacros /root/.rpmmacros
    + d=/var/tmp/silabs
    + '[' '!' -d /var/tmp/silabs ']'
    + mkdir /var/tmp/silabs
    + cd /var/tmp/silabs
    + r=/var/tmp/silabs/rpmbuild
    + o=cp210x-3.0.0
    + s=/var/tmp/silabs/rpmbuild/SOURCES
    + spec=cp210x-3.0.0.spec
    + rm -rf /var/tmp/silabs/rpmbuild
    + mkdir rpmbuild
    + mkdir rpmbuild/SOURCES
    + mkdir rpmbuild/SRPMS
    + mkdir rpmbuild/SPECS
    + mkdir rpmbuild/BUILD
    + mkdir rpmbuild/RPMS
    + cd /var/tmp/silabs/rpmbuild/SOURCES
    + rm -rf cp210x-3.0.0
    + mkdir cp210x-3.0.0
    + cp -r /usr/src/cp210x-3.0.0/cp210x/configure /usr/src/cp210x-3.0.0/cp210x/cp210x.c /usr/src/cp210x-3.0.0/cp210x/cp210x.h /usr/src/cp210x-3.0.0/cp210x/installmod /usr/src/cp210x-3.0.0/cp210x/Makefile24 /usr/src/cp210x-3.0.0/cp210x/Makefile26 /usr/src/cp210x-3.0.0/cp210x/Rules.make cp210x-3.0.0
    + cp -r /usr/src/cp210x-3.0.0/cp210x/.rpmmacros cp210x-3.0.0
    ++ uname -r
    + KVER=2.6.31.12-0.2-desktop
    ++ echo 2.6.31.12-0.2-desktop
    ++ awk -F . -- '{ print $1 }'
    + KVER1=2
    ++ echo 2.6.31.12-0.2-desktop
    ++ awk -F . -- '{ print $2 }'
    + KVER2=6
    ++ echo 2.6.31.12-0.2-desktop
    ++ sed -e 's/2\.6\.//g'
    + KVER3=31.12-0.2-desktop
    + MyCopy=0
    + case $KVER2 in
    + echo '2.6 Kernel'
    2.6 Kernel
    + rm -f cp210x-3.0.0.tar
    + rm -f cp210x-3.0.0.tar.gz
    + tar -cf cp210x-3.0.0.tar cp210x-3.0.0
    + gzip cp210x-3.0.0.tar
    + cp /usr/src/cp210x-3.0.0/cp210x-3.0.0.spec /var/tmp/silabs/rpmbuild/SPECS
    + rpmbuild -ba /var/tmp/silabs/rpmbuild/SPECS/cp210x-3.0.0.spec
    Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.16BOCz
    + umask 022
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + kver2=6
    + case $kver2 in
    + echo '2.6 Kernel'
    2.6 Kernel
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + rm -rf cp210x-3.0.0
    + /usr/bin/gzip -dc /var/tmp/silabs/rpmbuild/SOURCES/cp210x-3.0.0.tar.gz
    + /bin/tar -xf -
    + STATUS=0
    + '[' 0 -ne 0 ']'
    + cd cp210x-3.0.0
    + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
    + exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.l4i8TO
    + umask 022
    + cd /var/tmp/silabs/rpmbuild/BUILD
    + /bin/rm -rf /var/tmp/silabs/rpmbuild/BUILDROOT/cp210x-3.0.0-001.x86_64
    ++ dirname /var/tmp/silabs/rpmbuild/BUILDROOT/cp210x-3.0.0-001.x86_64
    + /bin/mkdir -p /var/tmp/silabs/rpmbuild/BUILDROOT
    + /bin/mkdir /var/tmp/silabs/rpmbuild/BUILDROOT/cp210x-3.0.0-001.x86_64
    + cd cp210x-3.0.0
    + sh ./configure
    + CONFIG_FILE=defaults.mk
    ++ pwd
    + PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
    ++ uname -r
    + KVER=2.6.31.12-0.2-desktop
    ++ echo 2.6.31.12-0.2-desktop
    ++ awk -F . -- '{ print $1 }'
    + KVER1=2
    ++ echo 2.6.31.12-0.2-desktop
    ++ awk -F . -- '{ print $2 }'
    + KVER2=6
    ++ echo 2.6.31.12-0.2-desktop
    ++ sed -e 's/2\.6\.//g'
    + KVER3=31.12-0.2-desktop
    + case $KVER2 in
    + makefile=Makefile26
    + EXT=.ko
    + KOFILE=cp210x.ko
    + MODFILE=cp2101.ko
    + RULESFILE=
    ++ uname -r
    + KDIR=/lib/modules/2.6.31.12-0.2-desktop/build
    ++ uname -r
    + MODDIR=/lib/modules/2.6.31.12-0.2-desktop
    + echo

    + echo 'Kernel version : 2.6.31.12-0.2-desktop'
    Kernel version : 2.6.31.12-0.2-desktop
    + echo 'Module extension : .ko'
    Module extension : .ko
    + echo 'KO File : cp210x.ko'
    KO File : cp210x.ko
    + echo 'Kernel Dir : /lib/modules/2.6.31.12-0.2-desktop/build'
    Kernel Dir : /lib/modules/2.6.31.12-0.2-desktop/build
    + echo 'Module File : cp2101.ko'
    Module File : cp2101.ko
    + echo 'Module Dir : /lib/modules/2.6.31.12-0.2-desktop'
    Module Dir : /lib/modules/2.6.31.12-0.2-desktop
    + echo 'Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0'
    Current Dir : /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
    + case $KVER2 in
    + echo

    + rm -f defaults.mk
    + echo '# Makefile.config'
    + echo '# Automatically generated'
    + echo KVER=2.6.31.12-0.2-desktop
    + echo KVER1=2
    + echo KVER2=6
    + echo KVER3=31.12-0.2-desktop
    + echo EXT=.ko
    + echo KOFILE=cp210x.ko
    + echo KDIR=/lib/modules/2.6.31.12-0.2-desktop/build
    + echo MODFILE=cp2101.ko
    + echo MODDIR=/lib/modules/2.6.31.12-0.2-desktop
    + echo PWD=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0
    + case $KVER2 in
    + kver2=6
    + case $kver2 in
    + echo '2.6 Kernel'
    2.6 Kernel
    + cp ./Makefile26 ./Makefile
    + make -f Makefile26 modules
    make -C /lib/modules/2.6.31.12-0.2-desktop/build -I /var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 M=/var/tmp/silabs/rpmbuild/BUILD/cp210x-3.0.0 modules
    make: *** /lib/modules/2.6.31.12-0.2-desktop/build: No such file or directory. Stop.
    make: *** [modules] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.l4i8TO (%build)

  2. #2
    Join Date
    Apr 2010
    Location
    Ann Arbor, MI
    Posts
    79

    Default Re: Installing a CP210x driver on 11.2 help

    If I use yast and go to Hardware Information, I can see the CP2101 device listed. If I open the Drivers node it says:

    Active: Yes
    modprobe: Yes

    So, does that mean the driver is already installed??

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •