<p id="yui_3_2_0_14_132058297325240">I have been trying to configure the kernel for my Lenovo 300 N100 machine.<br id="yui_3_2_0_14_1320582973252621">
First I tried to use:</p>
<p id="yui_3_2_0_14_132058297325278"><span id="yui_3_2_0_14_1320582973252105" class="tab"> $</span>make defconfig</p>
<p id="yui_3_2_0_14_1320582973252106">but this doesn't work and there is a kernel panic when I boot with the new kernel.</p>
<p id="yui_3_2_0_14_1320582973252125">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.</p>
<p id="yui_3_2_0_14_1320582973252202"><br>
</p>
<p id="yui_3_2_0_14_1320582973252203">What I want is a minimum configuration which runs the hardware on my machine.</p>
<p id="yui_3_2_0_14_1320582973252241">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</p>
<p id="yui_3_2_0_14_1320582973252288"><span id="yui_3_2_0_14_1320582973252293" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab"> #!/bin/bash<br>
</span><span id="yui_3_2_0_14_1320582973252315" class="tab"> </span><span id="yui_3_2_0_14_1320582973252320" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab">#<br>
</span><span id="yui_3_2_0_14_1320582973252325" class="tab"> </span><span id="yui_3_2_0_14_1320582973252330" class="tab"> </span><span id="yui_3_2_0_14_1320582973252325" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab"># find_all_modules.sh<br>
</span><span id="yui_3_2_0_14_1320582973252335" class="tab"> </span><span id="yui_3_2_0_14_1320582973252340" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab">#<br>
</span><span id="yui_3_2_0_14_1320582973252345" class="tab"> </span><span id="yui_3_2_0_14_1320582973252350" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab">for i in `find /sys/ -name modalias -exec cat {} \;`; do<br>
</span><span id="yui_3_2_0_14_1320582973252355" class="tab"> </span><span id="yui_3_2_0_14_1320582973252360" class="tab"> </span><span id="yui_3_2_0_14_1320582973252365" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab">/sbin/modprobe --config /dev/null --show-depends $i ;<br>
</span><span id="yui_3_2_0_14_1320582973252370" class="tab"> </span><span id="yui_3_2_0_14_1320582973252375" class="tab"> </span><span id="yui_3_2_0_14_1320582973252298" class="tab">done | rev | cut -f 1 -d '/' | rev | sort -u</span></p>
<p id="yui_3_2_0_14_1320582973252376"><span id="yui_3_2_0_14_1320582973252467" class="tab"> </span><span id="yui_3_2_0_14_1320582973252472" class="tab"> </span><br>
<span id="yui_3_2_0_14_1320582973252298" class="tab"></span></p>
I have attached the output of the script if anyone wants to check what modules it showed.<br>
<br>
So I once again started the configuration:<br>
<span id="yui_3_2_0_14_1320582973252442" class="tab"> $make defconfig<br>
to get a base configuration and then enabled[m] the configuration option for each module as demonstrated in the book.<br>
But, for some modules there was no configuration option. And for the rest, the option was already enabled by defconfig.<br>
When I booted with this new kernel, the kernel panicked.<br>
<br>
Please tell me how to make the kernel work for my particular machine.<br>
Regards<br>
</span>
<p id="yui_3_2_0_14_1320582973252390"><span id="yui_3_2_0_14_1320582973252400" class="tab"><br>
</span></p>
<p id="yui_3_2_0_14_1320582973252380"><span id="yui_3_2_0_14_1320582973252385" class="tab"> </span><span id="yui_3_2_0_14_1320582973252479" class="tab"> <br>
</span></p>