kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Problem in configuring the kernel
@ 2011-11-06 12:59 Naman Shekhar Mishra
  2011-11-06 16:20 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Naman Shekhar Mishra @ 2011-11-06 12:59 UTC (permalink / raw)
  To: kernelnewbies

I have been trying to configure the kernel for my Lenovo 300 N100 machine.
First I tried to use:

    $make defconfig

but this doesn't work and there is a kernel panic when I boot with the new
kernel.

Then I used the configuration file that came with the Ubuntu distribution
and it ran just fine, but the problem is that it takes TOO long to compile
with that configuration.


 What I want is a minimum configuration which runs the hardware on my
machine.

I looked up "Linux Kernel in a Nutshell" and ran a script which looks
through the hardware and shows only the modules I want to be using

        #!/bin/bash
        #
        # find_all_modules.sh
        #
        for i in `find /sys/ -name modalias -exec cat {} \;`; do
            /sbin/modprobe --config /dev/null --show-depends $i ;
        done | rev | cut -f 1 -d '/' | rev | sort -u


 I have attached the output of the script if anyone wants to check what
modules it showed.

So I once again started the configuration:
    $make defconfig
to get a base configuration and then enabled[m] the configuration option
for each module as demonstrated in the book.
But, for some modules there was no configuration option. And for the rest,
the option was already enabled by defconfig.
When I booted with this new kernel, the kernel panicked.

Please tell me how to make the kernel work for my particular machine.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111106/f596397c/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output
Type: application/octet-stream
Size: 775 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111106/f596397c/attachment.obj 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Problem in configuring the kernel
  2011-11-06 12:59 Problem in configuring the kernel Naman Shekhar Mishra
@ 2011-11-06 16:20 ` Greg KH
       [not found]   ` <CABdVG0ta+pLfDCWYcbX7_0X56OW6yBfYbwztLubbz72qg4ZL2A@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2011-11-06 16:20 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Nov 06, 2011 at 06:29:14PM +0530, Naman Shekhar Mishra wrote:
> I have been trying to configure the kernel for my Lenovo 300 N100 machine.
> First I tried to use:
> 
> ??? $make defconfig
> 
> but this doesn't work and there is a kernel panic when I boot with the new
> kernel.

What panic is it?

> Then I used the configuration file that came with the Ubuntu distribution and
> it ran just fine, but the problem is that it takes TOO long to compile with
> that configuration.
> 
> 
> What I want is a minimum configuration which runs the hardware on my machine.
> 
> I looked up "Linux Kernel in a Nutshell" and ran a script which looks through
> the hardware and shows only the modules I want to be using

That was a good script a long time ago, but please use 'make localmodconfig'
based off of your working configuration file, which will be much faster
to build.

Hope this helps,

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Problem in configuring the kernel
       [not found]       ` <CABdVG0uytuXTXk-iQQa1812kCZWSZAT+TouFe-wJHr6p9t7KQw@mail.gmail.com>
@ 2011-11-06 16:58         ` Naman Shekhar Mishra
  0 siblings, 0 replies; 3+ messages in thread
From: Naman Shekhar Mishra @ 2011-11-06 16:58 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Nov 6, 2011 at 10:13 PM, Naman Shekhar Mishra <
mishra123.naman@gmail.com> wrote:

>
>
> On Sun, Nov 6, 2011 at 10:10 PM, Greg KH <greg@kroah.com> wrote:
>
>> On Sun, Nov 06, 2011 at 10:00:44PM +0530, Naman Shekhar Mishra wrote:
>>
>> <snip>
>>
>> For some reason you sent this only to me, which is a bit rude to
>> everyone else on the mailing list.  I'll be glad to respond if you
>> resend it to everyone.
>>
>> thanks,
>>
>> greg k-h
>>
>
> I am really sorry, I am new to this mailing list :). I will keep it in
> mind... but can you please help me out here. I am really trying to get this
> thing working
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20111106/1d05c200/attachment.html 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-06 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-06 12:59 Problem in configuring the kernel Naman Shekhar Mishra
2011-11-06 16:20 ` Greg KH
     [not found]   ` <CABdVG0ta+pLfDCWYcbX7_0X56OW6yBfYbwztLubbz72qg4ZL2A@mail.gmail.com>
     [not found]     ` <20111106164031.GA31158@kroah.com>
     [not found]       ` <CABdVG0uytuXTXk-iQQa1812kCZWSZAT+TouFe-wJHr6p9t7KQw@mail.gmail.com>
2011-11-06 16:58         ` Naman Shekhar Mishra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).