当前位置: 技术问答>linux和unix
为什么在red hat linux 9.0内核升级到 2.6.8.1时,在2.6.8.1中用make menuconfig有怪问题呢?
来源: 互联网 发布时间:2015-07-21
本文导语: 装了red hat linux 9.0,但内核是2.4.20-8,内核升级到 2.6.8.1时,运行2.6.81.1时正常,在2.6.8.1中用make menuconfig时,其他都基本正常,要进“ Device Drivers”,子窗口只能显示“Generic Device option”这一行其他的就出不来,...
装了red hat linux 9.0,但内核是2.4.20-8,内核升级到 2.6.8.1时,运行2.6.81.1时正常,在2.6.8.1中用make menuconfig时,其他都基本正常,要进“ Device Drivers”,子窗口只能显示“Generic Device option”这一行其他的就出不来,系统也没有反应了。这是为什么?
|
How to Compile the 2.6 Kernel Source for RedHat 9 or 8.0 Base Install
Submitted by mchirico on Tue, 06/08/2004 - 09:49. Articles | How-to
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.tar.gz" and "modutils-2.4.21-23.src.rpm" http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz http://www.kernel.org/pub/linux/kernel/people/rusty/modules/modutils-2.4.21-23.src.rpm STEP 3: Install module-init-tools. This will replace depmod [/sbin/depmod] and other tools.
tar -zxvf module-init-tools-3.0.tar.gz
cd module-init-tools-3.0
./configure --prefix=/sbin
make
make install
./generate-modprobe.conf /etc/modprobe.conf
STEP 4: Install modutils-2.4.21-23.src.rpm. You 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 appropriate /usr/src/linux-2.4/configs [kernel-2.4.20-i686.config, kernel-2.4.20-i686-smp.config] to .config in whatever directory you are installing. In my case it's /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 use the ext3 filesystem for /boot ... STEP 9: Edit the Makefile and add changes to the Extraversion as desired. 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? Also, if you get a module not found, say the following: No module aic7xxx found for kernel 2.6.x Then, in /lib/modules/2.6.x/kernel/drivers/scsi/aic7xxx/ cp aic7xxx.ko aic7xxx.o insmod should look for aic7xxx.ko ;but , it looks for aic7xxx.o If you still have trouble, make the following change in the .config
CONFIG_BLK_DEV_SD=y
and go back to STEP 10. You also may want to ref kernel-2.6.3-i686-smp-chirico-aic7xxx.config in http://prdownloads.sourceforge.net/souptonuts/configs-0.3.tar.gz?download 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 -t sysfs none /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. Thomer [http://thomer.com/linux/migrate-to-2.6.html ] also added changes to /etc/fstab. I only had to do STEP 16 below. STEP 16: Add the following to /etc/fstab for usb support.
/proc/bus/usb /proc/bus/usb usbdevfs defaults 0 0
STEP 17 (CHECKING EVERYTHING): 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. In /boot/grub/grub.conf change "default=0" to boot with the new kernel. Here's an example of my grub.conf:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to
# 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
Submitted by mchirico on Tue, 06/08/2004 - 09:49. Articles | How-to
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.tar.gz" and "modutils-2.4.21-23.src.rpm" http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz http://www.kernel.org/pub/linux/kernel/people/rusty/modules/modutils-2.4.21-23.src.rpm STEP 3: Install module-init-tools. This will replace depmod [/sbin/depmod] and other tools.
tar -zxvf module-init-tools-3.0.tar.gz
cd module-init-tools-3.0
./configure --prefix=/sbin
make
make install
./generate-modprobe.conf /etc/modprobe.conf
STEP 4: Install modutils-2.4.21-23.src.rpm. You 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 appropriate /usr/src/linux-2.4/configs [kernel-2.4.20-i686.config, kernel-2.4.20-i686-smp.config] to .config in whatever directory you are installing. In my case it's /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 use the ext3 filesystem for /boot ... STEP 9: Edit the Makefile and add changes to the Extraversion as desired. 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? Also, if you get a module not found, say the following: No module aic7xxx found for kernel 2.6.x Then, in /lib/modules/2.6.x/kernel/drivers/scsi/aic7xxx/ cp aic7xxx.ko aic7xxx.o insmod should look for aic7xxx.ko ;but , it looks for aic7xxx.o If you still have trouble, make the following change in the .config
CONFIG_BLK_DEV_SD=y
and go back to STEP 10. You also may want to ref kernel-2.6.3-i686-smp-chirico-aic7xxx.config in http://prdownloads.sourceforge.net/souptonuts/configs-0.3.tar.gz?download 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 -t sysfs none /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. Thomer [http://thomer.com/linux/migrate-to-2.6.html ] also added changes to /etc/fstab. I only had to do STEP 16 below. STEP 16: Add the following to /etc/fstab for usb support.
/proc/bus/usb /proc/bus/usb usbdevfs defaults 0 0
STEP 17 (CHECKING EVERYTHING): 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. In /boot/grub/grub.conf change "default=0" to boot with the new kernel. Here's an example of my grub.conf:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to
# 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 in /etc/rc.sysinit d. CONFIG_EXT3_FS=y was used in the .config e. Run /sbin/lsmod or cat /proc/modules to make sure a 2.4 kernel module wasn't forgotten. Also look at "$cat /proc/iomem" STEP 18 (GETTING FEDORIA UPDATES: YUM): Yum works with RPM based systems to update packages automatically. Yum is an officially supported update mechanism for Fedora, and Fedora mirrors are set up as Yum repositories. Download: http://linux.duke.edu/projects/yum/download.ptml Before installing Yum, or any RPM package, you'll need to do the following:
export LD_ASSUME_KERNEL=2.4.19
Next, install Yum
rpm -ivh yum-2.0.7-1.noarch.rpm
The "/etc/yum.conf" may need to be updated. Here is an example file with the values for redhat 9 entered in directly
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[fedora-stable-9]
name=Fedora Project Stable RPMS for RHL 9
baseurl=http: //download.fedora.us/fedora/redhat/9/i386/yum/stable/
gpgcheck=1
[fedora-updates-9]
name=Fedora Project update RPMS for RHL 9
baseurl=http: //download.fedora.us/fedora/redhat/9/i386/yum/updates/
gpgcheck=1
NOTE: If you're using Redhat 8, replace 9 with "8.0" Next update your GPG-KEY
rpm --import http://www.fedora.us/FEDORA-GPG-KEY
The following will download a lot of "HEADER" files, but WILL NOT update anything. Yes, I too thought my system was being updated with old files, but IT IS NOT.
yum check-update
After this runs, which takes awhile. You can then update selected packages. Here is an example of the "libpng10" package being updated.
yum -y update libpng10
Also, subsequent calls to "yum check-update" shows what needs to be updated. To update every currently installed package
yum -y update
or to exclude packages like kernel and httpd:
yum --exclude kernel* --exclude httpd* -y update
STEP 19 (DEVELOP YOUR OWN 2.6 MODULES): You're done with the 2.6 build. So learn how to develop 2.6 kernel modules. First, checkout the following article http://lwn.net/Articles/driver-porting/ Then, take a look at the following sample code, which shows how to create /proc entries for communicating with the kernel and writing out to any available tty device. http://prdownloads.sourceforge.net/souptonuts/procreadwrite.0.0.1a.tar.gz?download UPGRADING TO FEDORA (DISKLESS INSTALL) It's possible to completely install Fedora by downloading the *.iso image, mount it to a loopback device, copy the Linux kernel images to /boot, modify grub, reboot, then have it find the *.iso image for the rest of the install. STEP A: Download the complete DVD package. It's 4 GB: FC2-i386-DVD.iso from: http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/iso/ STEP B: Once downloaded check the md5sum md5sum FC2-i386-DVD.iso STEP C: Create a directory off of root for mounting the iso image. mkdir /iso0 STEP D: The DVD image file can be mounted with the following command: mount -o loop -t iso9660 /FC2-i386-DVD.iso /iso0 STEP E: Copy /iso0/images/pxeboot to the /boot directory cp -r /iso0/images/pxeboot /boot/. STEP F: Modify Grub to include the following:
title Fedora (INIT)
root (hd0,2)
kernel /pxeboot/vmlinuz
initrd /pxeboot/initrd.img
Special note: Look at the other grub entries "root (hd0,1)", perhaps it's listed as "root (hd3,0)" or (hd2,0). This must be the same, so change hd0 above to match the other entries. STEP G: Make note of where FC2-i386-DVD.iso resides by issuing the "df" command.
$ df .
You'll need this location after reboot. It's something like /dev/hda1 or /dev/hdb2 STEP H: Reboot. When asked for the location of the "iso" file select FILE on the Fedora menu. put in the /dev/hda1 location above. Note if it's in a subdirectory off of this filesystem there is a text box to enter that as well. The install should proceed on its own from here. 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://linuxdevices.com/articles/AT3855888078.html http://prdownloads.sourceforge.net/souptonuts/README_26.txt?download http://prdownloads.sourceforge.net/souptonuts/rc.sysinit.txt?download http://prdownloads.sourceforge.net/souptonuts/configs-0.3.tar.gz?download https://sourceforge.net/forum/forum.php?forum_id=353715 http://www.redhat.com/software/rhel/kernel26/ http://www.tldp.org/HOWTO/KernelAnalysis-HOWTO.html http://www-124.ibm.com/linux/projects/?topic_id=2 FEDORA: http://fedora.artoo.net/faq/ YUM: http://linux.duke.edu/projects/yum/download.ptml http://www.linuxjournal.com/article.php?sid=7448 KERNEL DRIVER DEVELOPMENT IN 2.6: Excellent (series of articles): http://lwn.net/Articles/driver-porting/ Here's my sample program: http://prdownloads.sourceforge.net/cpearls/procreadwrite.0.0.1a.tar.gz?download Good but dated for 2.4 kernel: http://www.oreilly.com/catalog/linuxdrive2/ http://linuxdevices.com/articles/AT4389927951.html http://linuxdevices.com/articles/AT5793467888.html Further index of on-line links: http://jungla.dit.upm.es/~jmseyas/linux/kernel/hackers-docs.html The OS used to develop Linux: http://www.minix.org/ http://www.cs.vu.nl/~ast/minix.html
» login or register to post comments | 12872 reads
RPM not working after upgrade ...
Posted by mchirico on Mon, 07/12/2004 - 18:58.
From the command prompt run
$ export LD_ASSUME_KERNEL=2.4.19
Now, rpm should work.
Regards,
Mike Chirico
» login or register to post comments
RPM not working after upgrade
Posted by turi on Wed, 07/07/2004 - 15:29.
I tried to install an rpm but it was failing to do so. So I thought may be the rpm database needed to be rebuilt for the new kernel and I tried this:
rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.2499
D: creating directory /var/lib/rpmrebuilddb.2499
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
rpmdb: write: 0xbfffd5c0, 8192: Invalid argument
error: db4 error(22) from dbenv->open: Invalid argument
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages index
D: removing directory /var/lib/rpmrebuilddb.2499
export LD_ASSUME_KERNEL=2.4.19
Next, install Yum
rpm -ivh yum-2.0.7-1.noarch.rpm
The "/etc/yum.conf" may need to be updated. Here is an example file with the values for redhat 9 entered in directly
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[fedora-stable-9]
name=Fedora Project Stable RPMS for RHL 9
baseurl=http: //download.fedora.us/fedora/redhat/9/i386/yum/stable/
gpgcheck=1
[fedora-updates-9]
name=Fedora Project update RPMS for RHL 9
baseurl=http: //download.fedora.us/fedora/redhat/9/i386/yum/updates/
gpgcheck=1
NOTE: If you're using Redhat 8, replace 9 with "8.0" Next update your GPG-KEY
rpm --import http://www.fedora.us/FEDORA-GPG-KEY
The following will download a lot of "HEADER" files, but WILL NOT update anything. Yes, I too thought my system was being updated with old files, but IT IS NOT.
yum check-update
After this runs, which takes awhile. You can then update selected packages. Here is an example of the "libpng10" package being updated.
yum -y update libpng10
Also, subsequent calls to "yum check-update" shows what needs to be updated. To update every currently installed package
yum -y update
or to exclude packages like kernel and httpd:
yum --exclude kernel* --exclude httpd* -y update
STEP 19 (DEVELOP YOUR OWN 2.6 MODULES): You're done with the 2.6 build. So learn how to develop 2.6 kernel modules. First, checkout the following article http://lwn.net/Articles/driver-porting/ Then, take a look at the following sample code, which shows how to create /proc entries for communicating with the kernel and writing out to any available tty device. http://prdownloads.sourceforge.net/souptonuts/procreadwrite.0.0.1a.tar.gz?download UPGRADING TO FEDORA (DISKLESS INSTALL) It's possible to completely install Fedora by downloading the *.iso image, mount it to a loopback device, copy the Linux kernel images to /boot, modify grub, reboot, then have it find the *.iso image for the rest of the install. STEP A: Download the complete DVD package. It's 4 GB: FC2-i386-DVD.iso from: http://download.fedora.redhat.com/pub/fedora/linux/core/2/i386/iso/ STEP B: Once downloaded check the md5sum md5sum FC2-i386-DVD.iso STEP C: Create a directory off of root for mounting the iso image. mkdir /iso0 STEP D: The DVD image file can be mounted with the following command: mount -o loop -t iso9660 /FC2-i386-DVD.iso /iso0 STEP E: Copy /iso0/images/pxeboot to the /boot directory cp -r /iso0/images/pxeboot /boot/. STEP F: Modify Grub to include the following:
title Fedora (INIT)
root (hd0,2)
kernel /pxeboot/vmlinuz
initrd /pxeboot/initrd.img
Special note: Look at the other grub entries "root (hd0,1)", perhaps it's listed as "root (hd3,0)" or (hd2,0). This must be the same, so change hd0 above to match the other entries. STEP G: Make note of where FC2-i386-DVD.iso resides by issuing the "df" command.
$ df .
You'll need this location after reboot. It's something like /dev/hda1 or /dev/hdb2 STEP H: Reboot. When asked for the location of the "iso" file select FILE on the Fedora menu. put in the /dev/hda1 location above. Note if it's in a subdirectory off of this filesystem there is a text box to enter that as well. The install should proceed on its own from here. 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://linuxdevices.com/articles/AT3855888078.html http://prdownloads.sourceforge.net/souptonuts/README_26.txt?download http://prdownloads.sourceforge.net/souptonuts/rc.sysinit.txt?download http://prdownloads.sourceforge.net/souptonuts/configs-0.3.tar.gz?download https://sourceforge.net/forum/forum.php?forum_id=353715 http://www.redhat.com/software/rhel/kernel26/ http://www.tldp.org/HOWTO/KernelAnalysis-HOWTO.html http://www-124.ibm.com/linux/projects/?topic_id=2 FEDORA: http://fedora.artoo.net/faq/ YUM: http://linux.duke.edu/projects/yum/download.ptml http://www.linuxjournal.com/article.php?sid=7448 KERNEL DRIVER DEVELOPMENT IN 2.6: Excellent (series of articles): http://lwn.net/Articles/driver-porting/ Here's my sample program: http://prdownloads.sourceforge.net/cpearls/procreadwrite.0.0.1a.tar.gz?download Good but dated for 2.4 kernel: http://www.oreilly.com/catalog/linuxdrive2/ http://linuxdevices.com/articles/AT4389927951.html http://linuxdevices.com/articles/AT5793467888.html Further index of on-line links: http://jungla.dit.upm.es/~jmseyas/linux/kernel/hackers-docs.html The OS used to develop Linux: http://www.minix.org/ http://www.cs.vu.nl/~ast/minix.html
» login or register to post comments | 12872 reads
RPM not working after upgrade ...
Posted by mchirico on Mon, 07/12/2004 - 18:58.
From the command prompt run
$ export LD_ASSUME_KERNEL=2.4.19
Now, rpm should work.
Regards,
Mike Chirico
» login or register to post comments
RPM not working after upgrade
Posted by turi on Wed, 07/07/2004 - 15:29.
I tried to install an rpm but it was failing to do so. So I thought may be the rpm database needed to be rebuilt for the new kernel and I tried this:
rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.2499
D: creating directory /var/lib/rpmrebuilddb.2499
D: opening old database with dbapi 3
D: opening db environment /var/lib/rpm/Packages create:cdb:mpool
rpmdb: write: 0xbfffd5c0, 8192: Invalid argument
error: db4 error(22) from dbenv->open: Invalid argument
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
error: cannot open Packages index
D: removing directory /var/lib/rpmrebuilddb.2499
|
Any sugestions?
» login or register to post comments
Hey please please help
Posted by fireicer on Thu, 06/24/2004 - 00:05.
right ok well i have updated all my module tools and bits and i still dont get it i have set the scsi bulk_dev_sd and so forth including others bare in mind i have compiled the kernel a few times here and still i get the error.
No module aic79xx found for kernel 2.6.7
note this is the aic79xx module because i dont need the aic7xxx module but hey i just enabled that to a =y aswell and still nothing.
my compile proces on most attempts have been
make
make madules_install
make install
my second attemting compile method which had no effect at all was
make bzImage
make modules
make modules_install
make install
and still aic79xx module problem not to mention the fact that the module exist in the repository.
i have even try to rename it and search the source for the problem but nothing.
i am having foaming at the mouth with this one. I did have a thought it had something to do with the header files but no they are all in place so i dont think i need to touch them as this fault is what i dont know something else maybe can anyone help. cheers.
http://www.linuxgazette.com/node/view/9060
» login or register to post comments
Hey please please help
Posted by fireicer on Thu, 06/24/2004 - 00:05.
right ok well i have updated all my module tools and bits and i still dont get it i have set the scsi bulk_dev_sd and so forth including others bare in mind i have compiled the kernel a few times here and still i get the error.
No module aic79xx found for kernel 2.6.7
note this is the aic79xx module because i dont need the aic7xxx module but hey i just enabled that to a =y aswell and still nothing.
my compile proces on most attempts have been
make
make madules_install
make install
my second attemting compile method which had no effect at all was
make bzImage
make modules
make modules_install
make install
and still aic79xx module problem not to mention the fact that the module exist in the repository.
i have even try to rename it and search the source for the problem but nothing.
i am having foaming at the mouth with this one. I did have a thought it had something to do with the header files but no they are all in place so i dont think i need to touch them as this fault is what i dont know something else maybe can anyone help. cheers.
http://www.linuxgazette.com/node/view/9060
|
2.6.8都出来了?
用2.6.7试试吧.一定OK的.
用2.6.7试试吧.一定OK的.
|
是,我也碰到这个问题了!
不知道怎么回事啊
不知道怎么回事啊
|
先卸载原来的工具包,然后编译新内核,编译新版本工具包。
|
module-init-tools
装了没有先?
装了没有先?