Compiling nvidia driver for custom kernel

I have a Toshiba M200 tablet PC running Arch Linux (which I love, btw) and it's running fine, including the tablet.
There's an irritating bug with suspend-to-ram (suspend-to-disk doesn't work with the nvidia driver) where the tablet pen stops working after resume.
There's a patch slated to be in some future kernel, but I compiled my own with that patch included. It boots fine and all seems to be well with it.
However, I need to compile the nvidia driver for it, since the binary does not work. So I copy /var/abs/extra/nvidia and modify the PKGBUILD and nvidia.install files per the instructions on this wiki page, and run makepkg -i -c .
I get a big error message early on, saying
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
I've checked everything I can think of.
$ uname -r
2.6.25-tablet
ls -l /usr/src shows linux-2.6.25-tablet, and linux is a symlink to it. /lib/modules/2.6.25-tablet/build is also symlinked to the right kernel source tree.
So I'm out of ideas for why the nvidia makefile can't seem to find the kernel source.
Thanks in advance.

@klixon:
I think that may be the root of the trouble: I compiled the kernel on my desktop (C2D 2.8) rather than my wussy laptop (1.6 Centrino). It installed and ran fine and all that, but I only have the kernel source tree that was included in the package, not the one that really compiled the code. Would simply copying it suffice, or should I rebuild the kernel on my laptop? Also, the PKGBUILD is included below.
@shazeal:
I believe this is a subset of the problem I describe above?
The PKGBUILD, somewhat customized from the nvidia ABS. I don't think any of the changes are overly shocking.
I've tried dozens of different modifications of it now. The simplest one is just appending '-tablet' to pkgname and _kernver.
# $Id: PKGBUILD 1567 2008-05-13 10:11:25Z thomas $
# Maintainer : Thomas Baechler <[email protected]>
pkgname=nvidia-tablet
pkgver=169.12
_kernver='2.6.25-tablet'
pkgrel=4
pkgdesc="NVIDIA drivers for kernel26."
arch=('i686')
ARCH=x86
url="http://www.nvidia.com/"
depends=('kernel2625-tablet' 'nvidia-utils')
conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
license=('custom')
install=nvidia.install
source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run
NVIDIA_kernel-169.12-2286310.diff)
md5sums=('e7aaca79c846e34cfe8111040bfee2d0'
'a6b6d9d7ff0306343be3fa40e72337fd')
[ "$CARCH" = "x86_64" ] && md5sums=('843a1e8bc1923ba2e4b60f6fab31ad3b'
'a6b6d9d7ff0306343be3fa40e72337fd')
build()
# Extract
cd $startdir/src/
sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
# Any extra patches are applied in here...
patch -Np0 -i ../NVIDIA_kernel-169.12-2286310.diff || return 1
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/usr/src/linux 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

