Results 1 to 5 of 5

Thread: recompile ubuntu kernel from linux-source fails with debian/rules . ok with make-kpkg

  1. #1
    Join Date
    Sep 2005
    Beans
    74

    recompile ubuntu kernel from linux-source fails with debian/rules . ok with make-kpkg

    Hi

    I am trying to recompile the Ubuntu patched kernel (not vanilla kernel) - I am using 14.10.

    Before anyone starts going on about why ? its due to

    - lack of oss (old OSS) sound modules meaning not sound of some (old) games - aoss and pdoss doesn't work with the games/my H/W (having the kernel OSS modules is the ONLY way to play some old games - i.e paintball2 (SDL is broken)
    - removal of nouveau
    - choose the typeof CPU (rather than generic x86_64) - even if that only improves performance by 0.5 % thats better than no improvement
    - I also remove XEN support
    - set to 1000Hz
    - I want to ....

    I can create the kernel package find if I do the following fine (method1 - make-kpkg)

    method1:-
    -------------
    Code:
    apt-get source linux-image-$(uname -r) 
    dpkg-source -x *.dsc
    cd linux-3.16.0/
    chmod a+x debian/scripts/*
    chmod a+x debian/scripts/misc/*
    cp /boot/config-`uname -r` .config
    fakeroot debian/rules clean
    make menuconfig  (make my modifications)
    fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
    - this works fine - builds kernel/image packages and it works.

    Method 2 :
    ----------------

    outlined https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

    Code:
    apt-get source linux-image-$(uname -r)
    chmod a+x debian/scripts/*
    chmod a+x debian/scripts/misc/*
    fakeroot debian/rules clean
    fakeroot debian/rules editconfigs
    --> modify the first choice - amd64-generic.
    
    fakeroot debian/rules clean
    fakeroot debian/rules binary-headers binary-generic
    It goes through the whole build process then stops at
    Code:
    Debug: module-check-generic
    install -d /home/morgan/src_2/linux-3.16.0/debian.master/abi/3.16.0-29.39/amd64
    find /home/morgan/src_2/linux-3.16.0/debian/build/build-generic/ -name \*.ko | \
    	sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > /home/morgan/src_2/linux-3.16.0/debian.master/abi/3.16.0-29.39/amd64/generic.modules
    II: Checking modules for generic...
       reading new modules...read 4118 modules.
       reading old modules...
          MISS: nouveau
          MISS: r128
          MISS: radeon
          MISS: sis-agp
          MISS: tdfx
          MISS: tmem
          MISS: xen-blkback
          MISS: xen-evtchn
          MISS: xen-fbfront
          MISS: xenfs
          MISS: xen-gntalloc
          MISS: xen-gntdev
          MISS: xen-kbdfront
          MISS: xen-netback
          MISS: xen-pciback
          MISS: xen-pcifront
          MISS: xen-privcmd
          MISS: xen-tpmfront
          MISS: xen_wdt
          NEW : sound
          NEW : sound_firmware
          NEW : v_midi
          NEW : snd-pcm-oss
          NEW : snd-seq-oss
          read 4132 modules : new(5)  missing(19)
    EE: Missing modules (start begging for mercy)
    debian/rules.d/4-checks.mk:12: recipe for target 'module-check-generic' failed
    make: *** [module-check-generic] Error 1
    any ideas why it fails here?

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,481
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: recompile ubuntu kernel from linux-source fails with debian/rules . ok with make-

    First, I'll say that I do not know the answer to your actual question.

    There seems to be several different ways to compile the kernel. My experience has been that several of the methods are excessively complicated, while claiming to be simple, and do not provide any information at all as to why a build exits with an error, and one is left with no idea how to proceed. It is just my opinion, but I have had the best success using the "old-fashioned debian way", including meaningful error messages upon error exit when I make mistakes.

    Note that now I actually just steal the Ubuntu kernel configuration and compile the code from kernel.org, obtained via git.

    I don't know if this post will help or just add confusion.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  3. #3
    Join Date
    Sep 2005
    Beans
    74

    Re: recompile ubuntu kernel from linux-source fails with debian/rules . ok with make-

    Hi.

    Cheers for the response, much appreciated.

    I am familiar with the method you linked to, I used to build kernel's from kernel.org using that method.

    I was after all the ubuntu patches also.

    I also used to use this method - via git - make a new branch (i.e i5)

    http://blog.avirtualhome.com/how-to-...-natty-kernel/

    --> but that was far far far more hassle than just download source use make-kpkg ...

  4. #4
    Join Date
    Jun 2007
    Beans
    16,486

    Re: recompile ubuntu kernel from linux-source fails with debian/rules . ok with make-

    No clue really but the error seems fairly clear. Your build source started with a list of modules (generic.modules). The build produced 5 new (not listed) & didn't produce 19 (Miss).
    Why, no idea. Maybe from your changes & or building locally.

    If your build created a log maybe you could read back & see why.
    I guess if it were me I may try adjusting that .modules file in a new or cleaned source & see what happens. (remove the missing, add the new.
    (- if you need the nouveau or radeon modules then ^ isn't going to prove that useful

  5. #5
    Join Date
    Nov 2008
    Beans
    3

    Re: recompile ubuntu kernel from linux-source fails with debian/rules . ok with make-

    Quote Originally Posted by interzoneuk View Post
    Hi
    II: Checking modules for generic...
    reading new modules...read 4118 modules.
    reading old modules...
    MISS: nouveau
    [...]
    read 4132 modules : new(5) missing(19)
    EE: Missing modules (start begging for mercy)
    debian/rules.d/4-checks.mk:12: recipe for target 'module-check-generic' failed
    make: *** [module-check-generic] Error 1[/CODE]

    any ideas why it fails here?
    It is being pretty clear in its error message that previously built modules, modules built in the previous upload, are now missing. This is a fatal error for distro uploads. You would need to either inform it that those modules are expected to be missing, but cleaning up the modules files in debian.master/abi, or disable module checks with skip_modules=1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •