Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Custom laptop kernel configuration. N00b.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sat Apr 05, 2014 12:57 pm    Post subject: Custom laptop kernel configuration. N00b. Reply with quote

Hi. I made it to startup my xfce4 on my laptop. Seems like video driver no working properly, touchpad not working, brightness - mute keys not working but it's ok for now. First off all I want to make a right kernel configuration.
I am very confused with all this option with genkernel, custom kernel. customize the genkernel etc. How can I
1 ) download the latest gentoo kernel
2) link my gentoo new kernel to /usr/src/linux
3) configure my new kernel
4) install my new kernel on /boot
5) Delete all the useless genkernel etc (When my new kernel work properly)
Thank's in advance
_________________
Compile The Universe
Back to top
View user's profile Send private message
qrthur
n00b
n00b


Joined: 01 Apr 2014
Posts: 10

PostPosted: Sat Apr 05, 2014 1:37 pm    Post subject: Re: Custom laptop kernel configuration. N00b. Reply with quote

Hello !

1)
Code:
emerge gentoo-sources


2) when configured, compile kernel and its modules with
Code:
cd /usr/src/linux; make && make modules_install


3)
Code:
cd /usr/src/linux; make menuconfig


4)
Code:
cp /usr/src/linux/arch/<arch>/boot/bzImage /boot/<name of your kernel>


5) To clean the /usr/src/linux/ directory do
Code:
make clean
(or you could do a make mrproper, that clean everything from /usr/src/linux, but it also destroy your configuration file) And just delete unwanted images from your /boot/ directory

But you can find all of these information in the gentoo documentations.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sat Apr 05, 2014 1:46 pm    Post subject: Reply with quote

Hi qrthur :) Thanks for the response :)
I found this: https://wiki.gentoo.org/wiki/Kernel
My /usr/src/linux links to my latest kernel. I realized genkernel.
So I went to /usr/src/linux and I run
Code:
make xconfig

When I will finish I will run:
Code:
make
make modules_install
make install

Right?
And I will copy the bzimage on /boot
How can I update grub2 for my new kernel?
_________________
Compile The Universe
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Sat Apr 05, 2014 1:55 pm    Post subject: Reply with quote

check out grub2 wiki....

make install @ kernel sources copies vmlinuz-version to /boot
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sat Apr 05, 2014 2:07 pm    Post subject: Reply with quote

So Is no need to copy the bzimage. That's
Code:
make install
do automatically.
I foud this: http://wiki.gentoo.org/wiki/GRUB2_Quick_Start. The automatic configuration section. Is the way I made it during install :)
Ok. Let's get started :)
I want to hope that I will made it :)
_________________
Compile The Universe
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sat Apr 05, 2014 6:41 pm    Post subject: Reply with quote

I feel dizzy :( Is just Huge! And I don't understand nothing! When I made the same thing 4 years before, kernel was the half!!! What's all this new? I am almost 3-4 hours and I am not finished yet!!! And I am afraid If I get a kernel panic
_________________
Compile The Universe
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43183
Location: 56N 3W

PostPosted: Sat Apr 05, 2014 7:50 pm    Post subject: Reply with quote

sk8harddiefast,

You will be in good company if you get a kernel panic. Its happens to everyone from time to time.

Keep in mind, that if you do got a kernel panic, you don't start over, you build on what you have.
The panic message will help identify what you need to change in the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sat Apr 05, 2014 8:34 pm    Post subject: Reply with quote

If the kernel starts. If not? What we are doing there? Is something to save the mistake?
Also what module of the list to choose for my touchcreen of lenovo p400. I don't know which driver has. Anyone who could know?
_________________
Compile The Universe
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43183
Location: 56N 3W

PostPosted: Sat Apr 05, 2014 8:54 pm    Post subject: Reply with quote

sk8harddiefast,

Code:
lspci -k
run on the liveCD may help if its a PCI device.
Code:
lsusb
if its a USB device.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum