View previous topic :: View next topic |
Author |
Message |
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Sun Jul 03, 2011 5:38 am Post subject: Genkernel fails to compile |
|
|
It happens when compiling the modules. I'm following exactly the installation guide on the gentoo website.
Here is the error message:
Code: | INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
INSTALL sound/usb/usx2y/snd-usb-us122l.ko
INSTALL sound/usb/usx2y/snd-usb-usx2y.ko
make[1]: *** No rule to make target `/lib/firmware/./', needed by `/lib/firmware/atmsar11.fw'. Stop.
make[1]: *** Waiting for unfinished jobs....
MKDIR /lib/firmware/acenic/
MKDIR /lib/firmware/adaptec/
make: *** [_modinst_post] Error 2
* Gentoo Linux Genkernel; Version 3.4.10.907 [0m
* Running with options: all
* ERROR: Failed to compile the "modules_install" target...
* -- Grepping log... --
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
|
Here is the log file entirely:
http://pastebin.com/yBdx6fAU
Thank you. |
|
Back to top |
|
|
barul Guru
Joined: 28 May 2010 Posts: 434
|
Posted: Sun Jul 03, 2011 6:53 am Post subject: |
|
|
Configuring and compile a kernel isn't really a difficult thing ; you should try it, it's better than genkernel, and more efficient. |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Sun Jul 03, 2011 5:32 pm Post subject: |
|
|
Well I've gotten a bit further. I decided to just use the kernel from the cd. I got to the point where I reboot but the system will not load. Here is the error I get:
Code: | VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "sda3" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions: (##screen cuts off here)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Pid: 1, comm: swapper Not tainted 2.6.38-gentoo-r6 #1
Call Trace:
[<c134b6d3>] ? panic+0x4d/0x130
[<c1498bf5>] ? mount_block_root+0x161/0x175
[<c10862db>] ? sys_mknod+0x13/0x17
[<c1498c9f>] ? mount_root+0x96/0x9d
[<c1498de8>] ? prepare_namespace+0x142/0x168
[<c1498397>] ? kernel_init+0x177/0x182
[<c1498220>] ? kernel_init+0x0/0x182
[<c1003536>] ? kernel_thread_helper+0x6/0x10 |
Is it something wrong with my grub.conf? Here it is:
Code: | default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6
root (hd0,0)
kernel /boot/gentoo root=/dev/sda3
title Gentoo Linux 2.6 (rescue)
root (hd0,0)
kernel /boot/gentoo root=/dev/sda3 init=/bin/bb |
"Gentoo" was the name of the kernel I copied over from the cd. I have my partitions setup like they are in the handbook, with /boot on a separate partition. /sda1 is boot and /sda3 is root. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Sun Jul 03, 2011 6:35 pm Post subject: |
|
|
If I recall correctly, the kernel shipped on the LiveCD includes an initramfs. You did not copy that, so you are missing quite a bit of functionality from the LiveCD. You could try copying over its initramfs as well, but you are better off configuring a kernel for your hardware. Start from a seed by pappy_mcfae, then add drivers for your specific hard drive, video card, etc. |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Sun Jul 03, 2011 8:57 pm Post subject: |
|
|
Well I guess I should have mentioned that I was following the Tips and Tricks guide for copying the kernel from the cd. It said:
Code: | (${KN} is the kernel name, usually something like 'gentoo' or 'smp')
cdimage ~# cp /mnt/cdrom/isolinux/${KN} /mnt/cdrom/isolinux/${KN}.igz /mnt/gentoo/boot
cdimage ~# mkdir -p /mnt/gentoo/lib/modules
cdiamge ~# cp -Rp /lib/modules/`uname -r` /mnt/gentoo/lib/modules |
and then
Code: | # cat /proc/modules | cut -d ' ' -f 1 >> \
/etc/modules.autoload.d/kernel-`uname -r | cut -d . -f -2`
# update-modules |
It doesn't mention an initramfs. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Sun Jul 03, 2011 9:08 pm Post subject: |
|
|
For the benefit of other readers, Xenphor appears to be referencing Gentoo/x86 Installation Tips & Tricks: Using the Installation CD kernel.
If I recall correctly the naming conventions that are used on the LiveCD, that first copy command is copying the kernel and its initrd. However, you must still tell grub to load that initrd so that the kernel can find it. |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Sun Jul 03, 2011 9:38 pm Post subject: |
|
|
Well I added a line in grub.conf:
Code: | initrd /boot/gentoo.igz |
gentoo.igz was the other file that was copied.
Now it looks like:
Code: | default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6
root (hd0,0)
kernel /boot/gentoo root=/dev/sda3
initrd /boot/gentoo.igz
|
Now I get an error message that says:
Code: | >>Activating mdev
>>Determining root device
>>Mounting root
>> Booting (initramfs)>> Error: your real /dev is missing files required to boot (console and null)..
switch_root: can't open '/dev/console': No such file or directory
Kernel panic |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Sun Jul 03, 2011 11:49 pm Post subject: |
|
|
You installed from a stage3 which has the well known "missing console and null device nodes" problem, discussed frequently around here in recent weeks. The simple fix is to boot into the live environment, mount your host root filesystem, and cp -a /dev/{console,null} /mnt/gentoo/dev/. Then, unmount and try again to boot from the hard drive.
Hopefully, a fixed stage3 will become more common soon, so that this problem stops biting new users. |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Mon Jul 04, 2011 12:39 am Post subject: |
|
|
Well that got me a little further. Unfortunately I'm having more problems.
Code: | Loading key mappings [us] ...
Bringing up interface lo
Caching network module dependencies
127.0.0.1/8 ...
Adding routes
127.0.0.0/8 via 127.0.0.1 ...
Mounting USB device filesystem [usbfs] ...
Activating swap devices ..
swapon: /dev/sda2: stat failed: No such file or directory
Error: urandom failed to start
INIT: Entering runlevel: 3
Mounting network filesystems ...
Error: urandom failed to start
Starting local
INIT: Id "c1" respawning too fast: disabled for 5 minutes
INIT: Id "c3" respawning too fast: disabled for 5 minutes
INIT: Id "c5" respawning too fast: disabled for 5 minutes
INIT: Id "c4" respawning too fast: disabled for 5 minutes
INIT: Id "c6" respawning too fast: disabled for 5 minutes
INIT: Id "c2" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel |
It just hangs there.
I'm not sure why it couldn't activate the swap device because I followed exactly what it said in the handbook and didn't have any problems with it. The rest of the stuff I don't know. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Mon Jul 04, 2011 3:17 am Post subject: |
|
|
Were there any messages above that, related to udev failing to initialize correctly? What is the output of rc-update show? |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Mon Jul 04, 2011 3:49 am Post subject: |
|
|
Well unfortunately the bootup goes by too fast for me to see everything. I don't suppose there is a command to make the boot go slower or some way to review it? The problem is that it hangs after the errors occur. I can't type anything in, nor can I switch to a virtual console, so I would not be able to run "rc-update show" either. I'm sure there is a way to do it but as you can tell I'm a "n00b" as it says. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Mon Jul 04, 2011 5:01 am Post subject: |
|
|
You can use the rc-update show command from the live environment, if you chroot into the installed system first. |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Mon Jul 04, 2011 5:47 am Post subject: |
|
|
Here's the output
Code: | modules | boot
netmount | default
swap | boot
localmount | boot
hwclock | boot
fsck | boot
keymaps | boot
root | boot
bootmisc | boot
killprocs | shutdown
termencoding | boot
savecache | shutdown
urandom | boot
mount-ro | shutdown
local | default
devfs | sysinit
sysctl | boot
mtab | boot
net.lo | boot
procfs | boot
udev-postmount | default
hostname | boot
dmesg | sysinit |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21706
|
Posted: Mon Jul 04, 2011 10:19 pm Post subject: |
|
|
It appears that you migrated to baselayout-2, but skipped the upgrade step where udev is added to the sysinit runlevel. As a result, it is not started for you. Your static /dev does not contain adequate device nodes to boot on its own, so the boot fails. Add udev to the sysinit runlevel. You may also want to review the migration guide to see if there are any other services that you need to add. |
|
Back to top |
|
|
Xenphor n00b
Joined: 03 Jul 2011 Posts: 9
|
Posted: Tue Jul 05, 2011 3:03 am Post subject: |
|
|
Thanks that worked; I can boot into the system. Of course now I'm having problems with Xorg so I guess it's off to the DE forum. Thanks for your help. |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2581 Location: Here and Away Again
|
Posted: Wed Jul 06, 2011 12:10 am Post subject: |
|
|
Felt like adding some thoughts to what Cr0k's said.
I myself used Genkernel for a long time when I started with Gentoo, but when I did finally emerge myself into configuring the kernel myself, it really wasn't as big of a step as I had imagined.
is your friend. While using this in a running system, using your Gen'd kernel for example, you can easily see the drivers that are used for your main stuff. Then you can easily just either remember them, write them down, or keep the list in another terminal, and use the / key within menuconfig to search for a driver and enable it.
When you have each of the drivers listed in, you should be quite there, and you can start chopping off things you don't use/need! :]
Anyhoo, thought I'd mention this. It was not so obvious to me when I was there, and it was what gave me the nudge to goferit when I realised these things. _________________ Kindest of regardses. |
|
Back to top |
|
|
ccosse Apprentice
Joined: 10 Mar 2004 Posts: 171 Location: Las Vegas, NV
|
Posted: Wed Jul 06, 2011 5:35 pm Post subject: |
|
|
Just browsing and also felt like adding a thought:
Another way to ease the transition from genkernel to manually-compiled kernel is to begin with "genkernel --menuconfig" ... which will make your /usr/src/linux/.config reflect your genkernel configuration (not sure if this occurs without --menuconfig flag? probably, but certainly if you explicitely issue --menuconfig) ...
Then you can just "make bzImage" and it will be essentially the same as what genkernel would make, but it's now your own manually built kernel.
Then you can proceed to toggle-off stuff you don't want/need ... or just leave it ...
Also, BTW/FWIW, I spent about 5 days recently trying to get the liveDVD environment installed ... there were too many issues ... beginning with those described here, but these aren't the end ... there are more more more ...
An alternative is to issue "qlist -CI" and get a list of installed packages on the liveDVD, then refer to that list when building-up from scratch ... that's what i'd suggest ... good luck!
-Charles |
|
Back to top |
|
|
Eisenhorn n00b
Joined: 04 Jul 2011 Posts: 20
|
Posted: Thu Jul 07, 2011 9:54 am Post subject: |
|
|
Hi,
I basically have the same Problem.
Code: | Mounting USB device filesystem [usbfs] ...
Activating swap devices ..
swapon: /dev/sda2: stat failed: No such file or directory
Error: urandom failed to start
INIT: Entering runlevel: 3
Mounting network filesystems ...
Error: urandom failed to start
Starting local
INIT: Id "c1" respawning too fast: disabled for 5 minutes
INIT: Id "c3" respawning too fast: disabled for 5 minutes
INIT: Id "c5" respawning too fast: disabled for 5 minutes
INIT: Id "c4" respawning too fast: disabled for 5 minutes
INIT: Id "c6" respawning too fast: disabled for 5 minutes
INIT: Id "c2" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel |
I also could see that the tty terminal can't be accessed. I added the tree missing nodes and tried to add udev, which seems to be there already. Still when rebooting i get the same error.
Code: |
chroot /mnt/gentoo
rc-update show sysinit
dmesg | sysinit
devfs | sysinit
|
This is confusing, as udev isn'T in sysinit
But the attempt to add it ends like this
Code: | rc-update add udev sysinit
* rc-update: failed to add service `udev' to runlevel `sysinit': File exists
|
The rc-update show displays this
Code: | rc-update show
modules | boot
net.eth0 | default
localmount | boot
netmount | default
syslog-ng | default
savecache | shutdown
dmesg | sysinit
urandom | boot
swap | boot
local | default
mtab | boot
procfs | boot
keymaps | boot
killprocs | shutdown
hwclock | boot
root | boot
hostname | boot
udev-postmount | default
net.lo | boot
sysctl | boot
fsck | boot
devfs | sysinit
vixie-cron | default
mount-ro | shutdown
bootmisc | boot
termencoding | boot
|
The following links are in the boot runlevel
Code: | ls -l /etc/runlevels/boot/
total 0
lrwxrwxrwx 1 root root 20 Jul 6 03:01 bootmisc -> /etc/init.d/bootmisc
lrwxrwxrwx 1 root root 16 Jul 6 03:01 fsck -> /etc/init.d/fsck
lrwxrwxrwx 1 root root 20 Jul 6 03:01 hostname -> /etc/init.d/hostname
lrwxrwxrwx 1 root root 19 Jul 6 03:01 hwclock -> /etc/init.d/hwclock
lrwxrwxrwx 1 root root 19 Jul 6 03:01 keymaps -> /etc/init.d/keymaps
lrwxrwxrwx 1 root root 22 Jul 6 03:01 localmount -> /etc/init.d/localmount
lrwxrwxrwx 1 root root 19 Jul 6 03:01 modules -> /etc/init.d/modules
lrwxrwxrwx 1 root root 16 Jul 6 03:01 mtab -> /etc/init.d/mtab
lrwxrwxrwx 1 root root 18 Jul 6 03:01 net.lo -> /etc/init.d/net.lo
lrwxrwxrwx 1 root root 18 Jul 6 03:01 procfs -> /etc/init.d/procfs
lrwxrwxrwx 1 root root 16 Jul 6 03:01 root -> /etc/init.d/root
lrwxrwxrwx 1 root root 16 Jul 6 03:01 swap -> /etc/init.d/swap
lrwxrwxrwx 1 root root 18 Jul 6 03:01 sysctl -> /etc/init.d/sysctl
lrwxrwxrwx 1 root root 24 Jul 6 03:01 termencoding -> /etc/init.d/termencoding
lrwxrwxrwx 1 root root 19 Jul 6 03:01 urandom -> /etc/init.d/urandom
|
Code: | ls -l /etc/runlevels/sysinit
total 0
lrwxrwxrwx 1 root root 17 Jul 6 03:01 devfs -> /etc/init.d/devfs
lrwxrwxrwx 1 root root 17 Jul 6 03:01 dmesg -> /etc/init.d/dmesg
lrwxrwxrwx 1 root root 27 Jul 7 02:22 udev -> /mnt/gentoo/etc/init.d/udev
|
Any help is appreciated. I am in desperation right now
BR |
|
Back to top |
|
|
Eisenhorn n00b
Joined: 04 Jul 2011 Posts: 20
|
Posted: Thu Jul 07, 2011 11:44 pm Post subject: |
|
|
Consider my post obsolete. The symbolic link to udev was not correct. |
|
Back to top |
|
|
swathe n00b
Joined: 04 Jul 2011 Posts: 73
|
Posted: Fri Jul 08, 2011 2:34 am Post subject: |
|
|
When I had the compile error in the first post it was due to a kernel module for some ATM firmware. |
|
Back to top |
|
|
julakali n00b
Joined: 27 Mar 2006 Posts: 27
|
Posted: Tue Jul 19, 2011 11:22 pm Post subject: |
|
|
I ran into the same Problem as described in the first post.
The Solution which helped me was mentioned here:
https://forums.gentoo.org/viewtopic-p-6732830.html#6732830
I ran genkernel --menuconfig all and deselected "device-drivers/network/atm" stuff.
And.. yes, i know building my own kernel is better. But i need something generic during a hardware upgrade |
|
Back to top |
|
|
|