Trouble building kernel module for sensor support

Hi, I'm new here but have been using Arch for a while.  Recently, I decided to install Arch on an old laptop (Toshiba A70) and have managed to work out most of the kinks to where it runs nicely.  Unfortunately, ACPI support is spotty and the /sys/class/thermal directory gives me only cooling_device0.  I installed the lm-sensors package and ran sensors-detect, which yielded no results.  Although the laptop runs smoothly otherwise, I would like to know the CPU's temp so that I would be able to set up a fan control scheme and CPU scaling (so far it's stuck at the lowest frequency, and that's kind of a big deal for me since the laptop runs on an archaic mobile P4 chip).
Sorry for the story but I felt some context was necessary.  I did manage to find a kernel module that would connect those sensors to ACPI for me (http://sourceforge.net/projects/omnibook/), however I'm having trouble building it on the latest kernel.  Here is the output from running make:
make -C /lib/modules/3.16.1-1-ARCH/build SUBDIRS=/root/omnibook-2.20070211 modules
make[1]: Entering directory '/usr/lib/modules/3.16.1-1-ARCH/build'
CC [M] /root/omnibook-2.20070211/init.o
In file included from /root/omnibook-2.20070211/init.c:26:0:
/root/omnibook-2.20070211/laptop.h:25:3: warning: initialization from incompatible pointer type
.callback = dmi_matched,
^
/root/omnibook-2.20070211/laptop.h:25:3: warning: (near initialization for ‘omnibook_ids[0].callback’)
/root/omnibook-2.20070211/laptop.h:34:3: warning: initialization from incompatible pointer type
.callback = dmi_matched,
^
/root/omnibook-2.20070211/laptop.h:34:3: warning: (near initialization for ‘omnibook_ids[1].callback’)
/root/omnibook-2.20070211/laptop.h:43:3: warning: initialization from incompatible pointer type
.callback = dmi_matched,
^
// I left out most of the 'incompatible pointer type' warnings since they repeat for a while.
^
/root/omnibook-2.20070211/laptop.h:1001:3: warning: (near initialization for ‘omnibook_ids[108].callback’)
/root/omnibook-2.20070211/init.c: In function ‘dmi_matched’:
/root/omnibook-2.20070211/init.c:141:16: warning: assignment discards ‘const’ qualifier from pointer target type
laptop_model = dmi_get_system_info(DMI_PRODUCT_VERSION);
^
/root/omnibook-2.20070211/init.c: In function ‘omnibook_init’:
/root/omnibook-2.20070211/init.c:281:3: error: implicit declaration of function ‘create_proc_entry’ [-Werror=implicit-function-declaration]
proc_entry = create_proc_entry(feature->name, pmode, omnibook_proc_root);
^
/root/omnibook-2.20070211/init.c:281:14: warning: assignment makes pointer from integer without a cast
proc_entry = create_proc_entry(feature->name, pmode, omnibook_proc_root);
^
/root/omnibook-2.20070211/init.c:290:13: error: dereferencing pointer to incomplete type
proc_entry->data = feature;
^
/root/omnibook-2.20070211/init.c:291:13: error: dereferencing pointer to incomplete type
proc_entry->read_proc = &procfile_read_dispatch;
^
/root/omnibook-2.20070211/init.c:293:14: error: dereferencing pointer to incomplete type
proc_entry->write_proc = &procfile_write_dispatch;
^
/root/omnibook-2.20070211/init.c:294:13: error: dereferencing pointer to incomplete type
proc_entry->owner = THIS_MODULE;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/root/omnibook-2.20070211/init.o' failed
make[2]: *** [/root/omnibook-2.20070211/init.o] Error 1
Makefile:1333: recipe for target '_module_/root/omnibook-2.20070211' failed
make[1]: *** [_module_/root/omnibook-2.20070211] Error 2
make[1]: Leaving directory '/usr/lib/modules/3.16.1-1-ARCH/build'
Makefile:88: recipe for target 'omnibook.ko' failed
make: *** [omnibook.ko] Error 2
I have honestly no idea what to make of any of this and would really appreciate any help towards a solution.  Thanks for reading

Welcome to Arch Linux
That looks like it is a 2.6 kernel module
http://sourceforge.net/p/omnibook/bugs/58/
Did you try either of these AUR offerings?
ewaller$@$odin ~ 1001 %packer -Ss omnibook
aur/omnibook-git 20110911-9 (7)
Kernel module for HP OmniBook,Pavilion,Toshiba and Compal ACL00 laptops
aur/omnibook-svn-zen 268-1 (1)
Kernel module for HP OmniBook, Pavilion, Toshiba and Compal ACL00 laptops
ewaller$@$odin ~ 1002 %
Last edited by ewaller (2014-08-23 23:33:53)

Similar Messages

  • Proper method for building kernel modules? [solved]

    I am attempting to build a custom kernel module for a PCI express interface to an FPGA.  However, I seem to be running into some issues with getting the standard kernel module makefile to work correctly.  Here is my makefile:
    # object files to build
    obj-m += nnic.o
    nic-objs += nnic_driver.o
    all:
    make -C /lib/modules/$(shell uname -r)/build M=$(pwd) modules
    clean:
    make -C /lib/modules/$(shell uname -r)/build M=$(pwd) clean
    However, the first time I ran 'make', I got this output:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:608: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
    scripts/kconfig/conf --silentoldconfig Kconfig
    *** Error during update of the configuration.
    /usr/lib/modules/3.14.1-1-ARCH/build/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
    make[3]: *** [silentoldconfig] Error 1
    /usr/lib/modules/3.14.1-1-ARCH/build/Makefile:512: recipe for target 'silentoldconfig' failed
    make[2]: *** [silentoldconfig] Error 2
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    After poking around online, I decided to try running make as root.  I got the following output:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    scripts/kconfig/conf --silentoldconfig Kconfig
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    Now, when runing 'make' as a normal user, I get:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:608: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    I have the linux-headers package installed.  I do not need to build the whole kernel, only this small module.  What am I missing here?  What is the correct procedure for this?
    Last edited by alex.forencich (2014-04-25 08:16:31)

    Sigh, found the problem.  Should be $(PWD) and not $(pwd) in my makefile.

  • [SOLVED] Can't build fglrx module for 3.4.5-1-ARCH kernel

    Hello everyone!
    I updated my system using
        pacman -Syu --ignore glibc
    everything was good, I rebooted and my fglrx module isn't working!
    I tried:
        sudo catalyst_build_module
        Building fglrx module for 3.4.5-1-ARCH kernel ...
        Failed!!! Check out log: /var/log/catalyst-install.log
    Here is log
    Here is quote from it: Kernel header files are absent: directory /lib/modules/3.3.4-1-ARCH/build doesn't exist! Game over
    But I have the latest versions linux and linux-headers packages.
    Help please. Thanks.
    Last edited by metalex (2012-07-20 14:53:37)

    Yes, this is my problem, I  did all from here, but I still can't update glibc.
    grep '^lib/' /var/lib/pacman/local/*/files 
    output:
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-linux-x86-64.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libSegFault.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc.so.6
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm.so.6
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libmemusage.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpcprofile.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread.so.0
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv.so.2
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db-1.0.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db.so.1
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil-2.16.so
    /var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil.so.1
    /var/lib/pacman/local/lib32-glibc-2.15-10/files:lib/
    /var/lib/pacman/local/lib32-glibc-2.15-10/files:lib/ld-linux.so.2
    I don't know what to do with lib32-glibc...

  • [SOLVED] Building fglrx module for 3.11.3-1-ARCH kernel error

    I got this error today:
    2013-09-28 14:07:59
    Building fglrx module for 3.11.2-1-ARCH kernel ...
    OsVersion says: SMP=1
    file /proc/kallsyms says: SMP=1
    file /usr/lib/modules/3.11.2-1-ARCH/build/include/generated/autoconf.h says: SMP=1
    file /usr/lib/modules/3.11.2-1-ARCH/build/include/generated/autoconf.h says: MODVERSIONS=1
    file /usr/lib/modules/3.11.2-1-ARCH/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_space
    make: Entering directory `/usr/src/linux-3.11.2-1-ARCH'
    CC [M] /tmp/catalyst.aHP3fa/firegl_public.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_acpi.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_agp.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_debug.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_ioctl.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_io.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_pci.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_str.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_iommu.o
    CC [M] /tmp/catalyst.aHP3fa/kcl.o
    CC [M] /tmp/catalyst.aHP3fa/kcl_wait.o
    LD [M] /tmp/catalyst.aHP3fa/fglrx.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/catalyst.aHP3fa/fglrx.mod.o
    LD [M] /tmp/catalyst.aHP3fa/fglrx.ko
    make: Leaving directory `/usr/src/linux-3.11.2-1-ARCH'
    Ok.
    2013-10-05 14:20:34
    Building fglrx module for 3.11.3-1-ARCH kernel ...
    Kernel header files are absent: directory /usr/lib/modules/3.11.3-1-ARCH/build doesn't exist! Game over
    2013-10-05 14:20:41
    Building fglrx module for 3.11.3-1-ARCH kernel ...
    Kernel header files are absent: directory /usr/lib/modules/3.11.3-1-ARCH/build doesn't exist! Game over
    I don't know why, and I do not know if I care.
    Last edited by patrickmaciel (2013-10-06 19:31:53)

    fazo96 wrote:I think it's because of the new kernel. Reinstalling is not a solution, it's avoiding the problem ;D
    Instead, I switched to catalyst-hook (I used catalyst) and upgraded to kernel 3.11.4, the latest version of xorg (there was a new one), gnome 3.10 and the module compiled perfectly, so now everything works on my system
    You right, but you know... I have a lot projects in queue and not have time to search and test evertying
    But, now... catalyst has installed successfully, but, I think isn't working 100%, because, when I click (for example), in a Google Chrome tab, and move to left/right, all tabs disappear or are blurry.
    Anyway, thanks.

  • [SOLVED] nVidia 87.76 Drivers installer fails to build kernel module

    Hey,
    I have a nVidia GeForce2 Integrated graphics card on my Asus A7N266 motherboard. According to the nVidia site, http://www.nvidia.com/object/IO_32667.html, the most recent driver that supports this is the 96.xx series. Yet as shown here, http://www.nvnews.net/vbulletin/showthread.php?t=87332, many people have found that the 96.xx series drivers cause graphical corruption when using a GeForce2 IGP.
    Before coming to Arch, I had used Xubuntu 7.04 and managed to compile the last known working drivers, version 87.76, following the instructions here: http://kmandla.wordpress.com/2007/03/25 … 20-12-386/
    That all went well but now I'm using Arch. I tried using the nvidia-96.xx driver in the repos just for testing sake but I still got the same graphical corruption.
    Thus I have been trying to install the 87.76 drivers on Arch, but it always fails at the kernel module building stage. I had first applied this patch here, http://www.nvnews.net/vbulletin/showthr … ost1086669, before compling as the plain driver wont compile against recent kernels.
    Here is the output from the installer:
    nvidia-installer log file '/var/log/nvidia-installer.log'
    creation time: Sun Aug 5 11:57:53 2007
    option status:
    license pre-accepted : false
    update : false
    force update : false
    expert : false
    uninstall : false
    driver info : false
    precompiled interfaces : true
    no ncurses color : false
    query latest version : false
    OpenGL header files : true
    no questions : false
    silent : false
    no recursion : false
    no backup : false
    kernel module only : false
    sanity : false
    add this kernel : false
    no runlevel check : false
    no network : false
    no ABI note : false
    no RPMs : false
    no kernel module : false
    force SELinux : default
    force tls : (not specified)
    X install prefix : (not specified)
    X library install path : (not specified)
    X module install path : (not specified)
    OpenGL install prefix : (not specified)
    OpenGL install libdir : (not specified)
    utility install prefix : (not specified)
    utility install libdir : (not specified)
    doc install prefix : (not specified)
    kernel name : (not specified)
    kernel include path : (not specified)
    kernel source path : (not specified)
    kernel output path : (not specified)
    kernel install path : (not specified)
    proc mount point : /proc
    ui : (not specified)
    tmpdir : /tmp
    ftp mirror : ftp://download.nvidia.com
    RPM file list : (not specified)
    Using: nvidia-installer ncurses user interface
    -> License accepted.
    -> No precompiled kernel interface was found to match your kernel; would you li
    ke the installer to attempt to download a kernel interface for your kernel f
    rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
    -> No matching precompiled kernel interface was found on the NVIDIA ftp site;
    this means that the installer will need to compile a kernel interface for
    your kernel.
    -> Performing CC sanity check with CC="cc".
    -> Performing CC version check with CC="cc".
    -> Kernel source path: '/lib/modules/2.6.22-ARCH/build'
    -> Kernel output path: '/lib/modules/2.6.22-ARCH/build'
    -> Performing rivafb check.
    -> Performing nvidiafb check.
    -> Cleaning kernel module build directory.
    executing: 'cd ./usr/src/nv; make clean'...
    rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv.o nv
    -vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvidia.mod.o
    rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
    rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
    rm -f -f stprof stprof.o symtab.h
    rm -f -rf .tmp_versions
    -> Building kernel module:
    executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.22-ARCH/bui
    ld SYSOUT=/lib/modules/2.6.22-ARCH/build'...
    NVIDIA: calling KBUILD...
    make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/build SUBDIRS=/home
    /kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
    nv modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are mis
    sing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it
    echo; \
    /bin/false)
    make[2]: *** No rule to make target `GLX'. Stop.
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [mdl] Error 1
    make: *** [module] Error 2
    -> Error.
    ERROR: Unable to build the NVIDIA kernel module.
    ERROR: Installation has failed. Please see the file
    '/var/log/nvidia-installer.log' for details. You may find suggestions
    on fixing installation problems in the README available on the Linux
    driver download page at www.nvidia.com.
    Any ideas as to how I can get the kernel module to build?
    I am using 'kernel26 2.6.22.1-4' with the 'kernel-headers 2.6.22.1-1' from the testing repo.
    Last edited by Nameless One (2007-08-10 07:08:38)

    make CC=cc  KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-ARCH/buildSUBDIRS=/home/kris/Source/nVidia GLX 87.76 Driver/NVIDIA-Linux-x86-1.0-8776-pkg1/usr/src/
    The name of the directory you placed the driver in contains spaces. That is  why you get the no rule to make target GLX error.
    It would be better not to circumvent pacman. I am using the following PKGBUILDs for the 8776 driver:
    nvidia-8776:
    pkgname=nvidia-8776
    pkgver=1.0.8776
    _nver=1.0-8776
    _kernver='2.6.22-ARCH'
    pkgrel=1
    pkgdesc="NVIDIA drivers for Arch kernel."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=(kernel26 nvidia-8776-utils)
    conflicts=('nvidia' 'nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
    install=nvidia.install
    source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run NVIDIA_kernel-1.0-8776-20061203.diff.txt)
    md5sums=('93ad45fe7b974a5a80348e1890f9b7c9' '70e669f06ee4881c2583261672de292a')
    [ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b' '70e669f06ee4881c2583261672de292a')
    build()
    # Extract
    cd $startdir/src/
    sh NVIDIA-Linux-$ARCH-${_nver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${_nver}-pkg0
    # Any extra patches are applied in here...
    patch -p0 < $startdir/NVIDIA_kernel-1.0-8776-20061203.diff.txt ||return 1
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/$_kernver/build module || return 1
    # install kernel module
    mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
    Place the patch (NVIDIA_kernel-1.0-8776-20061203.diff.txt) and nvidia.install in the same directory as the PKGBUILD.
    nvidia-utils:
    pkgname=nvidia-8776-utils
    pkgver=1.0.8776
    _nver=1.0-8776
    pkgrel=1
    pkgdesc="NVIDIA drivers utilities and libraries."
    arch=(i686 x86_64)
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=(xorg-server)
    conflicts=('libgl' 'libgl-dri' 'ati-fglrx-utils' 'nvidia-legacy-utils' 'nvidia-71xx-utils' 'nvidia-96xx-utils')
    provides=('libgl' )
    #install=nvidia.install
    source=(http://download.nvidia.com/XFree86/Linux-$ARCH/${_nver}/NVIDIA-Linux-$ARCH-${_nver}-pkg0.run)
    md5sums=('93ad45fe7b974a5a80348e1890f9b7c9')
    [ "$CARCH" = "x86_64" ] && md5sums=('f5340e4bbce811add994b1685cdea03b')
    build()
    # override nvida install routine and do it the long way.
    cd $startdir/src/
    sh NVIDIA-Linux-${ARCH}-${_nver}-pkg0.run --extract-only
    cd NVIDIA-Linux-${ARCH}-${_nver}-pkg0/usr/
    mkdir -p $startdir/pkg/usr/{lib,bin,share/applications,share/pixmaps,man/man1}
    mkdir -p $startdir/pkg/usr/lib/xorg/modules/{extensions,drivers}
    mkdir -p $startdir/pkg/usr/share/licenses/nvidia/
    install `find lib/ -iname \*.so\*` $startdir/pkg/usr/lib/
    install lib/tls/* $startdir/pkg/usr/lib
    install share/man/man1/* $startdir/pkg/usr/man/man1/
    rm $startdir/pkg/usr/man/man1/nvidia-installer.1.gz
    install X11R6/lib/libXv* $startdir/pkg/usr/lib/
    install share/applications/nvidia-settings.desktop $startdir/pkg/usr/share/applications/
    # fix nvidia .desktop file
    sed -e 's:__UTILS_PATH__:/usr/bin:' -e 's:__PIXMAP_PATH__:/usr/share/pixmaps:' -i $startdir/pkg/usr/share/applications/nvidia-settings.desktop
    install share/pixmaps/nvidia-settings.png $startdir/pkg/usr/share/pixmaps/
    install X11R6/lib/modules/drivers/nvidia_drv.so $startdir/pkg/usr/lib/xorg/modules/drivers
    install X11R6/lib/modules/extensions/libglx.so.$pkgver $startdir/pkg/usr/lib/xorg/modules/extensions
    install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $startdir/pkg/usr/bin/
    cd $startdir/pkg/usr/lib/;
    ln -s /usr/lib/libGL.so.$pkgver libGL.so
    ln -s /usr/lib/libGL.so.$pkgver libGL.so.1
    ln -s /usr/lib/libGLcore.so.$pkgver libGLcore.so.1
    ln -s /usr/lib/libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1
    ln -s /usr/lib/libnvidia-tls.so.$pkgver libnvidia-tls.so.1
    cd $startdir/pkg/usr/lib/xorg/modules/extensions;
    ln -s /usr/lib/xorg/modules/extensions/libglx.so.$pkgver libglx.so
    install $startdir/src/NVIDIA-Linux-${ARCH}-${_nver}-pkg0/LICENSE $startdir/pkg/usr/share/licenses/nvidia/
    find $startdir/pkg/usr -type d -exec chmod 755 {} \;
    # phew :)
    Last edited by kappa (2007-08-09 11:14:42)

  • [SOLVED] Catalyst-hook won't build kernel module

    I HAVE SOLVED THE PROBLEM. I WAS MISSING /usr/lib/modules/extramodules-3.11-ARCH/version !
    Hello, I got a problem with my Arch Linux install. Today I got a new kernel update (Linux-3.11.1-2-ARCH) and catalyst-hook attemptet to rebuild the fglrx kernel module, but failed.
    This is my /var/log/catalyst-install.log:
    2013-09-25 13:09:13
    Building fglrx module for 3.11.1-2-ARCH kernel ...
    OsVersion says: SMP=1
    file /proc/kallsyms says: SMP=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/include/generated/autoconf.h says: SMP=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/include/generated/autoconf.h says: MODVERSIONS=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_sp$
    make: Entering directory `/usr/src/linux-3.11.1-2-ARCH'
    CC [M] /tmp/catalyst.H8Xs1y/firegl_public.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_acpi.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_agp.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_debug.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_ioctl.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_io.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_pci.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_str.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_iommu.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_wait.o
    LD [M] /tmp/catalyst.H8Xs1y/fglrx.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/catalyst.H8Xs1y/fglrx.mod.o
    LD [M] /tmp/catalyst.H8Xs1y/fglrx.ko
    make: Leaving directory `/usr/src/linux-3.11.1-2-ARCH'
    install: missing destination file operand after ‘fglrx.ko.gz’
    Try 'install --help' for more information.
    Please let me know if you need more information, and where/how I can get it.
    Last edited by xeekei (2013-09-25 21:30:35)

    Hey man have had the same issue.
    How did you go about solving it?

  • [solved] catalyst: Building fglrx module for 3.0-ARCH failing

    I'm running Arch on my laptop since some time now.
    Lately I've done some updates and encountered a problem with my ati (catalyst driver).
    Everytime the auto-build module tries to compile, I'm getting an error:
    $ sudo catalyst_build_module allg
    Building fglrx module for 3.0-ARCH kernel ...
    Failed!!! Check out log: /var/log/catalyst-install.log
    this is what gets logged:
    2011-08-29 15:52:07
    Building fglrx module for 3.0-ARCH kernel ...
    Kernel header files are absent: directory /lib/modules/3.0-ARCH/build doesn't exist! Game over
    I checked it and that build directory is obviously really missing.
    I appreciate any help from you guys, since it's really odd to work on this laptop without the correct graphics drivers..
    this is my video card:
    # lspci -v | grep "VGA"
    01:00.0 VGA compatible controller: ATI Technologies Inc Redwood [Radeon HD 5600 Series] (prog-if 00 [VGA controller])
    please let me know if you need more information and thanks in advance for your help!
    Last edited by derblub (2011-08-29 16:39:22)

    well, ok - this was too oblivious now
    thank you very much!

  • Need Help with Oracleasm - a kernel module for the ASM library

    I am a beginner, trying to install Oracle RAC. I have a system with SuSE Linx 11 (64 bit) loaded. I need to get the correct ASMLib packages needed for installing ASM. I think I got the following packages that are needed for installing ASM
    1) oracleasmlib- the ASM libraries (oracleasmlib-2.0.4-1.SLE11.x86_64.rpm)
    2) oracleasm-support- utilities needed to administer ASMLib (oracleasm-support-2.1.3-1.SLE11.x86_64.rpm)
    I am unable to find the third package.
    3) Oracleasm - a kernel module for the ASM library
    I looked at my kernel version it says "2.6.27.19-5-default". I am not sure where I can get the above third package. If you have an answer/know ase share your thoughts.
    Thank You

    Hi!
    Don't use ASMLib, it will be no longer available, it will only came in Oracle Unbreakable Kernel for Linux 6.
    The easly way to set the permissions on your devices is with a /etc/init.d script that do the job.
    Here is an example:
    #! /bin/bash
    # chkconfig: 2345 25 19
    # description: Set ASM Permissions on to devices at boot.
    case "$1" in
    start)
    /bin/chown oracle:oinstall /dev/sdb1
    /bin/chmod 0660 /dev/sdb1
    stop)
    #do nothing
    status)
    ls -l /dev/sdb1
    echo "Usage: $0 {start|stop|status}"
    exit 1
    esac
    exit o
    You need to replace the /dev/sdb1 for your acctual partitions.
    Please check the Docs to be sure that you meet all pre-reqs.
    http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm
    http://docs.oracle.com/cd/E11882_01/install.112/e22489/toc.htm
    http://docs.oracle.com/cd/E11882_01/install.112/e24321/toc.htm
    Hope it's helps.
    Best Regards,
    Julio

  • Trouble Building New Workspace For Day 1 Projects

    I am viewing the first day's lesson and am finding this course to be remarkably good for something that's free. I really like it! Thanks for providing it.
    One confusing thing I encountered> Being an overachiever, I tried to follow along with the instructor when she created a new workspace and unzipped Day 1's files with all of Day 1's projects in it. In the version she is using in the video, there is no Day1.zip file, and so trying to follow her, I thought I was making some mistake and not building my workspace correctly or not unzipping my file correctly.
    I finally figured out that it was different than what she was using and found instructions in the readme file that helped me set it up. Later, I found that the actual exercize at the end of the lesson was using the correct version of the zip file.
    I'm not really sure what you could do, but possibly some sort of pop message on the video warning people not to try this yet might prevent others from trying to do it while watching the video and getting frustrated.
    Again, GREAT COURSE! Thanks, mucho.
    Keith Lavender
    Helena, MT
    Message was edited by: KeithTheKing - I changed the title to better reflect the issue.

    Welcome to Arch Linux
    That looks like it is a 2.6 kernel module
    http://sourceforge.net/p/omnibook/bugs/58/
    Did you try either of these AUR offerings?
    ewaller$@$odin ~ 1001 %packer -Ss omnibook
    aur/omnibook-git 20110911-9 (7)
    Kernel module for HP OmniBook,Pavilion,Toshiba and Compal ACL00 laptops
    aur/omnibook-svn-zen 268-1 (1)
    Kernel module for HP OmniBook, Pavilion, Toshiba and Compal ACL00 laptops
    ewaller$@$odin ~ 1002 %
    Last edited by ewaller (2014-08-23 23:33:53)

  • CIFS Kernel module for Ideatab S6000L

    I just bought an Ideatab S6000L and I tried to mount my share as a local folder using CIFS. After some research it seems some modules are missing. I tried with modules from other version (for example in this topic http://forums.lenovo.com/t5/Idea-Android-based-Tablets/CIFS-Kernel-Module-can-t-mount-CIFS-share-on-...
    It didn't work and I don't know how to build thoses modules for this specific version, could someone provide me thoses modules or help me to build them please?

    Thank you for your response
    I'm thinking of returning my tablet, this is something I really needed.
    So in summary, all of the lenovo tablet have this problem and the module can't be built on some of them?

  • How to write a kernel module for Solaris

    Hi
    I would like to know where I can find information about writing a kernel module for Solaris. Is there a pdf developers reference?

    http://docs.sun.com
    Search "writing device drivers".Even if I don't intend writing a device driver?

  • Kernel module for D30 TPM Chip Linux?

    Seems that Linux does not recognize the TPM chip. Could it be that there is no module for it in Linux Kernel? I Thought D30 supports RHEL6?
    Manufacturer: LENOVO
    Product Name: 422916G
    Version: ThinkStation D30
    BIOS Revision: 0.37
    Solved!
    Go to Solution.

    Sorry for the noise. Issue is fixed. Needed to install kernel-modules-extras package for tpm_tis kernel module

  • Which kernel module for Intel PRO/100 S Desktop Adapt

    Which kernel module I should load for support LAN Card "Intel® PRO/100 S Desktop Adapter" Board ID "751767-004" , Based on Controller 82550

    Finded in /usr/src/linux-2.6.5/drivers/net/Kconfig
    config E100
        tristate "Intel(R) PRO/100+ support"
        depends on NET_PCI && PCI
        select MII
        ---help---
          This driver supports Intel(R) PRO/100 family of adapters, which
          includes:
          Controller  Adapter Name                       Board IDs
          82558       PRO/100+ PCI Adapter               668081-xxx,
          689661-xxx
          82558       PRO/100+ Management Adapter        691334-xxx,
          701738-xxx,
          721383-xxx
          82558       PRO/100+ Dual Port Server Adapter  714303-xxx,
          711269-xxx,
          A28276-xxx
          82558       PRO/100+ PCI Server Adapter        710550-xxx
          82550       PRO/100 S Server Adapter           752438-xxx
          82559                                          A56831-xxx,
          A10563-xxx,
          A12171-xxx,
          A12321-xxx,
          A12320-xxx,
          A12170-xxx
          748568-xxx
          748565-xxx
          82550       PRO/100 S Desktop Adapter          751767-xxx
          82559                                          748592-xxx,
          A12167-xxx,
          A12318-xxx,
          A12317-xxx,
          A12165-xxx,
          748569-xxx
          82559       PRO/100+ Server Adapter            729757-xxx
          82559       PRO/100 S Management Adapter       748566-xxx,
          748564-xxx
          82550       PRO/100 S Dual Port Server Adapter A56831-xxx
          82551       PRO/100 M Desktop Adapter          A80897-xxx
          PRO/100 S Advanced Management Adapter
          747842-xxx,
          745171-xxx
          CNR         PRO/100 VE Desktop Adapter         A10386-xxx,
          A10725-xxx,
          A23801-xxx,
          A19716-xxx
          PRO/100 VM Desktop Adapter         A14323-xxx,
          A19725-xxx,
          A23801-xxx,
          A22220-xxx,
          A23796-xxx
          To verify that your adapter is supported, find the board ID number
          on the adapter. Look for a label that has a barcode and a number
          in the format 123456-001 (six digits hyphen three digits). Match
          this to the list of numbers above.
          For more information on how to identify your adapter, go to the
          Adapter & Driver ID Guide at:
          http://support.intel.com/support/networ … /21397.htm
          For the latest Intel PRO/100 network driver for Linux, see:
          http://appsr.intel.com/scripts-df/support_intel.asp
          More specific information on configuring the driver is in
          <file:Documentation/networking/e100.txt>.
          To compile this driver as a module, choose M here and read
          <file:Documentation/networking/net-modules.txt>.  The module
          will be called e100.

  • [cisco VPN] Can't build kernel module with 2.6.9-ARCH

    I need to setup a vpn tunnel to my university in order to gain acces to their resources and be able to surf when I am on the campus. With 2.6.8.1 I used the Cisco VPN client 4.0.5 k9. After my upgrade to 2.6.9 I had to rebuild the module, but now it fails to build. Anyone knows how to solve this? Or does anyone know another vpn client that is compatible with Cisco. This piece of software is essential to me. Please help. Here is the output:
    Cisco Systems VPN Client Version 4.0.5 (Rel) Linux Installer
    Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
    By installing this product you agree that you have read the
    license.txt file (The VPN Client license) and will comply with
    its terms.
    Directory where binaries will be installed [/usr/local/bin] /usr/bin
    Automatically start the VPN service at boot time [yes] no
    In order to build the VPN kernel module, you must have the
    kernel headers for the version of the kernel you are running.
    For RedHat 6.x users these files are installed in /usr/src/linux by default
    For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
    For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default
    Directory containing linux kernel source code [/lib/modules/2.6.9-ARCH/build]
    * Binaries will be installed in "/usr/bin".
    * Modules will be installed in "/lib/modules/2.6.9-ARCH/CiscoVPN".
    * The VPN service will *NOT* be started automatically at boot time.
    * Kernel source from "/lib/modules/2.6.9-ARCH/build" will be used to build the module.
    Is the above correct [y] y
    Making module
    make -C /lib/modules/2.6.9-ARCH/build SUBDIRS=/home/luk/sources/vpnclient modules
    make[1]: Entering directory `/usr/src/linux-2.6.9-ARCH'
    CC [M] /home/luk/sources/vpnclient/interceptor.o
    /home/luk/sources/vpnclient/interceptor.c: In function `add_netdev':
    /home/luk/sources/vpnclient/interceptor.c:59: sorry, unimplemented: inlining failed in call to 'supported_device': function body not available
    /home/luk/sources/vpnclient/interceptor.c:245: sorry, unimplemented: called from here
    make[2]: *** [/home/luk/sources/vpnclient/interceptor.o] Error 1
    make[1]: *** [_module_/home/luk/sources/vpnclient] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.9-ARCH'
    make: *** [default] Error 2
    Failed to make module "cisco_ipsec.ko".

    I modified the pkgbuild posted here by someone (thank you!) so it includes all relevant files (meaning also vpnc-connect and vpnc-disconnect and vpnc.conf).
    pkgname=vpnc
    pkgver=0.2
    pkgrel=1
    pkgdesc="Client for Cisco3000 VPN Concentrator"
    url="http://www.unix-ag.uni-kl.de/~massar/vpnc/"
    license="GPL"
    depends=(libgcrypt)
    source=(http://www.unix-ag.uni-kl.de/~massar/vpnc/vpnc-0.2-rm+zomb.1.tar.gz)
    md5sums=(ded67de747874c4245ed8405146dc94a)
    build() {
    cd $startdir/src/vpnc-0.2-rm+zomb.1
    # We want the CFLAGS specified in makepkg.conf to be used
    mv Makefile Makefile.old
    sed -e 's/-W -Wall -O -g/$(MYCFLAGS)/g' -e 's/LDFLAGS=-g /LDFLAGS=/g' Makefile.old > Makefile
    export MYCFLAGS=$CFLAGS
    make
    install -d $startdir/pkg/usr/sbin
    install vpnc $startdir/pkg/usr/sbin
    install vpnc-connect $startdir/pkg/usr/sbin
    install vpnc-disconnect $startdir/pkg/usr/sbin
    install -d $startdir/pkg/etc
    install vpnc.conf $startdir/pkg/etc
    Guess what, it works
    I can reproduce my steps.
    - makepkg
    - pacman -A vpnc-xxxxxx.tar.gz
    - add tun to the daemons array in rc.conf
    - Modify /etc/vpnc.conf
    - vpnc-connect

  • Automatically build kernel module after kernel update

    Hello. Everytime kernel is updated, my wifi drivers don't work. I need to use this to get my adapter working: https://aur.archlinux.org/packages/8192cu-dkms/ .
    After kernel update, I have to manually reinstall the package, so the kernel module gets rebuilt. Is there any way to make it automatic?

    I noticed it, but your script doesn't run at all when I type `mkinitcpio -p linux`. And wifi still works after reboot. Same for graphics driver, it has a hook at shutdown, that rebuilds its module after kernel update, it haven't run too and graphics driver works. It's like 'mkinitcpio -p linux' does nothing to the system.
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 4.0.4-2-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    ==> Generating module dependencies
    ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 4.0.4-2-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: wd719x
    ==> WARNING: Possibly missing firmware for module: aic94xx
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    ==> Generating module dependencies
    ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    Last edited by kox (2015-06-02 07:18:24)

Maybe you are looking for