Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Driver compile problem with autoconf.h and version.h

  1. #1
    Join Date
    Jun 2010
    Location
    Loznica Serbia
    Beans
    126
    Distro
    Ubuntu 12.04 Precise Pangolin

    Driver compile problem with autoconf.h and version.h

    I have a conexant modem and i want to make
    it work(just for fun, i have DSL). The linuxant driver works but i want full 56k. I tried ubuntu help
    https://help.ubuntu.com/community/Di...Howto/Conexant and there was alink for some Dell driver.
    I've compiled and installed the Dell successfully but when i run
    "hsfconfig" i get this

    ------------------------------------------------------------------------------------------------------------
    No pre-built modules for: Ubuntu-10.10 linux-2.6.35-22-generic i686-SMP

    Trying to automatically build the driver modules...
    (this requires a C compiler and proper kernel sources to be installed)

    Where is the linux source build directory that matches your running kernel?
    [/lib/modules/2.6.35-22-generic/build]

    WARNING: missing file /lib/modules/2.6.35-22-generic/build/include/linux/autoconf.h
    The cause of this is usually a missing or unconfigured
    kernel source tree (and sometimes an incorrect directory or symbolic link).

    However, proper /boot/config-2.6.35-22-generic was found.
    Would you like to try using it (in a temporary kernel tree)? [yes]

    i enter yes and it says
    Unable to prepare temporary kernel tree

    First, ensure that the proper kernel source and compiler packages
    from your distribution vendor and/or the community are installed.

    The Linux kernel can then be reconfigured by running "make menuconfig"
    under the kernel source directory (usually /usr/src/linux).

    Verify that the proper options for your system are selected.

    Then compile and install your new kernel (for more information about
    this procedure, see the README file under the kernel source directory),
    reboot the system using the new kernel, and re-run "hsfconfig".
    -------------------------------------------------------------------------------------------------------------

    I've made an empty autoconf.h file but then hsfconfig said

    -------------------------------------------------------------------------------------------------------------
    WARNING: the kernel version () defined in
    /lib/modules/2.6.35-22-generic/build/include/linux/version.h
    does not match the currently running kernel (2.6.35-22-generic)
    The cause of this problem is an incorrect kernel source path.
    Please check that /lib/modules/2.6.35-22-generic/build points to the right tree.
    The cause of this is usually a missing or unconfigured
    kernel source tree (and sometimes an incorrect directory or symbolic link).

    However, proper /boot/config-2.6.35-22-generic was found.
    Would you like to try using it (in a temporary kernel tree)? [yes]
    -------------------------------------------------------------------------------------------------------------

    I entered yes and it failed again.
    Any help. I've installed linux sources and build essential.
    Should i compile the kernel and then run hsfconfig?
    Last edited by nidzo732; October 15th, 2010 at 06:24 PM.
    Windows is not user friendly,it's just user familiar

  2. #2
    Join Date
    Jun 2010
    Location
    Loznica Serbia
    Beans
    126
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Driver compile problem with autoconf.h and version.h

    32 views and nothing

    BUMP
    Windows is not user friendly,it's just user familiar

  3. #3
    Join Date
    Oct 2010
    Beans
    4

    Re: Driver compile problem with autoconf.h and version.h

    First of all, do you have kernel source??
    aptitude install linux-source

    cd /usr/src/linux

    # copy running config
    cp /boot/config-2.6.35-22-generic .config

    #build new kernel
    make

    After this try, once again.

  4. #4
    Join Date
    Jun 2009
    Location
    Minglanilla, Cebu
    Beans
    55
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Driver compile problem with autoconf.h and version.h

    @nidzo732
    I'm experiencing the same situation and until now wasn't able to fix this.

    @p12i
    Code:
    cd /usr/src/linux
    can't locate this folder. all inside were the linux headers and source. do I
    have to create a folder? Or save to the linux source?

  5. #5
    Join Date
    Oct 2010
    Beans
    1

    Smile Re: Driver compile problem with autoconf.h and version.h

    Hi

    sudo -s
    cd /lib/modules/$(uname -r)/build/include/linux
    ln -s ../generated/utsrelease.h
    ln -s ../generated/autoconf.h

    my problem solved

    tanks


    http://superuser.com/questions/19936...r-ubuntu-10-10

  6. #6
    Join Date
    Aug 2007
    Beans
    60

    How-to use a usb winmodem with a conexant driver

    Thanks!

    With the information given by Diaco, Lamp20 and the writers of http://help.ubuntu.com/community/Dia...Howto/Conexant I have used a USB winmodem with a conexant driver.

    When I plugged that modem in the computer with Maverick, I executed
    Code:
    lsusb
    and it said:
    [...]
    Bus 003 Device 003: ID 0572:1300 Conexant Systems (Rockwell), Inc. Softk56 Data Fax Voice CARP
    [...]
    so I knew that the HSF modem was recognized by the system.

    I upgraded the system
    Code:
    sudo apt-get update && sudo apt-get dist-upgrade
    I checked that I had no previous Conexant drivers installed. For example: if I had seen a file "/usr/sbin/hsfconfig", I would have thought that something was still installed.

    I made sure that I had gcc prepared, executing
    Code:
    sudo apt-get install gcc
    Then I executed those steps told there:
    Code:
    sudo -s
    cd /lib/modules/$(uname -r)/build/include/linux
    ln -s ../generated/utsrelease.h
    ln -s ../generated/autoconf.h
    exit
    I prepared the files for the compilation, executing
    Code:
    mkdir ~/conexant_modem
    cd ~/conexant_modem
    wget http://linux.dell.com/files/ubuntu/hardy/modem-drivers/hsf/hsfmodem-7.68.00.09oem.tar.gz
    tar xzf hsfmodem-7.68.00.09oem.tar.gz
    wget http://www.bargweb.net/images/2009/november/hsfmodem-7.80.02.05-DiacoEdition.zip
    unzip hsfmodem-7.80.02.05-DiacoEdition.zip
    and then
    Code:
    cp -pR hsfmodem-7.80.02.05-DiacoEdition/modules/imported/include/framewrk.h hsfmodem-7.68.00.09oem/modules/imported/include/framewrk.h
    cp -pR hsfmodem-7.80.02.05-DiacoEdition/modules/imported/include/osservices.h hsfmodem-7.68.00.09oem/modules/imported/include/osservices.h
    A note for the curious ones: those two files were the different ones between the directories "hsfmodem-7.68.00.09oem/modules/imported" and "hsfmodem-7.80.02.05-DiacoEdition/modules/imported".

    I executed
    Code:
    wget http://www.linuxant.com/drivers/hsf/full/archive/hsfmodem-7.80.02.06full/hsfmodem-7.80.02.06full.tar.gz
    A note for the curious ones: that file was the newest one in http://www.linuxant.com/drivers/hsf/full/downloads.php

    And then
    Code:
    tar xzf hsfmodem-7.80.02.06full.tar.gz
    rm -r hsfmodem-7.80.02.06full/modules/imported
    cp -R hsfmodem-7.68.00.09oem/modules/imported hsfmodem-7.80.02.06full/modules/
    I cleaned the directory
    Code:
    rm -rf hsfmodem-7.68.00.09oem
    rm -rf hsfmodem-7.80.02.05-DiacoEdition
    rm hsfmodem-7.68.00.09oem.tar.gz
    rm hsfmodem-7.80.02.05-DiacoEdition.zip
    rm hsfmodem-7.80.02.06full.tar.gz
    And finally
    Code:
    cd hsfmodem-7.80.02.06full
    sudo make install
    sudo hsfconfig
    It asked "Where is the linux source build directory that matches your running kernel?", then I simply pressed the return key to accept the default answer.

    I executed
    Code:
    dmesg
    and at the end I saw
    Code:
        [ 8065.844120] hsfengine: module license 'see LICENSE file distributed with driver' taints kernel.
        [ 8065.844334] Disabling lock debugging due to kernel taint
        [ 8067.075412] usbcore: registered new interface driver hsfusbcd2
        [ 8159.794167] usb 3-2.2: new full speed USB device using uhci_hcd and address 3
        [ 8161.536542] ttySHSF0 at MMIO 0x0 (irq = 0) is a Conexant HSF softmodem (USB-0572:1300)
        [ 8165.066453] usbcore: deregistering interface driver hsfusbcd2
        [ 8165.169348] usb 3-2.2: reset full speed USB device using uhci_hcd and address 3
        [ 8167.911599] ttySHSF0 at MMIO 0x0 (irq = 0) is a Conexant HSF softmodem (USB-0572:1300)
        [ 8167.921614] usbcore: registered new interface driver hsfusbcd2
    which meant, among other things, that the USB modem was detected at /dev/ttySHSF0, so I could use kppp (for example) and configure it specifying that the modem was at /dev/ttySHSF0.

    Note: as they said in https://help.ubuntu.com/community/Di...Howto/Conexant: "do not delete or move the source tree [in our case: ~/conexant_modem] from your system after these steps, it will be required to uninstall and patch the driver."

    Note: if you find any problem, or want to make any change to the method, please write it in this thread, so we can have a proper final document.
    Last edited by Ganton; March 5th, 2011 at 09:17 AM.

  7. #7
    Join Date
    Jun 2010
    Location
    Loznica Serbia
    Beans
    126
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How-to use a usb winmodem with a conexant driver

    It works. I forgot how slow this thing was .
    One more question do i have to run hsfconfig when update the kernel.
    Windows is not user friendly,it's just user familiar

  8. #8
    Join Date
    Aug 2007
    Beans
    60

    Re: How-to use a usb winmodem with a conexant driver

    Quote Originally Posted by nidzo732 View Post
    One more question do i have to run hsfconfig when update the kernel.
    I've looked for an answer, but I didn't find any information about it. In my case, I have been using Kubuntu Lucid (10.04) and upgrading the system (even its kernel) without executing hsfconfig and everything seemed to work right.

    When I updated from Lucid (10.04) to Maverick (10.10) the modem stopped working and I had to do those steps of the "how-to".

  9. #9
    Join Date
    Jul 2008
    Location
    Woodstock Cape Town RSA
    Beans
    990
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How-to use a usb winmodem with a conexant driver

    I've been having the same problem.

    Now tried the above hack and downloaded
    http://www.linuxant.com/drivers/hsf/...u_i386.deb.zip

    Code:
    driver version 7.80.02.06full
    (cd /lib/modules/2.6.36-020636rc7-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.36-020636rc7-generic/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" clean)
    make[1]: Entering directory `/usr/src/linux-headers-2.6.36-020636rc7-generic'
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-020636rc7-generic'
    (cd /lib/modules/2.6.36-020636rc7-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.36-020636rc7-generic/build" "M=/usr/lib/hsfmodem/modules/GPL/hda" "CC=gcc" "HDA_CFLAGS=-DFOUND_KZALLOC  -DFOUND_TLV   -DFOUND_IRQ_HANDLER_T -DFOUND_DELAYED_WORK  -DFOUND_NO_CTL_ELEM_RW" clean)
    make[1]: Entering directory `/usr/src/linux-headers-2.6.36-020636rc7-generic'
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-020636rc7-generic'
    rm -rf *.o GPL/*.o *.ko GPL/*.ko *.mod.c GPL/*.mod.c .*.cmd GPL/.*.cmd .tmp_versions .tmp_versions  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfosspec.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfserial.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfengine.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfpcibasic2.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfpcibasic3.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfhda.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfmc97ich.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfmc97via.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfmc97ali.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfmc97ati.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfmc97sis.mod  /lib/modules/2.6.36-020636rc7-generic/build/.tmp_versions/hsfsoar.mod Modules.symvers GPL/hda/Modules.symvers Module.symvers GPL/hda/Module.symvers modules.order GPL/hda/modules.order Module.markers GPL/hda/Module.markers
    (cd /lib/modules/2.6.36-020636rc7-generic/build && make "CNXT_KERNELSRC=/lib/modules/2.6.36-020636rc7-generic/build" "M=/usr/lib/hsfmodem/modules" "CC=gcc" modules)
    make[1]: Entering directory `/usr/src/linux-headers-2.6.36-020636rc7-generic'
      CC [M]  /usr/lib/hsfmodem/modules/mod_engine.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_hda.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ali.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ati.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_mc97ich.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_mc97sis.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_mc97via.o
      CC [M]  /usr/lib/hsfmodem/modules/mod_osspec.o
      CC [M]  /usr/lib/hsfmodem/modules/osservices.o
    /usr/lib/hsfmodem/modules/osservices.c: In function 'cnxthsf_7800206full_OsDebugVPrintf':
    /usr/lib/hsfmodem/modules/osservices.c:1396: warning: the frame size of 1028 bytes is larger than 1024 bytes
    /usr/lib/hsfmodem/modules/osservices.c: In function 'cnxthsf_7800206full_OsErrorVPrintf':
    /usr/lib/hsfmodem/modules/osservices.c:1369: warning: the frame size of 1028 bytes is larger than 1024 bytes
    /usr/lib/hsfmodem/modules/osservices.c: In function 'cnxthsf_7800206full_OsRawVPrintf':
    /usr/lib/hsfmodem/modules/osservices.c:1320: warning: the frame size of 1028 bytes is larger than 1024 bytes
      CC [M]  /usr/lib/hsfmodem/modules/osstdio.o
      CC [M]  /usr/lib/hsfmodem/modules/osnvm.o
      CC [M]  /usr/lib/hsfmodem/modules/osresour.o
    /usr/lib/hsfmodem/modules/osresour.c: In function 'cnxthsf_7800206full_OsHookInterrupt':
    /usr/lib/hsfmodem/modules/osresour.c:131: warning: the address of '__this_module' will always evaluate as 'true'
      CC [M]  /usr/lib/hsfmodem/modules/osstring.o
      CC [M]  /usr/lib/hsfmodem/modules/osmemory.o
      CC [M]  /usr/lib/hsfmodem/modules/osdiag.o
    /usr/lib/hsfmodem/modules/osdiag.c:602: error: unknown field 'ioctl' specified in initializer
    /usr/lib/hsfmodem/modules/osdiag.c:602: warning: initialization from incompatible pointer type
    make[2]: *** [/usr/lib/hsfmodem/modules/osdiag.o] Error 1
    make[1]: *** [_module_/usr/lib/hsfmodem/modules] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.36-020636rc7-generic'
    make: *** [all] Error 2
    I guess this means I need to use the generic version?

  10. #10
    Join Date
    Aug 2007
    Beans
    60

    Re: Driver compile problem with autoconf.h and version.h

    I guess this means I need to use the generic version?
    I suppose it's so, you downloaded
    and in the name of that file we find "2.6.31", which probably tells us that the file is only for the kernel "2.6.31".

    However
    does not have any kernel number in the name of the file, so I think it's more generic.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

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