Need help with opensuse 12.1

Help
art_qrek
2012-02-20
2013-04-25
  • art_qrek
    art_qrek
    2012-02-20

    Hi all,
    I have big problem to install those drivers on my opensuse 12.1.
    I do everything what is written in README.

    ****************************************************
    uname -r
    3.1.9-1.4-desktop
    ****************************************************
    sudo make-f Makefile.standalone clean
    make-C / lib/modules/3.1.9-1.4-desktop/build SUBDIRS = clean
    make : Entering directory `/ usr/src/linux-3.1.9-1.4-obj/i386/desktop '
    make : gcc: Command not found
    ls: can not access / usr/src/linux-3.1.9-1.4/Documentation/DocBook/media / *. B64: No such file or directory
       CLEAN. Tmp_versions
    make : Leaving directory `/ usr/src/linux-3.1.9-1.4-obj/i386/desktop '
    *************************************************************************************
    sudo make-f Makefile.standalone
    make-C / SUBDIRS = modules lib/modules/3.1.9-1.4-desktop/build
    make : Entering directory `/ usr/src/linux-3.1.9-1.4-obj/i386/desktop '
    / usr/src/linux-3.1.9-1.4/scripts/gcc-version.sh: line 25: gcc: command not found
    / usr/src/linux-3.1.9-1.4/scripts/gcc-version.sh: line 26: gcc: command not found
    make : gcc: Command not found
       Using / usr/src/linux-3.1.9-1.4 as source for kernel
       GEN / usr/src/linux-3.1.9-1.4-obj/i386/desktop/Makefile
       CHK include / linux / version.h
       CHK include / generated / utsrelease.h
       HOSTCC scripts / basic / fixdep
    / bin / sh: gcc: command not found
    make : ***  Error 127
    make : ***  Error 2
    make : ***  Error 2
    make : ***  Error 2
    make : Leaving directory `/ usr/src/linux-3.1.9-1.4-obj/i386/desktop '
    make: ***  Error 2
    ***************************************************************************
    sudo /sbin/modprobe videodev
    *************************************************************
    sudo / sbin / insmod stk11xx.ko
    insmod: can not read 'stk11xx.ko': No such file or directory

    Please help.
    What i did wrong ?
    Thanks in advance.

     
  • Hi artqrek,

    make : gcc: Command not found

    You need to install a few development packages such as the compiler (gcc) and kernel headers.
    I'm not sure about Suse.
    On Fedora these packages are named "gcc" and "kernel-devel", and optionnaly "ctags" and "doxygen".

    I hope this helps,
    Xavier

     
  • HI,

    This is related to same problem so I'll post how far i got and what are the problems.
    I managed to compile driver by changing includes to videodev2.h and removing v4l1 ioctl processing (big switch).

    Also, i had to define:
       #ifndef DECLARE_MUTEX
          #define DECLARE_MUTEX(_m)  DEFINE_SEMAPHORE(_m)
       #endif
       #ifndef init_MUTEX
          #define init_MUTEX(_m) sema_init(_m,1)
       #endif

    as init_MUTEX is not available anymore.

    But, insmod will crash computer at "video_register_device" call. Stack dump shows:
    dev_event
    device_add
    video_register_device
    .
    .
    .

    Also, dump mentioned usb_if_event

    Any idea?

    Thank you

     
  • Follow up:
    Trunk drivers compile without problem but like in previous driver versions (tried in opensuse11.3 and 12.1) screen is blank in Skype and in VLC.

    Webcam:
    ID 174f:6d51 Syntek 2.0Mpixel Web Cam - Eurocom D900C

     
  • Hi pedjaman,

    This is related to same problem

    I don't think so :

    - artqrek was missing a few development packages, hence could not build
      (we do not know yet if artqrek can now build, after installing gcc and co.)

    - latest trunk revision still compiles fine here, without any patch
      (Fedora 16 with linux kernel 3.2.6-3.fc16.x86_64 and device
       174f:6a31 Syntek Web Cam - Asus A8J, F3S, F5R, VX2S, V1S)

    FYI myself I first build rev. 104 without any patches, test it and all is still fine.
    Then only, I apply a few (minor) patches to improve things, and use that.

    So, I think it should help, if you did :
    - *first* open a distinct thread :), then :
    - specify your exact distribution and *kernel* versions,
      as well as which revision of the module source you are trying to use
    - report your exact build errors, when *not* patching anything
    - report your exact dmesg, /var/log/messages, kernel oops details
       when patching as you did and doing the insmod
    - expand on your last comment, since insmod wouldn't crash any more ?
       what did you change to get this progress ?

    Xavier

     
  • art_qrek
    art_qrek
    2012-03-10

    Hi guys,
    Finally i was able to compile, but i stuck again :(

    There are my steps.
    1. sudo /sbin/modprobe videodev
    dmesg output:
    Linux video capture interface: v2.00
    ****************************************************************
    2.sudo /sbin/insmod stk11xx.ko
    insmod: can't read 'stk11xx.ko': No such file or directory
    ****************************************************************
    3.search for stk11xx.ko:
    sudo find -name stk*.ko
    find: `./home/magda/.gvfs': Brak dostępu
    ./lib/modules/3.1.9-1.4-default/kernel/drivers/media/video/stkwebcam.ko
    ./lib/modules/3.1.9-1.4-desktop/kernel/drivers/media/video/stkwebcam.ko
    ./lib/modules/2.6.36-18-pae/updates/stk11xx.ko
    ./lib/modules/3.1.9-1.4-pae/kernel/drivers/media/video/stkwebcam.ko
    ./lib/modules/2.6.36-18-desktop/updates/stk11xx.ko
    ./lib/modules/2.6.36-18-default/updates/stk11xx.ko
    ./usr/src/linux-3.1.9-1.4-obj/i386/desktop/drivers/media/video/stkwebcam.ko
    *******************************************************************
    4.
    sudo /sbin/insmod ./lib/modules/2.6.36-18-desktop/updates/stk11xx.ko
    insmod: error inserting './lib/modules/2.6.36-18-desktop/updates/stk11xx.ko': -1 Invalid module format
    (that is other kernel version module so probably there is an issue)
    *************************************************************************************
    My question is: what should be my next step ?
    Maybe compilation was wrong?

    Thanks in advance for any useful hint.
    Have a nice weekend.

     
  • art_qrek
    art_qrek
    2012-03-10

    + this info from dmesg:
    stk11xx: disagrees about version of symbol module_layout

     
  • Nicolas VIVIEN
    Nicolas VIVIEN
    2012-03-10

    Support only on the mailing list.

    I don't read the forum.

    Currently, it seems that you build the driver for a kernel release, and you use this driver with an other kernel.