DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Where can I find kernel source tree PACKAGE that was used to build the Debian 4 lenny/sid image that I selected at installtime via "tiny USB" netinst boot.
see below...(using 2.6.18-6-k7).
thanks!
Code:
$ uname -a
Linux desktop 2.6.18-6-k7 #1 SMP Sun Feb 10 22:16:15 UTC 2008 i686 GNU/Linux
$ dpkg -l | grep 2.6.18-6-k7
ii linux-image-2.6.18-6-k7 2.6.18.dfsg.1-18etch1 Linux 2.6.18 image on AMD K7
$ apt-cache search 2.6.18-6-k7
gspca-modules-2.6.18-6-k7 - gspca video for linux (v4l) driver modules for Linux 2.6.18 on AMD K7
linux-headers-2.6.18-6-k7 - Header files for Linux 2.6.18 on AMD K7
linux-image-2.6.18-6-k7 - Linux 2.6.18 image on AMD K7
loop-aes-modules-2.6.18-6-k7 - loop-AES encryption modules for Linux 2.6.18 on AMD K7
redhat-cluster-modules-2.6.18-6-k7 - Redhat Cluster infrastructure modules for Linux 2.6.18 on AMD K7
squashfs-modules-2.6.18-6-k7 - Squash filesystem modules for Linux 2.6.18 on AMD K7
unionfs-modules-2.6.18-6-k7 - Unionfs modules for Linux 2.6.18 on AMD K7
$ cat /etc/apt/sources.list
# deb http://debian.virginmedia.com/ etch main
deb http://debian.virginmedia.com/ testing main contrib non-free
deb-src http://debian.virginmedia.com/ testing main contrib non-free
deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main
Last edited by keratos; 03-28-2008 at 09:45 AM.
Reason: SOLVED
I may be wrong, but I think that it is almost that simple: the config is in the kernel package itself. The source is in the source. If you download the kernel and then copy the .config into the source package and do "make menuconfig", you should be where you want to be. Since you already have that kernel installed, all you need to do is this:
1: Boot into that kernel.
2: Apt-get or aptitude install the source package.
3: Untar the source. (I prefer to do it into my home directory in a folder called kernels, rather than to clutter up the /usr/src directory.)
4: cp /boot/config-$(uname -r) /path/to/src/.config
5: make menuconfig
That should get you going.
Edit - there's lots of "build kernels in Debian" links, but I like this one (as a description of what packages you should have installed if you want to build a kernel in Debian): http://technowizah.com/2005/12/debia...l-compile.html
Second edit - as far as I know, Debian doesn't provide or ship precisely what you want (the source + config for a specific kernel). It makes sense to me that they don't because the whole point of a precompiled kernel is that it's premade and a source package is often "build your own". That said, I get that you might want to start building your own from the -k7 kernel, but to do that, I'm pretty sure that you copy the config from your kernel over to the untarred source file. (Pretty sure because I have done exactly that myself.)
Last edited by Telemachos; 03-27-2008 at 07:52 AM.
Reason: Clarified what I meant
I may be wrong, but I think that it is almost that simple: the config is in the kernel package itself. The source is in the source. If you download the kernel and then copy the .config into the source package and do "make menuconfig", you should be where you want to be. Since you already have that kernel installed, all you need to do is this:
1: Boot into that kernel.
2: Apt-get or aptitude install the source package.
3: Untar the source. (I prefer to do it into my home directory in a folder called kernels, rather than to clutter up the /usr/src directory.)
4: cp /boot/config-$(uname -r) /path/to/src/.config
5: make menuconfig
That should get you going.
Edit - there's lots of "build kernels in Debian" links, but I like this one (as a description of what packages you should have installed if you want to build a kernel in Debian): http://technowizah.com/2005/12/debia...l-compile.html
Second edit - as far as I know, Debian doesn't provide or ship precisely what you want (the source + config for a specific kernel). It makes sense to me that they don't because the whole point of a precompiled kernel is that it's premade and a source package is often "build your own". That said, I get that you might want to start building your own from the -k7 kernel, but to do that, I'm pretty sure that you copy the config from your kernel over to the untarred source file. (Pretty sure because I have done exactly that myself.)
It was my mirror. Some packages not available.
I managed to get the linux-2.6(.22) package plus the patches upto 2.6.22.8 then deselect down to 2.6.22.3. I wanted to rebuild this kernel using customisation from deb + my own drivers for a serial device I've built (house burglar alarm).Also thrown in a few optimisations and preemptive scheduling plus a new queueing method.
Runs superbly fast now, better than Arch and Vector on same machine.
I managed to get the linux-2.6(.22) package plus the patches upto 2.6.22.8 then deselect down to 2.6.22.3.
Yeah, I don't think I get that at all. Let me try to recap. Originally you wanted the source for the 2.6.18-k7 kernel. In fact, you "required" the package and .config for that specific kernel, but (you say) your mirror has some packages not available. Luckily, you managed to get the sources for 2.6.22 kernel (not -k7 of course, because as I said there are no separate -k7 sources). Huh?
Here's a search from http://packages.debian.org of the debian provided sources: http://packages.debian.org/search?keywords=linux-source The Etch repos have the 2.6.18 sources, and you seem to have upgraded to Lenny. So I'm guessing that your mirror has no problem at all. Because you have Lenny repos in your /etc/apt/sources.list, you can see (and get) the 2.6.22 kernel source but not the 2.6.18 sources. In any event, if you're happy with your kernel, no worries.
Quote:
Originally Posted by keratos
<snip>
p.s. its better to use apt-get source
..for source packages
;-)
Nope: you can install source packages just fine with aptitude.
Edit - I just noticed that your sources are Lenny (testing), but you are still getting Etch security upgrades. You should switch that so that they match. If you get Lenny packages, you want Lenny security fixes.
Last edited by Telemachos; 03-27-2008 at 11:20 PM.
Yeah, I don't think I get that at all. Let me try to recap. Originally you wanted the source for the 2.6.18-k7 kernel. In fact, you "required" the package and .config for that specific kernel, but (you say) your mirror has some packages not available. Luckily, you managed to get the sources for 2.6.22 kernel (not -k7 of course, because as I said there are no separate -k7 sources). Huh?
thats about it, yep. I've moved from Gentoo to Deb (too much infighting within the former for my liking) and just getting used to Deb aptitude.
What seems to be the issue is that deb trees only maintain stable versions in a single source tree and deliver unstable through his through the patch system (via patch packages) which must be used to upgrade/downgrade to a specific patch release. So, in my case, it was possible for me to acquire 2.6.22 however the patch (.3) and the arch (-k7) had to be specified in the make-kpkg command. With hindsight, this isnt really an "issue" once one considers the benefits of maintaining only single source tree with patch system - very efficient !
Anyway, all done now and I have to say, once mastered, the system is far more robust , clean and repeatable than the portage system so in that regard, "Respect to Deb".
Quote:
Originally Posted by Telemachos
...have the 2.6.18 sources, and you seem to have upgraded to Lenny. So I'm guessing that your mirror has no problem at all. Because you have Lenny repos in your /etc/apt/sources.list, you can see (and get) the 2.6.22 kernel source but not the 2.6.18 sources. In any event, if you're happy with your kernel, no worries.
Correct again! My mirror had some issues in that certain packages were available, but others were not. Clearly it was more smoke than mirror!! Anyway, I changed to ukdebian.mirror.anlx.net which seems to be current - and quick!
Quote:
Originally Posted by Telemachos
Nope: you can install source packages just fine with aptitude.
Mmm. Whats the difference then?
Quote:
Originally Posted by Telemachos
I just noticed that your sources are Lenny (testing), but you are still getting Etch security upgrades. You should switch that so that they match. If you get Lenny packages, you want Lenny security fixes.
Correct! Again!! I will update - I wasnt sure how this worked. Thanks for clarifying.
Ah , all is clearer now. Many thanks for the education and advice, all appreciated because whilst I'm at home with the compiler/linker/kernel, the deb system is new territory and in that respect I thank you for your time. ;-)
Question then, if I may:
make-kpkg takes a target argument. If I want to build kernel_image and kernel_source, is there a target that can do this. Currently the binary target builds seems to build an independent arch (not what I want) and there doesnt seem to be a combined target for these to (image & source) targets ?? I could always change the Makefiles, but was wondering if there is some other package I could use ???
hi all
I am upgrading the knoppix 5.1.1 kernel to kernel version 2.6.23.12.I am getting error in lilo.conf when i type dpkg -i <kernel image>.Can anyone provide me the steps to follow for kernel upgrade. The lilo.conf error is,
Fatal: Trying to map files from unnamed device 0x0010 (NFS/RAID mirror down ?)
I've moved from Gentoo to Deb (too much infighting within the former for my liking) and just getting used to Deb aptitude.
Welcome to Debian.
Quote:
Originally Posted by keratos
Question then, if I may: make-kpkg takes a target argument. If I want to build kernel_image and kernel_source, is there a target that can do this. Currently the binary target builds seems to build an independent arch (not what I want) and there doesnt seem to be a combined target for these to (image & source) targets ?? I could always change the Makefiles, but was wondering if there is some other package I could use ???
I'm not sure that I get exactly what you want, but it sounds to me like you want to use "make-kpkg binary-arch kernel_source" - the make-kpkg command can take more than one argument for its target. The "binary-arch" bit will give you an arch dependent kernel image deb and kernel headers deb, and kernel_source will give you the sources. If you don't need the headers, you can just do "make-kpkg kernel_image kernel_source". Check man make-kpkg for more (gory) details on valid targets. Also for more on Debian and the kernel, you might check this out: http://kernel-handbook.alioth.debian.org/
As far as aptitude vs. apt-get, that's a "third rail" question in Debian. Apt-get is the tried and true package manager (think portage, I suppose), and aptitude is the (relatively) new kid on the block. For installing a kernel source package, you can really use either. I wasn't really pushing you to use aptitude, I just thought that you were telling me not to use it. If you are curious about the differences, Google for "aptitude vs. apt-get" (or apt-get vs. aptitude). Here's one to look at: http://pthree.org/2007/08/12/aptitude-vs-apt-get/
hi all
I am upgrading the knoppix 5.1.1 kernel to kernel version 2.6.23.12.I am getting error in lilo.conf when i type dpkg -i <kernel image>.Can anyone provide me the steps to follow for kernel upgrade. The lilo.conf error is,
Fatal: Trying to map files from unnamed device 0x0010 (NFS/RAID mirror down ?)
I dont know why this comes.
post output of following commands (as "root" user):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.