Pages

Search

Kernel 2.4.24 to 2.6.3, doesn't modules_install - Forums Linux

Kernel 2.4.24 to 2.6.3, doesn't modules_install - Forums Linux


Kernel 2.4.24 to 2.6.3, doesn't modules_install

Posted: 22 Feb 2004 05:54 AM PST


"JoeAley2003" <com> wrote in message
news:google.com... 
[ snip ] 

See step 8 below. Maybe you're trying to mount /boot which is ext3?

Redhat 9 with 2.6 Kernel Upgrade from Source
Mike Chirico
Last Updated: Thu Feb 19 10:41:38 EST 2004

The latest version of this document can be found at:
http://prdownloads.sourceforge.net/souptonuts/README_26.txt?download

For configs ref:
http://sourceforge.net/project/showfiles.php?group_id=79320&package_id=109944



STEP 1:

Download the latest version of the kernel and any patches. This
documentation
is done with linux-2.6.3, but look for later versions.
http://www.kernel.org/pub/linux/kernel/v2.6/

Also take a look at http://www.codemonkey.org.uk/post-halloween-2.5.txt
This has some useful hints on some of the changes needed.

STEP 2:

Download the latest version of module-init-tools
[module-init-tools-3.0-pre10.tar.gz] and modutils-2.4.21-2x.src.rpm

http://www.kernel.org/pub/linux/kernel/people/rusty/modules/

STEP 3:

Install module-init-tools. This will replace depmod [/sbin/depmod] and
other tools.

tar -zxvf module-init-tools-3.0-pre10.tar.gz cd
module-init-tools-3.0-pre10 ./configure --prefix=/sbin make make
install

STEP 4:

Install modutils-2.4.21-23.src.rpm. You'll may get warnings about user
rusty and group rusty not existing. Also, yes, you'll have to force the
install. If you don't do these steps for both Redhat 9 and Redhat 8, you'll
have problems with the make modules_install.

rpm -i modutils-2.4.21-23.src.rpm
rpmbuild -bb /usr/src/redhat/SPECS/modutils.spec
rpm -Fi /usr/src/redhat/RPMS/i386/modutils-2.4.21-23.i386.rpm

STEP 5:

Install and configure the kernel. Do NOT use the /usr/src/linux area!
Reference the README. I put my files in /home/src/kernel/

gunzip linux-2.6.3.tar.gz tar -xvf linux-2.6.3.tar cd linux-2.6.3

If you have patches install these now:

bzip2 -dc ../patch-2.6.xx.bz2 | patch -p1

STEP 6:

Copy the appropiate /usr/src/linux-2.4/configs [kernel-2.4.20-i686.config,
kernel-2.4.20-i686-smp.config] to .config in /home/src/kernel/linux-2.6.3

cp /usr/src/linux-2.4/configs/kernel-2.4.20-i686.config
/home/src/kernel/linux-2.6.3/.config

If you don't have the source configs, you can download them from here:

https://sourceforge.net/project/showfiles.php?group_id=79320&package_id=109944

I've also included a file config2.6-chirico which was a 2.6 version for some
of my systems. This isn't a bad reference if you run into trouble.

STEP 7:

Assuming you copied the appropriate kernel-2.4 config to .config, run the
following which will run through necessary questions for the 2.6 kernel. Or,
you might want to use the config2.6-chirico...this has already been run
through make oldconfig on my system, and I've answered the necessary
questions
for a general system.

make oldconfig

STEP 8:

This is very important. Make sure you're .config has the following in it
CONFIG_EXT3_FS=y You'll run into the following error if you leave this =m
instead of =y:

pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed

This is because Redhat 9.0 and 8.0 user the ext3 filesystem for /boot ...


STEP 9:

Edit the Makefile and add changes to the Extraversion is needed. Patches
will
update these values as well.

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 3
EXTRAVERSION = -skim-ch6

STEP 10:

make bzImage

STEP 11:

make modules

STEP 12:

make modules_install


STEP 13:

make install

If you come across errors here, what version of "depmod" is being picked
up in your path?

STEP 14:

mkdir /sys

STEP 15:

/etc/rc.sysinit needs to be modified. Look for the following line

action $"Mounting proc filesystem: " mount -n -t proc /proc /proc

and after this line enter the following:

action $"Mounting sysfs filesystem: " mount -n -t sysfs /sys /sys

Here's my /etc/rc.sysinit for reference:

http://prdownloads.sourceforge.net/souptonuts/rc.sysinit.txt?download



Be very careful at this step. Backup the /etc/rc.sysinit file. I didn't
need any USB support, but your configuation may need it.

