LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Install error on FC6 real time kernel using linux-2.6.17.1 and rtai-3.4 (https://www.linuxquestions.org/questions/fedora-35/install-error-on-fc6-real-time-kernel-using-linux-2-6-17-1-and-rtai-3-4-a-529428/)

akra 02-15-2007 04:23 PM

Install error on FC6 real time kernel using linux-2.6.17.1 and rtai-3.4
 
Hithere!!

I'm traying to compile a real time kernel in FC6. I downloaded the linux-2.6.17.1.tar.bz2 kernel and rtai-3,4.tar.bz2 following the next procedure to compile and patch it:

cd usr/src/
tar xjf linux-2.6.17.1.tar.bz2
ln -s linux-2.6.17.1 linux
tar xjf rtai-3.4.tar.bz2
cd linux (usr/src/linux)
patch -p1 </usr/src/rtai-3.4/base/arch/i386/patches/hal-linux-2.6.17-i386-1.3-0.8.patch
make mrproper
cp /boot/config-2.6.18-1.2798.fc6 ./.config
make menuconfig
make all
make modules_install
make install


In the last instruction is when the error occurs, showing the next message:
[root@localhost linux]# make install
sh /usr/src/linux-2.6.17.1/arch/i386/boot/install.sh 2.6.17.kernel-2.6.17.1/usr/src/linux arch/i386/boot/bzImage System.map "/boot"
/sbin/installkernel: line 58: /boot/vmlinuz-2.6.17.kernel-2.6.17.1/usr/src/linux: No such file or directory
cp: cannot create regular file `/boot/System.map-2.6.17.kernel-2.6.17.1/usr/src/linux': No such file or directory
FATAL: Could not open '/boot/System.map-2.6.17.kernel-2.6.17.1/usr/src/linux': No such file or directory
/sbin/mkinitrd: line 1290: /boot/initrd-2.6.17.kernel-2.6.17.1/usr/src/linux.img: No such file or directory
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2


I used linux-2.6.17.1 kernel because the rtai patch match with hal-linux-2.6.17-i386-1.3-08.patch

I also have tried using kernel-2.6.18-1.2798.fc6.src.rpm but when I patch it the system asks for a specific file but I have no idea where to find that file. This problem doesn't show up when I use linux-2.6.17.1.

I'm not sure what to do now any help would be appreciated.

Junior Hacker 02-16-2007 03:09 PM

I'm not sure if this will be of any help, but after a fresh install I tried to install kernel update 2.6.19-1.2895, since Fedora 6 had come out there had been prior kernel updates to this one and I kept getting dependency problems, mostly with mkinitrd & nash, and the dependency problems did not stop there, but I did. I decided to just update the kernel to prior version 2.6.18-1.2869 first as I had no dependency problems, then compile my modem drivers and do the rest of the updates including kernel 2.6.19-1.2895 on-line with yum.
I believe that once you go from 2.6.18 to 2.6.19 kernel is when mkinitrd and nash had to be upgraded also (and possibly more), the same may be true for you going down from 2.6.18 to 2.6.17 kernels. As it appears in the error you posted there is a mkinitrd problem, may have to downgrade it to a version compatible with 2.6.17 kernels. And a system.map file was not created "/boot/System.map-2.6.17.kernel-2.6.17.1/usr/src/linux", may be related.


All times are GMT -5. The time now is 07:58 AM.