Similar Messages

  • Need to compile nvidia driver for a custom kernel [SOLVED]

    I compiled a custom kernel following this wiki page: http://wiki.archlinux.org/index.php/Ker … rom_Source
    I can boot into it just fine.  I now want to compile an nvidia driver for use with it and followed the steps on this wiki page: http://wiki.archlinux.org/index.php/NVI … tom_kernel
    I run into a problem when makepkg trys to compile it.  Here is the output:
    $ cd ~/devel/abs/nvidia/
    $ makepkg -c
    ==> Making package: nvidia-my 190.42-1 x86_64 (Thu Nov 5 17:42:29 EST 2009)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found NVIDIA-Linux-x86_64-190.42-pkg0.run in build dir
    ==> Validating source files with md5sums...
    NVIDIA-Linux-x86_64-190.42-pkg0.run ... Passed
    ==> Extracting Sources...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    Creating directory NVIDIA-Linux-x86_64-190.42-pkg0
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 190.42..................................................................................................................................................
    If you are using a Linux 2.4 kernel, please make sure
    you either have configured kernel sources matching your
    kernel or the correct set of kernel headers installed
    on your system.
    If you are using a Linux 2.6 kernel, please make sure
    you have configured kernel sources matching your kernel
    installed on your system. If you specified a separate
    output directory using either the "KBUILD_OUTPUT" or
    the "O" KBUILD parameter, make sure to specify this
    directory with the SYSOUT environment variable or with
    the equivalent nvidia-installer command line option.
    Depending on where and how the kernel sources (or the
    kernel headers) were installed, you may need to specify
    their location with the SYSSRC environment variable or
    the equivalent nvidia-installer command line option.
    *** Unable to determine the target kernel version. ***
    make: *** [select_makefile] Error 1
    ==> ERROR: Build Failed.
    Aborting...
    The step it's choking on is (from the PKGBUILD), "make SYSSRC=/lib/modules/${_kernver}/build module || return 1"
    What am I doing wrong?
    My PKGBUILD:
    pkgname=nvidia-my
    pkgver=190.42
    _kernver='2.6.32-rc6-MINE'
    pkgrel=1
    pkgdesc="NVIDIA drivers for kernel26."
    arch=('i686' 'x86_64')
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=('kernel26>=2.6.31' 'kernel26<2.6.32' "nvidia-utils=${pkgver}")
    conflicts=('nvidia-96xx' 'nvidia-173xx')
    license=('custom')
    install=nvidia.install
    source=("http://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run")
    md5sums=('f94806feee87de756d14fe3e9bcaf05a')
    [ "$CARCH" = "x86_64" ] && md5sums=('ae431ff849ec01446e6724f9fcfe3bb4')
    build() {
    cd $srcdir
    sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/${_kernver}/build module || return 1
    mkdir -p $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
    My nvidia.install
    post_install() {
    KERNEL_VERSION='2.6.32-rc6-MINE'
    depmod $KERNEL_VERSION
    post_upgrade() {
    post_install
    rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
    post_remove() {
    KERNEL_VERSION='2.6.32-rc6-MINE'
    depmod $KERNEL_VERSION
    Last edited by graysky (2009-11-07 10:54:33)

    Hello,
    I'm kind of a noob and am trying to get follow the directions from the Nvidia wiki on installing on a custom kernel.  I'm trying to use the abs method to install on kernel26rt version 2.6.33rt.  I followed directions exactly and am getting an error that I didn't find on any other posts.  Can you please take a look?  Here is my terminal:
    [jsadural@jlinux nvidia]$ makepkg -ci
    ==> Making package: nvidia-2633rt 270.30-3 (Wed Mar 30 08:53:08 PDT 2011)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
      -> Downloading NVIDIA-Linux-x86_64-270.30-no-compat32.run...
    --2011-03-30 08:53:08--  ftp://download.nvidia.com/XFree86/Linux … mpat32.run
               => “NVIDIA-Linux-x86_64-270.30-no-compat32.run.part”
    Resolving download.nvidia.com... 69.31.121.43
    Connecting to download.nvidia.com|69.31.121.43|:21... connected.
    Logging in as anonymous ... Logged in!
    ==> SYST ... done.    ==> PWD ... done.
    ==> TYPE I ... done.  ==> CWD (1) /XFree86/Linux-x86_64/270.30 ... done.
    ==> SIZE NVIDIA-Linux-x86_64-270.30-no-compat32.run ... 30037601
    ==> PASV ... done.    ==> RETR NVIDIA-Linux-x86_64-270.30-no-compat32.run ... done.
    Length: 30037601 (29M) (unauthoritative)
    100%[======================================>] 30,037,601   696K/s   in 42s     
    2011-03-30 08:53:50 (696 KB/s) - “NVIDIA-Linux-x86_64-270.30-no-compat32.run.part” saved [30037601]
    ==> Validating source files with md5sums...
        NVIDIA-Linux-x86_64-270.30-no-compat32.run ... Passed
    ==> Extracting Sources...
    ==> Starting build()...
    Creating directory NVIDIA-Linux-x86_64-270.30-no-compat32
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 270.30........................................................................................................................
    NVIDIA: calling KBUILD...
    test -e include/generated/autoconf.h -a -e include/config/auto.conf || (    \
        echo;                                \
        echo "  ERROR: Kernel configuration is invalid.";        \
        echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
        echo;                                \
        /bin/false)
    mkdir -p /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/.tmp_versions ; rm -f /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/.tmp_versions/*
    make -f scripts/Makefile.build obj=/home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel
      cc -Wp,-MD,/home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/include -I/usr/src/linux-2.6.33-rt/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -I/home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"270.30\" -Wno-unused-function -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.o /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c
    In file included from /usr/src/linux-2.6.33-rt/arch/x86/include/asm/uaccess.h:573:0,
                     from include/linux/poll.h:13,
                     from /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv-linux.h:84,
                     from /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:13:
    /usr/src/linux-2.6.33-rt/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
    /usr/src/linux-2.6.33-rt/arch/x86/include/asm/uaccess_64.h:35:6: warning: comparison between signed and unsigned integer expressions
    In file included from /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:13:0:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv-linux.h: At top level:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv-linux.h:251:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nv_spinlock_t’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv-linux.h:1436:5: error: expected specifier-qualifier-list before ‘nv_spinlock_t’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c: In function ‘nv_alloc_file_private’:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:1993:5: error: implicit declaration of function ‘semaphore_init’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:1994:5: error: ‘nv_file_private_t’ has no member named ‘waitqueue’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:1995:5: error: implicit declaration of function ‘atomic_spin_lock_init’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:1995:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c: In function ‘nv_kern_poll’:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:2790:30: error: ‘nv_file_private_t’ has no member named ‘waitqueue’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:2793:5: error: implicit declaration of function ‘atomic_spin_lock_irqsave’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:2793:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:2804:5: error: implicit declaration of function ‘atomic_spin_unlock_irqrestore’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:2804:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c: In function ‘nv_kern_close_registry’:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:3595:18: error: ‘nv_file_private_t’ has no member named ‘off’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:3611:22: error: ‘nv_file_private_t’ has no member named ‘off’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c: In function ‘nv_kern_write_registry’:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:3703:51: error: ‘nv_file_private_t’ has no member named ‘off’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:3710:45: error: ‘nv_file_private_t’ has no member named ‘off’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:3720:9: error: ‘nv_file_private_t’ has no member named ‘off’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c: In function ‘nv_post_event’:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:4330:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:4347:5: error: ‘nv_file_private_t’ has no member named ‘waitqueue’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:4348:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c: In function ‘nv_get_event’:
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:4362:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:4365:9: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    /home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.c:4390:5: error: ‘nv_file_private_t’ has no member named ‘fp_lock’
    make[3]: *** [/home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel/nv.o] Error 1
    make[2]: *** [_module_/home/jsadural/devel/abs/nvidia/src/NVIDIA-Linux-x86_64-270.30-no-compat32/kernel] Error 2
    NVIDIA: left KBUILD.
    nvidia.ko failed to build!
    make[1]: *** [module] Error 1
    make: *** [module] Error 2
    ==> ERROR: A failure occurred in build().
        Aborting...
    thanks,
    jason

  • Error: nvidia driver and custom kernel [SOLVED]

    Hello guys , I have compiled custom kernel with wiki help and abs and want to install Nvidia driver, but i got the following error when I try to compile with abs..
    ==> Obteniendo Fuentes...
    -> Se encontró NVIDIA-Linux-x86-256.35.run
    ==> Validando el archivo fuente con md5sums...
    NVIDIA-Linux-x86-256.35.run ... Aprobado
    ==> Descomprimiendo fuentes...
    ==> Iniciando build()...
    Creating directory NVIDIA-Linux-x86-256.35
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 256.35............................................................................................................................
    If you are using a Linux 2.4 kernel, please make sure
    you either have configured kernel sources matching your
    kernel or the correct set of kernel headers installed
    on your system.
    If you are using a Linux 2.6 kernel, please make sure
    you have configured kernel sources matching your kernel
    installed on your system. If you specified a separate
    output directory using either the "KBUILD_OUTPUT" or
    the "O" KBUILD parameter, make sure to specify this
    directory with the SYSOUT environment variable or with
    the equivalent nvidia-installer command line option.
    Depending on where and how the kernel sources (or the
    kernel headers) were installed, you may need to specify
    their location with the SYSSRC environment variable or
    the equivalent nvidia-installer command line option.
    *** Unable to determine the target kernel version. ***
    make: *** [select_makefile] Error 1
    Abortando...
    my nvidia.install
    post_install() {
    KERNEL_VERSION='2.6.34-pahko'
    depmod $KERNEL_VERSION
    post_upgrade() {
    post_install
    rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
    post_remove() {
    KERNEL_VERSION='2.6.34-pahko'
    depmod $KERNEL_VERSION
    my PKGBUILD
    # $Id: PKGBUILD 83850 2010-06-23 10:39:40Z pierre $
    # Maintainer : Thomas Baechler <[email protected]>
    pkgname=nvidia-pahko
    pkgver=256.35
    _kernver='2.6.34-pahko'
    pkgrel=1
    pkgdesc="NVIDIA drivers for kernel26."
    arch=('i686' 'x86_64')
    url="http://www.nvidia.com/"
    depends=('kernel26>=2.6.34' 'kernel26<2.6.35' "nvidia-utils=${pkgver}")
    makedepends=('kernel26-headers>=2.6.34' 'kernel26-headers<2.6.35')
    conflicts=('nvidia-96xx' 'nvidia-173xx')
    license=('custom')
    install=nvidia.install
    if [ "$CARCH" = "i686" ]; then
    _arch='x86'
    _pkg="NVIDIA-Linux-${_arch}-${pkgver}"
    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
    md5sums=('f6af8917a500de28396a438f3f548c88')
    elif [ "$CARCH" = "x86_64" ]; then
    _arch='x86_64'
    _pkg="NVIDIA-Linux-${_arch}-${pkgver}-no-compat32"
    source=("ftp://download.nvidia.com/XFree86/Linux-${_arch}/${pkgver}/${_pkg}.run")
    md5sums=('7b5924f14a4d2326b4d916efdb7852ff')
    fi
    build() {
    cd $srcdir
    sh ${_pkg}.run --extract-only
    cd ${_pkg}/kernel
    make SYSSRC=/lib/modules/${_kernver}/build module
    package() {
    install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
    $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
    install -d -m755 $pkgdir/etc/modprobe.d
    echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
    uname -r
    2.6.34-pahko
    anybody can help me?
    thank you and sorry about my english
    Last edited by pahko (2010-07-14 04:56:01)

    They should be in the PKGBUILD, its a split PKGBUILD currently I think.

  • Nvidia module for custom kernel

    Hi all. I've compiled a custom kernel using abs according to the instructions on the wiki, but I'm having a hard time installing the nvidia module using the instructions on the Nvidia page of the wiki. The install always aborts complaining of not being able to find the kernel source. I do have the kernel-headers installed:
    [root@myhost greg]# pacman -Ss linux-headers
    core/linux-headers 3.1.5-1 [installed]
        Header files and scripts for building modules for linux kernel
    I've also edited the nvidia.install and PKGBUILD files to point to the correct version file:
    [greg@myhost ~]$ cat /lib/modules/3.1.5-1-test/extramodules/version
    3.1.5-1-test
    I've really searched hard, but can find no remedy. Any ideas?
    Thanks in advance.

    From what I can see, the only installable package that was built is linux-test-3.1.5-1-x86_64.pkg.tar.xz. That's with the PKGBUILD file supplied from /var/abs/core/linux as per the wiki.
    Last edited by pressman57 (2011-12-18 21:50:00)

  • Latest Nvidia Driver for G560 does not install!

    Hi,
    i've tried to install the latest nvidia driver for my G560. But it seems like the only driver working on this system is the preinstalled driver from Lenovo.
    I always get the message that the driver can't find the required hardware. I've downloaded the correct (Win 7 64 Bit) and latest driver from Nvidias webpage. I've even tried some older drivers from the drivers archive.
    Does anybody have a clue how I can solve my problem?
    Greetings Cpk83
    Solved!
    Go to Solution.

    It does look like the correct driver. But I noticed this "Note: The following notebooks are not supported in this release: 1. Notebooks supporting Hybrid Power with Intel chipsets. 2. Fujitsu notebooks – support will be added in a later release. Fujitsu Siemens (FSC) notebooks are supported in this release. 3. Sony VAIO notebooks – support will be added in a later release. Sony VAIO Windows 7 users can click here for driver update support. 4. Any notebook that is launched after the release date of this driver. " Does anyone know if this laptop has Hybrid Power? Also here is a good tip/recommended from ATI. "Advisory: The display driver supplied by the laptop manufacturer is customized for the built-in flat panel display, and the graphics features and functions specific to the laptop. It is strongly recommended to use the supplied drivers. If installing a different operating system other than the one included with the laptop, the laptop may not meet all the requirements, and supported drivers may not be available. The laptop manufacturer is the exclusive provider of driver updates. If the required driver update is not available at the laptop manufacturers’ website, it is recommended to contact the manufacturer directly, to see if an updated driver will be made available in the future."
    IT Specialist and Consultant
    Lenovo Tablet Evangelist
    Current Machines: IdeaCentre A300, ThinkPad Tablet, IdeaPad U410, and Yoga 3 Pro Touch
    Deutsche Community   Comunidad en Español
    Lenovo - the latest in DOtabs, DOpads, DOcentre's, DOstations and DOservers!

  • Can't find nvidia driver for my HP Pavilion dv6000

    Hello,
    I just upgraded my laptop from Windows Vista to Windows 7 Starter.
    But i can't find a NVIDIA driver for it. 
    My laptop name is Pavilion DV6000 and i have a 32 BIT.
    Please can somebody help me?
    Vincent

    Hi @viniboy007
    I understand that you  are looking for a driver for your notebook, and that you have upgraded to windows 7.
    Please post the full product number for your notebook, so I can post a link to the supported drivers for your notebook.
    How Do I Find My Model Number or Product Number?
    If there are not supported drivers for that product from HP, then it means the unit was never sold in that configuration. Then I would refer you to this page: What if I Don't See My Operating System?
    The problem then is more about trying to find drivers that will work, that have not been customized by HP to work with the other components on the notebook.
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • No /dev/sda1 for flash drive w/custom kernel [solved]

    I think I may have made an error selecting the right drivers for my kernel or something. When I put my flash drive in with the official arch kernel, /dev/sda1 is created. However, when I put my flash drive in with my custom kernel, it does not. The weird thing is when I do a tail /var/log/messages.log, it gives me this:
    Oct 30 17:24:50 myhost sda1
    Oct 30 17:24:50 myhost Attached scsi removable disk sda at scsi5, channel 0, id 0, lun 0
    Oct 30 17:24:50 myhost Attached scsi generic sg0 at scsi5, channel 0, id 0, lun 0, type 0
    Oct 30 17:26:36 myhost (jftaylor21-1563): starting (version 2.12.0), pid 1563 user 'jftaylor21'
    Oct 30 17:26:36 myhost (jftaylor21-1563): Resolved address "xml:readonly:/opt/gnome/etc/gconf/gconf.xml.mandatory" to a read-only configuration source at position 0
    Oct 30 17:26:36 myhost (jftaylor21-1563): Resolved address "xml:readwrite:/home/jftaylor21/.gconf" to a writable configuration source at position 1
    Oct 30 17:26:36 myhost (jftaylor21-1563): Resolved address "xml:readonly:/opt/gnome/etc/gconf/gconf.xml.defaults" to a read-only configuration source at position 2
    Oct 30 17:31:28 myhost usb 1-6: USB disconnect, address 4
    Oct 30 17:31:32 myhost usb 1-6: new high speed USB device using ehci_hcd and address 5
    Oct 30 17:31:32 myhost scsi6 : SCSI emulation for USB Mass Storage devices
    I have usb-storage and scsi emulation built into the kernel if that helps.
    Here is my .config file:
    # Automatically generated make config: don't edit
    # Linux kernel version: 2.6.14
    # Sun Oct 30 17:20:14 2005
    CONFIG_X86=y
    CONFIG_SEMAPHORE_SLEEPERS=y
    CONFIG_MMU=y
    CONFIG_UID16=y
    CONFIG_GENERIC_ISA_DMA=y
    CONFIG_GENERIC_IOMAP=y
    CONFIG_ARCH_MAY_HAVE_PC_FDC=y
    # Code maturity level options
    CONFIG_EXPERIMENTAL=y
    CONFIG_CLEAN_COMPILE=y
    CONFIG_BROKEN_ON_SMP=y
    CONFIG_INIT_ENV_ARG_LIMIT=32
    # General setup
    CONFIG_LOCALVERSION=""
    # CONFIG_LOCALVERSION_AUTO is not set
    CONFIG_SWAP=y
    CONFIG_SYSVIPC=y
    CONFIG_POSIX_MQUEUE=y
    CONFIG_BSD_PROCESS_ACCT=y
    # CONFIG_BSD_PROCESS_ACCT_V3 is not set
    CONFIG_SYSCTL=y
    CONFIG_AUDIT=y
    CONFIG_AUDITSYSCALL=y
    # CONFIG_HOTPLUG is not set
    CONFIG_KOBJECT_UEVENT=y
    CONFIG_IKCONFIG=y
    CONFIG_IKCONFIG_PROC=y
    CONFIG_INITRAMFS_SOURCE=""
    # CONFIG_EMBEDDED is not set
    CONFIG_KALLSYMS=y
    # CONFIG_KALLSYMS_EXTRA_PASS is not set
    CONFIG_PRINTK=y
    CONFIG_BUG=y
    CONFIG_BASE_FULL=y
    CONFIG_FUTEX=y
    CONFIG_EPOLL=y
    CONFIG_SHMEM=y
    CONFIG_CC_ALIGN_FUNCTIONS=0
    CONFIG_CC_ALIGN_LABELS=0
    CONFIG_CC_ALIGN_LOOPS=0
    CONFIG_CC_ALIGN_JUMPS=0
    # CONFIG_TINY_SHMEM is not set
    CONFIG_BASE_SMALL=0
    # Loadable module support
    CONFIG_MODULES=y
    # CONFIG_MODULE_UNLOAD is not set
    CONFIG_OBSOLETE_MODPARM=y
    # CONFIG_MODVERSIONS is not set
    # CONFIG_MODULE_SRCVERSION_ALL is not set
    # CONFIG_KMOD is not set
    # Processor type and features
    CONFIG_X86_PC=y
    # CONFIG_X86_ELAN is not set
    # CONFIG_X86_VOYAGER is not set
    # CONFIG_X86_NUMAQ is not set
    # CONFIG_X86_SUMMIT is not set
    # CONFIG_X86_BIGSMP is not set
    # CONFIG_X86_VISWS is not set
    # CONFIG_X86_GENERICARCH is not set
    # CONFIG_X86_ES7000 is not set
    # CONFIG_M386 is not set
    # CONFIG_M486 is not set
    # CONFIG_M586 is not set
    # CONFIG_M586TSC is not set
    # CONFIG_M586MMX is not set
    # CONFIG_M686 is not set
    # CONFIG_MPENTIUMII is not set
    # CONFIG_MPENTIUMIII is not set
    # CONFIG_MPENTIUMM is not set
    # CONFIG_MPENTIUM4 is not set
    # CONFIG_MK6 is not set
    CONFIG_MK7=y
    # CONFIG_MK8 is not set
    # CONFIG_MCRUSOE is not set
    # CONFIG_MEFFICEON is not set
    # CONFIG_MWINCHIPC6 is not set
    # CONFIG_MWINCHIP2 is not set
    # CONFIG_MWINCHIP3D is not set
    # CONFIG_MGEODEGX1 is not set
    # CONFIG_MCYRIXIII is not set
    # CONFIG_MVIAC3_2 is not set
    # CONFIG_X86_GENERIC is not set
    CONFIG_X86_CMPXCHG=y
    CONFIG_X86_XADD=y
    CONFIG_X86_L1_CACHE_SHIFT=6
    CONFIG_RWSEM_XCHGADD_ALGORITHM=y
    CONFIG_GENERIC_CALIBRATE_DELAY=y
    CONFIG_X86_WP_WORKS_OK=y
    CONFIG_X86_INVLPG=y
    CONFIG_X86_BSWAP=y
    CONFIG_X86_POPAD_OK=y
    CONFIG_X86_GOOD_APIC=y
    CONFIG_X86_INTEL_USERCOPY=y
    CONFIG_X86_USE_PPRO_CHECKSUM=y
    CONFIG_X86_USE_3DNOW=y
    # CONFIG_HPET_TIMER is not set
    # CONFIG_SMP is not set
    # CONFIG_PREEMPT_NONE is not set
    CONFIG_PREEMPT_VOLUNTARY=y
    # CONFIG_PREEMPT is not set
    CONFIG_X86_UP_APIC=y
    CONFIG_X86_UP_IOAPIC=y
    CONFIG_X86_LOCAL_APIC=y
    CONFIG_X86_IO_APIC=y
    CONFIG_X86_TSC=y
    CONFIG_X86_MCE=y
    CONFIG_X86_MCE_NONFATAL=y
    CONFIG_X86_MCE_P4THERMAL=y
    # CONFIG_TOSHIBA is not set
    # CONFIG_I8K is not set
    # CONFIG_X86_REBOOTFIXUPS is not set
    # CONFIG_MICROCODE is not set
    # CONFIG_X86_MSR is not set
    # CONFIG_X86_CPUID is not set
    # Firmware Drivers
    # CONFIG_EDD is not set
    # CONFIG_DELL_RBU is not set
    # CONFIG_DCDBAS is not set
    CONFIG_NOHIGHMEM=y
    # CONFIG_HIGHMEM4G is not set
    # CONFIG_HIGHMEM64G is not set
    CONFIG_SELECT_MEMORY_MODEL=y
    CONFIG_FLATMEM_MANUAL=y
    # CONFIG_DISCONTIGMEM_MANUAL is not set
    # CONFIG_SPARSEMEM_MANUAL is not set
    CONFIG_FLATMEM=y
    CONFIG_FLAT_NODE_MEM_MAP=y
    # CONFIG_SPARSEMEM_STATIC is not set
    # CONFIG_MATH_EMULATION is not set
    CONFIG_MTRR=y
    # CONFIG_EFI is not set
    # CONFIG_REGPARM is not set
    CONFIG_SECCOMP=y
    # CONFIG_HZ_100 is not set
    # CONFIG_HZ_250 is not set
    CONFIG_HZ_1000=y
    CONFIG_HZ=1000
    CONFIG_PHYSICAL_START=0x100000
    # CONFIG_KEXEC is not set
    # Power management options (ACPI, APM)
    CONFIG_PM=y
    # CONFIG_PM_DEBUG is not set
    # CONFIG_SOFTWARE_SUSPEND is not set
    # ACPI (Advanced Configuration and Power Interface) Support
    CONFIG_ACPI=y
    # CONFIG_ACPI_SLEEP is not set
    # CONFIG_ACPI_AC is not set
    # CONFIG_ACPI_BATTERY is not set
    # CONFIG_ACPI_BUTTON is not set
    # CONFIG_ACPI_VIDEO is not set
    # CONFIG_ACPI_HOTKEY is not set
    CONFIG_ACPI_FAN=y
    CONFIG_ACPI_PROCESSOR=y
    CONFIG_ACPI_THERMAL=y
    # CONFIG_ACPI_ASUS is not set
    # CONFIG_ACPI_IBM is not set
    # CONFIG_ACPI_TOSHIBA is not set
    # CONFIG_ACPI_CUSTOM_DSDT is not set
    CONFIG_ACPI_BLACKLIST_YEAR=0
    # CONFIG_ACPI_DEBUG is not set
    CONFIG_ACPI_EC=y
    CONFIG_ACPI_POWER=y
    CONFIG_ACPI_SYSTEM=y
    # CONFIG_X86_PM_TIMER is not set
    # CONFIG_ACPI_CONTAINER is not set
    # APM (Advanced Power Management) BIOS Support
    # CONFIG_APM is not set
    # CPU Frequency scaling
    # CONFIG_CPU_FREQ is not set
    # Bus options (PCI, PCMCIA, EISA, MCA, ISA)
    CONFIG_PCI=y
    # CONFIG_PCI_GOBIOS is not set
    # CONFIG_PCI_GOMMCONFIG is not set
    # CONFIG_PCI_GODIRECT is not set
    CONFIG_PCI_GOANY=y
    CONFIG_PCI_BIOS=y
    CONFIG_PCI_DIRECT=y
    CONFIG_PCI_MMCONFIG=y
    CONFIG_PCIEPORTBUS=y
    # CONFIG_PCI_MSI is not set
    CONFIG_PCI_LEGACY_PROC=y
    CONFIG_ISA_DMA_API=y
    # CONFIG_ISA is not set
    # CONFIG_MCA is not set
    # CONFIG_SCx200 is not set
    # PCCARD (PCMCIA/CardBus) support
    # CONFIG_PCCARD is not set
    # PCI Hotplug Support
    # CONFIG_HOTPLUG_PCI is not set
    # Executable file formats
    CONFIG_BINFMT_ELF=y
    CONFIG_BINFMT_AOUT=y
    CONFIG_BINFMT_MISC=y
    # Networking
    CONFIG_NET=y
    # Networking options
    CONFIG_PACKET=y
    # CONFIG_PACKET_MMAP is not set
    CONFIG_UNIX=y
    CONFIG_XFRM=y
    CONFIG_XFRM_USER=y
    CONFIG_NET_KEY=y
    CONFIG_INET=y
    # CONFIG_IP_MULTICAST is not set
    # CONFIG_IP_ADVANCED_ROUTER is not set
    CONFIG_IP_FIB_HASH=y
    # CONFIG_IP_PNP is not set
    # CONFIG_NET_IPIP is not set
    # CONFIG_NET_IPGRE is not set
    # CONFIG_ARPD is not set
    # CONFIG_SYN_COOKIES is not set
    CONFIG_INET_AH=y
    CONFIG_INET_ESP=y
    CONFIG_INET_IPCOMP=y
    CONFIG_INET_TUNNEL=y
    CONFIG_INET_DIAG=y
    CONFIG_INET_TCP_DIAG=y
    # CONFIG_TCP_CONG_ADVANCED is not set
    CONFIG_TCP_CONG_BIC=y
    # IP: Virtual Server Configuration
    # CONFIG_IP_VS is not set
    # CONFIG_IPV6 is not set
    CONFIG_NETFILTER=y
    # CONFIG_NETFILTER_DEBUG is not set
    # CONFIG_NETFILTER_NETLINK is not set
    # IP: Netfilter Configuration
    # CONFIG_IP_NF_CONNTRACK is not set
    # CONFIG_IP_NF_QUEUE is not set
    # CONFIG_IP_NF_IPTABLES is not set
    # CONFIG_IP_NF_ARPTABLES is not set
    # DCCP Configuration (EXPERIMENTAL)
    # CONFIG_IP_DCCP is not set
    # SCTP Configuration (EXPERIMENTAL)
    # CONFIG_IP_SCTP is not set
    # CONFIG_ATM is not set
    # CONFIG_BRIDGE is not set
    # CONFIG_VLAN_8021Q is not set
    # CONFIG_DECNET is not set
    # CONFIG_LLC2 is not set
    # CONFIG_IPX is not set
    # CONFIG_ATALK is not set
    # CONFIG_X25 is not set
    # CONFIG_LAPB is not set
    # CONFIG_NET_DIVERT is not set
    # CONFIG_ECONET is not set
    # CONFIG_WAN_ROUTER is not set
    # CONFIG_NET_SCHED is not set
    # CONFIG_NET_CLS_ROUTE is not set
    # Network testing
    # CONFIG_NET_PKTGEN is not set
    # CONFIG_HAMRADIO is not set
    # CONFIG_IRDA is not set
    # CONFIG_BT is not set
    # CONFIG_IEEE80211 is not set
    # Device Drivers
    # Generic Driver Options
    # CONFIG_STANDALONE is not set
    # CONFIG_PREVENT_FIRMWARE_BUILD is not set
    # CONFIG_FW_LOADER is not set
    # Connector - unified userspace <-> kernelspace linker
    # CONFIG_CONNECTOR is not set
    # Memory Technology Devices (MTD)
    # CONFIG_MTD is not set
    # Parallel port support
    # CONFIG_PARPORT is not set
    # Plug and Play support
    CONFIG_PNP=y
    # CONFIG_PNP_DEBUG is not set
    # Protocols
    CONFIG_PNPACPI=y
    # Block devices
    CONFIG_BLK_DEV_FD=y
    # CONFIG_BLK_CPQ_DA is not set
    # CONFIG_BLK_CPQ_CISS_DA is not set
    # CONFIG_BLK_DEV_DAC960 is not set
    # CONFIG_BLK_DEV_UMEM is not set
    # CONFIG_BLK_DEV_COW_COMMON is not set
    # CONFIG_BLK_DEV_LOOP is not set
    # CONFIG_BLK_DEV_NBD is not set
    # CONFIG_BLK_DEV_SX8 is not set
    # CONFIG_BLK_DEV_UB is not set
    # CONFIG_BLK_DEV_RAM is not set
    CONFIG_BLK_DEV_RAM_COUNT=16
    # CONFIG_LBD is not set
    # CONFIG_CDROM_PKTCDVD is not set
    # IO Schedulers
    CONFIG_IOSCHED_NOOP=y
    CONFIG_IOSCHED_AS=y
    CONFIG_IOSCHED_DEADLINE=y
    CONFIG_IOSCHED_CFQ=y
    # CONFIG_ATA_OVER_ETH is not set
    # ATA/ATAPI/MFM/RLL support
    CONFIG_IDE=y
    CONFIG_BLK_DEV_IDE=y
    # Please see Documentation/ide.txt for help/info on IDE drives
    # CONFIG_BLK_DEV_IDE_SATA is not set
    # CONFIG_BLK_DEV_HD_IDE is not set
    CONFIG_BLK_DEV_IDEDISK=y
    CONFIG_IDEDISK_MULTI_MODE=y
    CONFIG_BLK_DEV_IDECD=y
    # CONFIG_BLK_DEV_IDETAPE is not set
    CONFIG_BLK_DEV_IDEFLOPPY=y
    CONFIG_BLK_DEV_IDESCSI=y
    # CONFIG_IDE_TASK_IOCTL is not set
    # IDE chipset support/bugfixes
    CONFIG_IDE_GENERIC=y
    # CONFIG_BLK_DEV_CMD640 is not set
    # CONFIG_BLK_DEV_IDEPNP is not set
    CONFIG_BLK_DEV_IDEPCI=y
    CONFIG_IDEPCI_SHARE_IRQ=y
    # CONFIG_BLK_DEV_OFFBOARD is not set
    CONFIG_BLK_DEV_GENERIC=y
    # CONFIG_BLK_DEV_OPTI621 is not set
    # CONFIG_BLK_DEV_RZ1000 is not set
    CONFIG_BLK_DEV_IDEDMA_PCI=y
    # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
    CONFIG_IDEDMA_PCI_AUTO=y
    # CONFIG_IDEDMA_ONLYDISK is not set
    # CONFIG_BLK_DEV_AEC62XX is not set
    # CONFIG_BLK_DEV_ALI15X3 is not set
    CONFIG_BLK_DEV_AMD74XX=y
    # CONFIG_BLK_DEV_ATIIXP is not set
    # CONFIG_BLK_DEV_CMD64X is not set
    # CONFIG_BLK_DEV_TRIFLEX is not set
    # CONFIG_BLK_DEV_CY82C693 is not set
    # CONFIG_BLK_DEV_CS5520 is not set
    # CONFIG_BLK_DEV_CS5530 is not set
    # CONFIG_BLK_DEV_HPT34X is not set
    # CONFIG_BLK_DEV_HPT366 is not set
    # CONFIG_BLK_DEV_SC1200 is not set
    # CONFIG_BLK_DEV_PIIX is not set
    # CONFIG_BLK_DEV_IT821X is not set
    # CONFIG_BLK_DEV_NS87415 is not set
    # CONFIG_BLK_DEV_PDC202XX_OLD is not set
    # CONFIG_BLK_DEV_PDC202XX_NEW is not set
    # CONFIG_BLK_DEV_SVWKS is not set
    # CONFIG_BLK_DEV_SIIMAGE is not set
    # CONFIG_BLK_DEV_SIS5513 is not set
    # CONFIG_BLK_DEV_SLC90E66 is not set
    # CONFIG_BLK_DEV_TRM290 is not set
    # CONFIG_BLK_DEV_VIA82CXXX is not set
    # CONFIG_IDE_ARM is not set
    CONFIG_BLK_DEV_IDEDMA=y
    # CONFIG_IDEDMA_IVB is not set
    CONFIG_IDEDMA_AUTO=y
    # CONFIG_BLK_DEV_HD is not set
    # SCSI device support
    # CONFIG_RAID_ATTRS is not set
    CONFIG_SCSI=y
    CONFIG_SCSI_PROC_FS=y
    # SCSI support type (disk, tape, CD-ROM)
    CONFIG_BLK_DEV_SD=y
    # CONFIG_CHR_DEV_ST is not set
    # CONFIG_CHR_DEV_OSST is not set
    # CONFIG_BLK_DEV_SR is not set
    CONFIG_CHR_DEV_SG=y
    # CONFIG_CHR_DEV_SCH is not set
    # Some SCSI devices (e.g. CD jukebox) support multiple LUNs
    # CONFIG_SCSI_MULTI_LUN is not set
    # CONFIG_SCSI_CONSTANTS is not set
    # CONFIG_SCSI_LOGGING is not set
    # SCSI Transport Attributes
    # CONFIG_SCSI_SPI_ATTRS is not set
    # CONFIG_SCSI_FC_ATTRS is not set
    # CONFIG_SCSI_ISCSI_ATTRS is not set
    # CONFIG_SCSI_SAS_ATTRS is not set
    # SCSI low-level drivers
    # CONFIG_BLK_DEV_3W_XXXX_RAID is not set
    # CONFIG_SCSI_3W_9XXX is not set
    # CONFIG_SCSI_ACARD is not set
    # CONFIG_SCSI_AACRAID is not set
    # CONFIG_SCSI_AIC7XXX is not set
    # CONFIG_SCSI_AIC7XXX_OLD is not set
    # CONFIG_SCSI_AIC79XX is not set
    # CONFIG_SCSI_DPT_I2O is not set
    # CONFIG_MEGARAID_NEWGEN is not set
    # CONFIG_MEGARAID_LEGACY is not set
    # CONFIG_MEGARAID_SAS is not set
    CONFIG_SCSI_SATA=y
    # CONFIG_SCSI_SATA_AHCI is not set
    # CONFIG_SCSI_SATA_SVW is not set
    # CONFIG_SCSI_ATA_PIIX is not set
    # CONFIG_SCSI_SATA_MV is not set
    CONFIG_SCSI_SATA_NV=y
    # CONFIG_SCSI_SATA_PROMISE is not set
    # CONFIG_SCSI_SATA_QSTOR is not set
    # CONFIG_SCSI_SATA_SX4 is not set
    # CONFIG_SCSI_SATA_SIL is not set
    # CONFIG_SCSI_SATA_SIS is not set
    # CONFIG_SCSI_SATA_ULI is not set
    # CONFIG_SCSI_SATA_VIA is not set
    # CONFIG_SCSI_SATA_VITESSE is not set
    # CONFIG_SCSI_BUSLOGIC is not set
    # CONFIG_SCSI_DMX3191D is not set
    # CONFIG_SCSI_EATA is not set
    # CONFIG_SCSI_FUTURE_DOMAIN is not set
    # CONFIG_SCSI_GDTH is not set
    # CONFIG_SCSI_IPS is not set
    # CONFIG_SCSI_INITIO is not set
    # CONFIG_SCSI_INIA100 is not set
    # CONFIG_SCSI_SYM53C8XX_2 is not set
    # CONFIG_SCSI_IPR is not set
    # CONFIG_SCSI_QLOGIC_FC is not set
    # CONFIG_SCSI_QLOGIC_1280 is not set
    CONFIG_SCSI_QLA2XXX=y
    # CONFIG_SCSI_QLA21XX is not set
    # CONFIG_SCSI_QLA22XX is not set
    # CONFIG_SCSI_QLA2300 is not set
    # CONFIG_SCSI_QLA2322 is not set
    # CONFIG_SCSI_QLA6312 is not set
    # CONFIG_SCSI_QLA24XX is not set
    # CONFIG_SCSI_LPFC is not set
    # CONFIG_SCSI_DC395x is not set
    # CONFIG_SCSI_DC390T is not set
    # CONFIG_SCSI_NSP32 is not set
    # CONFIG_SCSI_DEBUG is not set
    # Multi-device support (RAID and LVM)
    # CONFIG_MD is not set
    # Fusion MPT device support
    # CONFIG_FUSION is not set
    # CONFIG_FUSION_SPI is not set
    # CONFIG_FUSION_FC is not set
    # CONFIG_FUSION_SAS is not set
    # IEEE 1394 (FireWire) support
    # CONFIG_IEEE1394 is not set
    # I2O device support
    # CONFIG_I2O is not set
    # Network device support
    CONFIG_NETDEVICES=y
    # CONFIG_DUMMY is not set
    # CONFIG_BONDING is not set
    # CONFIG_EQUALIZER is not set
    # CONFIG_TUN is not set
    # CONFIG_NET_SB1000 is not set
    # ARCnet devices
    # CONFIG_ARCNET is not set
    # PHY device support
    # CONFIG_PHYLIB is not set
    # Ethernet (10 or 100Mbit)
    CONFIG_NET_ETHERNET=y
    CONFIG_MII=y
    # CONFIG_HAPPYMEAL is not set
    # CONFIG_SUNGEM is not set
    # CONFIG_CASSINI is not set
    # CONFIG_NET_VENDOR_3COM is not set
    # Tulip family network device support
    # CONFIG_NET_TULIP is not set
    # CONFIG_HP100 is not set
    CONFIG_NET_PCI=y
    # CONFIG_PCNET32 is not set
    # CONFIG_AMD8111_ETH is not set
    # CONFIG_ADAPTEC_STARFIRE is not set
    # CONFIG_B44 is not set
    CONFIG_FORCEDETH=y
    # CONFIG_DGRS is not set
    # CONFIG_EEPRO100 is not set
    # CONFIG_E100 is not set
    # CONFIG_FEALNX is not set
    # CONFIG_NATSEMI is not set
    # CONFIG_NE2K_PCI is not set
    # CONFIG_8139CP is not set
    # CONFIG_8139TOO is not set
    # CONFIG_SIS900 is not set
    # CONFIG_EPIC100 is not set
    # CONFIG_SUNDANCE is not set
    # CONFIG_TLAN is not set
    # CONFIG_VIA_RHINE is not set
    # Ethernet (1000 Mbit)
    # CONFIG_ACENIC is not set
    # CONFIG_DL2K is not set
    # CONFIG_E1000 is not set
    # CONFIG_NS83820 is not set
    # CONFIG_HAMACHI is not set
    # CONFIG_YELLOWFIN is not set
    # CONFIG_R8169 is not set
    # CONFIG_SIS190 is not set
    # CONFIG_SKGE is not set
    # CONFIG_SK98LIN is not set
    # CONFIG_VIA_VELOCITY is not set
    # CONFIG_TIGON3 is not set
    # CONFIG_BNX2 is not set
    # Ethernet (10000 Mbit)
    # CONFIG_CHELSIO_T1 is not set
    # CONFIG_IXGB is not set
    # CONFIG_S2IO is not set
    # Token Ring devices
    # CONFIG_TR is not set
    # Wireless LAN (non-hamradio)
    # CONFIG_NET_RADIO is not set
    # Wan interfaces
    # CONFIG_WAN is not set
    # CONFIG_FDDI is not set
    # CONFIG_HIPPI is not set
    # CONFIG_PPP is not set
    # CONFIG_SLIP is not set
    # CONFIG_NET_FC is not set
    # CONFIG_SHAPER is not set
    # CONFIG_NETCONSOLE is not set
    # CONFIG_NETPOLL is not set
    # CONFIG_NET_POLL_CONTROLLER is not set
    # ISDN subsystem
    # CONFIG_ISDN is not set
    # Telephony Support
    # CONFIG_PHONE is not set
    # Input device support
    CONFIG_INPUT=y
    # Userland interfaces
    CONFIG_INPUT_MOUSEDEV=y
    CONFIG_INPUT_MOUSEDEV_PSAUX=y
    CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
    CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024
    # CONFIG_INPUT_JOYDEV is not set
    # CONFIG_INPUT_TSDEV is not set
    CONFIG_INPUT_EVDEV=y
    # CONFIG_INPUT_EVBUG is not set
    # Input Device Drivers
    CONFIG_INPUT_KEYBOARD=y
    CONFIG_KEYBOARD_ATKBD=y
    # CONFIG_KEYBOARD_SUNKBD is not set
    # CONFIG_KEYBOARD_LKKBD is not set
    # CONFIG_KEYBOARD_XTKBD is not set
    # CONFIG_KEYBOARD_NEWTON is not set
    CONFIG_INPUT_MOUSE=y
    # CONFIG_MOUSE_PS2 is not set
    # CONFIG_MOUSE_SERIAL is not set
    # CONFIG_MOUSE_VSXXXAA is not set
    # CONFIG_INPUT_JOYSTICK is not set
    # CONFIG_INPUT_TOUCHSCREEN is not set
    CONFIG_INPUT_MISC=y
    CONFIG_INPUT_PCSPKR=y
    # CONFIG_INPUT_UINPUT is not set
    # Hardware I/O ports
    CONFIG_SERIO=y
    CONFIG_SERIO_I8042=y
    # CONFIG_SERIO_SERPORT is not set
    # CONFIG_SERIO_CT82C710 is not set
    # CONFIG_SERIO_PCIPS2 is not set
    CONFIG_SERIO_LIBPS2=y
    # CONFIG_SERIO_RAW is not set
    # CONFIG_GAMEPORT is not set
    # Character devices
    CONFIG_VT=y
    CONFIG_VT_CONSOLE=y
    CONFIG_HW_CONSOLE=y
    # CONFIG_SERIAL_NONSTANDARD is not set
    # Serial drivers
    CONFIG_SERIAL_8250=y
    # CONFIG_SERIAL_8250_CONSOLE is not set
    # CONFIG_SERIAL_8250_ACPI is not set
    CONFIG_SERIAL_8250_NR_UARTS=4
    # CONFIG_SERIAL_8250_EXTENDED is not set
    # Non-8250 serial port support
    CONFIG_SERIAL_CORE=y
    # CONFIG_SERIAL_JSM is not set
    CONFIG_UNIX98_PTYS=y
    # CONFIG_LEGACY_PTYS is not set
    # IPMI
    # CONFIG_IPMI_HANDLER is not set
    # Watchdog Cards
    # CONFIG_WATCHDOG is not set
    # CONFIG_HW_RANDOM is not set
    # CONFIG_NVRAM is not set
    # CONFIG_RTC is not set
    # CONFIG_GEN_RTC is not set
    # CONFIG_DTLK is not set
    # CONFIG_R3964 is not set
    # CONFIG_APPLICOM is not set
    # CONFIG_SONYPI is not set
    # Ftape, the floppy tape device driver
    # CONFIG_FTAPE is not set
    # CONFIG_AGP is not set
    # CONFIG_DRM is not set
    # CONFIG_MWAVE is not set
    # CONFIG_RAW_DRIVER is not set
    # CONFIG_HPET is not set
    # CONFIG_HANGCHECK_TIMER is not set
    # TPM devices
    # CONFIG_TCG_TPM is not set
    # I2C support
    CONFIG_I2C=y
    CONFIG_I2C_CHARDEV=y
    # I2C Algorithms
    # CONFIG_I2C_ALGOBIT is not set
    # CONFIG_I2C_ALGOPCF is not set
    # CONFIG_I2C_ALGOPCA is not set
    # I2C Hardware Bus support
    # CONFIG_I2C_ALI1535 is not set
    # CONFIG_I2C_ALI1563 is not set
    # CONFIG_I2C_ALI15X3 is not set
    # CONFIG_I2C_AMD756 is not set
    # CONFIG_I2C_AMD8111 is not set
    # CONFIG_I2C_I801 is not set
    # CONFIG_I2C_I810 is not set
    # CONFIG_I2C_PIIX4 is not set
    CONFIG_I2C_ISA=y
    CONFIG_I2C_NFORCE2=y
    # CONFIG_I2C_PARPORT_LIGHT is not set
    # CONFIG_I2C_PROSAVAGE is not set
    # CONFIG_I2C_SAVAGE4 is not set
    # CONFIG_SCx200_ACB is not set
    # CONFIG_I2C_SIS5595 is not set
    # CONFIG_I2C_SIS630 is not set
    # CONFIG_I2C_SIS96X is not set
    # CONFIG_I2C_STUB is not set
    # CONFIG_I2C_VIA is not set
    # CONFIG_I2C_VIAPRO is not set
    # CONFIG_I2C_VOODOO3 is not set
    # CONFIG_I2C_PCA_ISA is not set
    # Miscellaneous I2C Chip support
    # CONFIG_SENSORS_DS1337 is not set
    # CONFIG_SENSORS_DS1374 is not set
    CONFIG_SENSORS_EEPROM=y
    # CONFIG_SENSORS_PCF8574 is not set
    # CONFIG_SENSORS_PCA9539 is not set
    # CONFIG_SENSORS_PCF8591 is not set
    # CONFIG_SENSORS_RTC8564 is not set
    # CONFIG_SENSORS_MAX6875 is not set
    # CONFIG_I2C_DEBUG_CORE is not set
    # CONFIG_I2C_DEBUG_ALGO is not set
    # CONFIG_I2C_DEBUG_BUS is not set
    # CONFIG_I2C_DEBUG_CHIP is not set
    # Dallas's 1-wire bus
    # CONFIG_W1 is not set
    # Hardware Monitoring support
    CONFIG_HWMON=y
    CONFIG_HWMON_VID=y
    # CONFIG_SENSORS_ADM1021 is not set
    # CONFIG_SENSORS_ADM1025 is not set
    # CONFIG_SENSORS_ADM1026 is not set
    # CONFIG_SENSORS_ADM1031 is not set
    # CONFIG_SENSORS_ADM9240 is not set
    # CONFIG_SENSORS_ASB100 is not set
    # CONFIG_SENSORS_ATXP1 is not set
    # CONFIG_SENSORS_DS1621 is not set
    # CONFIG_SENSORS_FSCHER is not set
    # CONFIG_SENSORS_FSCPOS is not set
    # CONFIG_SENSORS_GL518SM is not set
    # CONFIG_SENSORS_GL520SM is not set
    CONFIG_SENSORS_IT87=y
    # CONFIG_SENSORS_LM63 is not set
    # CONFIG_SENSORS_LM75 is not set
    # CONFIG_SENSORS_LM77 is not set
    # CONFIG_SENSORS_LM78 is not set
    # CONFIG_SENSORS_LM80 is not set
    # CONFIG_SENSORS_LM83 is not set
    # CONFIG_SENSORS_LM85 is not set
    # CONFIG_SENSORS_LM87 is not set
    # CONFIG_SENSORS_LM90 is not set
    # CONFIG_SENSORS_LM92 is not set
    # CONFIG_SENSORS_MAX1619 is not set
    # CONFIG_SENSORS_PC87360 is not set
    # CONFIG_SENSORS_SIS5595 is not set
    # CONFIG_SENSORS_SMSC47M1 is not set
    # CONFIG_SENSORS_SMSC47B397 is not set
    # CONFIG_SENSORS_VIA686A is not set
    # CONFIG_SENSORS_W83781D is not set
    # CONFIG_SENSORS_W83792D is not set
    # CONFIG_SENSORS_W83L785TS is not set
    # CONFIG_SENSORS_W83627HF is not set
    # CONFIG_SENSORS_W83627EHF is not set
    # CONFIG_SENSORS_HDAPS is not set
    # CONFIG_HWMON_DEBUG_CHIP is not set
    # Misc devices
    # CONFIG_IBM_ASM is not set
    # Multimedia Capabilities Port drivers
    # Multimedia devices
    CONFIG_VIDEO_DEV=y
    # Video For Linux
    # Video Adapters
    # CONFIG_VIDEO_BT848 is not set
    # CONFIG_VIDEO_CPIA is not set
    # CONFIG_VIDEO_SAA5246A is not set
    # CONFIG_VIDEO_SAA5249 is not set
    # CONFIG_TUNER_3036 is not set
    # CONFIG_VIDEO_STRADIS is not set
    CONFIG_VIDEO_SAA7134=y
    # CONFIG_VIDEO_MXB is not set
    # CONFIG_VIDEO_DPC is not set
    # CONFIG_VIDEO_HEXIUM_ORION is not set
    # CONFIG_VIDEO_HEXIUM_GEMINI is not set
    # CONFIG_VIDEO_CX88 is not set
    # CONFIG_VIDEO_OVCAMCHIP is not set
    # Radio Adapters
    # CONFIG_RADIO_GEMTEK_PCI is not set
    # CONFIG_RADIO_MAXIRADIO is not set
    # CONFIG_RADIO_MAESTRO is not set
    # Digital Video Broadcasting Devices
    # CONFIG_DVB is not set
    CONFIG_VIDEO_TUNER=y
    CONFIG_VIDEO_BUF=y
    CONFIG_VIDEO_IR=y
    # Graphics support
    CONFIG_FB=y
    CONFIG_FB_CFB_FILLRECT=y
    CONFIG_FB_CFB_COPYAREA=y
    CONFIG_FB_CFB_IMAGEBLIT=y
    CONFIG_FB_SOFT_CURSOR=y
    # CONFIG_FB_MACMODES is not set
    # CONFIG_FB_MODE_HELPERS is not set
    # CONFIG_FB_TILEBLITTING is not set
    # CONFIG_FB_CIRRUS is not set
    # CONFIG_FB_PM2 is not set
    # CONFIG_FB_CYBER2000 is not set
    # CONFIG_FB_ARC is not set
    # CONFIG_FB_ASILIANT is not set
    # CONFIG_FB_IMSTT is not set
    # CONFIG_FB_VGA16 is not set
    CONFIG_FB_VESA=y
    CONFIG_VIDEO_SELECT=y
    # CONFIG_FB_HGA is not set
    # CONFIG_FB_NVIDIA is not set
    # CONFIG_FB_RIVA is not set
    # CONFIG_FB_I810 is not set
    # CONFIG_FB_INTEL is not set
    # CONFIG_FB_MATROX is not set
    # CONFIG_FB_RADEON_OLD is not set
    # CONFIG_FB_RADEON is not set
    # CONFIG_FB_ATY128 is not set
    # CONFIG_FB_ATY is not set
    # CONFIG_FB_SAVAGE is not set
    # CONFIG_FB_SIS is not set
    # CONFIG_FB_NEOMAGIC is not set
    # CONFIG_FB_KYRO is not set
    # CONFIG_FB_3DFX is not set
    # CONFIG_FB_VOODOO1 is not set
    # CONFIG_FB_CYBLA is not set
    # CONFIG_FB_TRIDENT is not set
    # CONFIG_FB_GEODE is not set
    # CONFIG_FB_S1D13XXX is not set
    # CONFIG_FB_VIRTUAL is not set
    # Console display driver support
    CONFIG_VGA_CONSOLE=y
    CONFIG_DUMMY_CONSOLE=y
    CONFIG_FRAMEBUFFER_CONSOLE=y
    CONFIG_FONTS=y
    # CONFIG_FONT_8x8 is not set
    CONFIG_FONT_8x16=y
    # CONFIG_FONT_6x11 is not set
    # CONFIG_FONT_7x14 is not set
    # CONFIG_FONT_PEARL_8x8 is not set
    # CONFIG_FONT_ACORN_8x8 is not set
    # CONFIG_FONT_MINI_4x6 is not set
    # CONFIG_FONT_SUN8x16 is not set
    # CONFIG_FONT_SUN12x22 is not set
    # CONFIG_FONT_10x18 is not set
    # Logo configuration
    CONFIG_LOGO=y
    # CONFIG_LOGO_LINUX_MONO is not set
    # CONFIG_LOGO_LINUX_VGA16 is not set
    CONFIG_LOGO_LINUX_CLUT224=y
    CONFIG_BACKLIGHT_LCD_SUPPORT=y
    CONFIG_BACKLIGHT_CLASS_DEVICE=y
    CONFIG_BACKLIGHT_DEVICE=y
    CONFIG_LCD_CLASS_DEVICE=y
    CONFIG_LCD_DEVICE=y
    # Sound
    CONFIG_SOUND=y
    # Advanced Linux Sound Architecture
    CONFIG_SND=y
    CONFIG_SND_TIMER=y
    CONFIG_SND_PCM=y
    CONFIG_SND_SEQUENCER=y
    # CONFIG_SND_SEQ_DUMMY is not set
    CONFIG_SND_OSSEMUL=y
    CONFIG_SND_MIXER_OSS=y
    CONFIG_SND_PCM_OSS=y
    CONFIG_SND_SEQUENCER_OSS=y
    # CONFIG_SND_VERBOSE_PRINTK is not set
    # CONFIG_SND_DEBUG is not set
    # Generic devices
    # CONFIG_SND_DUMMY is not set
    # CONFIG_SND_VIRMIDI is not set
    # CONFIG_SND_MTPAV is not set
    # CONFIG_SND_SERIAL_U16550 is not set
    # CONFIG_SND_MPU401 is not set
    CONFIG_SND_AC97_CODEC=y
    CONFIG_SND_AC97_BUS=y
    # PCI devices
    # CONFIG_SND_ALI5451 is not set
    # CONFIG_SND_ATIIXP is not set
    # CONFIG_SND_ATIIXP_MODEM is not set
    # CONFIG_SND_AU8810 is not set
    # CONFIG_SND_AU8820 is not set
    # CONFIG_SND_AU8830 is not set
    # CONFIG_SND_AZT3328 is not set
    # CONFIG_SND_BT87X is not set
    # CONFIG_SND_CS46XX is not set
    # CONFIG_SND_CS4281 is not set
    # CONFIG_SND_EMU10K1 is not set
    # CONFIG_SND_EMU10K1X is not set
    # CONFIG_SND_CA0106 is not set
    # CONFIG_SND_KORG1212 is not set
    # CONFIG_SND_MIXART is not set
    # CONFIG_SND_NM256 is not set
    # CONFIG_SND_RME32 is not set
    # CONFIG_SND_RME96 is not set
    # CONFIG_SND_RME9652 is not set
    # CONFIG_SND_HDSP is not set
    # CONFIG_SND_HDSPM is not set
    # CONFIG_SND_TRIDENT is not set
    # CONFIG_SND_YMFPCI is not set
    # CONFIG_SND_AD1889 is not set
    # CONFIG_SND_ALS4000 is not set
    # CONFIG_SND_CMIPCI is not set
    # CONFIG_SND_ENS1370 is not set
    # CONFIG_SND_ENS1371 is not set
    # CONFIG_SND_ES1938 is not set
    # CONFIG_SND_ES1968 is not set
    # CONFIG_SND_MAESTRO3 is not set
    # CONFIG_SND_FM801 is not set
    # CONFIG_SND_ICE1712 is not set
    # CONFIG_SND_ICE1724 is not set
    CONFIG_SND_INTEL8X0=y
    # CONFIG_SND_INTEL8X0M is not set
    # CONFIG_SND_SONICVIBES is not set
    # CONFIG_SND_VIA82XX is not set
    # CONFIG_SND_VIA82XX_MODEM is not set
    # CONFIG_SND_VX222 is not set
    # CONFIG_SND_HDA_INTEL is not set
    # USB devices
    # CONFIG_SND_USB_AUDIO is not set
    # CONFIG_SND_USB_USX2Y is not set
    # Open Sound System
    # CONFIG_SOUND_PRIME is not set
    # USB support
    CONFIG_USB_ARCH_HAS_HCD=y
    CONFIG_USB_ARCH_HAS_OHCI=y
    CONFIG_USB=y
    # CONFIG_USB_DEBUG is not set
    # Miscellaneous USB options
    CONFIG_USB_DEVICEFS=y
    # CONFIG_USB_BANDWIDTH is not set
    # CONFIG_USB_DYNAMIC_MINORS is not set
    # CONFIG_USB_SUSPEND is not set
    # CONFIG_USB_OTG is not set
    # USB Host Controller Drivers
    CONFIG_USB_EHCI_HCD=y
    # CONFIG_USB_EHCI_SPLIT_ISO is not set
    CONFIG_USB_EHCI_ROOT_HUB_TT=y
    # CONFIG_USB_ISP116X_HCD is not set
    CONFIG_USB_OHCI_HCD=y
    # CONFIG_USB_OHCI_BIG_ENDIAN is not set
    CONFIG_USB_OHCI_LITTLE_ENDIAN=y
    CONFIG_USB_UHCI_HCD=y
    # CONFIG_USB_SL811_HCD is not set
    # USB Device Class drivers
    # CONFIG_OBSOLETE_OSS_USB_DRIVER is not set
    # CONFIG_USB_BLUETOOTH_TTY is not set
    # CONFIG_USB_ACM is not set
    CONFIG_USB_PRINTER=y
    # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
    CONFIG_USB_STORAGE=y
    CONFIG_USB_STORAGE_DEBUG=y
    # CONFIG_USB_STORAGE_DATAFAB is not set
    # CONFIG_USB_STORAGE_FREECOM is not set
    # CONFIG_USB_STORAGE_ISD200 is not set
    # CONFIG_USB_STORAGE_DPCM is not set
    # CONFIG_USB_STORAGE_USBAT is not set
    # CONFIG_USB_STORAGE_SDDR09 is not set
    # CONFIG_USB_STORAGE_SDDR55 is not set
    # CONFIG_USB_STORAGE_JUMPSHOT is not set
    # CONFIG_USB_STORAGE_ONETOUCH is not set
    # USB Input Devices
    # CONFIG_USB_HID is not set
    # USB HID Boot Protocol drivers
    # CONFIG_USB_KBD is not set
    CONFIG_USB_MOUSE=y
    # CONFIG_USB_AIPTEK is not set
    # CONFIG_USB_WACOM is not set
    # CONFIG_USB_ACECAD is not set
    # CONFIG_USB_KBTAB is not set
    # CONFIG_USB_POWERMATE is not set
    # CONFIG_USB_MTOUCH is not set
    # CONFIG_USB_ITMTOUCH is not set
    # CONFIG_USB_EGALAX is not set
    # CONFIG_USB_YEALINK is not set
    # CONFIG_USB_XPAD is not set
    # CONFIG_USB_ATI_REMOTE is not set
    # CONFIG_USB_KEYSPAN_REMOTE is not set
    # CONFIG_USB_APPLETOUCH is not set
    # USB Imaging devices
    # CONFIG_USB_MDC800 is not set
    # CONFIG_USB_MICROTEK is not set
    # USB Multimedia devices
    # CONFIG_USB_DABUSB is not set
    # CONFIG_USB_VICAM is not set
    # CONFIG_USB_DSBR is not set
    # CONFIG_USB_IBMCAM is not set
    # CONFIG_USB_KONICAWC is not set
    # CONFIG_USB_OV511 is not set
    # CONFIG_USB_SE401 is not set
    # CONFIG_USB_SN9C102 is not set
    # CONFIG_USB_STV680 is not set
    # CONFIG_USB_PWC is not set
    # USB Network Adapters
    # CONFIG_USB_CATC is not set
    # CONFIG_USB_KAWETH is not set
    # CONFIG_USB_PEGASUS is not set
    # CONFIG_USB_RTL8150 is not set
    # CONFIG_USB_USBNET is not set
    CONFIG_USB_MON=y
    # USB port drivers
    # USB Serial Converter support
    # CONFIG_USB_SERIAL is not set
    # USB Miscellaneous drivers
    # CONFIG_USB_EMI62 is not set
    # CONFIG_USB_EMI26 is not set
    # CONFIG_USB_AUERSWALD is not set
    # CONFIG_USB_RIO500 is not set
    # CONFIG_USB_LEGOTOWER is not set
    # CONFIG_USB_LCD is not set
    # CONFIG_USB_LED is not set
    # CONFIG_USB_CYTHERM is not set
    # CONFIG_USB_PHIDGETKIT is not set
    # CONFIG_USB_PHIDGETSERVO is not set
    # CONFIG_USB_IDMOUSE is not set
    # CONFIG_USB_SISUSBVGA is not set
    # CONFIG_USB_LD is not set
    # CONFIG_USB_TEST is not set
    # USB DSL modem support
    # USB Gadget Support
    # CONFIG_USB_GADGET is not set
    # MMC/SD Card support
    # CONFIG_MMC is not set
    # InfiniBand support
    # CONFIG_INFINIBAND is not set
    # SN Devices
    # File systems
    CONFIG_EXT2_FS=y
    # CONFIG_EXT2_FS_XATTR is not set
    # CONFIG_EXT2_FS_XIP is not set
    CONFIG_EXT3_FS=y
    CONFIG_EXT3_FS_XATTR=y
    # CONFIG_EXT3_FS_POSIX_ACL is not set
    # CONFIG_EXT3_FS_SECURITY is not set
    CONFIG_JBD=y
    # CONFIG_JBD_DEBUG is not set
    CONFIG_FS_MBCACHE=y
    # CONFIG_REISERFS_FS is not set
    # CONFIG_JFS_FS is not set
    # CONFIG_FS_POSIX_ACL is not set
    # CONFIG_XFS_FS is not set
    # CONFIG_MINIX_FS is not set
    # CONFIG_ROMFS_FS is not set
    CONFIG_INOTIFY=y
    # CONFIG_QUOTA is not set
    CONFIG_DNOTIFY=y
    # CONFIG_AUTOFS_FS is not set
    CONFIG_AUTOFS4_FS=y
    # CONFIG_FUSE_FS is not set
    # CD-ROM/DVD Filesystems
    CONFIG_ISO9660_FS=y
    CONFIG_JOLIET=y
    # CONFIG_ZISOFS is not set
    CONFIG_UDF_FS=y
    CONFIG_UDF_NLS=y
    # DOS/FAT/NT Filesystems
    CONFIG_FAT_FS=y
    CONFIG_MSDOS_FS=y
    CONFIG_VFAT_FS=y
    CONFIG_FAT_DEFAULT_CODEPAGE=437
    CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
    # CONFIG_NTFS_FS is not set
    # Pseudo filesystems
    CONFIG_PROC_FS=y
    CONFIG_PROC_KCORE=y
    CONFIG_SYSFS=y
    CONFIG_TMPFS=y
    # CONFIG_HUGETLBFS is not set
    # CONFIG_HUGETLB_PAGE is not set
    CONFIG_RAMFS=y
    # CONFIG_RELAYFS_FS is not set
    # Miscellaneous filesystems
    # CONFIG_ADFS_FS is not set
    # CONFIG_AFFS_FS is not set
    # CONFIG_HFS_FS is not set
    # CONFIG_HFSPLUS_FS is not set
    # CONFIG_BEFS_FS is not set
    # CONFIG_BFS_FS is not set
    # CONFIG_EFS_FS is not set
    # CONFIG_CRAMFS is not set
    # CONFIG_VXFS_FS is not set
    # CONFIG_HPFS_FS is not set
    # CONFIG_QNX4FS_FS is not set
    # CONFIG_SYSV_FS is not set
    # CONFIG_UFS_FS is not set
    # Network File Systems
    # CONFIG_NFS_FS is not set
    # CONFIG_NFSD is not set
    # CONFIG_SMB_FS is not set
    # CONFIG_CIFS is not set
    # CONFIG_NCP_FS is not set
    # CONFIG_CODA_FS is not set
    # CONFIG_AFS_FS is not set
    # CONFIG_9P_FS is not set
    # Partition Types
    # CONFIG_PARTITION_ADVANCED is not set
    CONFIG_MSDOS_PARTITION=y
    # Native Language Support
    CONFIG_NLS=y
    CONFIG_NLS_DEFAULT="iso8859-1"
    CONFIG_NLS_CODEPAGE_437=y
    # CONFIG_NLS_CODEPAGE_737 is not set
    # CONFIG_NLS_CODEPAGE_775 is not set
    # CONFIG_NLS_CODEPAGE_850 is not set
    # CONFIG_NLS_CODEPAGE_852 is not set
    # CONFIG_NLS_CODEPAGE_855 is not set
    # CONFIG_NLS_CODEPAGE_857 is not set
    # CONFIG_NLS_CODEPAGE_860 is not set
    # CONFIG_NLS_CODEPAGE_861 is not set
    # CONFIG_NLS_CODEPAGE_862 is not set
    # CONFIG_NLS_CODEPAGE_863 is not set
    # CONFIG_NLS_CODEPAGE_864 is not set
    # CONFIG_NLS_CODEPAGE_865 is not set
    # CONFIG_NLS_CODEPAGE_866 is not set
    # CONFIG_NLS_CODEPAGE_869 is not set
    # CONFIG_NLS_CODEPAGE_936 is not set
    # CONFIG_NLS_CODEPAGE_950 is not set
    # CONFIG_NLS_CODEPAGE_932 is not set
    # CONFIG_NLS_CODEPAGE_949 is not set
    # CONFIG_NLS_CODEPAGE_874 is not set
    # CONFIG_NLS_ISO8859_8 is not set
    # CONFIG_NLS_CODEPAGE_1250 is not set
    # CONFIG_NLS_CODEPAGE_1251 is not set
    # CONFIG_NLS_ASCII is not set
    CONFIG_NLS_ISO8859_1=y
    # CONFIG_NLS_ISO8859_2 is not set
    # CONFIG_NLS_ISO8859_3 is not set
    # CONFIG_NLS_ISO8859_4 is not set
    # CONFIG_NLS_ISO8859_5 is not set
    # CONFIG_NLS_ISO8859_6 is not set
    # CONFIG_NLS_ISO8859_7 is not set
    # CONFIG_NLS_ISO8859_9 is not set
    # CONFIG_NLS_ISO8859_13 is not set
    # CONFIG_NLS_ISO8859_14 is not set
    # CONFIG_NLS_ISO8859_15 is not set
    # CONFIG_NLS_KOI8_R is not set
    # CONFIG_NLS_KOI8_U is not set
    # CONFIG_NLS_UTF8 is not set
    # Profiling support
    # CONFIG_PROFILING is not set
    # Kernel hacking
    # CONFIG_PRINTK_TIME is not set
    # CONFIG_DEBUG_KERNEL is not set
    CONFIG_LOG_BUF_SHIFT=14
    CONFIG_DEBUG_BUGVERBOSE=y
    CONFIG_EARLY_PRINTK=y
    CONFIG_X86_FIND_SMP_CONFIG=y
    CONFIG_X86_MPPARSE=y
    # Security options
    # CONFIG_KEYS is not set
    # CONFIG_SECURITY is not set
    # Cryptographic options
    CONFIG_CRYPTO=y
    CONFIG_CRYPTO_HMAC=y
    # CONFIG_CRYPTO_NULL is not set
    # CONFIG_CRYPTO_MD4 is not set
    CONFIG_CRYPTO_MD5=y
    CONFIG_CRYPTO_SHA1=y
    # CONFIG_CRYPTO_SHA256 is not set
    # CONFIG_CRYPTO_SHA512 is not set
    # CONFIG_CRYPTO_WP512 is not set
    # CONFIG_CRYPTO_TGR192 is not set
    CONFIG_CRYPTO_DES=y
    # CONFIG_CRYPTO_BLOWFISH is not set
    # CONFIG_CRYPTO_TWOFISH is not set
    # CONFIG_CRYPTO_SERPENT is not set
    # CONFIG_CRYPTO_AES_586 is not set
    # CONFIG_CRYPTO_CAST5 is not set
    # CONFIG_CRYPTO_CAST6 is not set
    # CONFIG_CRYPTO_TEA is not set
    # CONFIG_CRYPTO_ARC4 is not set
    # CONFIG_CRYPTO_KHAZAD is not set
    # CONFIG_CRYPTO_ANUBIS is not set
    CONFIG_CRYPTO_DEFLATE=y
    # CONFIG_CRYPTO_MICHAEL_MIC is not set
    # CONFIG_CRYPTO_CRC32C is not set
    # CONFIG_CRYPTO_TEST is not set
    # Hardware crypto devices
    # CONFIG_CRYPTO_DEV_PADLOCK is not set
    # Library routines
    # CONFIG_CRC_CCITT is not set
    # CONFIG_CRC16 is not set
    CONFIG_CRC32=y
    # CONFIG_LIBCRC32C is not set
    CONFIG_ZLIB_INFLATE=y
    CONFIG_ZLIB_DEFLATE=y
    CONFIG_GENERIC_HARDIRQS=y
    CONFIG_GENERIC_IRQ_PROBE=y
    CONFIG_X86_BIOS_REBOOT=y
    CONFIG_PC=y
    I will be more than happy to provide any more info that you may need. This has bothered me for a while, so any help would be much appreciated!

    Thanks for the reply penguin!
    I tried adding it to the kernel, but it did not work. I think usb_hid is just for usb keyboards/mouses/etc.
    I noticed that every time I remove and plugin my flash drive /var/log/messages.log says something slightly different for my flash drive if that helps:
    Oct 30 18:10:43 myhost sda1
    Oct 30 18:10:43 myhost Attached scsi removable disk sda at scsi4, channel 0, id
    Oct 30 18:10:43 myhost Attached scsi generic sg0 at scsi4, channel 0, id 0, lun
    Oct 30 18:11:10 myhost (jftaylor21-896): starting (version 2.12.0), pid 896 user
    Oct 30 18:11:10 myhost (jftaylor21-896): Resolved address "xml:readonly:/opt/gnosition 0
    Oct 30 18:11:10 myhost (jftaylor21-896): Resolved address "xml:readwrite:/home/j
    Oct 30 18:11:10 myhost (jftaylor21-896): Resolved address "xml:readonly:/opt/gnoition 2
    Oct 30 18:11:50 myhost usb 1-6: USB disconnect, address 3
    Oct 30 18:11:55 myhost usb 1-6: new high speed USB device using ehci_hcd and add
    Oct 30 18:11:55 myhost scsi5 : SCSI emulation for USB Mass Storage devices
    Any other suggestions?

  • PKGBUILD for custom kernel issue

    Hi all,
    Last night I was putting together a PKGBUILD for a kernel I'd like to compile that has the ck patchset, grsecurity (latest testing), and had broadcom-wl on it already so I don't have to keep reinstalling it from AUR and doing depmod each time as it keeps making me have to find an ethernet cable. I used the kerne26 Arch PKGBUILD as a base and included parts of kernel-netbook for broadcom-wl, kernel26-grsecurity, and kernel26-ck and altered name variables and links etc so it all works and all sources are downloaded. I also got the two .patch files (semaphore and something else) from the kernel-netbook tarball to build the thing with, I don't know if it would work without them.
    However when I get into the build() a few patches are applied before I get messages about patches already applied or reversed, and then it says build failed because of an error, I can't tell which package is causing thins or why (it all goes by too fast, and the error says failed without reason, and the reversed patch messages are what is immediately previous to it). I have not yet gone all the way through the pkgbuild - especially towards the end, and I felt that the standard setup of init file system creation and such were ok, and if anything does need altering about it, I can deal with it once I get these first troubles solved.
    Below is my pkgbuild so far. Hopefully there are people out there who can aid me with this.
    Thanks,
    Ben.
    # Maintainer: Ben Ward <[email protected]>
    pkgbase="kernel26"
    # pkgname=('kernel26' 'kernel26-headers' 'kernel26-docs') # Build stock -ARCH kernel
    pkgname=kernel26-custom # Build kernel with a different name
    #Base kernel info
    _kernelname=${pkgname#kernel26}
    _basekernel=2.6.38
    pkgver=${_basekernel}.3
    pkgrel=1
    #ARCH patch info
    _archpatchver=1
    _archpatchname="patch-${pkgver}-${_archpatchver}-ARCH"
    #_archpatchname="patch-${pkgver}-1-ARCH"
    #grsecurity info
    _grsec=2.2.2
    _timestamp=201104182227
    #Broadcom-wl info
    _broadcom_ver=5.100.82.38
    _broadcom="hybrid-portsrc_x86_32-v${_broadcom_ver//./_}"
    #ck-patch info
    _ckpatchversion=3
    _ckpatchname="patch-${_basekernel}-ck${_ckpatchversion}"
    arch=(i686 x86_64)
    license=('GPL2')
    url="http://www.kernel.org"
    options=(!strip)
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-${pkgver}.bz2
    ftp://ftp.archlinux.org/other/kernel26/${_archpatchname}.bz2
    http://grsecurity.net/test/grsecurity-${_grsec}-${pkgver}-${_timestamp}.patch
    http://www.broadcom.com/docs/linux_sta/${_broadcom}.tar.gz
    http://www.kernel.org/pub/linux/kernel/people/ck/patches/2.6/${_basekernel}/${_basekernel}-ck${_ckpatchversion}/${_ckpatchname}.bz2
    "semaphore.patch"
    "mutex-sema.patch"
    # the main kernel config files
    config config.x86_64
    # standard config files for mkinitcpio ramdisk
    kernel26.preset)
    md5sums=('7d471477bfa67546f902da62227fa976'
    'b3677121c4b5efcb8128c2000788d0aa'
    '5b14b6eb2cdcb074905d4974437c4df6'
    'a19024797f192fe21a468de80c101d8a'
    'c0074a1622c75916442e26763ddf47d0'
    '88d5b3e0622f8c48dad19ab9ac3c16f0'
    'aee89fe7f034aea2f2ca95322774c1b5'
    '21ce3f7967d7305064bf7eb60030ffea'
    'f66543886835ab8599b29cd0c48aa66d'
    'd866bcc06672fee17736bd5022f700fe'
    '25584700a0a679542929c4bed31433b6')
    build() {
    cd ${srcdir}/linux-$_basekernel
    # Apply kernel.org patch to basekernel
    msg "Checking basekernel is ip to date..."
    if [[ "${_basekernel}" != "${pkgver}" ]]; then
    msg "Patching source with upstream patch..."
    patch -Np1 -i "${srcdir}/patch-${pkgver}" || return 1
    fi
    # Add -ARCH patches
    # See http://projects.archlinux.org/linux-2.6-ARCH.git/
    msg "Patching Kernel with ARCH patches..."
    patch -Np1 -i ${srcdir}/${_archpatchname}
    # Add ck patch
    msg "Patching Kernel with ck patches..."
    patch -Np1 -i ${srcdir}/${_ckpatchname}
    # Add grsecurity patch
    msg "Patching kernel with grsecurity testing branch..."
    if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    else
    cat ../config >./.config
    fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    #make menuconfig # CLI menu for configuration
    make nconfig # new CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make ${MAKEFLAGS} bzImage modules
    package_kernel26() {
    pkgdesc="The Linux Kernel and modules"
    groups=('base')
    backup=(etc/mkinitcpio.d/${pkgname}.preset)
    depends=('coreutils' 'linux-firmware' 'module-init-tools>=3.12-2' 'mkinitcpio>=0.6.8-2')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'nouveau-drm')
    install=kernel26.install
    optdepends=('crda: to set the correct wireless channels of your country')
    KARCH=x86
    cd ${srcdir}/linux-$_basekernel
    # get kernel version
    _kernver="$(make kernelrelease)"
    mkdir -p ${pkgdir}/{lib/modules,lib/firmware,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # # add vmlinux
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i $startdir/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
    # remove build and source links
    rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    # gzip -9 all modules to safe 100MB of space
    find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
    ##Section: Broadcom-wl
    msg "Compiling broadcom-wl module:"
    cd ${srcdir}/
    #patching broadcom as broadcom-wl package on AUR
    patch -p1 < license.patch
    patch -p1 < semaphore.patch
    patch -p1 < mutex-sema.patch
    make -C ${srcdir}/linux-$_basekernel M=`pwd`
    install -D -m 755 wl.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/wl.ko
    package_kernel26-headers() {
    pkgdesc="Header files and scripts for building modules for kernel26"
    mkdir -p ${pkgdir}/lib/modules/${_kernver}
    cd ${pkgdir}/lib/modules/${_kernver}
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd ${srcdir}/linux-$_basekernel
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-generic config generated linux math-emu media net pcmcia scsi sound trace video xen; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
    cp -a drivers/staging/usbvideo/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/staging/usbvideo/
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb
    cp drivers/media/dvb/dvb-usb/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends
    cp drivers/media/dvb/frontends/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners
    cp drivers/media/common/tuners/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers vor virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for crypto modules
    # in reference to:
    # http://bugs.archlinux.org/task/22081
    cp -a include/crypto $pkgdir/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    # strip scripts directory
    find ${pkgdir}/usr/src/linux-${_kernver}/scripts -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "$binary")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip $STRIP_SHARED "$binary";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip $STRIP_STATIC "$binary";;
    *application/x-executable*) # Binaries
    /usr/bin/strip $STRIP_BINARIES "$binary";;
    esac
    done
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    package_kernel26-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel."
    cd ${srcdir}/linux-$_basekernel
    mkdir -p $pkgdir/usr/src/linux-$_kernver
    mv Documentation $pkgdir/usr/src/linux-$_kernver
    find $pkgdir -type f -exec chmod 444 {} \;
    find $pkgdir -type d -exec chmod 755 {} \;
    # remove a file already in kernel26 package
    rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
    I wonder if localyesconfig would take care of broadcom-wl for me...
    Last edited by Ben9250 (2011-04-20 00:12:44)

    Thank you. I guess trying the abs method wouldn't hurt. My main issue was configuration. I've only just skimmed the PKGBUILD so I'm not aware of how it handles it. I suppose I could write my own as described in the wiki as well. Thanks again.
    Edit: Further research has revealed to me that the kernel headers are merely there for when the full source tree isn't. Seeing as the full tree is present in my case, the headers are unnecessary. I may take graysky's advice though and use pacman to manage my kernel.
    Last edited by smithr.michael1997 (2011-03-31 02:17:29)

  • [solved] building the kernel headers for custom kernels

    well, ive been building several different kernels for my laptop, so that i can test stuff. but ive got a problem with the kernel headers.
    ive mirrored the arch kernel's PKGBUILD and modified some naming to get a custom kernel. but when i try to build a custmo module, it complains the headers are broken. (example, vbox_build_module).
    im pasting the pkgbuild here for future reference...if someone sees something thats plain wrong, please say so.
    thanks
    # $Id: PKGBUILD 60382 2009-12-04 15:31:11Z tpowa $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgbase="kernel26"
    #pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
    pkgname=('kernel26-git' 'kernel26-git-headers') # Build kernel with a different name
    _kernelname=${pkgname#kernel26}
    pkgver=2.6.34
    pkgrel=1
    _patchname=""
    _branch="linux-2.6"
    _gittag="v2.6.34-rc3"
    #_gittag="origin"
    arch=(i686 x86_64)
    license=('GPL2')
    groups=('base')
    url="http://www.kernel.org"
    source=(config
    # standard config files for mkinitcpio ramdisk
    kernel26.preset
    ${_patchname})
    build() {
    cd ${srcdir}/$_branch
    msg "Fetching branch ${_branch}"
    ## FOR BISECT, Comment these lines
    git reset --hard
    git clean -d -f
    git fetch
    msg "Cheking out tag ${_gittag}"
    git checkout $_gittag
    ### a patch
    if [ "${_patchname}" != "" ]; then
    patch -Np1 -i ${srcdir}/$_patchname || return 1
    fi
    # if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    # else
    cat ../config >./.config
    # fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    make menuconfig # CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make bzImage modules || return 1
    package_kernel26-git() {
    pkgdesc="The Linux Kernel and modules"
    backup=(etc/mkinitcpio.d/${pkgname}.preset)
    depends=('coreutils' 'kernel26-firmware>=2.6.32' 'module-init-tools' 'mkinitcpio>=0.5.20')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'rt2500')
    install=kernel26.install
    optdepends=('crda: to set the correct wireless channels of your country')
    KARCH=x86
    cd ${srcdir}/$_branch
    _kernver="$(make kernelrelease)"
    mkdir -p ${pkgdir}/{lib/modules,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # # add vmlinux
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i $startdir/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
    # remove build and source links
    rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    package_kernel26-git-headers() {
    pkgdesc="Header files and scripts for building modules for kernel26"
    mkdir -p ${pkgdir}/lib/modules/${_kernver}
    cd ${pkgdir}/lib/modules/${_kernver}
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd ${srcdir}/$_branch
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers vor virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
    # add header for aufs2-util
    cp -a ${srcdir}/$_branch/include/asm-generic/bitsperlong.h ${pkgdir}/usr/src/linux-${_kernver}/include/asm/
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    package_kernel26-firmware() {
    pkgdesc="The included firmware files of the Linux Kernel"
    groups=('base')
    cd ${srcdir}/$_branch
    make firmware || return 1
    make INSTALL_MOD_PATH=${pkgdir} firmware_install || return 1
    Last edited by eldragon (2010-04-04 14:58:16)

    ngoonee wrote:
    Check out this line
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
    for anything that might be missing. The error message when compiling would give you more of a clue. Off-hand, you may need to add 'generated', as I recall I needed that when the kernel moved to 2.6.33.
    Problem with vbox_build_module after Kernel update.
    Would you care to elaborate for us less versed in "Linux Geek" skills?
    Thanks.......
    [root@Arch2009p2 jeff]# vbox_build_module
    Building vboxdrv for Linux 2.6.33-ARCH
    make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
    for f in . linux r0drv r0drv/generic r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxdrv* .tmp_ver* vboxdrv.* Module.symvers Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make[1]: Entering directory `/opt/VirtualBox/src/vboxnetflt'
    for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxnetflt* .tmp_ver* vboxnetflt.* Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetflt'
    make[1]: Entering directory `/opt/VirtualBox/src/vboxnetadp'
    for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxnetadp* .tmp_ver* vboxnetadp.* Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetadp'
    rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko
    *** Building 'vboxdrv' module ***
    make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
    make KBUILD_VERBOSE= -C /lib/modules/2.6.33-ARCH/build SUBDIRS=/opt/VirtualBox/src/vboxdrv SRCROOT=/opt/VirtualBox/src/vboxdrv modules
    make[2]: Entering directory `/usr/src/linux-2.6.33-ARCH'
    CC [M] /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o
    In file included from /opt/VirtualBox/src/vboxdrv/include/VBox/types.h:34,
    from /opt/VirtualBox/src/vboxdrv/linux/../SUPDrvInternal.h:39,
    from /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.c:37:
    /opt/VirtualBox/src/vboxdrv/include/iprt/types.h:100:30: error: linux/autoconf.h: No such file or directory
    make[3]: *** [/opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o] Error 1
    make[2]: *** [_module_/opt/VirtualBox/src/vboxdrv] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.33-ARCH'
    make[1]: *** [vboxdrv] Error 2
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make: *** [all] Error 2

  • Script to easily build modules for custom kernels

    I got bored, and thought of this ages ago. I have no use for it now, but i'm sure someone else will.
    run:
    abs-module $modulename $kernel
    $modulename is any kernel module that's available in /var/abs, so if you have some that arent in a default abs, put em in /var/abs/local and they will be spotted by this.
    $kernel is the name of the kernel that you want to compile for. this can be found with 'uname -r'. If $kernel is not specified, then it will default to what you are running now.
    this will only work for module packages that have a variable called _kernver which sets the kernel it will be compiled for. I know all the winmodems, ATi and drivers I maintain do, not sure about some of the others. nvidia won't work.
    #! /bin/bash
    # Set the variables up
    module="$1"
    kernel="$2"
    pacman="1"
    current="`uname -r`"
    # Check things
    if [ -z "$module" ]; then
    echo "No module specified"
    return 1
    fi
    if [ -z "$kernel" ]; then
    echo "No kernel specified, building for: $current"
    kernel="$current"
    fi
    if [ ! -e "/lib/modules/$kernel/build" ]; then
    echo "Specified kernel is not installed"
    return 1
    fi
    # Check if module exists
    origdir="`find /var/abs -type d -name $module`"
    if [ -z "$origdir" ]; then
    echo "Specified module does not exist"
    return 1
    fi
    # Prepare to build
    newdir="/var/abs/local/$module-$kernel"
    if [ -d "$newdir" ]; then
    rm -rf "$newdir"
    fi
    cp -R $origdir $newdir
    cd $newdir
    source PKGBUILD
    if [ -z "$_kernver" ]; then
    echo "PKGBUILD does not have $_kernver."
    return 1
    fi
    sed "s/$_kernver/$kernel/g" -i PKGBUILD
    sed "s/pkgname=$pkgname/pkgname=$pkgname-$kernel/g" -i PKGBUILD
    # Build!
    makepkg
    # Post build messages/install
    if [ $? = 0 ]; then
    package="`find $newdir -name *pkg.tar.gz`"
    # variable is at top
    if [ "$pacman" = "1" ]; then
    pacman -U $package
    else
    echo "Package is ready to install: $package"
    fi
    else
    echo "Build failed"
    fi
    sorry if there's any stupid bash in there, i'm tired. and yeah, I know it's a tad verbose and spacy, but it seems to works fine.
    James

    Iphitus > I'm looking 4 something like your script that will allow me to load spca5xx when running my custom kernelbeyond
    Unfortunetely spca5xx seems not to be manageable by your abs-module script, as its PKGBUILD doesn't have a variable called _kernver.
    Log :
    /usr/bin/abs-make-module spca5xx
    No kernel specified, building for: 2.6.17-beyond-LLEWELLYN
    PKGBUILD does not have .
    /usr/bin/abs-make-module: line 52: return: can only `return' from a function or sourced script
    sed: -e expression #1, char 0: no previous regular expression
    ==> Making package: spca5xx-2.6.17-beyond-LLEWELLYN 0.60.00-2 (Sun Jul 23 11:44:52 CEST 2006)
    ==> Validating source files with MD5sums
        spca5xx-20060501.tar.gz ... Passed
    ==> Extracting Sources...
    ==>     tar --use-compress-program=gzip -xf spca5xx-20060501.tar.gz
    tar: spca5xx-20060501/drivers: implausibly old time stamp 1970-01-01 01:00:00
    ==> Starting build()...
    ./PKGBUILD: line 13: cd: /var/abs/local/spca5xx-2.6.17-beyond-LLEWELLYN/src/spca5xx-2.6.17-beyond-LLEWELLYN-20060501: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    ==> ERROR: Build Failed.  Aborting...
    Build failed

  • NVIDIA driver for optimus capable cards and UEFI

    Has anyone have had any luck installing the nvidia (proprietary) driver for laptop with nvidia card like the Y series?
    I can't boot the laptop after installing the Nvidia driver. After installing the driver, I get an error saying "device not found" and drops to a shell mode.
    Solved!
    Go to Solution.

    Yes, I did make this thread, but a month ago. Since then I have it resolved, and I even have it tagged as resolved. Back then, I had a lot of problem making it work. But that was a month ago.
    And yes, I admit now that there are still issues with the driver. But as I've said at least twice already, the issues exist because native support NVIDIA provides is still relatively new. And yes, people are still experiencing problems because, I'll say it again for the third time, native support is still relatively new and therefore can be buggy.
    I think it's totally off pace to make factual statements based on one's experience. You're not paying attention to what you're reading and you're very quick to jump  to conclusions. NVIDIA most certainly doesn't say that it doesn't support Optimus on linux based OSes. There are minimum required kernel and xrandr versions, and that's pretty much it. They even tell you how to install it on their website:
    http://us.download.nvidia.com/XFree86/Linux-x86/31​9.12/README/randr14.html
    There can be/are issues after you install it, and as I mentioned before, I summarized in another thread as to how I got around a lot of the issues I had. Click my username and view it.
    Finally, every other person and their grandmother is using Ubuntu these days, so there is a lot of support out there for it.  I'd imagine that for the latest version of Ubuntu, someone out there has posted a step-by-step guide as to how to install the nvidia driver on an optimus card. The major issue is with older kernels or I'd imagine BSD, etc.

  • [SOLVED] NVidia driver for Dell XPS1340 (GeForce 9400M G)

    Hi.
    I don't know which nvidia driver install for my laptop, Dell XPS 1340. Before i had installed nvidia-173xx but now this driver doesn't work with new xorg-server (http://mailman.archlinux.org/pipermail/ … 20001.html).
    I've kernel26-pae and i've install nvidia-pae driver, after installation i config with nvidia-xconfig but when i run startx i get this error:
    [ 1210.888] (--) Depth 24 pixmap format is 32 bpp
    [ 1217.522] (EE) NVIDIA(GPU-1): Failed to initialize the NVIDIA GPU at PCI:2:0:0. Please
    [ 1217.522] (EE) NVIDIA(GPU-1): check your system's kernel log for additional error
    [ 1217.522] (EE) NVIDIA(GPU-1): messages and refer to Chapter 8: Common Problems in the
    [ 1217.522] (EE) NVIDIA(GPU-1): README for additional information.
    [ 1217.522] (EE) NVIDIA(GPU-1): Failed to initialize the NVIDIA graphics device!
    [ 1217.523]
    Backtrace:
    [ 1217.523] 0: /usr/bin/X (xorg_backtrace+0x37) [0x80a38e7]
    [ 1217.523] 1: /usr/bin/X (0x8048000+0x5faea) [0x80a7aea]
    [ 1217.523] 2: (vdso) (__kernel_rt_sigreturn+0x0) [0xb779540c]
    [ 1217.523] 3: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0xb52c3000+0x471698) [0xb5734698]
    [ 1217.523] Segmentation fault at address (nil)
    [ 1217.523]
    Fatal server error:
    [ 1217.523] Caught signal 11 (Segmentation fault). Server aborting
    [ 1217.523]
    [ 1217.523]
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 1217.523] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 1217.523]
    lspci | grep VGA output is:
    02:00.0 VGA compatible controller: nVidia Corporation GT218 [GeForce G210M] (rev a2)
    03:00.0 VGA compatible controller: nVidia Corporation C79 [GeForce 9400M G] (rev b1)
    xorg.conf:
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 270.41.03 ([email protected]) Sat Apr 9 00:26:11 PDT 2011
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Can anybody help me?
    Thanks and best regards.
    Last edited by Pilli (2011-04-14 11:48:58)

    Hi.
    To fix this problem i've to edit the /boot/grub/menu.lst file and add to kernel line  vmalloc=192M option.
    More information here: http://us.download.nvidia.com/XFree86/L … ssues.html at Kernel virtual address space exhaustion on the X86 platform section.
    I hope this can help someone
    Thanks.

  • Any new Nvidia driver for Macbook pro?

    Hey, after I upgrade to new OSX 10.6.x, my software Houdini (www.sidefx.com) viewport flickers every frame. It used to work fine on 10.5.x.
    I don't know it's the problem for OSX or Nvidia driver, at least, it worked fine on 10.5.x, so I think it is the new OSX bug.
    I use Macbook pro, I tried both 9400m or 9600m can't work. Please fix this.
    Regards.

    Ah, I see - Asking here is just asking other users - if you expected an answer/status directly from Apple here, that won't happen, sorry. Perhaps some users have heard on other forums in which case I'm sure you've already searched, etc. Good luck in any case.

  • /dev/sda for Arch but /dev/hda for custom kernel. Why?

    My laptop does not have a scsi or sata hard drive. So why does Arch's kernel view the drive as /dev/sda1 while a custom kernel views it as /dev/hda like it should?

    Hmm that does not at all seem like a good explanation.
    Drivers/ide suffers from many ugly and obscure problems, and re-implementing it on top of libata has been much easier than fixing the unfixable drivers/ide mess
    you don't think fixing broken and ugly code is a good thing? Let me guess, you think sdxX is somehow more ugly then hdxX?
    btw, if you use persistent block device naming scheme, you wouldn't need worry about naming conventions. http://wiki.archlinux.org/index.php/Per … ice_naming

  • Problems compiling at91 driver for samutils-0.2.1

    Hello All!
    I'm having problems compiling the usb driver for sam7 tools. I am receiving the following errors:
    make -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/home/bailey/Source/sam7utils-0.2.1/driver modules
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    CC [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.o
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_write_bulk_callbackâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:154:2: error: implicit declaration of function âusb_buffer_freeâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:140:19: warning: variable âdevâ set but not used [-Wunused-but-set-variable]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_writeâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:2: error: implicit declaration of function âusb_buffer_allocâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:178:6: warning: assignment makes pointer from integer without a cast [enabled by default]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:192:6: warning: passing argument 6 of âusb_fill_bulk_urbâ from incompatible pointer type [enabled by default]
    include/linux/usb.h:1266:20: note: expected âusb_complete_tâ but argument is of type âvoid (*)(struct urb *, struct pt_regs *)â
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_probeâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:305:2: error: implicit declaration of function âinfoâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c: In function âat91_disconnectâ:
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:320:2: error: implicit declaration of function âlock_kernelâ [-Werror=implicit-function-declaration]
    /home/bailey/Source/sam7utils-0.2.1/driver/at91.c:328:2: error: implicit declaration of function âunlock_kernelâ [-Werror=implicit-function-declaration]
    cc1: some warnings being treated as errors
    make[2]: *** [/home/bailey/Source/sam7utils-0.2.1/driver/at91.o] Error 1
    make[1]: *** [_module_/home/bailey/Source/sam7utils-0.2.1/driver] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    make: *** [default] Error 2
    output of uname -a
    2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 22:01:13 CEST 2011 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GenuineIntel GNU/Linux
    I am running gcc 4.6.1-1 and have installed kernel26headers. If there is any info I'm missing plz let me know.
    Thanks for your help in advance

    Thank you for the reply, I noticed that the post below (its for Ubuntu) shows the gcc version to be 4.0.3
    [link]http://www.makingthings.com/documentati … -sam7utils[/link]
    I poked around the Makefile in /usr/src/linux-2.6.39 and got rid of "-Wall" and "-Wno-implicit-function-declaration"
    it compiled with the following warnings:
    make[1]: Entering directory `/usr/src/linux-2.6.39-ARCH'
    Building modules, stage 2.
    MODPOST 1 modules
    WARNING: "info" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "unlock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "lock_kernel" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "usb_buffer_alloc" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    WARNING: "usb_buffer_free" [/home/bailey/Source/sam7utils-0.2.1/driver/at91.ko] undefined!
    CC /home/bailey/Source/sam7utils-0.2.1/driver/at91.mod.o
    LD [M] /home/bailey/Source/sam7utils-0.2.1/driver/at91.ko
    make[1]: Leaving directory `/usr/src/linux-2.6.39-ARCH'
    but when I tried to install, the output was
    insmod: error inserting 'at91.ko': -1 Unknown symbol in module
    Unfortunately, I tried grabbing the package from the AUR, but I ran into the same issues. Seems the only common factor in this process is gcc.
    Thanks for the help

Maybe you are looking for

  • Crystal Report Universe Connection

    Hello, I have a Crystal report developed based on Universe as the data source. Say this report is in Dev environment. Suppose I need to promote this report to Test environment to UAT or production then how is it possible?     I have used import wizar

  • Types of Command Line Utility Projects in Xcode

    Hello. Question: There are five types of projects within the Command Line Utility section in Xcode. One is the Standard Tool project, which I know is written in C. Another is the C++ Tool, which is written in C++. Here's my question -- what language

  • Reformatting external HD with Disk Utility doesn't seem to work?

    I've got two external hard disks - one Samsung 250GB and one 40GB which were previously formatted for and used with a PC. I'm trying to erase them and reformat them for Mac, using the 'erase disk' option in Disk Utility, but each time I try, for each

  • Slow upload after exchange upgrade

    Dear all I'm very grateful for any help.  I am connected to the Woolhampton exchange near Reading in Berkshire.  I live quite a long way from the exchange so am realistic about connection speeds. Until recently I got just under 2meg download and abou

  • Viewing memory locations in java

    hello!! i would request to know how we view memeory locations in java. just like we do in C++( we use &variablename) to get the memory locations i would like to know how we can view memeory locations in java. once accidently i had compiled a hjava pr