After following the howoto forge article on how to compile the new kernel in ubuntu 6.10 (http://www.howtoforge.com/kernel_compilation_ubuntu_p2 ) I reached the Code: fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers command and received the following error "nothing to be done. " Subsequently the kernel wasn't compiled. Can any one offer me some insight as to what I may have done wrong or what is necessary to compile the kernel correctly? I am attempting to compile the newest kernel build (2.6.19.1) for the k7 architecture (I have an AMD Athlon XP 1600+) in order to overcome the apparent lag in this build of linux (default kernel is 2.6.17-generic). Any help would be much appreciated.
I think so /usr/src/linux ? I followed the tutorial rather meticulously, twice... I'm sure I did it right.
First off thanks for the replys and insight so far. Secondly here are the outputs: Code: ls -la /usr/src/linux/ Output: Code: total 444 drwxrwxrwx 20 root root 4096 2006-12-30 02:19 . drwxrwsr-x 5 root src 4096 2006-12-30 02:04 .. drwxrwxrwx 27 root root 4096 2006-12-11 13:32 arch drwxrwxrwx 2 root root 4096 2006-12-11 13:32 block -rw-r--r-- 1 root root 75503 2006-12-30 02:13 .config -rw-rw-rw- 1 root root 18693 2006-12-11 13:32 COPYING -rw-rw-rw- 1 root root 90307 2006-12-11 13:32 CREDITS drwxrwxrwx 2 root root 4096 2006-12-11 13:32 crypto drwxr-xr-x 10 root root 4096 2006-12-30 02:19 debian drwxrwxrwx 59 root root 4096 2006-12-11 13:32 Documentation drwxrwxrwx 62 root root 4096 2006-12-11 13:32 drivers drwxrwxrwx 63 root root 4096 2006-12-11 13:32 fs -rw-rw-rw- 1 root root 547 2006-12-11 13:32 .gitignore drwxrwxrwx 43 root root 4096 2006-12-30 02:19 include drwxrwxrwx 2 root root 4096 2006-12-11 13:32 init drwxrwxrwx 2 root root 4096 2006-12-11 13:32 ipc -rw-rw-rw- 1 root root 1262 2006-12-11 13:32 Kbuild drwxrwxrwx 5 root root 4096 2006-12-11 13:32 kernel drwxrwxrwx 5 root root 4096 2006-12-11 13:32 lib lrwxrwxrwx 1 root root 14 2006-12-30 02:10 linux-2.6.19.1 -> linux-2.6.19.1 -rw-rw-rw- 1 root root 75926 2006-12-11 13:32 MAINTAINERS -rw-rw-rw- 1 root root 50186 2006-12-11 13:32 Makefile drwxrwxrwx 2 root root 4096 2006-12-11 13:32 mm drwxrwxrwx 37 root root 4096 2006-12-11 13:32 net -rw-rw-rw- 1 root root 16538 2006-12-11 13:32 README -rw-rw-rw- 1 root root 3065 2006-12-11 13:32 REPORTING-BUGS drwxrwxrwx 9 root root 4096 2006-12-11 13:32 scripts drwxrwxrwx 4 root root 4096 2006-12-11 13:32 security drwxrwxrwx 17 root root 4096 2006-12-11 13:32 sound drwxrwxrwx 2 root root 4096 2006-12-11 13:32 usr Code: ls -la /usr/src/ Output: Code: total 83580 drwxrwsr-x 5 root src 4096 2006-12-30 02:04 . drwxr-xr-x 13 root root 4096 2006-12-30 03:22 .. lrwxrwxrwx 1 root src 14 2006-12-30 01:25 linux -> linux-2.6.19.1 drwxrwxrwx 20 root root 4096 2006-12-30 02:19 linux-2.6.19.1 -rw-r--r-- 1 root src 42731688 2006-12-11 13:40 linux-2.6.19.1.tar.bz2 -rw-r--r-- 1 root src 42731688 2006-12-11 13:40 linux-2.6.19.1.tar.bz2.1 drwxr-xr-x 19 root root 4096 2006-12-29 18:36 linux-headers-2.6.17-10 drwxr-xr-x 4 root root 4096 2006-12-29 18:37 linux-headers-2.6.17-10-generic If you are wondering why there are two of each bz2 file it's because like I said I did the process twice after I relieved the error initially thinking i may have typed something wrong the first time.
This looks strange, but I'm not sure if it is wrong... Did the commands Code: cp /boot/config-`uname -r` ./.config make menuconfig make-kpkg clean give back any errors?
Hi there. I'm getting exactly the same problem trying to compile 2.6.19.2 under Ubuntu 6.10. Code: ls -la /usr/src/linux/ gives Code: total 444 drwxr-xr-x 20 root root 4096 2007-01-23 02:19 . drwxrwsr-x 7 root src 4096 2007-01-23 02:16 .. drwxr-xr-x 27 root root 4096 2007-01-10 19:10 arch drwxr-xr-x 2 root root 4096 2007-01-10 19:10 block -rw-r--r-- 1 root root 75481 2007-01-23 02:17 .config -rw-r--r-- 1 root root 18693 2007-01-10 19:10 COPYING -rw-r--r-- 1 root root 90307 2007-01-10 19:10 CREDITS drwxr-xr-x 2 root root 4096 2007-01-10 19:10 crypto drwxr-xr-x 10 root root 4096 2007-01-23 02:19 debian drwxr-xr-x 59 root root 4096 2007-01-10 19:10 Documentation drwxr-xr-x 62 root root 4096 2007-01-10 19:10 drivers drwxr-xr-x 63 root root 4096 2007-01-10 19:10 fs -rw-r--r-- 1 root root 547 2007-01-10 19:10 .gitignore drwxr-xr-x 43 root root 4096 2007-01-23 02:19 include drwxr-xr-x 2 root root 4096 2007-01-10 19:10 init drwxr-xr-x 2 root root 4096 2007-01-10 19:10 ipc -rw-r--r-- 1 root root 1262 2007-01-10 19:10 Kbuild drwxr-xr-x 5 root root 4096 2007-01-10 19:10 kernel drwxr-xr-x 5 root root 4096 2007-01-10 19:10 lib -rw-r--r-- 1 root root 75926 2007-01-10 19:10 MAINTAINERS -rw-r--r-- 1 root root 50186 2007-01-10 19:10 Makefile drwxr-xr-x 2 root root 4096 2007-01-10 19:10 mm drwxr-xr-x 37 root root 4096 2007-01-10 19:10 net -rw-r--r-- 1 root root 16538 2007-01-10 19:10 README -rw-r--r-- 1 root root 3065 2007-01-10 19:10 REPORTING-BUGS drwxr-xr-x 9 root root 4096 2007-01-10 19:10 scripts drwxr-xr-x 4 root root 4096 2007-01-10 19:10 security drwxr-xr-x 17 root root 4096 2007-01-10 19:10 sound drwxr-xr-x 2 root root 4096 2007-01-10 19:10 usr and Code: ls -la /usr/src/ gives Code: total 42700 drwxrwsr-x 7 root src 4096 2007-01-23 02:16 . drwxr-xr-x 13 root root 4096 2007-01-14 20:52 .. drwxr-sr-x 2 root src 4096 2007-01-14 18:48 ati -rw-r--r-- 1 root src 235550 2007-01-14 23:03 fglrx-kernel-2.6.17-10-generic_8.32.5-1+2.6.17.1-10.34_i386.deb -rw-rw-r-- 1 root root 669815 2007-01-14 18:37 fglrx.tar.bz2 lrwxrwxrwx 1 root src 14 2007-01-23 02:16 linux -> linux-2.6.19.2 drwxr-xr-x 20 root root 4096 2007-01-23 02:19 linux-2.6.19.2 -rw-r--r-- 1 root src 42729366 2007-01-10 19:50 linux-2.6.19.2.tar.bz2 drwxr-xr-x 19 root root 4096 2007-01-08 20:08 linux-headers-2.6.17-10 drwxr-xr-x 4 root root 4096 2007-01-23 01:51 linux-headers-2.6.17-10-generic drwxr-xr-x 3 root src 4096 2007-01-14 18:37 modules The other three commands gave no errors. make-kpgk is rather noisy, though, so it might be complaining in ways I don't understand. Here's the output from that... Code: root@rupert-laptop:/usr/src/linux# make-kpkg clean exec debian/rules DEBIAN_REVISION=5:10.Custom clean ====== making target CLN-common [new prereqs: testdir]====== ====== making target CLN-common [new prereqs: ]====== /usr/bin/make -f ./debian/rules real_stamp_clean make[1]: Entering directory `/usr/src/linux-2.6.19.2' ====== making target real_stamp_clean [new prereqs: ]====== running clean test ! -f .config || cp -pf .config config.precious test ! -f Makefile || \ /usr/bin/make ARCH=i386 distclean make[2]: Entering directory `/usr/src/linux-2.6.19.2' CLEAN scripts/basic CLEAN scripts/kconfig CLEAN /usr/src/linux-2.6.19.2/debian/ CLEAN include/config CLEAN .config include/linux/autoconf.h make[2]: Leaving directory `/usr/src/linux-2.6.19.2' test ! -f config.precious || mv -f config.precious .config test ! -f stamp-patch || /usr/bin/make -f ./debian/rules unpatch_now test -f stamp-building || test -f debian/official || rm -rf debian # work around idiocy in recent kernel versions test ! -e scripts/package/builddeb.dist || \ mv -f scripts/package/builddeb.dist scripts/package/builddeb test ! -e scripts/package/Makefile.dist || \ mv -f scripts/package/Makefile.dist scripts/package/Makefile rm -f modules/modversions.h modules/ksyms.ver debian/files conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches debian/buildinfo stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian stamp-arch-conf stamp-indep-conf stamp-configure-arch stamp-configure-indep stamp-configure stamp-arch-build stamp-indep-build stamp-build-arch stamp-build-indep stamp-build stamp-arch-inst stamp-indep-inst stamp-install stamp-install-arch stamp-install-indep stamp-arch-bin stamp-indep-bin stamp-binary stamp-binary-arch stamp-binary-indep debian/stamp-kernel-conf debian/stamp-prepare stamp-patch debian/stamp-conf stamp-debian debian/stamp-build-kernel stamp-buildpackage stamp-kernel-source stamp-kernel-manual stamp-kernel-doc stamp-kernel-headers stamp-kernel-image rm -rf /usr/src/linux/debian/tmp_man make[1]: Leaving directory `/usr/src/linux-2.6.19.2' ====== making target CLN-indep [new prereqs: CLN-common]====== ====== making target CLEAN/linux-source-2.6.19.2-rutest [new prereqs: CLN-indep]====== ====== making target CLEAN/linux-doc-2.6.19.2-rutest [new prereqs: CLN-indep]====== ====== making target CLEAN/linux-manual-2.6.19.2-rutest [new prereqs: CLN-indep]====== ====== making target clean-indep [new prereqs: linux-source-2.6.19.2-rutest linux-doc-2.6.19.2-rutest linux-manual-2.6.19.2-rutest]====== ====== making target CLN-arch [new prereqs: CLN-common]====== ====== making target CLEAN/linux-headers-2.6.19.2-rutest [new prereqs: CLN-arch]====== ====== making target CLEAN/linux-image-2.6.19.2-rutest [new prereqs: CLN-arch]====== ====== making target CLEAN/linux-uml-2.6.19.2-rutest [new prereqs: CLN-arch]====== ====== making target CLEAN/linux-image-xen0-2.6.19.2-rutest [new prereqs: CLN-arch]====== ====== making target CLEAN/linux-image-xenu-2.6.19.2-rutest [new prereqs: CLN-arch]====== ====== making target CLEAN/linux-image-kdump [new prereqs: CLN-arch]====== ====== making target clean-arch [new prereqs: linux-headers-2.6.19.2-rutest linux-image-2.6.19.2-rutest linux-uml-2.6.19.2-rutest linux-image-xen0-2.6.19.2-rutest linux-image-xenu-2.6.19.2-rutest linux-image-kdump]====== ====== making target stamp-clean [new prereqs: clean-indep clean-arch]====== rm -f modules/modversions.h modules/ksyms.ver debian/files conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches debian/buildinfo stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian stamp-arch-conf stamp-indep-conf stamp-configure-arch stamp-configure-indep stamp-configure stamp-arch-build stamp-indep-build stamp-build-arch stamp-build-indep stamp-build stamp-arch-inst stamp-indep-inst stamp-install stamp-install-arch stamp-install-indep stamp-arch-bin stamp-indep-bin stamp-binary stamp-binary-arch stamp-binary-indep debian/stamp-kernel-conf debian/stamp-prepare stamp-patch debian/stamp-conf stamp-debian debian/stamp-build-kernel stamp-buildpackage stamp-kernel-source stamp-kernel-manual stamp-kernel-doc stamp-kernel-headers stamp-kernel-image rm -rf /usr/src/linux/debian/tmp_man rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \ -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ -o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS ====== making target clean [new prereqs: stamp-clean]====== And I might as well give you the output from the final, failed recompile! Code: root@rupert-laptop:/usr/src/linux# fakeroot make-kpkg --initrd --append-to-version=-rutest exec make -f /usr/share/kernel-package/ruleset/minimal.mk debian APPEND_TO_VERSION=-rutest INITRD=YES ====== making target minimal_debian [new prereqs: ]====== This is kernel package version . test -d debian || mkdir debian test ! -e stamp-building || rm -f stamp-building test -f debian/control || sed -e 's/=V/2.6.19.2-rutest/g' \ -e 's/=D/2.6.19.2-rutest-10.00.Custom/g' -e 's/=A/i386/g' \ -e 's/=SA//g' -e 's/=L/ /g' \ -e 's/=I//g' \ -e 's/=CV/2.6/g' \ -e 's/=M/Unknown Kernel Package Maintainer <[email protected]>/g' \ -e 's/=ST/linux/g' -e 's/=B/i386/g' \ /usr/share/kernel-package/Control > debian/control test -f debian/changelog || sed -e 's/=V/2.6.19.2-rutest/g' \ -e 's/=D/2.6.19.2-rutest-10.00.Custom/g' -e 's/=A/i386/g' \ -e 's/=ST/linux/g' -e 's/=B/i386/g' \ -e 's/=M/Unknown Kernel Package Maintainer <[email protected]>/g' \ /usr/share/kernel-package/changelog > debian/changelog install -p -m 755 /usr/share/kernel-package/rules debian/rules for file in ChangeLog Control Control.bin86 config templates.in rules; do \ cp -f /usr/share/kernel-package/$file ./debian/; \ done for dir in Config docs examples ruleset scripts pkg po; do \ cp -af /usr/share/kernel-package/$dir ./debian/; \ done test -d ./debian/stamps || mkdir debian/stamps exec debian/rules APPEND_TO_VERSION=-rutest INITRD=YES nothing to be done. root@rupert-laptop:/usr/src/linux# Any help much appreciated Rupert
Is it possible you tried to compile the kernel multiple times? Each time a compilation fails or is aborted by you and before you try another compilation, you must run Code: make clean && make mrproper in the /usr/src/linux/ directory.
Thanks for that. I ran that command line and repeated the process from stage 5 onwards, but it still ends up with "nothing to be done". Rupert
I deleted everything and started from scratch, and this time it worked (it's compiling as I write - although it has yet to complete, it didn't crash out as before). The reason the original compile failed was, I now discover, my mistake. In the line Code: fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers I misread your instruction that "After --append-to-version= you can write any string that helps you identify the kernel, but it must begin with a minus (-) and must not contain whitespace.", and also removed the kernel_image and kernel_headers parameters when I edited the text of the append switch. A little more care, and all is well! Thanks for your help Rupert
issue compiling kernel 2.6.22.3 in Debian 4.0 I have having the same issues mentioned in this thread. I get the "Nothing to be done" error. I think its because of this command and that I am entering it in the wrong way perhaps?: Code: fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers Can someone please examplify how this command should be entered. In the tutorial it says "After --append-to-version= you can write any string that helps you identify the kernel, but it must begin with a minus (-) and must not contain whitespace." Feel free to use whatever string you like for the sake of the example. Thx, /magic
You must enter the command exactly as shown in the example. You can replace -custom with any string you like, but it must begin with a -, e.g.: Code: fakeroot make-kpkg --initrd --append-to-version=-example kernel_image kernel_headers
nothing to be done Sorry to post to such an old thread, but i'm facing the same problem. running ubuntu 9.10 x64 Code: fakeroot make-kpkg --initrd --append-to-version=- Gives the output : Code: make[1]: Leaving directory `/usr/src/linux-2.6.33' echo done > debian/stamp/conf/minimal_debian exec debian/rules APPEND_TO_VERSION=-linux-2.6.33 INITRD=YES nothing to be done. Yes. 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 Commands: Code: cp /boot/config-`uname -r` ./.config make menuconfig make-kpkg clean gave no errors. & i executed Code: make clean && make mrproper in the /usr/src/linux directory & then deleted the linux directory & started over. same problem. the weird part is, i compiler & ran the 2.6.32.3 kernel the same way & it worked fine..! any help/suggestions? any other way i can recompile the kernel?