- Kernel 2.4.20-8 to 2.6.0 module problem
- Posted by Yongzhi Pan on February 25th, 2004
Hi,
When i input
$ make modules_install
it tells me:
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/post-halloween-2.5.txt
i downloaded a module-init-tools-0.9.14. I installed it. Then i do not
know what to do next. The Linux book in my hand tells me only make
modules_install.
There is another problem. I am using GRUB to boot my Windows and Redhat.
But the book only tells me how to do with LILO. I do not know how to
modify the booting configuration.
I am new to Linux but is learning.
Thanks in advance.
Yongzhi Pan
- Posted by os moma on February 25th, 2004
Yongzhi Pan wrote:
1)
Try to get the latest module-init-tools from
ftp://ftp.kernel.org/pub/linux/kerne...rusty/modules/
Latest package seems to be module-init-tools-3.0.tar.gz
# tar -xvzf module-init-tools-3.0.tar.gz -C /usr/src/module-init-tools
# cd /usr/src/module-init-tools-3.0
Read README-file and/or http://thomer.com/linux/migrate-to-2.6.html
Section "Modutils / module-init-tools"
You'll find more upgrade_to_2.6 links at
http://www.futuredesktop.org/#notes
Espesialmente: http://www.linux-sxs.org/upgrading/m...6.html#sources
2) Grub
Read http://home.online.no/~osmoma/how2burn.html (at the very bottom)
If I remember right so the last kernel step "make install" automatically
fixed my /boot/grub/grub.conf and added a selection for 2.6.
Anyway, here's my grub.conf.
You need to modify it for your kernel.
List:
ls -l /boot
------------------- grub.conf -------------BEG
default=0
timeout=10
# color=green/black light-gray/blue
splashimage=(hd0,0)/grub/my_splash.xpm.gz
title Fedora Core (2.6.1-rc3)
root (hd0,0)
kernel /vmlinuz-2.6.1-rc3 ro root=LABEL=/ rhgb mode=132x25
initrd /initrd-2.6.1-rc3.img
title LindowsOS 4
# Yes, I support Lindows !
root=(hd2,0)
kernel /vmlinuz-2.4.20 ro root=/dev/hdg3 hdc=ide-scsi vga=794
initrd=/initrd-2.4.20.gz
#title Peanut Linux
# root=(hd2,1)
# kernel /boot/vmlinuz ro root=/dev/hdg2 hdc=ide-scsi
# title Ark Linux H2O1 (1.0-1)
# root (hd0,1)
# kernel /boot/vmlinuz ro root=/dev/hdg1 hdc=ide-scsi
------------------- grub.conf -------------END
3) If everything fails, then try a brand new Fedora Core 2 (TEST) from
http://fedora.redhat.com/download/mirrors.html
Select a site and navigate to .../linux/fedora-core/test/1.90/i386/iso/
a) Download these ISO files
FC2-test1-i386-disc1.iso 647296 KB 02/04/2004 04:06:00 PM
FC2-test1-i386-disc2.iso 642336 KB 02/04/2004 04:08:00 PM
FC2-test1-i386-disc3.iso 650112 KB 02/04/2004 04:10:00 PM
FC2-test1-i386-disc4.iso 163744 KB 02/04/2004 04:10:00 PM
b) Download also checksum file MD5SUM.
c) Goto http://www.futuredesktop.org/#distrolist
"How to create an installation CD..."
Cheers,
// os moma
http://www.futuredesktop.net

- Posted by Yongzhi Pan on February 26th, 2004
Hi moma,
You are really of great help to me. Thanks very much. I downloaded
module-init-tools-3.0.tar.gz, installed it and did what README tells me
to. I think the module problem may get solved.
I edited grub.conf, restarted and made my network adapter, sound card
and USB mouse work no longer. Then i found /etc/lilo.conf.anaconda. I
renamed it to lilo.conf. I think lilo will boot after renamed instead of
GRUB. lilo.conf is following:
timeout=50
default=DOS
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32
image=/boot/vmlinuz-2.4.20-8
label=Linux(2.4.20-8)
initrd=/boot/initrd-2.4.20-8.img
read-only
append="root=LABEL=/"
# ???
image=/boot/bzImage-2.6.0
label=Linux(2.6.0)
initrd=/boot/initrd-2.4.20-8.img
read-only
append="root=LABEL=/"
# ???
other=/dev/hda1
optional
label=DOS
The original lilo.conf doesn't contain lines between ???. I know
initrd=/boot/initrd-2.4.20-8.img
is not right. But i used
locate *.img
and didn't find any file named initrd-2.6.0.img.
I think the 2.6.0 kernel will be loaded right if the line between the
??? become right.
You see, i even do not understand what the lines mean in the conf file.
I wish i can get help again.
Thanks,
Pan
- Posted by Timothy Murphy on February 26th, 2004
Yongzhi Pan wrote:
You probably don't need an initrd file -
most people don't.
But I imagine using the wrong one as you suggest
is almost certain to cause confusion.
You can make the file by "mkinitrd initrd-2.6.0.img 2.6.0",
and then put it in your /boot partition.
(Try "man mkinitrd".)
But as I say it is probably not necessary.
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
- Posted by Yongzhi Pan on February 27th, 2004
Timothy Murphy wrote:
it gives me:
No module /bin/true found for ...
../mkinitrd initrd-2.4.20-8.img 2.4.20-8
gives me the similar message.
You said i do not need it, but how should i edit lilo.conf?
image=/boot/bzImage-2.6.0
label=Linux(2.6.0)
read-only
append="root=LABEL=/
or
image=/boot/bzImage-2.6.0
label=Linux(2.6.0)
doesn't work at all.
Yongzhi
- Posted by Timothy Murphy on February 27th, 2004
Yongzhi Pan wrote:
Did you compile the modules for this kernel?
make dep; make clean; make bzImage; make modules
and then
make modules_install; make install
Just delete the line with initrd in it.
Eg instead of
image=/boot/vmlinuz-2.4.25
label=2.4.25
read-only
root=/dev/hda3
initrd=/boot/initrd-2.4.25.img
say
image=/boot/vmlinuz-2.4.25
label=2.4.25
read-only
root=/dev/hda3
I'm not clear if this is the whole entry.
You must say where your / partition is, eg "root=/dev/hda3".
I doubt if you can give it as an "append" command -
this is normally used for special boot commands you need,
eg 'append="noacpi"'.
However, I am not an expert in LILO, as I use grub.
Also you must run lilo after any change to lilo.conf .
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland