LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-27-2012, 01:46 AM   #1
mihai119
LQ Newbie
 
Registered: Aug 2012
Location: still on Earth
Distribution: Debi(l)an
Posts: 6

Rep: Reputation: Disabled
how to clean kernel & rest in order to use the config for a custom kernel


Hi,
I will try to be clear ... but even for me is not so clear ...
I want to "clean" & "set" all the options (module & so) for the actual kernel (3.2.0.3) in order to use the .config for a custom kernel (3.6.3) which is appropriate for Ivy Bridge hardware.
E.g.
The wlan card is recognized grace of a microcode loaded on install and a strange cascade loading
lsmod
iwlwifi 170823 0
mac80211 192768 1 iwlwifi
cfg80211 137140 2 mac80211,iwlwifi

modinfo iwlagn | grep firmware find (in double.?)
firmware: iwlwifi-2030-6.ucode
firmware: iwlwifi-2000-6.ucode

Could someone help me in order to put in appropriate files which modules MUST be loaded and Which must be blacklisted ?

thanks
 
Old 08-27-2012, 12:36 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Find and copy the .config file from the old kernel into the directory of the new kernel. Issue the following command (copy/paste!):
Code:
make rmproper && make oldconfig && make clean && make && make install && make modules && make modules_install && mkinitramfs -o /boot/initrd.img-3.6.3 3.6.3 && update-grub
The long line of code does everything you need, including compiling the kernel, making an initrd image to boot from and updating your Grub2 config. Mind that at one point, it'll ask you to choose for new(-ish) configuration-options that aren't in the old .config file. Just press enter until done, it'll automagically accept the (sensible) default values.
 
Old 08-27-2012, 01:20 PM   #3
mihai119
LQ Newbie
 
Registered: Aug 2012
Location: still on Earth
Distribution: Debi(l)an
Posts: 6

Original Poster
Rep: Reputation: Disabled
the (this) code perhaps I will be able to find it ... BUT

I don't know how to load the useful modules
and
to blacklist the wrong (not only this in fact)
AND
TO PUT ALL OF THIS IN "CURRENT CONFIG" IN ORDER TO BE REUSED BY THE NEW COMPILE

my modules & modules.conf are empty.
I gives one example
=> iwlagn load iwlwifi in order to load microcode firmware: iwlwifi-2030-6.ucode
how freeze this in config? eventually how put directly - iwlagn load microcode - in modules, in modules.conf in initrd and initramfs
AND THIS FOR ALL THE CURRENT SETTINGS IN ORDER TO NO MORE SEARCH AFTER NOUVEAU, ATI and s.o.

HOW? ONLY FOR THE MODULES you have something like (from google arch, wiki.debian, ubuntu ...)
------------
to update modules.conf must use update-modules
=> NO IS Obsolete, must use module-init-tools, module-init-tools-udeb
=> No IS Obsolete, will be / have kmod

apt-get install kmod
Reading package lists... Done
Building dependency tree
Reading state information... Done
kmod is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
man kmod
No manual entry for kmod
See 'man 7 undocumented' for help when manual pages are not available.


I don't understand HOW.
Normally, I must to load ONLY the useful modules and to blacklist the rest (HOW?).
After, to appropriate use the udev, udeb and s.o. (HOW?)
Thanks for the last code (I have used somehting close)
But could you PLEASE help me in this mess?
 
Old 08-27-2012, 09:01 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
No need to shout (using capital letters is considered shouting!)...

You're making things way too difficult for your knowledge level. First, tell us why you want what you (appear) to request, because the stuff you mention is really sophisticated stuff aimed for the kernel dev's rather then regular users. Point is, the kernel is smart, very smart: it won't load modules it wouldn't need. But when you change hardware (it's not a matter of if but when!) you wouldn't want to compile the entire kernel again, with the risk you can't because you're missing essential drivers, so it's wise to have a fair number of modules ready and waiting, in case you need them. If you're after firmware drivers et all, install the appropriate package(s) from the non-free repository.

Compile a basic, stock kernel first and learn from it. Then repeat, to learn more. Then tweak the config file via the available GUI's (make menuconfig, make xconfig, assuming you have the required dependencies installed). Just copy/paste the commandline I gave you before, it does the job for you.
 
Old 08-28-2012, 07:53 AM   #5
mihai119
LQ Newbie
 
Registered: Aug 2012
Location: still on Earth
Distribution: Debi(l)an
Posts: 6

Original Poster
Rep: Reputation: Disabled
sorry ...

my new laptop is an Ivy Bridge (MSI Clone)
with difficulties I forced on testing install to recognize the wifi
the wlan (Atheros E2200) are not, they are many problems (freeze ...) and I understood from the bugs report - some of them are solved in the new 3.6 kernel
I have done a custom kernel 3.6.0-rc1 and is more stable but other pb still remains
What I want to know from the experts:
- I must to configure the current install for the current debian supported kernel (3.2.0-3) and that means ... modules ... init ...
after / or
- I try the new released kernel and I compile until I obtain something good ...

for myself the actual doc is a mess because I can't understood ...
e.g.
the explanation for the intel microcode was:
- is loaded by kernel - module iwlagn => after iwlwifi ... and it must to be like that (conf. intel doc's)
in 3.2 kernel iwlagn are loaded and modinfo iwlagn | grep firmware return firmware
but in 3.6 iwlagn are no more loaded and iwlwifi return firmware

they are also the stuff for usb 3.0 and so
how can clean the 3.2 kernel, config & install?
how can re-use the config for the new one?
thanks at for your amiability
 
Old 08-28-2012, 01:55 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Follow this page step by step:
http://www.debian.org/releases/testi...h08s06.html.en

Just replace the instance "2.6.32" for the kernel with "3.6" instead, as that's what you're using. Also, read:
http://www.debian.org/doc/manuals/de...kernel.en.html
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto match custom kernel config to my laptop and friends SaintDanBert Ubuntu 7 09-11-2010 02:30 PM
kernel & modules always compile from beginning, without make clean lazyart Linux - Kernel 3 03-13-2010 09:27 AM
Finding config options for modues found by lsmod to build custom kernel jiobo Linux - Kernel 0 01-02-2009 12:08 AM
custom kernel && apt-get upgrade props666999 Debian 5 08-01-2008 06:03 PM
Linuxant custom kernel & lirc houston1981 Linux - Software 1 03-09-2005 03:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration