Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: How do I install this module?

  1. #1
    Join Date
    Dec 2012
    Beans
    5

    Cool How do I install this module?

    Okay okay, I'm new to ubuntu and I have drawing tablet, Hanvon, I found the module for it but I don't know how to install it. I've searched hours online for this and didn't have any luck.
    Below is the link to a screenshot of the content of the tarball and the readme file.

    http://screencloud.net/v/sJ2

    Wat do? D:

    P.S I accidentally posted this thread on the "Hardware" section. removed - Celene
    asl;jnsal I'm a dumbass, sorry.
    Last edited by sandyd; December 19th, 2012 at 03:34 AM.

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I install this module?

    The files you show in the archive is the source code for the kernel module (driver) itself. We will compile it before installing.

    Firstly, I am assuming the "hanvon-20111102.tgz" file is in your "Downloads" folder.

    Open a terminal (Click on the Unity dash on the top-left hand corner of the screen and type in 'terminal').

    Then, enter this in.
    Code:
    cd ~/Downloads
    #Create a clean folder to extract and compile the driver
    mkdir -p hanvon_drivers/build
    mv hanvon-20111102.tgz hanvon_drivers
    cd hanvon_drivers
    tar xvf hanvon-20111102.tgz
    mv hanvon/* build
    #Install gcc and other tools needed to build kernel module from source
    sudo apt-get install build-essential
    #type in password at this point, it will not show up
    cd build
    #Compile Module
    make
    #Insert module in kernel
    sudo insmod ./hanvon.ko
    It should (according to the readme at least) show up if you run
    Code:
    lsmod
    btw, don't worry about it if you ever post in the wrong section. Just click on the "report abuse" button on the left hand side of the screen (for me, I see yours at the bottom left of your post), and ask for someone to move it
    Last edited by sandyd; December 19th, 2012 at 03:55 AM. Reason: didn't notice subdirectory...
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Dec 2012
    Beans
    5

    Re: How do I install this module?

    Quote Originally Posted by sandyd View Post
    The files you show in the archive is the source code for the kernel module (driver) itself. We will compile it before installing.

    Firstly, I am assuming the "hanvon-20111102.tgz" file is in your "Downloads" folder.

    Open a terminal (Click on the Unity dash on the top-left hand corner of the screen and type in 'terminal').

    Then, enter this in.
    Code:
    cd ~/Downloads
    #Create a clean folder to extract and compile the driver
    mkdir hanvon_drivers
    mv hanvon-20111102.tgz hanvon_drivers
    cd hanvon_drivers
    tar xvf hanvon-20111102.tgz
    #Install gcc and other tools needed to build kernel module from source
    sudo apt-get install build-essential
    #type in password at this point, it will not show up
    #Compile Module
    make
    #Insert module in kernel
    sudo insmod ./hanvon.ko
    It should (according to the readme at least) show up if you run
    Code:
    lsmod
    btw, don't worry about it if you ever post in the wrong section. Just click on the "report abuse" button on the left hand side of the screen (for me, I see yours at the bottom left of your post), and ask for someone to move it
    Thanks for replying, man.
    When I tell it to make it, it gives me this message tho:
    Code:
    "No targets specified and no makefile found.  Stop.
    Code:
    "
    
    vinizzz@ubuntu:~$ cd ~/Downloads
    vinizzz@ubuntu:~/Downloads$ mkdir hanvon_drivers
    mkdir: cannot create directory `hanvon_drivers': File exists
    vinizzz@ubuntu:~/Downloads$ mv hanvon-20111102.tgz hanvon_drivers
    mv: cannot stat `hanvon-20111102.tgz': No such file or directory
    vinizzz@ubuntu:~/Downloads$ cd hanvon_drivers
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$ tar xvf hanvon-20111102.tgz
    hanvon/
    hanvon/hanvon.c
    hanvon/README
    hanvon/Makefile
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$ sudo apt-get install build-essential
    [sudo] password for vinizzz: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      dkms libfaac0 libquicktime2 linux-headers-3.5.0-17 nvidia-settings
      python-xkit screen-resolution-extra
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
      dpkg-dev g++ g++-4.7 libalgorithm-diff-perl libalgorithm-diff-xs-perl
      libalgorithm-merge-perl libstdc++6-4.7-dev
    Suggested packages:
      debian-keyring g++-multilib g++-4.7-multilib gcc-4.7-doc libstdc++6-4.7-dbg
      libstdc++6-4.7-doc
    The following NEW packages will be installed:
      build-essential dpkg-dev g++ g++-4.7 libalgorithm-diff-perl
      libalgorithm-diff-xs-perl libalgorithm-merge-perl libstdc++6-4.7-dev
    0 upgraded, 8 newly installed, 0 to remove and 162 not upgraded.
    E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock directory /var/cache/apt/archives/
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$ make
    make: *** No targets specified and no makefile found.  Stop.
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$
    Last edited by sandyd; December 19th, 2012 at 03:54 AM. Reason: code tags

  4. #4
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I install this module?

    Quote Originally Posted by Ryuichi1 View Post
    Thanks for replying, man.
    When I tell it to make it, it gives me this message tho:

    "No targets specified and no makefile found. Stop.
    "

    vinizzz@ubuntu:~$ cd ~/Downloads
    vinizzz@ubuntu:~/Downloads$ mkdir hanvon_drivers
    mkdir: cannot create directory `hanvon_drivers': File exists
    vinizzz@ubuntu:~/Downloads$ mv hanvon-20111102.tgz hanvon_drivers
    mv: cannot stat `hanvon-20111102.tgz': No such file or directory
    vinizzz@ubuntu:~/Downloads$ cd hanvon_drivers
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$ tar xvf hanvon-20111102.tgz
    hanvon/
    hanvon/hanvon.c
    hanvon/README
    hanvon/Makefile
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$ sudo apt-get install build-essential
    [sudo] password for vinizzz:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    dkms libfaac0 libquicktime2 linux-headers-3.5.0-17 nvidia-settings
    python-xkit screen-resolution-extra
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
    dpkg-dev g++ g++-4.7 libalgorithm-diff-perl libalgorithm-diff-xs-perl
    libalgorithm-merge-perl libstdc++6-4.7-dev
    Suggested packages:
    debian-keyring g++-multilib g++-4.7-multilib gcc-4.7-doc libstdc++6-4.7-dbg
    libstdc++6-4.7-doc
    The following NEW packages will be installed:
    build-essential dpkg-dev g++ g++-4.7 libalgorithm-diff-perl
    libalgorithm-diff-xs-perl libalgorithm-merge-perl libstdc++6-4.7-dev
    0 upgraded, 8 newly installed, 0 to remove and 162 not upgraded.
    E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock directory /var/cache/apt/archives/
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$ make
    make: *** No targets specified and no makefile found. Stop.
    vinizzz@ubuntu:~/Downloads/hanvon_drivers$
    run
    Code:
    sudo apt-get install build-essential
    #type in password at this point, it will not show up
    cd ~/Downloads/hanvon_drivers/hanvon
    #Compile Module
    make
    #Insert module in kernel
    sudo insmod ./hanvon.ko
    instead (for some reason, the screenshot didn't show directory structure inside the tar...)

    Also, make sure you don't have anything else installing via the software center/apt/synaptic
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  5. #5
    Join Date
    Dec 2012
    Beans
    5

    Re: How do I install this module?

    ...Dx Why is it not working?

    vinizzz@ubuntu:~/Downloads/hanvon_drivers/hanvon$ make
    make -C /lib/modules/3.5.0-19-generic/build M=/home/vinizzz/Downloads/hanvon_drivers/hanvon modules
    make[1]: Entering directory `/usr/src/linux-headers-3.5.0-19-generic'
    CC [M] /home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.o
    /home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.c: In function ‘hanvon_irq’:
    /home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.c:104:3: error: implicit declaration of function ‘err’ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[2]: *** [/home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.o] Error 1
    make[1]: *** [_module_/home/vinizzz/Downloads/hanvon_drivers/hanvon] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-19-generic'
    make: *** [all] Error 2
    vinizzz@ubuntu:~/Downloads/hanvon_drivers/hanvon$

  6. #6
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How do I install this module?

    Quote Originally Posted by Ryuichi1 View Post
    ...Dx Why is it not working?

    vinizzz@ubuntu:~/Downloads/hanvon_drivers/hanvon$ make
    make -C /lib/modules/3.5.0-19-generic/build M=/home/vinizzz/Downloads/hanvon_drivers/hanvon modules
    make[1]: Entering directory `/usr/src/linux-headers-3.5.0-19-generic'
    CC [M] /home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.o
    /home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.c: In function ‘hanvon_irq’:
    /home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.c:104:3: error: implicit declaration of function ‘err’ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[2]: *** [/home/vinizzz/Downloads/hanvon_drivers/hanvon/hanvon.o] Error 1
    make[1]: *** [_module_/home/vinizzz/Downloads/hanvon_drivers/hanvon] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-19-generic'
    make: *** [all] Error 2
    vinizzz@ubuntu:~/Downloads/hanvon_drivers/hanvon$
    something is wrong with the source code - but you can probably ignore that warning that it treated as an error.
    What is the link to the download?
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  7. #7
    Join Date
    Dec 2012
    Beans
    5

    Re: How do I install this module?

    Ignore it? How?

    Also, this. http://linux.fjfi.cvut.cz/~taxman/hw/hanvon/

  8. #8
    Join Date
    Jan 2008
    Beans
    7,749

    Re: How do I install this module?

    Are you using the required 2.6 linux kernel? You can check with:

    Code:
    uname -a
    If you have a newer ubuntu release then you probably have 3.x kernel.

  9. #9
    Join Date
    Dec 2012
    Beans
    5

    Re: How do I install this module?

    Quote Originally Posted by snowpine View Post
    Are you using the required 2.6 linux kernel? You can check with:

    Code:
    uname -a
    If you have a newer ubuntu release then you probably have 3.x kernel.
    vinizzz@ubuntu:~$ uname -a
    Linux ubuntu 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    So does that mean I need to get the 2.6 linux kernel? e_e If so, how?

  10. #10
    Join Date
    Jan 2008
    Beans
    7,749

    Re: How do I install this module?

    I suggest you contact the manufacturer of your drawing tablet to obtain updated instructions for current Ubuntu releases. Or use the forum Search feature to see how other users have managed to get this tablet working. Good luck!

Page 1 of 3 123 LastLast

Tags for this Thread

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
  •