Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread Karanbir Singh
( I am not sure how your answer related to the Karthik's question since 
you can build all kernel.org release kernels as rpms, but here goes.. )

Shakthi Kannan wrote:
> It depends on what the user wants the kernel for. If the user wants to
> do device driver/kernel development, the developers insist to use
> stock kernels from kernel.org, not the distro kernels. The distro
> kernels are heavily patched by the distro kernel maintainers.

This is usually[1] not true with Rawhide since so much of kernel 
upstream is actually using it themselves. Not only kernel, a very large 
number of upstream work on the Linux platform is based on and around 
rawhide. You will also find that patches are regularly committed against 
older branches even at kernel.org

I am presently working on a 2.6.9 patch for ext4 that i hope to push 
upstream, since its likely to be of use to a lot of people. And I 
regularly sync Xen's 2.6.x patchset to 2.6.9. IF all development for 
everything only happened in Trunk/Head - things are going to get rather 
bleak for linux outside academic and developer communities.

> Patches/enhancements to the kernel are done against stock kernels, and
> may not apply cleanly to distro kernels.

Yes, but take that with a pinch of sald since this changes a lot - eg, a 
lot of enterprise grade h/w vendors ship drivers specific to a kabi used 
with the release, to avoid needing a ko rebuild every time the kernel 
updates. Some of these people ( 3ware and Areca are famous for this ) 
wont support your system running a kernel.org kernel at all.

On the other hand, a lot of functionality is built against a requirement 
( think ydl doing the ps3 stuff in linux ), and that development too 
happens against a static target then merged up later ( I am not sure if 
all the boot stuff even made it upstream as yet.. )

And if you just need to enable options in the kernel tree already 
running, nothing is easier than doing it via a manageable package route, 
makes maintaining it really easy.

anyway, i think this started out as a how-to-rebuild a kernel, and i 
still think if you are using Fedora, use the rawhide kernel. Or if you 
really cant wait 48 hrs or so, use the spec there to build a kernel.org 
image if you like.

- KB

[1] A lot of people working on the kernel actually prefer a semi stable 
kernel since that allows them to focus on what they are doing and the 
part of the source tree they are working with while keep an eye on 
changes that might affect them, they really dont want the daily patch 
grind stamping on their system regularly, or till merge anyway.

-- 
Karanbir Singh : http://www.karan.org/ : [EMAIL PROTECTED]

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread Shakthi Kannan
HI,

On 3/14/07, Karanbir Singh <[EMAIL PROTECTED]> wrote:
> Mahesh, while this most likely works in some places, I'd recommend you
> stick with the packaging and system management options that your distro
> was built for.

It depends on what the user wants the kernel for. If the user wants to
do device driver/kernel development, the developers insist to use
stock kernels from kernel.org, not the distro kernels. The distro
kernels are heavily patched by the distro kernel maintainers.

Patches/enhancements to the kernel are done against stock kernels, and
may not apply cleanly to distro kernels.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread Karanbir Singh
Mahesh T. Pai wrote:
> 
> 1. Read the Kernel-HOWTO. ;-)
> 2. copy /boot/config- to /usr/src/linux/
> 3. Re-read the Kernel-HOWTO
> 4. Say `make oldconfig' - this should give you a bloated, but working
>kernel. Answer the questions on the command line.
> 5. Compile the kernel.
> 
> Chances of success are more. Once you get hold of the process, start
> removing the unnecessary parts.
> 

Mahesh, while this most likely works in some places, I'd recommend you 
stick with the packaging and system management options that your distro 
was built for. in this case, its fedora so I recommend the op really 
uses the right tool to build the kernel.

something like : rpmbuild --rebuild 

- KB
-- 
Karanbir Singh : http://www.karan.org/ : [EMAIL PROTECTED]

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread Mahesh T. Pai
PJ <[EMAIL PROTECTED]> writes:

> Karthik Ramgopal <[EMAIL PROTECTED]> writes:
>
>> I am trying to compile 2.6.20 kernel on Fedora Core 6, and was
>> able to make menuconfig, make initrd, bzImage etc. I even added an
>> entry to grub.conf so that I could boot into it. Problem is that
>> kernel starts to boot, but hangs at loading system activity data
>> collector (sadc). After 5 mins, some garbled output appears and the
>> kernel panics, forcing me to reboot. The Fedora provided kernel
>> rpm's are till 2.6.19.2911 (Latest), and they work fine. What could
>> be the issue?
>
>
> You've probably configured your kernel wrong for the hardware. You
> may have removed options that are needed, or may have checked on
> options that can't work with the hardware you have. It may not have
> anything to do with the sadc.

Beginner's  short guide to recompiling the kernel.

1. Read the Kernel-HOWTO. ;-)
2. copy /boot/config- to /usr/src/linux/
3. Re-read the Kernel-HOWTO
4. Say `make oldconfig' - this should give you a bloated, but working
   kernel. Answer the questions on the command line.
