Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #71  
Old 25th June 2006, 18:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by nowsurfing
I did evryting, and as I didnt want bad surprises y used my old config file with some adittions however I got another error mesage at boot time:

modprobe:FATAL: Could not load /lib/modules/2.6.17.1/modules.dep: No such a file or directory
modprobe:FATAL: Could not load /lib/modules/2.6.17.1/modules.dep: No such a file or directory
modprobe:FATAL: Could not load /lib/modules/2.6.17.1/modules.dep: No such a file or directory

umount: devfs: not mounted
pivot_root: No such a file or directory
/sbin/init: 432: cannot open dev/console:No such a file
Kernel panic - not syncing : Attemped to kill init!


Im guessing that the problem is of devfs, causethe file /lib/modules/2.6.17.1/modules.dep is in there and is fine, any idea?
Do you use Xen? Because I know this error only from a Xen virtual machine...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #72  
Old 26th June 2006, 13:40
Qrup Qrup is offline
Member
 
Join Date: Feb 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by nowsurfing
The last post is right that is what causes the error to solve it just mek the folowwing


that should sove the problem

I also tried doing this, but that didn't seem to solve my problem. Everything seems to go as planned.. the only thing is that Grub is not being updated with the new kernel. The 'update-grub' writes the changes to the 'menu.lst', but they are not shown when I reboot.

I tried following Digital Hermit's site suggestions, but it is now quite up_to_date. The result was the same as when I followed Falko's guide. I did the following:
apt-get install libncurses5-dev

Got the kernel from kernel.org using links

Unpacked it in /usr/src

Made a symbolic link to the dir ln -s linux-[kernel version] linux

Went into the Dir. cd linux

make menuconfig

make

make bzImage

make modules

make modules_install

cp arch/i386/boot/bzImage /boot/bzImage-2.6.17
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.17
cp System.map /boot/System.map-2.6.17
ln -s /boot/System.map-2.6.17 /boot/System.map

mkinitrd -o /boot/initrd-2.6.17.img 2.6.17

update-grub


Any suggestions as to what I should do to see the new kernel will be much appreciated.

Last edited by Qrup; 26th June 2006 at 13:47.
Reply With Quote
  #73  
Old 27th June 2006, 11:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

What does your menu.lst look like now?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #74  
Old 27th June 2006, 17:38
Qrup Qrup is offline
Member
 
Join Date: Feb 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It looks exactly like this:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.17
root (hd0,0)
kernel /boot/vmlinuz-2.6.17 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.17
savedefault
boot

title Debian GNU/Linux, kernel 2.6.17 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.17 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.17
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.8-2-386 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.8-2-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST
Reply With Quote
  #75  
Old 28th June 2006, 11:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Hm, looks ok...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #76  
Old 2nd July 2006, 10:09
marclar marclar is offline
Member
 
Join Date: Jun 2006
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to marclar
Default

I tryed to compile new kernel too..

Everything went fine till this command:
Quote:
fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image
After an hour of procesing it finished like this:

Quote:
LD [M] net/xfrm/xfrm_user.ko
CC net/unix/unix.mod.o
LD [M] net/unix/unix.ko
CC net/wanrouter/wanrouter.mod.o
LD [M] net/wanrouter/wanrouter.ko
CC net/x25/x25.mod.o
LD [M] net/x25/x25.ko
CC net/xfrm/xfrm_user.mod.o
LD [M] net/xfrm/xfrm_user.ko
CC sound/soundcore.mod.o
LD [M] sound/soundcore.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11.7'
COLUMNS=150 dpkg -l 'gcc*' perl dpkg 'libc6*' binutils ldso make dpkg-dev |\
awk '$1 ~ /[hi]i/ { printf("%s-%s\n", $2, $3) }' > debian/buildinfo
awk: relocation error: awk: symbol _dl_catch_error, version GLIBC_PRIVATE not de fined in file ld-linux.so.2 with link time reference
make: *** [debian/stamp-build-kernel] Error 127
I have noo idea what that could mean. I tryed twice, but it's the same..
I left the kernel config default..
__________________
www.emanuel.si

Last edited by marclar; 2nd July 2006 at 10:12.
Reply With Quote
  #77  
Old 7th July 2006, 16:24
Erik Tromp Erik Tromp is offline
Junior Member
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crappy download

Crap - it is all crap

Downloaded the Linux 2.6.11.7 tarball as you indicated. Next step is to unpack it. Here is what happened:

Code:
root@DefaultNode:/usr/src# tar -xjf linux-2.6.11.7.tar.bz2

bzip2: Compressed file ends unexpectedly;
        perhaps it is corrupted?  *Possible* reason follows.
bzip2: Inappropriate ioctl for device
        Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

tar: Read 1376 bytes from linux-2.6.11.7.tar.bz2
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
What? The tarball is corrupted??

I check my file system (enough space), my RAM (enough), my bzip2 version, my common sense... all seemed to be fine (although not so sure about the latter).

So I made a far fetch and downloaded kernel version 2.6.17.4, which happens to be the most recent one:

Code:
root@DefaultNode:/usr/src# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.4.tar.bz2
--15:02:47--  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.17.4.tar.bz2
           => `linux-2.6.17.4.tar.bz2'
Resolving www.kernel.org... 204.152.191.37, 204.152.191.5
Connecting to www.kernel.org[204.152.191.37]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 41,273,436 [application/x-bzip2]

100%[============================================================================>] 41,273,436   408.93K/s    ETA 00:00

15:04:27 (407.63 KB/s) - `linux-2.6.17.4.tar.bz2' saved [41273436/41273436]
And, guess what:

Code:
root@DefaultNode:/usr/src# tar -xjf linux-2.6.17.4.tar.bz2
root@DefaultNode:/usr/src# ls
linux-2.6.11.7.tar.bz2  linux-2.6.17.4  linux-2.6.17.4.tar.bz2

No problem.

Apparently the Linux 2.6.11.7 tarball from www.kernel.org is corrupted....

Well, who cares.

Off-topic: this is the Open Source / Gnu / Linux desease. As soon as you try to use it, guess what... it doesn't work. For no apparent reason whatsoever.
Reply With Quote
  #78  
Old 8th July 2006, 12:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by Erik Tromp
Apparently the Linux 2.6.11.7 tarball from www.kernel.org is corrupted....
No, it's fine. I guess something went wrong with your download. Just download it again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #79  
Old 10th July 2006, 09:54
Erik Tromp Erik Tromp is offline
Junior Member
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default You're right

Beats me! I had already downloaded the kernel image, because I had figured out that the download might have failed. That didn't do much good then.

But this morning, a new and fresh download unzipped and untarred fine!

So I started the compilation. All wen well until after about 15 minutes:

...
CC [M] drivers/char/drm/drm_sysfs.o
CC [M] drivers/char/drm/gamma_drv.o
drivers/char/drm/gamma_drv.c:33:19: gamma.h: No such file or directory
In file included from drivers/char/drm/gamma_drv.c:37:
drivers/char/drm/gamma_drv.h:66: error: `DRM' declared as function returning a function
...

However, even if I use the recent 2.6.17.4 kernel, which *did* compile, the following happens after reboot:

...
umount: devfs: not mounted
mount: unknown filesystem type 'devfs'
umount: devfs: not mounted
pivot_root: No such a file or directory
/sbin/init: 432: cannot open dev/console:No such a file
Kernel panic - not syncing : Attemped to kill init!

Anyway, never mind, I think compiling a kernel is just too complicated for a simple person like me.

Thanks anyway.
Reply With Quote
  #80  
Old 11th July 2006, 14:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
 
Default

Quote:
Originally Posted by Erik Tromp
Anyway, never mind, I think compiling a kernel is just too complicated for a simple person like me.
Yes, it took me a whole week until my first kernel worked the way I wanted it...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.