Thomer [http://thomer.com/linux/migrate-to-2.6.html ] also added changes
to /etc/fstab. I did NOT have to do this. No harm in addding; you'll just
get errors when booting that it can't be mounted twice.

STEP 16:

Check the following:

a. The new image file should be installed on boot and there should be sym
link to it. My latest kernel is 2.6.3-skim-ch6, and I got the "-skim-ch6"
from the values I put in the Makefile, so I see the following:

/boot
vmlinuz -> vmlinuz-2.6.3-skim-ch6
System.map -> System.map-2.6.3-skim-ch6

/boot/grub/grub.conf Should have been automatically updated from make
install and look something like the the following:

# 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,2)
# kernel /vmlinuz-version ro root=/dev/hda6
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat Linux (2.6.3-skim-ch6)
root (hd0,2)
kernel /vmlinuz-2.6.3-skim-ch6 ro root=LABEL=/
initrd /initrd-2.6.3-skim-ch6.img

b. The directory /sys exists

c. You added the mount command for sys

d. CONFIG_EXT3_FS=y was used in the .config

REFERENCES:

http://www.codemonkey.org.uk/post-halloween-2.5.txt
http://kerneltrap.org/node/view/799
http://thomer.com/linux/migrate-to-2.6.html
http://www.kernel.org/

http://bugzilla.kernel.org/
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=linux.kernel


http://prdownloads.sourceforge.net/souptonuts/README_26.txt?download
http://prdownloads.sourceforge.net/souptonuts/rc.sysinit.txt?download
https://sourceforge.net/forum/forum.php?forum_id=353715

http://www.redhat.com/software/rhel/kernel26/


shell changed configuration

Posted: 22 Feb 2004 01:29 AM PST

mox601 wrote: 

Hi Mikey.

Off our medication again, are we?



dual boot from two hard disks

Posted: 21 Feb 2004 10:31 PM PST

Timothy Murphy wrote:
 

Good!

So these are the grub instructions equivalent to the lilo ones I mentioned
in the other post. Finally saw an example in how to do it! Thank you!

I've tried to learn more about grub, but did not find it very easy, and did
not find so many resourses (at least at this moment, it was easier to go
deeper into lilo). For practical purposes, continued with lilo, to which I
have more familiarity.

Regards!

Paulo


Locking users to dir

Posted: 21 Feb 2004 01:26 AM PST

_Sp wrote:
 

What do you mean by "locking"? When set correctly, UNIX file system
permissions will ensure that he can only write to his homedir (and certain
world writable dirs) and that other homedirs are not readable by him.

If you want to provide a restricted environment, for example one where he
does not have access to all binaries and cannot see your configuration
files, you can achieve this by using chroot. Check out
<http://www.tjw.org/chroot-login-HOWTO/> and
<http://www.kegel.com/crosstool/current/doc/chroot-login-howto.html>

Joerg

--
OpenPGP: D14F 2782 1276 EBB4 E4E3 0BF1 838D DD4C EB56 1C99

Xconfiguration

Posted: 20 Feb 2004 10:09 PM PST

On Sat, 21 Feb 2004 13:16:48 +0530,
GVK <iiit.net> wrote: 

X11 had text configuration last I checked.

XF86Config looks like a good place to start. I'm using XFree86-v3 (Deb
3.0r1), might be different if RH9 uses v4 but it is probably similar and
should be noted in the X documentation.

Michael C.
--
com http://mcsuper5.freeshell.org/
Registered Linux User #303915 http://counter.li.org/


k 2.6.2 Kernel panic: VFS: Unable to mount root fs

Posted: 20 Feb 2004 04:09 PM PST

Andreas Janssen wrote:
.... 
.... 

No modules, everything but the driver for my ide card are compiled in
kernel.
The problem it seems there is no support for that ide card (at least for
mode ata100...) or it has another name.

Robert.

RH 9.0 Can't mount second hard drive

Posted: 20 Feb 2004 12:12 PM PST

Chris Mantoulidis wrote: 

fdisk -l
Will show the drives and partitions even if they aren't listed in
/etc/fstab.

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.25 SMP i686 (GCC) 3.3.3
Uptime: 2 days, 23:29, 4 users, load average: 1.18, 1.18, 1.37

modules compiling problem

Posted: 20 Feb 2004 08:45 AM PST

Thanks Michael

"Michael Heiming" -----


fast drive imaging for Windows?

Posted: 20 Feb 2004 01:34 AM PST

On Fri, 20 Feb 2004 14:36:04 -0800, "Brandon J. Van Every"
<com> wrote:
 

While you're reading about Mondo, read about Mindi too... Bootable CD
for Mondo restore.

Mike-

Mornings: Evolution in action. Only the grumpy will survive.
-----------------------------------------------------

Please note - Due to the intense volume of spam, we have
installed site-wide spam filters at catherders.com. If
email from you bounces, try non-HTML, non-encoded,
non-attachments.


----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---

Strange behaviour of gpm after using KDE

Posted: 18 Feb 2004 03:55 AM PST

Paulo R. Dallan wrote: 

Have you tried any of the other PS/2 Protocol options to see if
they work? You might find one of these links to be helpful. They
both show using the NetScrollPS/2 instead of the IMPS/2 Protocol.

NetScroll PS/2
http://library.n0i.net/linux-unix/applications/x/xfree86/4.0.1/mouse6.html#29

NetScrol Optical PS/2
http://library.n0i.net/linux-unix/applications/x/xfree86/4.0.1/mouse6.html#31

--
Confucius: He who play in root, eventually kill tree.
Registered with The Linux Counter. http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.25 SMP i686 (GCC) 3.3.3
Uptime: 3 days, 44 min, 3 users, load average: 2.02, 1.60, 1.5