Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
one thing i want you to make sure of before this discussion continues is that you have
exact architecture of your cpu selected in the kernel config ... this could easily cause
issues like your having causing an incomplete boot ... and not only that, just go back
to the kernel config and make sure anything else that is incorrect is indeed corrected ..
I'm trying to upgrade from Kernel 2.4 to 2.6.6 and your guide has been very clear and helpful, but I have one problem right at the end of the procedure...
I have removed the old initrd.img as you instruct, but dont seem to be able to create the new one. The command I use is /sbin/mkinitrd /boot/initrd-2.6.6.img 2.6.6
The output I get back is...
/boot/initrd-2.6.6.img/var/tmp is not a directory
I'm sure this sounds really simple and I'm just doing something very basic wrong, at least I hope so. Please help me finish the kernel patch!
two key things i noticed in your post 3dmike ...
first you mention about the upgrade from 2.4 to 2.6, so my question is did
you upgrade modutils (refer to first to links in guide if not)
and secondly, are you say "patch the kernel" are you actually trying to use
a patch from 2.4 to 2.6 or was that just your terminoligy in your post ?
and thanks DaOne, you have a great guide (2 guides) yourself
keyword underneath "make dep" is ensures the includes are in place ... it does a
check, make clean is going to do exactly what it says, clean the source for you don't
have any issues... this does not say it is going to remove the include files ..
I am trying to move from 2.4.18 to 2.4.26 ( not patching). I did almost everything as in the guide(some minor differences though), but still i can't load my new Kernel. the loading stops with the kernel panic
Distribution: RHEL, Ubuntu, Solaris 11, NetBSD, OpenBSD
Posts: 225
Rep:
Hi,
Just a quick post in reply to 3dmike I had the same problem with SuSE9.0 when trying to compile a new kernel, and if you read through this thread, you should find that I think it was Garp got it figured out! Page 16 of this thread I think...
I never actually tried it out, as (with a little prompting from DrOzz cheers) I switched to Slack 9.1 and haven't really looked back since....
analyst can you tell us what distro your using, and what are these minor differences
and also if you can supply a little more of that error that would be great also ....
maybe like 3 - 5 lines that appear before that message ... thx !
I am using the redHat 8.0. The minor differences are that i didn't overwrite the old kernel( the old vmlinuz and initrd are still there and active(so that i can post right now), and some naming differences( i didnt' rename bzImage into vmlinuz).
when i try to ryn my new kernel, it does everything well until the VFS part.then it stops with an error message
VFS:cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
kernel panic: VFS: Unable to mount root fs on 00:00
this is my grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdd5
# initrd /initrd-version.img
#boot=/dev/hdc
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.18-14.img
title test kernel (2.4.26)
root (hd0,0)
kernel /bzimage-2.4.26 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.26.img
Hi, I want to compile 2.6.6 kernel. However I'm not sure what version of gcc I should use. Also I tried make menuconfig, but it gives me the following errors:
bash-2.05b# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.3/include/limits
.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.3/include/syslim
its.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.3/include/limits
.h:11,
from scripts/basic/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212,
from scripts/basic/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this func
tion)
scripts/basic/fixdep.c:193: error: (Each undeclared identifier is reported only
once
scripts/basic/fixdep.c:193: error: for each function it appears in.)
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this func
tion)
scripts/basic/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
I'm sure I'm missing something, but it's difficult to find out what exactly. Can it be wrong version of something or something is missing?
I remember when I first learned how to do the kernel
I did it with a buddy of mine and we wound up with an image size of 1.7MB. A month later, I took another stab at it and dropped the kernel size down to 1.1MB and with all my normal apps running, (Opera, xmms, gaim, fluxbox) I sit at about 5% CPU usage and 70mb of ram (5% of 550mhz)
I did a big mistake when I tried to do a grub floppy disk. Because I was compiling the new kernel 2.6.6 I decided to post there. I did the following command:
debianmasiina:/# grub-floppy /dev/hde1
You are about to overwrite the boot sector of the following device:
/dev/hde1
Are you sure you want to take this action (y/N) y
Creating grub boot floppy now, please be patient ...
1+0 records in
1+0 records out
512 bytes transferred in 0.018241 seconds (28069 bytes/sec)
202+1 records in
202+1 records out
103592 bytes transferred in 0.055991 seconds (1850151 bytes/sec)
That's All Folks!
Now all files in /boot are corrupted or something because there isn't menu.lst file in /boot/grub anymore:
I backed up the files in /boot which are still non-corrupted and now they are in / (dev/hde2). I need help really quickly because I cannot configure my bootloader in /boot and I'm not sure if my old kernel's boot disk works !!!
Hi i have followed all the steps found here.... I can't find the mkinitrd command... I have tried the locate command... I have tried also an extensive search...but mkinitrd is nowhere...
I am using the latest version of slackware...... with lilo.....
Also how i can put a default value in my boot loader.. I want top boot the seconf os by default...and h ow i can add it?
Thx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.