USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Compiling my kernel

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands
View previous topic :: View next topic  
Author Message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Tue May 01, 2024 4:31 am    Post subject: Compiling my kernel Reply with quote

I'm learning to compile my kernel by using the info from several guides on the net, but I'm having trouble getting the syntax just right for the kernel itself ..
Here's some of the results of
Code:
apt-cache search kernel-source
Code:
kernel-source-2.2.25 - Linux kernel source for version 2.2.25
kernel-source-2.4.27 - Linux kernel source for version 2.4.27 with Debian patches
kernel-source-2.6.8 - Linux kernel source for version 2.6.8 with Debian patches

I've tried these different inputs with no good results:
Code:
root@libranet:/# apt-get install kernel-package kernel-source-2.4.27 kernel-image
Reading Package Lists... Done
Building Dependency Tree... Done
Package kernel-image is a virtual package provided by:
  kernel-image-2.6.8-3-k7-smp 2.6.8-16sarge6
  kernel-image-2.6.8-3-k7 2.6.8-16sarge6
  kernel-image-2.6.8-3-686-smp 2.6.8-16sarge6
  kernel-image-2.6.8-3-686 2.6.8-16sarge6
  kernel-image-2.6.8-3-386 2.6.8-16sarge6
  kernel-image-2.6.8-12-em64t-p4-smp 2.6.8-16sarge6
  kernel-image-2.6.8-12-em64t-p4 2.6.8-16sarge6
  kernel-image-2.6.8-12-amd64-k8-smp 2.6.8-16sarge6
  kernel-image-2.6.8-12-amd64-k8 2.6.8-16sarge6
  kernel-image-2.6.8-12-amd64-generic 2.6.8-16sarge6
  kernel-image-2.4.27-speakup 2.4.27-1.1sarge4
  kernel-image-2.4.27-3-k7-smp 2.4.27-10sarge5
  kernel-image-2.4.27-3-k7 2.4.27-10sarge5
  kernel-image-2.4.27-3-k6 2.4.27-10sarge5
  kernel-image-2.4.27-3-686-smp 2.4.27-10sarge5
  kernel-image-2.4.27-3-686 2.4.27-10sarge5
  kernel-image-2.4.27-3-586tsc 2.4.27-10sarge5
  kernel-image-2.4.27-3-386 2.4.27-10sarge5
You should explicitly select one to install.
E: Package kernel-image has no installation candidate
<snip><I made some typo's>
root@libranet:/# apt-get install kernel-package kernel-source-2.4.27-3-586tsc kernel-image
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-source-2.4.27-3-586tsc
root@libranet:/# apt-get install kernel-package kernel-source-2.4.27-3-586tsc 2.4.27-10sarge5 kernel-image
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-source-2.4.27-3-586tsc
root@libranet:/# apt-get install kernel-package kernel-source-2.4.27-3-686 kernel-image
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-source-2.4.27-3-686

By the way, I'm using Debian Etch (stable) repositories.
Can anyone tell me how to figure out the right syntax for the kernel command. If it's listed as a kernel, how come I can't find it? Right now I'm just trying to learn to build my own kernel - After I get that right, then I'll work on a 2.6.x kernel Wink. TIA



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
Stuka
Sr. Member


Joined: 15 Oct 2024
Posts: 1271
Location: Houston, TX

PostPosted: Tue May 01, 2024 5:04 am    Post subject: Reply with quote

If you're compiling your own, you don't want the kernel-image package - that's a built kernel. Also, the kernel-source package has JUST a version number, not an architecture (as that's determined by the compiler flags used). I *think* what you want is
Code:
apt-get install kernel-package kernel-source-2.4.27


Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Wed May 02, 2024 3:16 am    Post subject: Reply with quote

That didn't work either stuka Sad Sad
Code:
root@libranet:/home/jp# apt-get install kernel-package kernel-source-2-4-27
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-source-2-4-27
got any other ideas?

BTW stuka, I got the guide I'm following HERE Wink.



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Command Line Commands All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse