1 |
Em 19/08/2011 07:09, Mick <michaelkintzios@×××××.com> escreveu: |
2 |
> On Friday 19 Aug 2011 03:27:23 Mark Knecht wrote: |
3 |
> > On Thu, Aug 18, 2011 at 11:59 AM, frares@×××××.com> wrote: |
4 |
> > > Hi, guys |
5 |
> > > |
6 |
> > > It is a shame, I know, but after several years using Gentoo, it is the |
7 |
> > > first time I try to build a kernel without "genkernel". |
8 |
> > > |
9 |
> > > And now I can't boot to that new kernel, it does not find (and really |
10 |
> do |
11 |
> > > not have a) /dev/sda* root partition ("real-root"); during the boot it |
12 |
> > > stops, complaining about that, gives me the option to get a shell, |
13 |
> from |
14 |
> > > which I am able to see that there is no /dev/sda* . |
15 |
> > > |
16 |
> > > I have included everything SATA, so it looks like that is not a kernel |
17 |
> > > problem, but a initramfs issue, I guess. |
18 |
> > > |
19 |
> > > What am I missing? |
20 |
> > > |
21 |
> > > Thanks a lot |
22 |
> > > Francisco |
23 |
> > > |
24 |
> > > PS: my boot partition is sda2, sda3 is a swap partition, and |
25 |
> everything |
26 |
> > > else is in sda4. sda1 is not used (up to now) and this is my |
27 |
> grub.conf : |
28 |
> > > |
29 |
> > > title Gentoo Linux 2.6.39-gentoo-r3 |
30 |
> > > root (hd0,1) |
31 |
> > > kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 ro |
32 |
> root=/dev/ram0 |
33 |
> > > init=/linuxrc real_root=/dev/sda4 vga=0x318 video=uvesafb:1024x768-32 |
34 |
> > > nodevfs udev devfs=nomount quiet CONSOLE=/dev/tty1 |
35 |
> > > initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3 |
36 |
> > |
37 |
> > Maybe I'm missing the obvious here but have you taken a copy of |
38 |
> > whatever config file was used/generated by genkernel and used that as |
39 |
> > a jumping off point for building your own kernel. kernel's a kernel's |
40 |
> > a kernel. What it is capable of doing is in the .config file. If |
41 |
> > genkernel doesn't give you a .config file - I've never used genkernel |
42 |
> > so I don't know what it does - then assuming you have the feature |
43 |
> > turned on you can get the running config using zcat /proc/config.gz. |
44 |
> > Save that to a new .config file, put it in the kernel source directory |
45 |
> > and you should be good to go. |
46 |
> > |
47 |
> > You can also use zcat /proc/config.gz on the install CD kernel if yuo |
48 |
> > boot from that. Save it to a disk and use it as the basis for creating |
49 |
> > your own config. |
50 |
|
51 |
> If you no longer use genkernel it is likely that you do not need an |
52 |
> initram. |
53 |
> Build chipset and fs modules into the kernel. Other drivers you can |
54 |
> choose if |
55 |
> you want to build as modules. |
56 |
|
57 |
> -- |
58 |
> Regards, |
59 |
> Mick |
60 |
|
61 |
|
62 |
I the case I don't need a initram, I guess that the grub line for parameter |
63 |
passing to the kernel would be empty. Am I wrong? |
64 |
|
65 |
I was just looking on how to build my own initram. What is it supposed to |
66 |
do anyway? |
67 |
|
68 |
Thanks |
69 |
Francisco |