Issue Compiling Kernel 2.6.33

Discussion in 'HOWTO-Related Questions' started by Invincible10001, Apr 10, 2010.

  1. Invincible10001

    Invincible10001 New Member

    Code:
    fakeroot make-kpkg --initrd --append-to-version=-linux-2.6.33 kernel_image kernel_headers
    command gives this output :
    Code:
    make[1]: Entering directory `/usr/src/linux-2.6.33'
    ====== making target debian/stamp/install/linux-image-2.6.33-linux-2.6.33 [new prereqs: ]======
    This is kernel package version 11.015.
    echo "The UTS Release version in include/linux/version.h"; echo "	   \"\" "; echo "does not match current version:"; echo "	   \"2.6.33-linux-2.6.33\" "; echo "Please correct this."; exit 2
    The UTS Release version in include/linux/version.h
    	   "" 
    does not match current version:
    	   "2.6.33-linux-2.6.33" 
    Please correct this.
    make[1]: *** [debian/stamp/install/linux-image-2.6.33-linux-2.6.33] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.33'
    make: *** [kernel_image] Error 2
    

    Code:
    ls -la /usr/src/linux/
    Gives:
    Code:
    total 928
    drwxr-xr-x 26 root root   4096 2010-04-09 22:54 .
    drwxrwsr-x  9 root src    4096 2010-04-09 22:52 ..
    drwxr-xr-x 25 root root   4096 2010-02-25 00:22 arch
    drwxr-xr-x  2 root root   4096 2010-02-25 00:22 block
    -rw-r--r--  1 root root 112553 2010-04-09 22:54 .config
    -rw-r--r--  1 root root 112540 2010-04-09 22:53 .config.old
    -rw-r--r--  1 root root 112491 2010-04-06 23:06 .configuration
    -rw-r--r--  1 root root 112491 2010-04-06 23:05 .configuration.old
    -rw-r--r--  1 root root  18693 2010-02-25 00:22 COPYING
    -rw-r--r--  1 root root  94031 2010-02-25 00:22 CREDITS
    drwxr-xr-x  3 root root   4096 2010-02-25 00:22 crypto
    drwxr-xr-x 10 root root   4096 2010-04-09 22:54 debian
    drwxr-xr-x 85 root root  12288 2010-02-25 00:22 Documentation
    drwxr-xr-x 88 root root   4096 2010-02-25 00:22 drivers
    drwxr-xr-x 36 root root   4096 2010-02-25 00:22 firmware
    drwxr-xr-x 70 root root   4096 2010-02-25 00:22 fs
    -rw-r--r--  1 root root    843 2010-02-25 00:22 .gitignore
    drwxr-xr-x 22 root root   4096 2010-04-09 22:54 include
    drwxr-xr-x  2 root root   4096 2010-02-25 00:22 init
    drwxr-xr-x  2 root root   4096 2010-02-25 00:22 ipc
    -rw-r--r--  1 root root   2440 2010-02-25 00:22 Kbuild
    drwxr-xr-x  7 root root   4096 2010-04-09 22:54 kernel
    drwxr-xr-x  6 root root   4096 2010-02-25 00:22 lib
    -rw-r--r--  1 root root   4021 2010-02-25 00:22 .mailmap
    -rw-r--r--  1 root root 164165 2010-02-25 00:22 MAINTAINERS
    -rw-r--r--  1 root root  53199 2010-02-25 00:22 Makefile
    -rw-r--r--  1 root root    454 2010-04-09 22:54 .missing-syscalls.d
    drwxr-xr-x  2 root root   4096 2010-02-25 00:22 mm
    drwxr-xr-x 48 root root   4096 2010-02-25 00:22 net
    drwxr-xr-x  2 root root   4096 2010-04-06 22:52 newCall
    -rw-r--r--  1 root root  17459 2010-02-25 00:22 README
    -rw-r--r--  1 root root   3371 2010-02-25 00:22 REPORTING-BUGS
    drwxr-xr-x  7 root root   4096 2010-02-25 00:22 samples
    drwxr-xr-x 12 root root   4096 2010-02-25 00:22 scripts
    drwxr-xr-x  7 root root   4096 2010-02-25 00:22 security
    drwxr-xr-x 21 root root   4096 2010-02-25 00:22 sound
    drwxr-xr-x  2 root root   4096 2010-04-09 22:54 .tmp_versions
    drwxr-xr-x  3 root root   4096 2010-02-25 00:22 tools
    drwxr-xr-x  2 root root   4096 2010-02-25 00:22 usr
    drwxr-xr-x  3 root root   4096 2010-02-25 00:22 virt

    Code:
    ls -la /usr/src/
    Gives:
    Code:
    total 579464
    drwxrwsr-x  9 root src       4096 2010-04-09 22:52 .
    drwxr-xr-x 11 root root      4096 2010-04-06 13:24 ..
    lrwxrwxrwx  1 root src         12 2010-04-09 22:52 linux -> linux-2.6.33
    drwxrwxr-x 26 root root      4096 2010-04-07 08:29 linux-2.6.32.3
    -rwxr-xr-x  1 root src   64385048 2010-04-06 17:43 linux-2.6.32.3.tar.bz2
    -rwxr-xr-x  1 root src   64385857 2010-04-06 17:43 linux-2.6.32.7.tar.bz2
    drwxr-xr-x 26 root root      4096 2010-04-09 22:54 linux-2.6.33
    -rwxr-xr-x  1 root src   66266488 2010-04-06 17:43 linux-2.6.33.tar.bz2
    drwxr-xr-x 23 root root      4096 2009-10-27 23:46 linux-headers-2.6.31-14
    drwxr-xr-x  7 root root      4096 2009-10-27 23:46 linux-headers-2.6.31-14-generic
    drwxr-xr-x 23 root root      4096 2010-04-06 14:48 linux-headers-2.6.31-20
    drwxr-xr-x  7 root root      4096 2010-04-06 19:11 linux-headers-2.6.31-20-generic
    drwxr-xr-x 23 root root      4096 2010-04-06 21:45 linux-headers-2.6.32.3-custom
    -rw-r--r--  1 root src    6442948 2010-04-06 21:14 linux-headers-2.6.32.3-custom_2.6.32.3-custom-10.00.Custom_amd64.deb
    -rw-r--r--  1 root src  391843006 2010-04-06 21:12 linux-image-2.6.32.3-custom_2.6.32.3-custom-10.00.Custom_amd64.deb

    Code:
    cp /boot/config-`uname -r` ./.config
    make menuconfig
    make-kpkg clean
    Gave no errors.
    I've compiled Kernel 2.6.32.3 in the exact same way & that compiled & is running without any problems.
    Any help would be appreciated.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What happens when you leave out the
    --append-to-version=-linux-2.6.33
    switch in the fakeroot make-kpkg command?
     
  3. Invincible10001

    Invincible10001 New Member

    If i do that, i get this result :
    Code:
    root@invin-studio:/usr/src/linux# fakeroot make-kpkg --initrd kernel_image kernel_headers
    exec debian/rules  DEBIAN_REVISION=2.6.33.2-linux-2.6.33.2-10.00.Custom  INITRD=YES  kernel_image kernel_headers 
    /usr/bin/make -f ./debian/rules 	debian/stamp/binary/pre-linux-image-2.6.33.2-linux-2.6.33.2
    make[1]: Entering directory `/usr/src/linux-2.6.33.2'
    ====== making target debian/stamp/install/linux-image-2.6.33.2-linux-2.6.33.2 [new prereqs: ]======
    This is kernel package version 11.015.
    echo "The UTS Release version in include/linux/version.h"; echo "	   \"\" "; echo "does not match current version:"; echo "	   \"2.6.33.2-linux-2.6.33.2\" "; echo "Please correct this."; exit 2
    The UTS Release version in include/linux/version.h
    	   "" 
    does not match current version:
    	   "2.6.33.2-linux-2.6.33.2" 
    Please correct this.
    make[1]: *** [debian/stamp/install/linux-image-2.6.33.2-linux-2.6.33.2] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.33.2'
    make: *** [kernel_image] Error 2
    root@invin-studio:/usr/src/linux# 
    
     
  4. Invincible10001

    Invincible10001 New Member

    Same error:
    Code:
      IHEX    firmware/yam/9600.bin
    make[1]: Leaving directory `/usr/src/linux-2.6.33.2'
    test ! -e scripts/package/builddeb || mv -f scripts/package/builddeb scripts/package/builddeb.kpkg-dist
    test ! -e scripts/package/Makefile || test -f scripts/package/Makefile.kpkg-dist || (mv -f scripts/package/Makefile scripts/package/Makefile.kpkg-dist && (echo "# Dummy file "; echo "help:") >  scripts/package/Makefile)
    COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils make dpkg-dev |\
    	 awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }'> debian/buildinfo
    uname -a >> debian/buildinfo
    echo using the compiler: >> debian/buildinfo
    grep LINUX_COMPILER include/linux/compile.h | \
    	   sed -e 's/.*LINUX_COMPILER "//' -e 's/"$//' >> debian/buildinfo
    grep: include/linux/compile.h: No such file or directory
    echo applied kernel patches: >> debian/buildinfo
    echo done > debian/stamp/build/kernel
    /usr/bin/make -f ./debian/rules 	debian/stamp/binary/pre-linux-image-2.6.33.2-linux-2.6.33.2
    make[1]: Entering directory `/usr/src/linux-2.6.33.2'
    ====== making target debian/stamp/install/linux-image-2.6.33.2-linux-2.6.33.2 [new prereqs: ]======
    This is kernel package version 11.015.
    echo "The UTS Release version in include/linux/version.h"; echo "	   \"\" "; echo "does not match current version:"; echo "	   \"2.6.33.2-linux-2.6.33.2\" "; echo "Please correct this."; exit 2
    The UTS Release version in include/linux/version.h
    	   "" 
    does not match current version:
    	   "2.6.33.2-linux-2.6.33.2" 
    Please correct this.
    make[1]: *** [debian/stamp/install/linux-image-2.6.33.2-linux-2.6.33.2] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.33.2'
    make: *** [kernel_image] Error 2
    
     

Share This Page