Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Thread: How do I install this module?

Hybrid View

  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
    Kingdom of cookies
    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...
    Ubuntu Forums Moderation Staff || SandyDNET
    Twitter: @CatchesAStar | Last.fm
    Ubuntu Membership via Forum Contributions

  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
    Kingdom of cookies
    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
    Ubuntu Forums Moderation Staff || SandyDNET
    Twitter: @CatchesAStar | Last.fm
    Ubuntu Membership via Forum Contributions

  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
    Kingdom of cookies
    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?
    Ubuntu Forums Moderation Staff || SandyDNET
    Twitter: @CatchesAStar | Last.fm
    Ubuntu Membership via Forum Contributions

  7. #7
    Join Date
    Apr 2009
    Location
    Caerdydd, Cymru DU
    Beans
    73
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: How do I install this module?

    Followed these directions to install the latest hanvon-2111113.tgz module, and it works fine. However I'm having to go through the process from 'cd hanvon_drivers' every time I reboot the machine, which is a bit of a pain. Anyone got any ideas how I make this change permanent?
    Nid yw Anarchiaeth am anrhefn a chwal, ond am Ryddid, Cyfrifoldeb a Threfn
    Anarchy isn't about chaos and disorder, it's about Freedom, Responsibility and Order.

  8. #8
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I install this module?

    Right, you don't need to do an insmod or modprobe each time if you copy the driver/module into an appropriate directory. See: http://ubuntuforums.org/showthread.p...1#post11242767

  9. #9
    Join Date
    Apr 2009
    Location
    Caerdydd, Cymru DU
    Beans
    73
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: How do I install this module?

    Thanks for the reply Favux, but following those directions doesn't seem to work - though I will have another look when I'm less tired.

    I get this:

    ceridwen@ceridwen:~$ sudo cp hanvon.ko /lib/modules/'ceridwen -r'/kernel/drivers/input/tablet
    [sudo] password for ceridwen:
    cp: cannot stat ‘hanvon.ko’: No such file or directory
    ceridwen@ceridwen:~$


    I'm a little stumped, as it must have 'hanvon.ko' as doing the insmod does give me tablet functionality.
    Nid yw Anarchiaeth am anrhefn a chwal, ond am Ryddid, Cyfrifoldeb a Threfn
    Anarchy isn't about chaos and disorder, it's about Freedom, Responsibility and Order.

  10. #10
    Join Date
    Nov 2008
    Beans
    9,635
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I install this module?

    Hi,

    It's from using 'ceridwen -r' in the path. Enter uname -r in a terminal and it will return the current kernel. So that is a specific command asking the kernel for its name and doesn't mean yourname. The backticks ` allow you to use uname -r in a path, the shell reads `uname -r` as the current kernel, with is part of the path.

Page 1 of 2 12 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
  •