5. Compile the kernel.

Chances of success are more. Once you get hold of the process, start
removing the unnecessary parts.

HTH.

-- 
 Mahesh T. Pai <<>> http://paivakil.blogspot.com/
E-mail tips
http://en.wikipedia.org/wiki/Netiquette


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread Sankarshan Mukhopadhyay
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Karanbir Singh wrote:
> Karthik Ramgopal wrote:
>> Hi,
>> I am trying to compile 2.6.20 kernel on Fedora Core 6, 
> 
> if you just need a newer kernel, try rawhide, that has pretty much the 
> latest stuff released and built.
> 

2.6.20-1.2986 is there in the rawhide and probably the latest

:SM

- --

You see things; and you say 'Why?';
But I dream things that never were;
and I say 'Why not?' - George Bernard Shaw
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFF9+UhXQZpNTcrCzMRApTYAJ9I4EMZglHFsBOJv1SSyuyF/WRo0ACdGqNn
kKeHL+9AM637PvV2h34lJ84=
=Hjvm
-END PGP SIGNATURE-

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread sandip
Karthik Ramgopal wrote:
> Hi,
> I am trying to compile 2.6.20 kernel on Fedora Core 6, and was able
> to make menuconfig, make initrd, bzImage etc. I even added an entry to
> grub.conf so that I could boot into it. Problem is that kernel starts to
> boot, but hangs at loading system activity data collector (sadc). After
> 5 mins, some garbled output appears and the kernel panics, forcing me to
> reboot. The Fedora provided kernel rpm's are till 2.6.19.2911 (Latest),
> and they work fine. What could be the issue?
>   
There are many reasons for kernel panics. It would be better if you can 
provide more details about your boot messages. It is hard to guess the 
problem with amount of info that you have provided.

but ...

What you can do is, If your other kernel is working fine, you can use 
it's config file to configure your new  kernel. Then, compile it. This 
should work.

-- 
Sandip ([EMAIL PROTECTED])
www.gnulinux.in


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-14 Thread PJ
Karthik Ramgopal <[EMAIL PROTECTED]> writes:

> I am trying to compile 2.6.20 kernel on Fedora Core 6, and was able
> to make menuconfig, make initrd, bzImage etc. I even added an entry to
> grub.conf so that I could boot into it. Problem is that kernel starts to
> boot, but hangs at loading system activity data collector (sadc). After
> 5 mins, some garbled output appears and the kernel panics, forcing me to
> reboot. The Fedora provided kernel rpm's are till 2.6.19.2911 (Latest),
> and they work fine. What could be the issue?


You've probably configured your kernel wrong for the hardware. You may have
removed options that are needed, or may have checked on options that can't work
with the hardware you have. It may not have anything to do with the sadc.

Tips to fix it: strip out cards, use modules, compare against a live cd.




___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Custom kernel compilation on Fedora Core 6

2007-03-13 Thread Karanbir Singh
Karthik Ramgopal wrote:
> Hi,
> I am trying to compile 2.6.20 kernel on Fedora Core 6, 

if you just need a newer kernel, try rawhide, that has pretty much the 
latest stuff released and built.

-- 
Karanbir Singh : http://www.karan.org/ : [EMAIL PROTECTED]

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


[ilugd] Custom kernel compilation on Fedora Core 6

2007-03-13 Thread Karthik Ramgopal
Hi,
I am trying to compile 2.6.20 kernel on Fedora Core 6, and was able
to make menuconfig, make initrd, bzImage etc. I even added an entry to
grub.conf so that I could boot into it. Problem is that kernel starts to
boot, but hangs at loading system activity data collector (sadc). After
5 mins, some garbled output appears and the kernel panics, forcing me to
reboot. The Fedora provided kernel rpm's are till 2.6.19.2911 (Latest),
and they work fine. What could be the issue?

This is unrelated, but just wanted to add..
People who feel that initrd booting is slow, can try initng (INIT New
generation) (It is new and still experimental). Boot time improves
tremendously (But some problems like proprietary ATI/Nvidia kernel
modules do not load). Jus do a yum install initng in Fedora 6.

Regards and Thanks in advance,
Karthik Ramgopal


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/