Hi, I am struggling to build a slightly modified Debian Kernel. I suspect that there must be something trivial that I am doing wrong, so somebody will hopefully be able to point me into the right direction.
My goal: Building kernel 3.16.7 with most Debian patches on Wheezy. Reason: Include recent aufs changes into kernel but leave everything else in the nice and stable way the official wheezy-backports kernel provides. What I did: 1. Install necessary dependencies: # apt-get install fakeroot build-essential devscripts equivs # apt-get build-dep linux 2. download the official 3.16.7 tarball from kernel.org # wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.7.tar.gz 3. get the patches/configs for the debian kernel package # mkdir debian-patchset # cd debian-patchset # svn export svn://svn.debian.org/svn/kernel/releases/linux/3.16.7-ckt9-3~deb8u1~bpo70%2B1/debian/ 4. I tried to follow https://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage and like described in http://anonscm.debian.org/viewvc/kernel/releases/linux/3.16.7-ckt9-3~deb8u1~bpo70%2B1/debian/README.source?view=markup I tried to update the upstream source, which failed: # debian/bin/genorig.py ../linux-3.16.7.tar.gz Using source name linux, version 3.16.7-ckt9, dfsg 0 Extracting tarball ../linux-3.16.7.tar.gz Patching source with debian patch (series orig) (+) OK debian/dfsg/arch-powerpc-platforms-8xx-ucode-disable.patch (+) OK debian/dfsg/drivers-media-dvb-dvb-usb-af9005-disable.patch (+) OK debian/dfsg/vs6624-disable.patch (+) OK debian/dfsg/drivers-net-appletalk-cops.patch (+) OK debian/dfsg/drivers-staging-wlags49_h2-disable.patch (+) OK debian/dfsg/drivers-staging-wlags49_h25-disable.patch (+) OK debian/dfsg/video-remove-nvidiafb-and-rivafb.patch (+) OK debian/dfsg/firmware-cleanup.patch (remove) OK Documentation/netlabel/draft-ietf-cipso-ipsecurity-01.txt (remove) OK firmware (remove) OK arch/powerpc/sysdev/micropatch.c (remove) OK drivers/media/usb/dvb-usb/af9005-script.h (remove) OK drivers/media/i2c/vs6624.c (remove) OK drivers/net/appletalk/cops.c (remove) OK drivers/net/appletalk/cops.h (remove) OK drivers/net/appletalk/cops_ffdrv.h (remove) OK drivers/net/appletalk/cops_ltdrv.h (remove) OK drivers/staging/ft1000/ft1000-pcmcia/boot.h (remove) OK drivers/staging/ft1000/ft1000-*/*.img (remove) OK drivers/staging/keucr/init.h (remove) OK drivers/staging/wlags49_h2/ap_*.c (remove) OK drivers/staging/wlags49_h2/sta_*.c (remove) OK drivers/video/fbdev/nvidia/ (remove) OK drivers/video/fbdev/riva/ (X) OK debian/dfsg/files-1 Generate tarball ../orig/linux_3.16.7-ckt9.orig.tar.xz genorig works, however the unpacking fails because patches could not be applied: # make -f debian/rules orig mkdir -p ../orig tar -C ../orig -xaf ../linux_3.16.7-ckt9.orig.tar.xz rsync --delete --exclude /debian --exclude .svk --exclude .svn --exclude .git --link-dest=../orig/linux-3.16.7-ckt9/ -a ../orig/linux-3.16.7-ckt9/ . QUILT_PATCHES='/opt/src/debian-patchset/debian/patches' QUILT_PC=.pc quilt push --quiltrc - -a -q --fuzz=0 Applying patch debian/version.patch Applying patch debian/kernelvariables.patch Applying patch debian/gitignore.patch Applying patch debian/ia64-hardcode-arch-script-output.patch Applying patch debian/mips-disable-werror.patch Applying patch debian/arch-sh4-fix-uimage-build.patch Applying patch debian/powerpcspe-omit-uimage.patch Applying patch features/all/Kbuild-kconfig-Verbose-version-of-listnewconfig.patch Applying patch features/all/drivers-media-dvb-usb-af9005-request_firmware.patch Applying patch debian/iwlwifi-do-not-request-unreleased-firmware.patch Applying patch bugfix/all/firmware_class-return-specific-errors-from-file-read.patch Applying patch bugfix/all/firmware_class-log-every-success-and-failure.patch Applying patch bugfix/all/firmware-remove-redundant-log-messages-from-drivers.patch 1 out of 2 hunks FAILED Patch bugfix/all/firmware-remove-redundant-log-messages-from-drivers.patch does not apply (enforce with -f) make: *** [orig] Error 1 Can anyone give me a hint on what I am doing wrong? What do I have to do to to have a debian-patched kernel source tree so I can disable all aufs patches with quilt and add the current upstream aufs from http://sourceforge.net/p/aufs/aufs3-standalone/ci/aufs3.16/tree/?
smime.p7s
Description: S/MIME cryptographic signature