* Re: [gentoo-user] Anyone can afford information about build kernel?
2011-10-09 0:55 [gentoo-user] Anyone can afford information about build kernel? Lavender
@ 2011-10-09 1:19 ` Nick Khamis
2011-10-09 1:28 ` Dale
2011-10-09 1:39 ` Nilesh Govindarajan
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Nick Khamis @ 2011-10-09 1:19 UTC (permalink / raw
To: gentoo-user
cd /usr/src/linux
make menuconfig "select the list of modules/drivers you need for your box"
make modules_install
cp arch/i386/boot/bzImage /boot/kernel-2.6.3.<whatever you want to call it>
vi /boot/grub/grub.conf "nano if you have not used vi before"
<part of grub.conf>
title Gentoo Linux 2.6.36-r1
root (hd0,0)
kernel /boot/kernel-2.6.36-native-r3 root=/dev/sda3
reboot
If this is a fresh install, make mistakes, break your environment,
chroot into jail...This
is the only cure for your condition.
Nick.
On Sat, Oct 8, 2011 at 8:55 PM, Lavender <448463782@qq.com> wrote:
> It seems that no matter I build gentoo manually or with genkernel I can't
> have a fine-working kernel finally. Obviously I must solve it by myself , so
> I determined to build entire kernel all manually , it requests a lot of
> linux knowlege . All for that, I hope someone could tell me where to get
> this information , I haven't found them on gentoo.org , so please lead me to
> the correct direction, thank you for you all !
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Anyone can afford information about build kernel?
2011-10-09 1:19 ` Nick Khamis
@ 2011-10-09 1:28 ` Dale
0 siblings, 0 replies; 8+ messages in thread
From: Dale @ 2011-10-09 1:28 UTC (permalink / raw
To: gentoo-user
Nick Khamis wrote:
> cd /usr/src/linux
> make menuconfig "select the list of modules/drivers you need for your box"
> make modules_install
make && make modules_install
> cp arch/i386/boot/bzImage /boot/kernel-2.6.3.<whatever you want to call it>
> vi /boot/grub/grub.conf "nano if you have not used vi before"
>
> <part of grub.conf>
> title Gentoo Linux 2.6.36-r1
> root (hd0,0)
> kernel /boot/kernel-2.6.36-native-r3 root=/dev/sda3
>
> reboot
>
> If this is a fresh install, make mistakes, break your environment,
> chroot into jail...This
> is the only cure for your condition.
>
> Nick.
>
Dale
:-) :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Anyone can afford information about build kernel?
2011-10-09 0:55 [gentoo-user] Anyone can afford information about build kernel? Lavender
2011-10-09 1:19 ` Nick Khamis
@ 2011-10-09 1:39 ` Nilesh Govindarajan
2011-10-09 6:21 ` Volker Armin Hemmann
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Nilesh Govindarajan @ 2011-10-09 1:39 UTC (permalink / raw
To: gentoo-user
On 10/09/2011 06:25 AM, Lavender wrote:
> It seems that no matter I build gentoo manually or with genkernel I
> can't have a fine-working kernel finally. Obviously I must solve it by
> myself , so I determined to build entire kernel all manually , it
> requests a lot of linux knowlege . All for that, I hope someone could
> tell me where to get this information , I haven't found them on
> gentoo.org , so please lead me to the correct direction, thank you for
> you all !
If you're new to building kernel, it will take some time to learn what
modules you need what options you should enable, etc.
You're building gentoo on some host Linux os, so you can use that os's
lsmod utility to know what modules you require.
Also, if some modules may be compiled right into the kernel you may not
be able to see them in the lsmod produces, instead use lspci -v for that.
One important thing I learnt the hard way while building gentoo for a
server- Always compile the critical modules like disk controllers, RAID,
also don't forget to use RAID autodetection if you're not going to use
an initramfs and filesystems (involved at boot) statically.
While citing my experience about building gentoo on a server, you have
to do the things invisibly, so you can't see what the kernel emits befor
panic.
It turned out that I'd disabled RAID autodetection and wasn't using an
initramfs either (which will load the arrays using mdadm).
--
Nilesh Govindarajan
http://nileshgr.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Anyone can afford information about build kernel?
2011-10-09 0:55 [gentoo-user] Anyone can afford information about build kernel? Lavender
2011-10-09 1:19 ` Nick Khamis
2011-10-09 1:39 ` Nilesh Govindarajan
@ 2011-10-09 6:21 ` Volker Armin Hemmann
2011-10-09 13:56 ` Dale
2011-10-09 14:07 ` meino.cramer
2011-10-10 14:54 ` [gentoo-user] " James
4 siblings, 1 reply; 8+ messages in thread
From: Volker Armin Hemmann @ 2011-10-09 6:21 UTC (permalink / raw
To: gentoo-user
Am Sonntag 09 Oktober 2011, 08:55:55 schrieb Lavender:
> It seems that no matter I build gentoo manually or with genkernel I can't
> have a fine-working kernel finally. Obviously I must solve it by myself ,
> so I determined to build entire kernel all manually , it requests a lot of
> linux knowlege . All for that, I hope someone could tell me where to get
> this information , I haven't found them on gentoo.org , so please lead me
> to the correct direction, thank you for you all !
http://www.kroah.com/lkn/
there.
You can download it there. It helps you with building.
btw:
make -jX && make modules_install install
With make all modules_install install
or
make && make modules_install
you only have one make instance. Which is very slow.
--
#163933
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Anyone can afford information about build kernel?
2011-10-09 6:21 ` Volker Armin Hemmann
@ 2011-10-09 13:56 ` Dale
0 siblings, 0 replies; 8+ messages in thread
From: Dale @ 2011-10-09 13:56 UTC (permalink / raw
To: gentoo-user
Volker Armin Hemmann wrote:
> Am Sonntag 09 Oktober 2011, 08:55:55 schrieb Lavender:
>> It seems that no matter I build gentoo manually or with genkernel I can't
>> have a fine-working kernel finally. Obviously I must solve it by myself ,
>> so I determined to build entire kernel all manually , it requests a lot of
>> linux knowlege . All for that, I hope someone could tell me where to get
>> this information , I haven't found them on gentoo.org , so please lead me
>> to the correct direction, thank you for you all !
> http://www.kroah.com/lkn/
>
> there.
>
> You can download it there. It helps you with building.
>
> btw:
> make -jX&& make modules_install install
>
> With make all modules_install install
> or
> make&& make modules_install
>
> you only have one make instance. Which is very slow.
>
I get 404 errors on the links on the page. Is there some secret to
getting them?
Dale
:-) :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Anyone can afford information about build kernel?
2011-10-09 0:55 [gentoo-user] Anyone can afford information about build kernel? Lavender
` (2 preceding siblings ...)
2011-10-09 6:21 ` Volker Armin Hemmann
@ 2011-10-09 14:07 ` meino.cramer
2011-10-10 14:54 ` [gentoo-user] " James
4 siblings, 0 replies; 8+ messages in thread
From: meino.cramer @ 2011-10-09 14:07 UTC (permalink / raw
To: gentoo-user
Lavender <448463782@qq.com> [11-10-09 03:07]:
> It seems that no matter I build gentoo manually or with genkernel I can't have a fine-working kernel finally. Obviously I must solve it by myself , so I determined to build entire kernel all manually , it requests a lot of linux knowlege . All for that, I hope someone could tell me where to get this information , I haven't found them on gentoo.org , so please lead me to the correct direction, thank you for you all !
Hi,
when I am setup a new system for example after changing the
motherboard and CPU for some reason, I normally boot into
a live sysrtem like ubuntoo or such, check whether the most
things are running and do a lsmod. Then I mount the tmp dir rw
of my hd, which is on a separate filesystem, and paste all
valuable info on that like the output of lsmod, lsusb and such.
Then I use this infos for setting up a new kernel.
Only ashot in the dark...
HTH!
Best regards,
mcc
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] Re: Anyone can afford information about build kernel?
2011-10-09 0:55 [gentoo-user] Anyone can afford information about build kernel? Lavender
` (3 preceding siblings ...)
2011-10-09 14:07 ` meino.cramer
@ 2011-10-10 14:54 ` James
4 siblings, 0 replies; 8+ messages in thread
From: James @ 2011-10-10 14:54 UTC (permalink / raw
To: gentoo-user
Lavender <448463782 <at> qq.com> writes:
> It seems that no matter I build gentoo manually or with genkernel I can't have
a fine-working kernel finally. Obviously I must solve it by myself , so I
determined to build entire kernel all manually , it requests a lot of linux
knowlege . All for that, I hope someone could tell me where to get this
information , I haven't found them on gentoo.org , so please lead me to the
correct direction, thank you for you all !
Lots of good information has been provided by other. Here is
another approach., I do not have the link handy, but you can
look at the docs and there is a place that tells you (steps)
how to copy the kernel that is provided on the installation
cd/dvd to use an your initial boot kernel. It should work,
but maybe with lots of extra stuff you do not need.
Then you can use grub to have several bootable kernels, the
one you actually boot off us is selected a few seconds after
you power up. This way you can get your system working (bootable)
and then take you time pruning the options and learning about
building kernels.
It's easy, here one of my /boot/grub/grub.conf files:
(this one even will boot a doz, if that is installed too:
default 2
fallback 1
timeout 15
#splashimage=(hd0,1)/grub/splash.xpm.gz
#0
title=kernel-2.6.36-gentoo-r8
root(hd0,1)
kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda3 video=1024x768
#1
title=kernel-2.6.38-gentoo-r6
root(hd0,1)
kernel /boot/kernel-2.6.38-gentoo-r6 root=/dev/sda3 video=1024x768
#2
title=kernel-2.6.39-gentoo-r3
root(hd0,1)
kernel /boot/kernel-2.6.39-gentoo-r3 root=/dev/sda3 video=1024x768
title= XP PRO
rootnoverify (hd0,0)
makeactive
chainloader +1
Let me know if you have trouble finding that link for copying the
kernel off of the install media to you hard drive.
hth,
James
^ permalink raw reply [flat|nested] 8+ messages in thread