my care2
make a difference

community & fun

groups

get together & make a difference

 
 
Kernel Compiling August 21, 2005 9:03 AM

Hi all, this is a very important topic in understanding how linux works, it is a monolithic structure and not a micro-kernel (whatever that means, lol)

You basically will have to compile a kernel sometime in your life if you are fiddling w/ Linux

Here is a website dedicated to the introduction of kernel concepts... KERNEL NEWBIES

http://www.kernelnewbies.org/
 [ send green star]
 
Here is their logo.. August 21, 2005 9:17 AM

should we steal it ??


 [ send green star]
 
 August 21, 2005 11:10 AM

Aw, cute!

Probably costs a fortune to feed, though. And where on earth do you get penguin milk from? OK, no need to answer that ...

That site looks quite interesting. The last "kernel newbies" site I came across was absolutely crammed with technocrap, guaranteed to send its intended audience into a blind panic. (That'd be a blind kernel panic, of course.)



Actually, compiling a kernel isn't all that difficult. Getting a new kernel to boot can be a bit fiddly, but all good things come to those who wait. Just take it slowly, and note down any changes you make.

 [ send green star]  [ accepted]
(Member Is Blocked)
 
Dont be shy August 21, 2005 4:32 PM

tell us more about your experience, how did you configure, install it, etc


 [ send green star]
 
 August 21, 2005 5:31 PM

I'm not shy - I just followed the instructions, that's all! I found them in a magazine, but they're readily available on the internet.

http://www.linuxplanet.com/linuxplanet/tutorials/202/1/
http://www.kernelnewbies.org/faq/index.php3#compile
http://doc.mandrivalinux.com/MandrakeLinux/100/en/Command-Line.html/compiling-kernel-chapter.html - I like this one, as it breaks it down into manageable chunks - and tells you to make plenty of coffee!

They do change slightly over time, so it's worth using instructions for your particular kernel.

It didn't help with my main challenge of the moment - those flippin' modems - but it's one way to find out what hardware is supported, and what your kernel can do. For example, there are several different options for PPP (Point-to-Point Protocol, which is how networks and internet access happen). Some Internet Service Providers insist on using one or another, or you might find that the only one that's automatically available doesn't work with your modem. So you can change the options, following the instructions to the very letter, and reboot with your very own personalised kernel.

Is that enough detail for now? Only, I'm in the middle of rehabilitating a transplanted AMD 64 ...

 [ send green star]  [ accepted]
(Member Is Blocked)
 
Here is another kernel compile site, September 01, 2005 3:59 PM

It is easy to read:

http://www.samspublishing.com/articles/article.asp?p=102205&seqNum=2&rl=1

 [ send green star]
 
 September 01, 2005 4:33 PM

Cheers, John!

I'll have to read the instructions very carefully before trying them out. I think I found an error in the ones I was using to compile Fedora Core 4; they said to move a directory, then copy something from it at its original location - like this:

# mv /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11 /usr/src/linux-2.6.11

Then, a couple of steps later:

# cp /usr/src/redhat/BUILD/kernel-2.6.11/linux-2.6.11/configs/
kernel-2.6.11-i686.config .config

So I put the kernel source back again, and symlinked it instead (ln -s in the first line instead of mv). And it still didn't work, because I appear to have a very small partition where a very large one should be.

I like Fedora, but am prepared to go off it for the sake of a quiet life. Or any life at all, really.  [ send green star]  [ accepted]
(Member Is Blocked)
 
v2.6.20 .... the SUPER February 08, 2007 1:44 AM

"L" kernel is in, alive & kicking!

Here's the url leading to a short decriptions from L. Torvald himself ~
http://www.linux-watch.com/news/NS5168864143.html


 [ send green star]  [ accepted]
 
kernel February 12, 2007 9:26 AM

I have not fooled around with kernel compilation in some time, so I'm a bit rusty. There was a time when I could create a 2.6.x bzImage, under 1.5 Mb, and have sound,video, lan, etc. Most of my experience is with Slackware and FreeBSD, I don't usually bother with mkinitrd, or creating symlinks all over the place. In earlier documentation Torvalds suggests building the kernel from the /home directory NOT /usr/src. If new kernel version.. cd /usr/src ; tar xvjf ; cd /usr/src/somekernel-2.x.x ; make mrproper ; make menuconfig ; (Tweak and go blind reading options) (or use pre-configured .config) save kernel configuration or load from an alternate file. make dep ; (2.4.x) make bzImage ; make modules ; make modules_install ; cp arch/i386/boot/bzImage /boot/reroll-2.x.x ; cp System.map /boot/System.map-reroll2.x.x ; cp .config /boot/config-reroll2.x.x ; pico /boot/grub/menu.lst ; ctrl o ctrl x Reboot into shiney new kernel and realize no net, no sound, no scsi, no this, no that.  [ send green star]
 
kernel February 12, 2007 10:01 AM

I am a control freak. That is why I like computers. I can push a button to silence them. To silence people, one must deliver a 9mm hollow point to the forehead. This behavior is not socially acceptable most of the time. I am a control freak. That is why I love Linux. When we get to ; pico /boot/grub/menu.lst. I want ... title Slack bareacpi.i root (hd0,2) kernel /boot/vmlinuz root=/dev/hda3 ro hdc=ide-scsi vga=normal to be copied and pasted to the stanza And then ... kernel /boot/vmlinuz root=/dev/hda3 ro hdc=ide-scsi vga=normal To be edited to suit. kernel /boot/mynewkernel "Automagically". I watch my system do things like this every day and soon I will start really paying attention to what's going on, so I can do it too.  [ send green star]
 
  New Topic              Back To Topics Read Code of Conduct

 

This group:
Empathic Internet
122 Members

View All Topics
New Topic

Track Topic
Mail Preferences


Copyright © 2009 Care2.com, inc. and its licensors. All rights reserved